pages

package
v0.97.8 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: 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

Package pages provides full-page Templ views.

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 AgentChatPage added in v0.95.0

func AgentChatPage(session model.AgentSession, messages []model.AgentChatMessage, endpoints partials.ChatAgentEndpoints) templ.Component

func AgentScheduledTaskDetailPage added in v0.95.0

func AgentScheduledTaskDetailPage(task model.AgentScheduledTask, runs []model.AgentScheduledTaskRun) templ.Component

func AgentScheduledTasksPage added in v0.95.0

func AgentScheduledTasksPage(items []model.AgentScheduledTask) templ.Component

func AgentSessionDetailPage added in v0.93.0

func AgentSessionDetailPage(session model.AgentSession, entries []model.AgentSessionEntry, plans []model.AgentPlan) templ.Component

func AgentSessionsPage added in v0.93.0

func AgentSessionsPage(items []model.AgentSession, nextCursor string) templ.Component

func AgentSkillsPage added in v0.93.0

func AgentSkillsPage(items []model.AgentSkill) templ.Component

func AgentSubagentsPage added in v0.93.0

func AgentSubagentsPage(items []model.AgentSubagent) templ.Component

func AgentsPage added in v0.95.0

func AgentsPage(items []model.AgentSession, nextCursor string, endpoints partials.ChatAgentEndpoints, chatEnabled bool) templ.Component

func CapabilitiesPage

func CapabilitiesPage(descriptors []hub.Descriptor, types []string, providers []string) templ.Component

func ChatAgentPermissionsPage added in v0.93.0

func ChatAgentPermissionsPage(data partials.PermissionFormPageData) templ.Component

func ClipPage added in v0.97.8

func ClipPage(d ClipPageData) templ.Component

ClipPage renders a shareable markdown clip with gated body for anonymous visitors.

func ClipsPage added in v0.97.8

func ClipsPage(items []partials.ClipListItem) templ.Component

func ConfigsPage

func ConfigsPage(items []model.ConfigItem) templ.Component

func EventsPage

func EventsPage(p EventsPageParams) templ.Component

func HealthzPage

func HealthzPage(data partials.HealthzData) templ.Component

func HomelabDetailPage

func HomelabDetailPage(app homelab.App, status homelab.AppStatus, version string, scannedAt string) templ.Component

func HomelabDetailStatusBadge

func HomelabDetailStatusBadge(status homelab.AppStatus) templ.Component

func HomelabPage

func HomelabPage(apps []homelab.App, scannedAt string) templ.Component

func HubAppDetailPage

func HubAppDetailPage(app homelab.App, status homelab.AppStatus, permissions homelab.Permissions) templ.Component

func HubAppStatusBadge

func HubAppStatusBadge(status homelab.AppStatus) templ.Component

func HubAppsPage

func HubAppsPage(apps []homelab.App, updatedAts map[string]string) templ.Component

func LoginForm

func LoginForm(nextURL string, errorMsg string, csrfToken string) templ.Component

LoginForm renders the login form without the base layout. Used for HTMX responses where only the form fragment should be swapped. csrfToken is embedded so login works even when JS cannot attach X-CSRF-Token (common behind Cloudflare Rocket Loader / WAF).

func LoginPage

func LoginPage(nextURL string, errorMsg string, csrfToken string) templ.Component

func NotifySettingsPage

func NotifySettingsPage(activeTab string) templ.Component

NotifySettingsPage renders the Notifications page with channels, templates, rules, history, and playground tabs. activeTab selects the initial tab: channels (default), templates, rules, history, or playground.

func PipelineEditorPage

func PipelineEditorPage(name string) templ.Component

func PipelineListPage

func PipelineListPage(entries []partials.PipelineListEntry) templ.Component

func PipelineRunLivePage

func PipelineRunLivePage(p PipelineRunLiveParams) templ.Component

PipelineRunLivePage renders the live run dashboard.

func PipelineRunsPage

func PipelineRunsPage(name string, runs []*gen.PipelineRun) templ.Component

func RelationsPage

func RelationsPage(p RelationsPageParams) templ.Component

func TokensPage

func TokensPage(items []model.TokenItem) templ.Component

func ViewPage

func ViewPage(title string, body templ.Component, expired bool) templ.Component

Types

type ClipPageData added in v0.97.8

type ClipPageData struct {
	// Slug is the public short identifier.
	Slug string
	// Title is the display and Open Graph title.
	Title string
	// Description is the preview text for meta tags and gated view.
	Description string
	// CreatedAt is when the clip was created.
	CreatedAt time.Time
	// WordCount is a rough word count of the markdown body.
	WordCount int
	// Authed is true when the visitor has a valid web session cookie.
	Authed bool
	// BodyHTML is sanitized HTML rendered from markdown (authed only).
	BodyHTML string
	// ContentMD is the raw markdown used by Copy MD.
	ContentMD string
	// LoginURL is the web login URL with next redirect.
	LoginURL string
	// NotFound marks a missing clip.
	NotFound bool
}

ClipPageData carries fields for the clip reader page.

type EventsPageParams

type EventsPageParams struct {
	Sources       []string
	EventTypes    []string
	PipelineNames []string
}

type PipelineRunLiveParams

type PipelineRunLiveParams struct {
	RunID        int64
	PipelineName string
	Trigger      string
	TotalSteps   int
	RunStatus    string
	Steps        []StepState
}

PipelineRunLiveParams holds all data for the live dashboard page.

type RelationsPageParams

type RelationsPageParams struct {
	Query    string
	Pipeline string
	Since    string
}

type StepState

type StepState struct {
	Name      string         `json:"name"`
	Status    string         `json:"status"`
	ElapsedMs int64          `json:"elapsed_ms"`
	Output    map[string]any `json:"output"`
	Error     string         `json:"error"`
	Input     map[string]any `json:"input"`
}

StepState represents the initial state of one pipeline step for Alpine.js.

Jump to

Keyboard shortcuts

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