web

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package web embeds the Intropy dashboard SPA so the CLI can serve it without any runtime dependency on Node or a Vite dev server.

Two trees are embedded and one is picked at serve time: placeholder/dist, committed, and dist, the `vite build` output (see `make web`), which is gitignored and present only in a workspace where the SPA has been built. go:embed patterns must match at compile time, so an unbuilt workspace keeps a marker file in dist (restored by `make web-clean`). A built dist drops the marker, and its absence is what makes the real SPA win — the state released binaries ship.

Index

Constants

This section is empty.

Variables

View Source
var Assets = pick()

Assets is the embedded SPA tree, holding index.html at its root with any hashed JS/CSS bundles under assets/. It is the real `vite build` output when the binary was compiled after `make web`, and the committed placeholder otherwise.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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