Documentation
¶
Index ¶
- func AppSwitcher(data PageData) g.Node
- func BaseLayout(data PageData, content g.Node) g.Node
- func BaseSidebarLayout(data PageData, content g.Node) g.Node
- func BuildSettingsURL(basePath string, appID, page string) string
- func DashboardFooter(data PageData) g.Node
- func DashboardHeader(data PageData) g.Node
- func DesktopNavigation(data PageData) g.Node
- func EmptyLayout(data PageData, content g.Node) g.Node
- func EnvironmentSwitcher(data PageData) g.Node
- func Logo(basePath string, currentApp *app.App) g.Node
- func MobileNavToggle() g.Node
- func MobileNavigation(data PageData) g.Node
- func SettingsActions(saveText string, cancelURL string, extraActions ...g.Node) g.Node
- func SettingsFormField(label, description, fieldID string, field g.Node) g.Node
- func SettingsLayout(data SettingsLayoutData) g.Node
- func SettingsPageHeader(title, description string) g.Node
- func SettingsSection(title, description string, content g.Node) g.Node
- func ThemeToggle() g.Node
- func UserDropdown(data PageData) g.Node
- type ExtensionNavItemData
- type PageData
- type SettingsLayoutData
- type SettingsNavItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppSwitcher ¶
func BaseLayout ¶
BaseLayout renders the main HTML structure
func BaseSidebarLayout ¶ added in v0.0.3
BaseSidebarLayout renders a sidebar-based layout inspired by Preline CMS template
func BuildSettingsURL ¶
BuildSettingsURL builds a settings page URL
func DashboardHeader ¶
Header renders the page header with navigation
func DesktopNavigation ¶
func EmptyLayout ¶ added in v0.0.3
BaseLayout renders the main HTML structure
func EnvironmentSwitcher ¶
func MobileNavToggle ¶
func MobileNavigation ¶
func SettingsActions ¶
SettingsActions renders action buttons for settings forms
func SettingsFormField ¶
SettingsFormField renders a form field with label and description
func SettingsLayout ¶
func SettingsLayout(data SettingsLayoutData) g.Node
SettingsLayout renders the settings page with sidebar navigation
func SettingsPageHeader ¶
SettingsPageHeader renders a consistent header for settings pages
func SettingsSection ¶
SettingsSection renders a settings section card
func ThemeToggle ¶
func UserDropdown ¶
Types ¶
type ExtensionNavItemData ¶ added in v0.0.3
type ExtensionNavItemData struct {
}
ExtensionNavItemData holds raw data for extension navigation items
type PageData ¶
type PageData struct {
Title string
User *user.User
CSRFToken string
ActivePage string
BasePath string
Data interface{}
Error string
Success string
Year int
EnabledPlugins map[string]bool
IsMultiApp bool // Whether multitenancy is enabled (deprecated - use ShowAppSwitcher)
CurrentApp *app.App // Current app in context
UserApps []*app.App // Apps user has access to
ShowAppSwitcher bool // Whether to show app switcher in header
CurrentEnvironment *environment.Environment // Current environment in context
UserEnvironments []*environment.Environment // Environments for current app
ShowEnvSwitcher bool // Whether to show environment switcher in header
ExtensionWidgets []g.Node // Dashboard widgets from extensions
}
PageData represents common data for all pages
type SettingsLayoutData ¶
type SettingsLayoutData struct {
ActivePage string
BasePath string
CurrentApp *app.App
PageContent g.Node
}
SettingsLayoutData contains data for the settings layout
type SettingsNavItem ¶
type SettingsNavItem struct {
}
SettingsNavItem represents a navigation item in the settings sidebar