components

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

components are used by pages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachmentCard

func AttachmentCard(props AttachmentCardProps) templ.Component

func Base

func Base(head, body templ.Component, csrfToken string) templ.Component

func EnvelopeForm

func EnvelopeForm(props EnvelopeFormProps) templ.Component

func EnvelopeTab

func EnvelopeTab(props EnvelopeTabProps) templ.Component

func Flash

func FlashMessage

func FlashMessage(message string) templ.Component
func FlashMessageLink(message string, route routes.Route) templ.Component
func Footer() templ.Component

func FormatDate

func FormatDate(m meta.Meta, t time.Time) templ.Component

func FormatDateString

func FormatDateString(m meta.Meta, t string) templ.Component
func Header(m meta.Meta) templ.Component

func LayoutDefault

func LayoutDefault(m meta.Meta) templ.Component

func LoginForm added in v0.13.1

func LoginForm(props LoginFormProps) templ.Component

func PaginateFooter

func PaginateFooter(props PaginateFooterProps) templ.Component

func PaginateHeader

func PaginateHeader(props PaginateHeaderProps) templ.Component

func RecentEnvelopeList

func RecentEnvelopeList(m meta.Meta, props RecentEnvelopeListProps) templ.Component

func RuleExpressionCheckLabel

func RuleExpressionCheckLabel(props RuleExpressionLabelProps) templ.Component

func RuleFormCreate

func RuleFormCreate(props RuleFormCreateProps) templ.Component

func RuleFormUpdate

func RuleFormUpdate(props RuleFormUpdateProps) templ.Component

func RuleToggleButton

func RuleToggleButton(props RuleToggleButtonProps) templ.Component

func StorageStats

func StorageStats(props StorageStatsProps) templ.Component

func TableOrderTH

func TableOrderTH(props TableOrderTHProps) templ.Component

Types

type AttachmentCardProps

type AttachmentCardProps struct {
	Attachment models.Attachment
}

type EnvelopeFormProps

type EnvelopeFormProps struct {
	Flash   templ.Component
	Subject string
	From    string
	To      string
	Body    string
}

type EnvelopeTabProps

type EnvelopeTabProps struct {
	Envelope models.Envelope
	Tab      routes.EnvelopeTab
}

type FlashProps

type FlashProps struct {
	Component templ.Component
	Type      FlashType
}

type FlashType

type FlashType int
const (
	FlashTypeError FlashType = iota
	FlashTypeSuccess
)

type LoginFormProps added in v0.13.1

type LoginFormProps struct {
	Flash    templ.Component
	Username string
	Password string
}

type PaginateFooterProps

type PaginateFooterProps struct {
	Route      routes.Route
	Query      url.Values
	PageResult pagination.PageResult
}

type PaginateHeaderProps

type PaginateHeaderProps struct {
	Route      routes.Route
	Query      url.Values
	PageResult pagination.PageResult
	Ascending  bool
}

type RecentEnvelopeListProps

type RecentEnvelopeListProps struct {
	Envelopes []models.Envelope
}

type RuleExpressionLabelProps

type RuleExpressionLabelProps struct {
	Error error
}

type RuleFormCreateProps

type RuleFormCreateProps struct {
	Flash               templ.Component
	Name                string
	NameError           string
	Expression          string
	ExpressionError     error
	Endpoints           []models.Endpoint
	EndpointsSelections []bool
}

type RuleFormUpdateProps

type RuleFormUpdateProps struct {
	Flash               templ.Component
	Rule                models.Rule
	Name                string
	NameError           string
	Expression          string
	ExpressionError     error
	Endpoints           []models.Endpoint
	EndpointsSelections []bool
}

type RuleToggleButtonProps

type RuleToggleButtonProps struct {
	ID     int64
	Enable bool
}

type StorageStatsProps

type StorageStatsProps struct {
	Storage models.Storage
}

type TableOrderTHProps

type TableOrderTHProps struct {
	Query     url.Values
	Ascending bool
	Order     string
	Field     string
}

Jump to

Keyboard shortcuts

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