1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! TokenBurn web — a server-rendered dashboard built with
//! [Topcoat](https://github.com/tokio-rs/topcoat).
//!
//! One flat crate, one module per concern:
//!
//! | module | what |
//! |---|---|
//! | [`app`] | [`ServerOptions`], router construction, [`serve`] |
//! | [`pages`] | the document shell, the home page and the live shard |
//! | [`charts`] | clickable, animated SVG charts (stacked bars, donut) |
//! | [`api`] | JSON + static routes (`/api/report`, `/api/health`, `/style.css`) |
//! | [`components`] | reusable view components (cards, tables, filters) |
//! | [`params`] | query-string / signal values → core `Query` |
//! | [`data`] | loading and shaping the dashboard data |
//! | [`style`] | the stylesheet |
//! | [`theme`] | the 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>`.
// The live shard takes one plain argument per signal it starts with (Topcoat's shard
// API has no struct form), and the lint fires inside the generated function.
pub use ;