dashboard

package
v0.1.64 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 10 Imported by: 0

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 (see `make frontend`). 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

func NewWithBasePath(basePath string) (*Handler, error)

NewWithBasePath creates a dashboard handler for an app mounted under basePath.

func NewWithDemoMode added in v0.1.55

func NewWithDemoMode(basePath string, demoMode bool) (*Handler, error)

NewWithDemoMode creates a dashboard handler and controls whether the demo warning is rendered by the SPA.

func (*Handler) Index

func (h *Handler) Index(c *echo.Context) error

Index serves GET /admin/dashboard and every /admin/dashboard/* route — the SPA handles routing client-side.

func (*Handler) Static

func (h *Handler) Static(c *echo.Context) error

Static serves GET /admin/static/* — embedded SPA assets.

Jump to

Keyboard shortcuts

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