components

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 15 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 EndpointForm added in v0.14.0

func EndpointForm(props EndpointFormProps) templ.Component

func EndpointFormConfig added in v0.14.0

func EndpointFormConfig(props EndpointFormConfigProps) 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 HelpDialog added in v0.14.0

func HelpDialog(props HelpDialogProps) 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 RuleForm added in v0.14.0

func RuleForm(props RuleFormProps) templ.Component

func RuleFormExpressionLabel added in v0.14.0

func RuleFormExpressionLabel(props RuleFormExpressionLabelProps) 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 EndpointFormConfigField added in v0.14.0

type EndpointFormConfigField struct {
	models.EndpointSchemaField
	Value string
}

type EndpointFormConfigProps added in v0.14.0

type EndpointFormConfigProps struct {
	Internal bool
	Fields   []EndpointFormConfigField
	Error    string
}

type EndpointFormData added in v0.14.0

type EndpointFormData struct {
	ID                      int64
	Internal                bool
	Name                    string
	NameError               string
	AttachmentDisable       bool
	TextDisable             bool
	TitleTemplate           string
	TitleTemplateError      string
	BodyTemplate            string
	BodyTemplateError       string
	Kind                    string
	KindError               string
	EndpointFormConfigProps EndpointFormConfigProps
}

type EndpointFormProps added in v0.14.0

type EndpointFormProps struct {
	Flash  templ.Component
	Create bool
	Data   EndpointFormData
}

func (EndpointFormProps) Route added in v0.14.0

func (p EndpointFormProps) Route() routes.Route

func (EndpointFormProps) WithError added in v0.14.0

func (p EndpointFormProps) WithError(err error) EndpointFormProps

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 HelpDialogProps added in v0.14.0

type HelpDialogProps struct {
	ID   string
	Size string
}

func (HelpDialogProps) ShowModal added in v0.14.0

func (h HelpDialogProps) ShowModal() templ.ComponentScript

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 RuleFormData added in v0.14.0

type RuleFormData struct {
	ID                  int64
	Internal            bool
	Name                string
	NameError           string
	Expression          string
	ExpressionErr       error
	Endpoints           []models.Endpoint
	EndpointsSelections []bool
}

type RuleFormExpressionLabelProps added in v0.14.0

type RuleFormExpressionLabelProps struct {
	Err error
}

type RuleFormProps added in v0.14.0

type RuleFormProps struct {
	Flash  templ.Component
	Create bool
	Data   RuleFormData
}

func (RuleFormProps) Route added in v0.14.0

func (p RuleFormProps) Route() routes.Route

func (RuleFormProps) WithError added in v0.14.0

func (p RuleFormProps) WithError(err error) RuleFormProps

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