Documentation
¶
Overview ¶
Package ui owns the embedded demo-ui Svelte bundle (the txcl demo) and serves it over HTTP. The bundle is produced by `cd demo-ui && pnpm run build` (Vite writes into ./dist) and baked into the chassis binary via go:embed at compile time. Mirrors chassis/server/admin/ui.
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. "/demo"). 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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.