feat: TUI als Browser-App via textual serve

TUI von direkten Service-Importen auf httpx API-Calls umgestellt.
Neue tui/api_client.py als schlanker async HTTP-Client. Background-
Worker pollt API alle 5s für Echtzeit-Updates. Neuer tui_standalone.py
Entry-Point für 'textual serve --port 8001 tui_standalone.py'.
This commit is contained in:
2026-03-04 20:45:55 +01:00
parent 7f3b4768c3
commit 0e2a8a6bc0
7 changed files with 254 additions and 94 deletions

View File

@@ -22,3 +22,7 @@ SMS_ENABLED=false
# ── Datenbank ──────────────────────────────────────────────
DATABASE_URL=sqlite:///./mcm.db
# ── TUI Web-Modus (textual serve) ──────────────────────────
# Starten: .venv/bin/python -m textual serve --host 0.0.0.0 --port $WEB_PORT tui_standalone.py
WEB_PORT=8001