Documentation
¶
Overview ¶
Package dashboard provides the embedded admin dashboard UI for GoModel.
The UI is a Svelte single-page app built from web/dashboard into static/dist by `make frontend` (locally) or the CI `frontend` job. The build output is not committed; see docs/adr/0010-dashboard-built-in-ci.md. This handler serves the built index.html — with runtime globals (base path, version, demo mode) injected — and the hashed static assets under /admin/static/.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler serves the admin dashboard UI.
func NewWithBasePath ¶
NewWithBasePath creates a dashboard handler for an app mounted under basePath.
func NewWithDemoMode ¶ added in v0.1.55
NewWithDemoMode creates a dashboard handler and controls whether the demo warning is rendered by the SPA.