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