"""The console dashboard (src/static/console.html, docs/DASHBOARD_REDESIGN.md). Served at /static/console.html while it is built; it replaces dashboard.html once it covers every feature. The rules are the dashboard's: every fetched path is routed, every string has EN and TH, no emoji in the interface. """ import re from pathlib import Path STATIC = Path(__file__).parents[1] / "src" / "static" CONSOLE = STATIC / "console.html" ROUTER = Path(__file__).parents[1] / "rust" / "collector" / "src" / "web" / "mod.rs" def _html() -> str: return CONSOLE.read_text(encoding="utf-8") def _body(html: str) -> str: return html[html.index("") : html.index("