ui

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionButton

func ActionButton(label string, icon g.Node, variant forgeui.Variant, attrs ...g.Node) g.Node

ActionButton renders a button with an icon.

func ApexChartsScript

func ApexChartsScript() g.Node

ApexChartsScript returns the script tag for ApexCharts.

func ChartInitializationScript

func ChartInitializationScript() g.Node

ChartInitializationScript returns the Alpine.js chart initialization logic.

func ChartPlaceholder

func ChartPlaceholder(id, title, description string) g.Node

ChartPlaceholder renders a placeholder for charts with ApexCharts integration.

func ChartsSection

func ChartsSection() g.Node

ChartsSection renders a grid of charts.

func DashboardHeader

func DashboardHeader(title string, basePath string) g.Node

DashboardHeader renders the main dashboard header with navigation and theme toggle.

func DashboardPage

func DashboardPage(title, basePath string, enableRealtime, enableExport bool) g.Node

DashboardPage renders the complete dashboard page.

func DashboardPageHandler

func DashboardPageHandler(title, basePath string, enableRealtime, enableExport bool) router.PageHandler

DashboardPageHandler returns a ForgeUI page handler for the dashboard.

func EmptyState

func EmptyState(icon g.Node, title, description string) g.Node

EmptyState renders an empty state placeholder.

func HealthChecksTable

func HealthChecksTable() g.Node

HealthChecksTable renders the health checks table with Alpine.js integration.

func HealthHistoryChart

func HealthHistoryChart() g.Node

HealthHistoryChart renders a health history chart.

func LoadingSpinner

func LoadingSpinner(message string) g.Node

LoadingSpinner renders a loading spinner with optional message.

func MetricCard

func MetricCard(title, value, description string, icon g.Node, trendValue string, trendUp bool) g.Node

MetricCard renders a single metric card with icon, value, and description.

func MetricsReportTable

func MetricsReportTable() g.Node

MetricsReportTable renders a comprehensive metrics report.

func MetricsTypeDistributionChart

func MetricsTypeDistributionChart() g.Node

MetricsTypeDistributionChart renders a metrics type distribution pie chart.

func OverviewMetrics

func OverviewMetrics(basePath string) g.Node

OverviewMetrics renders the main overview metrics grid.

func SectionHeader

func SectionHeader(title, description string) g.Node

SectionHeader renders a section header with title and optional description.

func ServiceDetailModal

func ServiceDetailModal() g.Node

ServiceDetailModal renders a modal with detailed service information.

func ServicesCountChart

func ServicesCountChart() g.Node

ServicesCountChart renders a services count chart.

func ServicesGrid

func ServicesGrid(basePath string) g.Node

ServicesGrid renders a grid of service cards.

func StatCard

func StatCard(icon g.Node, value, label, trend string, trendUp bool) g.Node

StatCard renders a statistics card with icon, value, label, and optional trend.

func StatusBadge

func StatusBadge(status string) g.Node

StatusBadge renders a status indicator badge.

Types

This section is empty.

Jump to

Keyboard shortcuts

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