components

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProfile

func AddProfile(title string) templ.Component

func BaseWithNav

func BaseWithNav(title, profile string) templ.Component

func BaseWithoutNav

func BaseWithoutNav(title string) templ.Component

func Card

func Card() templ.Component

func CardAsListIsFull

func CardAsListIsFull() templ.Component

func CardContent

func CardContent() templ.Component

func CardFooter

func CardFooter() templ.Component

func CardFrame

func CardFrame() templ.Component

func CardIsFull

func CardIsFull() templ.Component

func Form

func Form(p FormParams) templ.Component
func Head(title string) templ.Component

func Hello

func Hello(name string) templ.Component

func Initial

func Initial(placeholder, button string, profiles []string) templ.Component

func Job

func Job(placeholder, button string, p string, profiles []string) templ.Component

func ManageInit

func ManageInit(title string, profiles []string) templ.Component

func ManageStart

func ManageStart(title string) templ.Component

func Pagination

func Pagination(p Pages) templ.Component

func PanelHeaderlessIsHalf

func PanelHeaderlessIsHalf() templ.Component

func Progress

func Progress(p string) templ.Component
func SearchBar(path, s string) templ.Component

func SelectProfile

func SelectProfile(title string, profiles []string) templ.Component

func Start

func Start(placeholder, button, profile, jobType, id string) templ.Component

Types

type ArchiveParams

type ArchiveParams struct {
	Title   string
	Profile string
	Items   []model.Month
}

func (ArchiveParams) Archive

func (p ArchiveParams) Archive() templ.Component

type File

type File struct {
	Title   string
	Profile string
	Host    string
	Items   []model.File
}

func (File) WithPage

func (n File) WithPage() templ.Component

func (File) WithPages

func (n File) WithPages(p Pages) templ.Component

type FormParams added in v0.0.2

type FormParams struct {
	PostURL     string
	Label       string
	InputName   string
	PlaceHolder string
	Button      string
}

type IndexParams

type IndexParams struct {
	Title     string
	Profile   string
	Reactions []model.ReactionEmoji
	HashTags  []model.HashTag
	Users     []model.User
}

func (IndexParams) Index

func (p IndexParams) Index() templ.Component

type Note

type Note struct {
	Title      string
	Profile    string
	Host       string
	SearchPath string
	Items      []model.Note
}

func (Note) WithPage

func (n Note) WithPage() templ.Component

func (Note) WithPages

func (n Note) WithPages(p Pages) templ.Component

type Pages

type Pages struct {
	Current int
	Prev    int
	Next    int
	Last    int
	HasNext bool
	HasLast bool

	QueryParams QueryParams
}

type QueryParams added in v0.0.3

type QueryParams struct {
	Page int    `url:"page"`
	S    string `url:"s,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL