shell

package
v0.9.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Breadcrumbs(crumbs []Breadcrumb, basePath string) g.Node

Breadcrumbs renders a breadcrumb navigation trail.

func BuildForgeUISidebar

func BuildForgeUISidebar(groups []contributor.NavGroup, activePath, basePath string) g.Node

BuildForgeUISidebar builds a full forgeui sidebar component from nav groups.

func BuildSidebarMenuItem

func BuildSidebarMenuItem(item contributor.ResolvedNav, activePath, basePath string) g.Node

BuildSidebarMenuItem creates a forgeui sidebar menu button with HTMX navigation.

func BuildSidebarNavGroups

func BuildSidebarNavGroups(groups []contributor.NavGroup, activePath, basePath string) []g.Node

BuildSidebarNavGroups converts contributor NavGroups into forgeui sidebar groups.

func DashboardStoreScript

func DashboardStoreScript(basePath, nonce string) g.Node

DashboardStoreScript initializes the Alpine.js store for dashboard state management. It provides shared state for sidebar collapse, theme, notifications, and basePath.

func HTMXConfigScript

func HTMXConfigScript(nonce string) g.Node

HTMXConfigScript configures HTMX behavior for the dashboard.

func HTMXScript

func HTMXScript() g.Node

HTMXScript returns the HTMX CDN script tag.

func HelperScripts

func HelperScripts(nonce string) g.Node

HelperScripts provides utility JavaScript functions used throughout the dashboard.

func SanitizeAlpineKey

func SanitizeAlpineKey(name string) string

SanitizeAlpineKey converts a group name to a valid Alpine.js variable name.

func TopBar

func TopBar(title string, breadcrumbs []Breadcrumb, basePath string) g.Node

TopBar renders the top bar with breadcrumbs, search trigger, notifications, and theme toggle.

Types

type Breadcrumb struct {
	Label string
	Path  string // empty = current page (no link)
}

Breadcrumb represents a single breadcrumb navigation item.

Jump to

Keyboard shortcuts

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