templates

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: GPL-2.0, GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSpoolModal

func AddSpoolModal() templ.Component

func AddTaskModal

func AddTaskModal() templ.Component

func ArtworkGrid

func ArtworkGrid(artwork []*mediaadminv1.ArtworkInfo) templ.Component

func AuditFilterPanel

func AuditFilterPanel(filter AuditFilterState) templ.Component

func AuditNoModule

func AuditNoModule() templ.Component

func AuditPage

func AuditPage(data AuditPageData) templ.Component

func AuditTable

func AuditTable(data AuditPageData) templ.Component

func BackupRow

func BackupRow(b BackupItem) templ.Component

func BackupTable

func BackupTable(backups []BackupItem) templ.Component

func BackupsPage

func BackupsPage(backups []BackupItem) templ.Component

func CapabilityTag

func CapabilityTag(cap string) templ.Component

func ChannelCard

func ChannelCard(c ChannelStatus) templ.Component

func ChannelStatusDot

func ChannelStatusDot(enabled bool) templ.Component

func ClusterPage

func ClusterPage(data ClusterPageData) templ.Component

func ClusterStatCard

func ClusterStatCard(label string, value string, desc string) templ.Component

func CollectionInfo

func CollectionInfo(metadata map[string]string) templ.Component

func ConfigPage

func ConfigPage(data ConfigPageData) templ.Component

func ConfigRow

func ConfigRow(e ConfigEntry) templ.Component

func ConfirmDeleteModal

func ConfirmDeleteModal(id string, title string, message string, deleteURL string) templ.Component

func DashboardPage

func DashboardPage(data DashboardData) templ.Component

func DetailField

func DetailField(label string, value string) templ.Component

func DotBadge

func DotBadge(color string, children ...templ.Component) templ.Component

func ErrorLayout

func ErrorLayout(title string, content templ.Component) templ.Component

func ErrorPage

func ErrorPage(code int, message string) templ.Component

func EventTable

func EventTable(events []EventItem) templ.Component

func EventsPage

func EventsPage(events []EventItem, subscriptionStats []EventSubscriptionStat) templ.Component

func Forbidden

func Forbidden() templ.Component

func HealthCard

func HealthCard(m ModuleHealthItem) templ.Component

func HealthDot

func HealthDot(healthy bool) templ.Component

func HealthGrid

func HealthGrid(modules []ModuleHealthItem) templ.Component

func Layout

func Layout(title string, nav templ.Component, content templ.Component) templ.Component

func LeaderCard

func LeaderCard(data DashboardData) templ.Component

func LoadingCard

func LoadingCard() templ.Component

func LoadingRow

func LoadingRow(colspan int) templ.Component

func LoginForm

func LoginForm(errorMsg string) templ.Component

func LoginPage

func LoginPage(errorMsg string) templ.Component

func MarketplaceModuleCard

func MarketplaceModuleCard(mod CatalogModuleData) templ.Component

func MarketplacePage

func MarketplacePage(spools []SpoolData) templ.Component

func MarketplaceTagDetail

func MarketplaceTagDetail(tag TagFileData) templ.Component

func MediaDetailPage

func MediaDetailPage(item *mediaadminv1.MediaItem, moduleID string) templ.Component

func MediaItemCard

func MediaItemCard(item *mediaadminv1.MediaItem, moduleID string) templ.Component

func MediaListPage

func MediaListPage(displayName string, items []*mediaadminv1.MediaItem, total, page, pageSize int, moduleID string) templ.Component

func MetricGroupCard

func MetricGroupCard(g MetricGroup) templ.Component

func MetricRow

func MetricRow(m MetricEntry) templ.Component

func MetricsPage

func MetricsPage(groups []MetricGroup) templ.Component
func Modal(id string, title string, children ...templ.Component) templ.Component

func ModuleCapabilitiesBlock

func ModuleCapabilitiesBlock(caps []string) templ.Component

func ModuleDependenciesBlock

func ModuleDependenciesBlock(deps []string) templ.Component

func ModuleDetailPage

func ModuleDetailPage(m ModuleDetail) templ.Component

func ModuleListPage

func ModuleListPage(modules []ModuleListItem) templ.Component

func ModuleMetaFields

func ModuleMetaFields(m ModuleDetail) templ.Component

func ModuleRolesBlock

func ModuleRolesBlock(roles []string) templ.Component

func ModuleTable

func ModuleTable(modules []ModuleListItem) templ.Component

func ModuleTrustBadge

func ModuleTrustBadge(m ModuleDetail) templ.Component
func Nav(links []NavLink, activePath string) templ.Component

func NoAuthPage

func NoAuthPage() templ.Component

func NodeCard

func NodeCard(node NodeCardData) templ.Component

func NotFound

func NotFound() templ.Component

func NotificationsPage

func NotificationsPage(channels []ChannelStatus) templ.Component

func PageNumbers

func PageNumbers(current int, total int, baseURL string) templ.Component

func PageRange

func PageRange(current int, total int, baseURL string) templ.Component

func Pagination

func Pagination(current int, total int, baseURL string) templ.Component

func PasskeyList

func PasskeyList(credentials []*authv1.WebAuthnCredentialInfo, count int, userID string) templ.Component

func PasskeyRegisterContainer

func PasskeyRegisterContainer(optionsJSON string, userID, challenge string) templ.Component

func PasskeyStatusPanel

func PasskeyStatusPanel(totpEnabled bool, userID string) templ.Component

func QualityDefinitionsPanel

func QualityDefinitionsPanel(defs []QualityDefinition) templ.Component

func QualityProfileCard

func QualityProfileCard(p QualityProfile, defs []QualityDefinition) templ.Component

func QualityProfileEditForm

func QualityProfileEditForm(profileID string, p QualityProfile, defs []QualityDefinition) templ.Component

func QualityProfileForm

func QualityProfileForm(edit *QualityProfile, defs []QualityDefinition) templ.Component

func QualityProfilesList

func QualityProfilesList(profiles []QualityProfile, defs []QualityDefinition) templ.Component

func QualityProfilesPage

func QualityProfilesPage(defs []QualityDefinition, profiles []QualityProfile) templ.Component

func QualityTag

func QualityTag(id string, defs []QualityDefinition) templ.Component

func RoleCheckbox

func RoleCheckbox(currentRoles []string, role, label string) templ.Component

func RoleTag

func RoleTag(role string) templ.Component

func SchedulerPage

func SchedulerPage(tasks []SchedulerTask) templ.Component

func SchedulerTaskRow

func SchedulerTaskRow(t SchedulerTask) templ.Component

func SchedulerTaskTable

func SchedulerTaskTable(tasks []SchedulerTask) templ.Component

func SearchResults

func SearchResults(q string, results []SearchResult) templ.Component

func SettingFieldForm

func SettingFieldForm(f SettingField, moduleID string) templ.Component

func SettingInput

func SettingInput(f SettingField) templ.Component

func SettingsGroup

func SettingsGroup(groupName string, fields []SettingField, moduleID string) templ.Component

func SettingsModuleCard

func SettingsModuleCard(mg SettingsModuleGroup) templ.Component

func SettingsPage

func SettingsPage(groups []SettingsModuleGroup) templ.Component

func Spinner

func Spinner(class string) templ.Component

func SpoolSection

func SpoolSection(spool SpoolData) templ.Component

func StateBadge

func StateBadge(state string) templ.Component

func StorageCard

func StorageCard(p StorageProviderCard) templ.Component

func StorageGrid

func StorageGrid(providers []StorageProviderCard) templ.Component

func StoragePage

func StoragePage(providers []StorageProviderCard, globalCaps []string) templ.Component

func SubscriptionStatsPanel

func SubscriptionStatsPanel(stats []EventSubscriptionStat) templ.Component

func TOTPBadge

func TOTPBadge(enabled bool) templ.Component

func TagsPage

func TagsPage(tags []string) templ.Component

func ToastContainer

func ToastContainer() templ.Component

func UserCreateForm

func UserCreateForm() templ.Component

func UserDetailPage

func UserDetailPage(user *authv1.UserInfo) templ.Component

func UserTokens

func UserTokens(tokens []*authv1.APITokenInfo, userID string) templ.Component

func UsersPage

func UsersPage(users []*authv1.UserInfo, errorMsg string) templ.Component

Types

type AuditEntryItem

type AuditEntryItem struct {
	ID         string
	Timestamp  time.Time
	Actor      string
	Action     string
	Resource   string
	ResourceID string
	TraceID    string
	NodeID     string
}

type AuditFilterState

type AuditFilterState struct {
	Actor    string
	Action   string
	Resource string
	TraceID  string
	From     string
	To       string
}

func ParseAuditFilters

func ParseAuditFilters(r *http.Request) AuditFilterState

type AuditPageData

type AuditPageData struct {
	Entries    []AuditEntryItem
	Filter     AuditFilterState
	Page       int
	TotalPages int
}

type BackupItem

type BackupItem struct {
	ID          string
	Timestamp   int64
	SizeBytes   int64
	ModuleIDs   []string
	DisplayTime string
	DisplaySize string
}

type BadgeColor

type BadgeColor string
const (
	BadgeGreen  BadgeColor = "green"
	BadgeYellow BadgeColor = "yellow"
	BadgeRed    BadgeColor = "red"
	BadgeGray   BadgeColor = "gray"
	BadgeBlue   BadgeColor = "blue"
	BadgePurple BadgeColor = "purple"
)

type CatalogData

type CatalogData struct {
	Name        string
	Description string
	Version     string
	Modules     []CatalogModuleData
}

type CatalogModuleData

type CatalogModuleData struct {
	Repo    string
	Name    string
	Version string
}

type ChannelStatus

type ChannelStatus struct {
	Channel     string
	Enabled     bool
	Description string
}

type ClusterPageData

type ClusterPageData struct {
	Nodes []NodeCardData
	Term  uint64
}

type ConfigEntry

type ConfigEntry struct {
	Key      string
	Value    string
	Redacted bool
}

type ConfigPageData

type ConfigPageData struct {
	Version string
	Entries []ConfigEntry
}

type DashboardData

type DashboardData struct {
	NodeCount         int
	LeaderID          string
	LeaderHTTPAddr    string
	LeaderGRPCAddr    string
	LeaderModuleCount int
	Disconnected      bool
}

type EventItem

type EventItem struct {
	ID        string
	Type      string
	Source    string
	Timestamp time.Time
}

type EventSubscriptionStat

type EventSubscriptionStat struct {
	EventType string
	Count     int
}

type MetricEntry

type MetricEntry struct {
	Name   string
	Value  string
	Labels map[string]string
}

type MetricGroup

type MetricGroup struct {
	Name    string
	Help    string
	Type    string
	Metrics []MetricEntry
}

type MetricSection

type MetricSection struct {
	Title  string
	Groups []MetricGroup
}

type ModuleDetail

type ModuleDetail struct {
	ID             string
	Name           string
	Version        string
	State          string
	Healthy        bool
	HealthError    string
	Description    string
	Author         string
	Repository     string
	Roles          []string
	Capabilities   []string
	DependsOn      []string
	HTTPAddr       string
	MinCoreVersion string
}

type ModuleHealthItem

type ModuleHealthItem struct {
	ID      string
	Name    string
	State   string
	Healthy bool
	Error   string
}

type ModuleListItem

type ModuleListItem struct {
	ID           string
	Name         string
	Version      string
	State        string
	Roles        []string
	Capabilities []string
	Healthy      bool
	Repository   string
}
type NavLink struct {
	Label string
	Path  string
	Icon  string
}

type NodeCardData

type NodeCardData struct {
	ID          string
	GRPCAddr    string
	HTTPAddr    string
	IsLeader    bool
	ModuleCount int
	Modules     []NodeModuleEntry
}

type NodeModuleEntry

type NodeModuleEntry struct {
	ID      string
	Healthy bool
}

type QualityDefinition

type QualityDefinition struct {
	ID         string
	Name       string
	Resolution int
	Allowed    bool
}

type QualityProfile

type QualityProfile struct {
	ID             string
	Name           string
	QualityIDs     []string
	UpgradeAllowed bool
	CutoffQuality  string
}

type SchedulerTask

type SchedulerTask struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	CronExpr  string `json:"cron_expr"`
	Status    string `json:"status"`
	CreatedAt string `json:"created_at"`
}

type SearchResult

type SearchResult struct {
	Label   string
	Sub     string
	URL     string
	Section string
}

type SettingField

type SettingField struct {
	ModuleID    string
	Key         string
	Label       string
	Type        string
	Default     string
	Description string
	Required    bool
	Options     []string
	Group       string
	Value       string
}

type SettingsModuleGroup

type SettingsModuleGroup struct {
	ModuleID   string
	ModuleName string
	Groups     map[string][]SettingField
}

type SpoolData

type SpoolData struct {
	URL     string
	Catalog *CatalogData
	Error   string
}

type StorageProviderCard

type StorageProviderCard struct {
	Name         string
	ID           string
	Capabilities []string
	Healthy      bool
}

type TagFileData

type TagFileData struct {
	Name        string
	Description string
	Version     string
	Modules     []TagFileModuleData
}

type TagFileModuleData

type TagFileModuleData struct {
	Repo     string
	Version  string
	Required bool
}

Jump to

Keyboard shortcuts

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