From f518ebe97cdf95f86b21d85df0a94dbf1ecfdcfe Mon Sep 17 00:00:00 2001 From: spektr Date: Wed, 4 Nov 2026 07:13:09 +0100 Subject: [PATCH] GNMON-001 M3.1: Blazor-Dashboard-Geruest im TUI-Stil (Catppuccin Mocha) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ghostnet.Dashboard neu (.NET 10, Interactive Server): vier Seiten (Ressourcen, GPUs, Logs, Alerts) mit Platzhaltern, ASCII-Button-Navigation mit invers-gruenem Aktivzustand, Monospace/Catppuccin-Mocha-Styling ohne Bootstrap. Fallendokument: CSS-Isolation greift nicht auf NavLink-Kind- komponenten — Nav-Styles laufen ueber ::deep, sonst stiller Regel-Verlust (Headless-Verifikation per Pixel-Analyse). dev-server laeuft auf :5056. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- .gitignore | 4 + .../Ghostnet.Dashboard/Components/App.razor | 22 ++ .../Components/Layout/MainLayout.razor | 29 ++ .../Components/Layout/MainLayout.razor.css | 83 ++++++ .../Components/Layout/NavMenu.razor | 24 ++ .../Components/Layout/NavMenu.razor.css | 117 ++++++++ .../Components/Layout/ReconnectModal.razor | 31 ++ .../Layout/ReconnectModal.razor.css | 157 ++++++++++ .../Components/Layout/ReconnectModal.razor.js | 63 ++++ .../Components/Pages/Alerts.razor | 17 ++ .../Components/Pages/Error.razor | 36 +++ .../Components/Pages/Gpus.razor | 25 ++ .../Components/Pages/Home.razor | 29 ++ .../Components/Pages/Logs.razor | 30 ++ .../Components/Pages/NotFound.razor | 5 + .../Components/Routes.razor | 6 + .../Components/_Imports.razor | 11 + .../Ghostnet.Dashboard.csproj | 13 + .../src/Ghostnet.Dashboard/Program.cs | 27 ++ .../Properties/launchSettings.json | 23 ++ .../appsettings.Development.json | 8 + .../src/Ghostnet.Dashboard/appsettings.json | 9 + .../src/Ghostnet.Dashboard/wwwroot/app.css | 272 ++++++++++++++++++ .../Ghostnet.Dashboard/wwwroot/favicon.png | Bin 0 -> 1148 bytes 24 files changed, 1041 insertions(+) create mode 100644 llm-server/monitoring/src/Ghostnet.Dashboard/Components/App.razor create mode 100644 llm-server/monitoring/src/Ghostnet.Dashboard/Components/Layout/MainLayout.razor create mode 100644 llm-server/monitoring/src/Ghostnet.Dashboard/Components/Layout/MainLayout.razor.css create mode 100644 llm-server/monitoring/src/Ghostnet.Dashboard/Components/Layout/NavMenu.razor create mode 100644 llm-server/monitoring/src/Ghostnet.Dashboard/Components/Layout/NavMenu.razor.css create mode 100644 llm-server/monitoring/src/Ghostnet.Dashboard/Components/Layout/ReconnectModal.razor create mode 100644 llm-server/monitoring/src/Ghostnet.Dashboard/Components/Layout/ReconnectModal.razor.css create mode 100644 llm-server/monitoring/src/Ghostnet.Dashboard/Components/Layout/ReconnectModal.razor.js create mode 100644 llm-server/monitoring/src/Ghostnet.Dashboard/Components/Pages/Alerts.razor create mode 100644 llm-server/monitoring/src/Ghostnet.Dashboard/Components/Pages/Error.razor create mode 100644 llm-server/monitoring/src/Ghostnet.Dashboard/Components/Pages/Gpus.razor create mode 100644 llm-server/monitoring/src/Ghostnet.Dashboard/Components/Pages/Home.razor create mode 100644 llm-server/monitoring/src/Ghostnet.Dashboard/Components/Pages/Logs.razor create mode 100644 llm-server/monitoring/src/Ghostnet.Dashboard/Components/Pages/NotFound.razor create mode 100644 llm-server/monitoring/src/Ghostnet.Dashboard/Components/Routes.razor create mode 100644 llm-server/monitoring/src/Ghostnet.Dashboard/Components/_Imports.razor create mode 100644 llm-server/monitoring/src/Ghostnet.Dashboard/Ghostnet.Dashboard.csproj create mode 100644 llm-server/monitoring/src/Ghostnet.Dashboard/Program.cs create mode 100644 llm-server/monitoring/src/Ghostnet.Dashboard/Properties/launchSettings.json create mode 100644 llm-server/monitoring/src/Ghostnet.Dashboard/appsettings.Development.json create mode 100644 llm-server/monitoring/src/Ghostnet.Dashboard/appsettings.json create mode 100644 llm-server/monitoring/src/Ghostnet.Dashboard/wwwroot/app.css create mode 100644 llm-server/monitoring/src/Ghostnet.Dashboard/wwwroot/favicon.png diff --git a/.gitignore b/.gitignore index f361c46..de7cda9 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,7 @@ .venv/ .ansible/ *.retry + +# .NET build artifacts (Ghostnet.Dashboard). +bin/ +obj/ diff --git a/llm-server/monitoring/src/Ghostnet.Dashboard/Components/App.razor b/llm-server/monitoring/src/Ghostnet.Dashboard/Components/App.razor new file mode 100644 index 0000000..f124506 --- /dev/null +++ b/llm-server/monitoring/src/Ghostnet.Dashboard/Components/App.razor @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/llm-server/monitoring/src/Ghostnet.Dashboard/Components/Layout/MainLayout.razor b/llm-server/monitoring/src/Ghostnet.Dashboard/Components/Layout/MainLayout.razor new file mode 100644 index 0000000..af6a5c2 --- /dev/null +++ b/llm-server/monitoring/src/Ghostnet.Dashboard/Components/Layout/MainLayout.razor @@ -0,0 +1,29 @@ +@inherits LayoutComponentBase + +
+ + +
+
+ ghost@ghostnet:~$ gnmon --host ghostnet-ki +
+ +
+ @Body +
+ +
+ ● ONLINE + Quelle: VictoriaMetrics · Loki · Alertmanager — M3.1a ASCII-Nav + ▮ +
+
+
+ +
+ Es ist ein unbekannter Fehler aufgetreten. + Neu laden + Schließen +
diff --git a/llm-server/monitoring/src/Ghostnet.Dashboard/Components/Layout/MainLayout.razor.css b/llm-server/monitoring/src/Ghostnet.Dashboard/Components/Layout/MainLayout.razor.css new file mode 100644 index 0000000..6f9432a --- /dev/null +++ b/llm-server/monitoring/src/Ghostnet.Dashboard/Components/Layout/MainLayout.razor.css @@ -0,0 +1,83 @@ +/* TUI shell (Catppuccin Mocha). */ +.shell { + display: flex; + flex-direction: column; + min-height: 100vh; +} + +.sidebar { + background: var(--crust); + border-right: 1px solid var(--surface0); +} + +.workspace { + flex: 1; + display: flex; + flex-direction: column; + min-width: 0; +} + +.topbar { + background: var(--mantle); + border-bottom: 1px solid var(--surface0); + padding: 0.55rem 1.2rem; + color: var(--subtext0); + font-size: 0.85rem; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.topbar-prompt { + color: var(--green); +} + +.content { + flex: 1; + padding: 1.2rem 1.4rem; +} + +.statusline { + background: var(--mantle); + border-top: 1px solid var(--surface0); + padding: 0.45rem 1.2rem; + color: var(--overlay0); + font-size: 0.78rem; +} + +.status-ok { + color: var(--green); + letter-spacing: 0.08em; +} + +.cursor { + color: var(--green); + animation: blink 1.1s steps(1) infinite; + margin-left: 0.4rem; +} + +@keyframes blink { + 50% { + opacity: 0; + } +} + +@media (min-width: 700px) { + .shell { + flex-direction: row; + } + + .sidebar { + width: 230px; + position: sticky; + top: 0; + height: 100vh; + overflow-y: auto; + } +} + +#blazor-error-ui .dismiss { + cursor: pointer; + position: absolute; + right: 0.75rem; +} diff --git a/llm-server/monitoring/src/Ghostnet.Dashboard/Components/Layout/NavMenu.razor b/llm-server/monitoring/src/Ghostnet.Dashboard/Components/Layout/NavMenu.razor new file mode 100644 index 0000000..dc67ae4 --- /dev/null +++ b/llm-server/monitoring/src/Ghostnet.Dashboard/Components/Layout/NavMenu.razor @@ -0,0 +1,24 @@ +
+ ▛▀▀ GNMON + ghostnet.ai monitoring +
+ + + + diff --git a/llm-server/monitoring/src/Ghostnet.Dashboard/Components/Layout/NavMenu.razor.css b/llm-server/monitoring/src/Ghostnet.Dashboard/Components/Layout/NavMenu.razor.css new file mode 100644 index 0000000..51d6e38 --- /dev/null +++ b/llm-server/monitoring/src/Ghostnet.Dashboard/Components/Layout/NavMenu.razor.css @@ -0,0 +1,117 @@ +/* TUI navigation: ASCII-art buttons, Catppuccin Mocha. + NavLink renders the as a child component, so its output carries no + CSS isolation scope attribute. All rules touching .tui-btn/.tui-key must + go through ::deep anchored on this component's own