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 ¶
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.
Click to show internal directories.
Click to hide internal directories.