ui

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Layout

func Layout(title string) templ.Component

Layout renders the base HTML structure for all pages

func LayoutWithNav

func LayoutWithNav(title string, activePage string) templ.Component

LayoutWithNav renders layout with sidebar navigation (for authenticated pages)

func Navbar(activePage string) templ.Component

Navbar renders the sidebar navigation

Types

type NavItem struct {
	Name   string
	Path   string
	Icon   string
	Active bool
}

NavItem represents a navigation menu item

type SummaryData

type SummaryData struct {
	ActiveBans     int
	EventsLastHour int
	ModulesUp      int
	WhitelistCount int
}

SummaryData holds dashboard summary statistics

type UserInfo

type UserInfo struct {
	Username string
	Role     string
}

UserInfo holds current user session info

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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