Skip to main content

Crate tokenburn_web

Crate tokenburn_web 

Source
Expand description

TokenBurn web — a server-rendered dashboard built with Topcoat.

One flat crate, one module per concern:

modulewhat
appServerOptions, router construction, serve
pagesthe document shell, the home page and the live shard
chartsclickable, animated SVG charts (stacked bars, donut)
apiJSON + static routes (/api/report, /api/health, /style.css)
componentsreusable view components (cards, tables, filters)
paramsquery-string / signal values → core Query
dataloading and shaping the dashboard data
stylethe stylesheet
themethe core’s colour themes as CSS custom properties

Routes use absolute paths and are registered through .discover(), so the file layout never influences URLs.

Live mode (asset bundle present): filters are signals and the data refreshes itself over a WebSocket. Static mode (no bundle): GET-form filters and a <meta refresh>.

Re-exports§

pub use app::ServerOptions;
pub use app::router;
pub use app::serve;

Modules§

api
JSON and static routes.
app
Server setup: options, router construction and the serve loop.
charts
Chart geometry for the web dashboard: stacked bars and a donut.
components
Server-rendered page components.
data
Loading and shaping the data shown on the dashboard.
pages
Pages: the document shell, the home page and the live dashboard shard.
params
Query-string handling: ?tool=pi&bucket=daily&window=month.
style
Stylesheet served at /style.css.
theme
Colour themes for the dashboard: the core’s palettes as CSS custom properties.