ui

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package ui owns the embedded admin-ui Svelte bundle and serves it over HTTP. The bundle is produced by `cd admin-ui && npm run build` (Vite writes into ./dist) and baked into the chassis binary via go:embed at compile time.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(mountPath string) http.Handler

Handler returns an http.Handler that serves the embedded Svelte bundle under mountPath (e.g. "/admin"). Unknown paths under the mount fall back to index.html so client-side routing survives a hard refresh. If the bundle hasn't been built yet (dist/ has only .gitkeep), all paths fall back to a small placeholder page instructing the operator to run `npm run build`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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