components

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuditTable

func AuditTable(entries []admin.AuditEntry) templ.Component

AuditTable renders a table of audit log entries.

func BoolBadge

func BoolBadge(value bool, trueLabel string, falseLabel string) templ.Component

BoolBadge renders a badge for a boolean value.

func DatacenterStatusBadge

func DatacenterStatusBadge(status datacenter.Status) templ.Component

DatacenterStatusBadge renders a badge for a datacenter status.

func DatacenterTable

func DatacenterTable(datacenters []*datacenter.Datacenter, instanceCounts map[string]int) templ.Component

DatacenterTable renders a table of datacenters.

func DeployStateBadge

func DeployStateBadge(state deploy.DeployState) templ.Component

DeployStateBadge renders a badge for a deployment state.

func DeploymentTable

func DeploymentTable(deployments []*deploy.Deployment, showInstance bool) templ.Component

DeploymentTable renders a table of deployments.

func DomainTable

func DomainTable(domains []network.Domain, instanceID string) templ.Component

DomainTable renders a table of domains.

func EmptyState

func EmptyState(iconName string, title string, description string) templ.Component

EmptyState renders a centered empty state with an icon, title, and description.

func EnvVarEditor

func EnvVarEditor(env map[string]string) templ.Component

EnvVarEditor renders a read-only table of environment variable key-value pairs.

func EventTable

func EventTable(events []*event.Event) templ.Component

EventTable renders a table of events.

func EventTypeBadge

func EventTypeBadge(eventType event.Type) templ.Component

EventTypeBadge renders a colored badge based on event type.

func HealthCheckTable

func HealthCheckTable(checks []health.HealthCheck, instanceID string) templ.Component

HealthCheckTable renders a table of health checks.

func HealthStatusBadge

func HealthStatusBadge(status health.Status) templ.Component

HealthStatusBadge renders a badge for a health status.

func HealthSummaryRow

func HealthSummaryRow(instName string, instID string, ih *health.InstanceHealth) templ.Component

HealthSummaryRow renders a health summary row for the aggregate health view.

func InstanceStateBadge

func InstanceStateBadge(state provider.InstanceState) templ.Component

InstanceStateBadge renders a badge for an instance state.

func InstanceTable

func InstanceTable(instances []*instance.Instance) templ.Component

InstanceTable renders a table of instances with clickable rows.

func PRGRedirect

func PRGRedirect(url string) templ.Component

PRGRedirect renders a script that replaces the browser URL via history.replaceState. This implements the Post/Redirect/Get pattern for HTMX forms: after a successful POST, the browser URL is updated so that a page refresh performs a GET to the result page instead of resubmitting the form.

func ProviderCard

func ProviderCard(p admin.ProviderStatus) templ.Component

ProviderCard renders a card showing a provider's status.

func ReleaseTable

func ReleaseTable(releases []*deploy.Release) templ.Component

ReleaseTable renders a table of releases.

func ResolveIcon

func ResolveIcon(iconName string, opts ...icons.Option) templ.Component

ResolveIcon returns the Lucide icon component for the given icon name.

func ResourceGauge

func ResourceGauge(label string, used int, limit int, unit string) templ.Component

ResourceGauge renders a progress bar showing resource usage.

func RouteTable

func RouteTable(routes []network.Route, instanceID string) templ.Component

RouteTable renders a table of routes.

func SecretTable

func SecretTable(secs []secrets.Secret, instanceID string) templ.Component

SecretTable renders a table of secrets (metadata only, values never shown).

func StatCard

func StatCard(iconName string, label string, value string, subtitle string) templ.Component

StatCard renders a dashboard statistics card with an icon, label, value, and optional subtitle.

func StrategySelect

func StrategySelect(selected string) templ.Component

StrategySelect renders a deployment strategy selector dropdown.

func TemplateCard

func TemplateCard(t *deploy.Template, instanceID string) templ.Component

TemplateCard renders a gallery card for a deployment template. Used on the deploy create page template gallery tab.

func TenantStatusBadge

func TenantStatusBadge(status admin.TenantStatus) templ.Component

TenantStatusBadge renders a badge for a tenant status.

func TenantTable

func TenantTable(tenants []*admin.Tenant) templ.Component

TenantTable renders a table of tenants.

func WorkerStatusBadge

func WorkerStatusBadge(running bool) templ.Component

WorkerStatusBadge renders a badge for a worker running status.

func WorkerTable

func WorkerTable(workers []worker.WorkerInfo) templ.Component

WorkerTable renders a table of background workers.

Types

type HealthCounts

type HealthCounts struct {
	Healthy   int
	Degraded  int
	Unhealthy int
	Unknown   int
}

HealthCounts holds aggregate health status counts for display in widgets.

Jump to

Keyboard shortcuts

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