Documentation
¶
Overview ¶
Package pages provides ForgeUI-based page templates for the multisession plugin dashboard.
Index ¶
- func BackLink(href, text string) g.Node
- func ConfirmDialog(xShowVar, title, message, confirmText, onConfirm string) g.Node
- func DangerButton(onclick, text string, icon g.Node) g.Node
- func DetailCard(title string, icon g.Node, content ...g.Node) g.Node
- func DetailRow(label, xTextValue string, icon g.Node) g.Node
- func DeviceBadge(deviceType string) g.Node
- func DeviceIcon(xDeviceType string) g.Node
- func DynamicStatusBadge() g.Node
- func EmptyState(icon g.Node, title, description string) g.Node
- func ErrorMessage(xShowCondition string) g.Node
- func FilterSelect(label, xModel, onChange string, options []FilterOption) g.Node
- func LoadingSpinner() g.Node
- func PageHeader(title, description string, actions ...g.Node) g.Node
- func PageHeaderWithBack(backHref, backText, title, description string, actions ...g.Node) g.Node
- func Pagination(goToPageFn string) g.Node
- func PrimaryButton(href, text string, icon g.Node) g.Node
- func RefreshButton(loadFn string) g.Node
- func SearchInput(placeholder, xModel, debounceAction string) g.Node
- func SecondaryButton(href, text string, icon g.Node) g.Node
- func SessionDetailPage(currentApp *app.App, sessionID, basePath string) g.Node
- func SessionsListPage(currentApp *app.App, basePath string) g.Node
- func SettingsPage(currentApp *app.App, basePath string) g.Node
- func StaticDetailRow(label, value string, icon g.Node) g.Node
- func StatsCard(label, xDataValue, colorClass string, icon g.Node) g.Node
- func StatusBadge(xShowCondition, status string) g.Node
- func UserSessionsPage(currentApp *app.App, userID, basePath string) g.Node
- func ViewToggle(xModel string) g.Node
- type FilterOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfirmDialog ¶
ConfirmDialog renders a confirmation dialog with Alpine.js.
func DangerButton ¶
DangerButton creates a danger/destructive action button.
func DetailCard ¶
DetailCard renders a card with a header icon and content.
func DeviceBadge ¶
DeviceBadge renders a device type badge.
func DeviceIcon ¶
DeviceIcon returns an icon based on device type.
func DynamicStatusBadge ¶
DynamicStatusBadge renders a status badge that changes based on Alpine.js data.
func EmptyState ¶
EmptyState renders an empty state message.
func ErrorMessage ¶
ErrorMessage renders an error message.
func FilterSelect ¶
func FilterSelect(label, xModel, onChange string, options []FilterOption) g.Node
FilterSelect renders a select dropdown for filtering.
func PageHeader ¶
PageHeader renders a standard page header with title, description, and optional actions.
func PageHeaderWithBack ¶
PageHeaderWithBack renders a page header with back navigation.
func Pagination ¶
Pagination renders pagination controls with Alpine.js.
func PrimaryButton ¶
PrimaryButton creates a primary action button using ForgeUI.
func RefreshButton ¶
RefreshButton creates a refresh button with loading state.
func SearchInput ¶
SearchInput renders a search input with Alpine.js binding.
func SecondaryButton ¶
SecondaryButton creates a secondary action button.
func SessionDetailPage ¶
SessionDetailPage renders the session detail page with dynamic data loading.
func SessionsListPage ¶
SessionsListPage renders the sessions list page with dynamic data loading.
func SettingsPage ¶
SettingsPage renders the multisession settings page.
func StaticDetailRow ¶
StaticDetailRow renders a static label-value pair with an icon.
func StatusBadge ¶
StatusBadge renders a session status badge (active, expiring, expired).
func UserSessionsPage ¶
UserSessionsPage renders all sessions for a specific user.
Types ¶
type FilterOption ¶
FilterOption represents an option for a filter select.