GNMON-001 M3.1: Blazor-Dashboard-Geruest im TUI-Stil (Catppuccin Mocha)
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 <vibe@mistral.ai>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<base href="/" />
|
||||
<ResourcePreloader />
|
||||
<link rel="stylesheet" href="@Assets["app.css"]" />
|
||||
<link rel="stylesheet" href="@Assets["Ghostnet.Dashboard.styles.css"]" />
|
||||
<ImportMap />
|
||||
<link rel="icon" type="image/png" href="favicon.png" />
|
||||
<HeadOutlet />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<Routes />
|
||||
<ReconnectModal />
|
||||
<script src="@Assets["_framework/blazor.web.js"]"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,29 @@
|
||||
@inherits LayoutComponentBase
|
||||
|
||||
<div class="shell">
|
||||
<aside class="sidebar">
|
||||
<NavMenu />
|
||||
</aside>
|
||||
|
||||
<main class="workspace">
|
||||
<header class="topbar">
|
||||
<span class="topbar-prompt">ghost@ghostnet:~$</span> gnmon --host ghostnet-ki
|
||||
</header>
|
||||
|
||||
<section class="content">
|
||||
@Body
|
||||
</section>
|
||||
|
||||
<footer class="statusline">
|
||||
<span class="status-ok">● ONLINE</span>
|
||||
Quelle: VictoriaMetrics · Loki · Alertmanager — M3.1a ASCII-Nav
|
||||
<span class="cursor">▮</span>
|
||||
</footer>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<div id="blazor-error-ui">
|
||||
Es ist ein unbekannter Fehler aufgetreten.
|
||||
<span class="reload">Neu laden</span>
|
||||
<span class="dismiss">Schließen</span>
|
||||
</div>
|
||||
@@ -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;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<div class="brand">
|
||||
<span class="brand-mark">▛▀▀ GNMON</span>
|
||||
<span class="brand-sub">ghostnet.ai monitoring</span>
|
||||
</div>
|
||||
|
||||
<nav class="tui-nav">
|
||||
<NavLink href="" Match="NavLinkMatch.All" class="tui-btn">
|
||||
<span class="tui-key">[1]</span> Ressourcen
|
||||
</NavLink>
|
||||
<NavLink href="gpus" class="tui-btn">
|
||||
<span class="tui-key">[2]</span> GPUs
|
||||
</NavLink>
|
||||
<NavLink href="logs" class="tui-btn">
|
||||
<span class="tui-key">[3]</span> Logs
|
||||
</NavLink>
|
||||
<NavLink href="alerts" class="tui-btn">
|
||||
<span class="tui-key">[4]</span> Alerts
|
||||
</NavLink>
|
||||
</nav>
|
||||
|
||||
<div class="nav-status">
|
||||
<span class="nav-hint">── status ──</span>
|
||||
<span>M3.1 GUI-Gerüst</span>
|
||||
</div>
|
||||
@@ -0,0 +1,117 @@
|
||||
/* TUI navigation: ASCII-art buttons, Catppuccin Mocha.
|
||||
NavLink renders the <a> 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 <nav> element;
|
||||
plain scoped selectors silently never matched (found 04.11.2026). */
|
||||
.brand {
|
||||
padding: 1rem 1rem 0.6rem 1rem;
|
||||
border-bottom: 1px dashed var(--surface1);
|
||||
margin-bottom: 0.7rem;
|
||||
}
|
||||
|
||||
.brand-mark {
|
||||
display: block;
|
||||
color: var(--mauve);
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.1em;
|
||||
text-shadow: 0 0 10px rgba(203, 166, 247, 0.4);
|
||||
}
|
||||
|
||||
.brand-sub {
|
||||
display: block;
|
||||
color: var(--overlay0);
|
||||
font-size: 0.7rem;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.tui-nav {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 0 0.25rem;
|
||||
}
|
||||
|
||||
/* ASCII-art button: crisp border with box-drawing corner glyphs. */
|
||||
.tui-nav ::deep .tui-btn {
|
||||
position: relative;
|
||||
display: block;
|
||||
color: var(--subtext0);
|
||||
text-decoration: none;
|
||||
background: var(--crust);
|
||||
border: 1px solid var(--surface1);
|
||||
margin: 0.4rem 0.55rem;
|
||||
padding: 0.4rem 0.7rem;
|
||||
}
|
||||
|
||||
.tui-nav ::deep .tui-btn::before,
|
||||
.tui-nav ::deep .tui-btn::after {
|
||||
position: absolute;
|
||||
color: var(--surface2);
|
||||
background: var(--crust);
|
||||
line-height: 1;
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
.tui-nav ::deep .tui-btn::before {
|
||||
content: "┌";
|
||||
top: -0.62em;
|
||||
left: -0.22em;
|
||||
}
|
||||
|
||||
.tui-nav ::deep .tui-btn::after {
|
||||
content: "┘";
|
||||
bottom: -0.6em;
|
||||
right: -0.22em;
|
||||
}
|
||||
|
||||
.tui-nav ::deep .tui-btn:hover {
|
||||
color: var(--text);
|
||||
border-color: var(--lavender);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.tui-nav ::deep .tui-btn:hover::before,
|
||||
.tui-nav ::deep .tui-btn:hover::after {
|
||||
color: var(--lavender);
|
||||
}
|
||||
|
||||
.tui-nav ::deep .tui-btn.active {
|
||||
color: var(--crust);
|
||||
background: var(--green);
|
||||
border-color: var(--green);
|
||||
box-shadow: 0 0 12px rgba(166, 227, 161, 0.25);
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.tui-nav ::deep .tui-btn.active::before,
|
||||
.tui-nav ::deep .tui-btn.active::after {
|
||||
color: var(--teal);
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.tui-nav ::deep .tui-key {
|
||||
color: var(--surface2);
|
||||
margin-right: 0.45rem;
|
||||
}
|
||||
|
||||
.tui-nav ::deep .tui-btn.active .tui-key {
|
||||
color: var(--mantle);
|
||||
}
|
||||
|
||||
.nav-status {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: 0.8rem 1rem;
|
||||
border-top: 1px dashed var(--surface1);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
color: var(--overlay0);
|
||||
font-size: 0.72rem;
|
||||
}
|
||||
|
||||
.nav-hint {
|
||||
letter-spacing: 0.1em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
<script type="module" src="@Assets["Components/Layout/ReconnectModal.razor.js"]"></script>
|
||||
|
||||
<dialog id="components-reconnect-modal" data-nosnippet>
|
||||
<div class="components-reconnect-container">
|
||||
<div class="components-rejoining-animation" aria-hidden="true">
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
<p class="components-reconnect-first-attempt-visible">
|
||||
Rejoining the server...
|
||||
</p>
|
||||
<p class="components-reconnect-repeated-attempt-visible">
|
||||
Rejoin failed... trying again in <span id="components-seconds-to-next-attempt"></span> seconds.
|
||||
</p>
|
||||
<p class="components-reconnect-failed-visible">
|
||||
Failed to rejoin.<br />Please retry or reload the page.
|
||||
</p>
|
||||
<button id="components-reconnect-button" class="components-reconnect-failed-visible">
|
||||
Retry
|
||||
</button>
|
||||
<p class="components-pause-visible">
|
||||
The session has been paused by the server.
|
||||
</p>
|
||||
<p class="components-resume-failed-visible">
|
||||
Failed to resume the session.<br />Please retry or reload the page.
|
||||
</p>
|
||||
<button id="components-resume-button" class="components-pause-visible components-resume-failed-visible">
|
||||
Resume
|
||||
</button>
|
||||
</div>
|
||||
</dialog>
|
||||
+157
@@ -0,0 +1,157 @@
|
||||
.components-reconnect-first-attempt-visible,
|
||||
.components-reconnect-repeated-attempt-visible,
|
||||
.components-reconnect-failed-visible,
|
||||
.components-pause-visible,
|
||||
.components-resume-failed-visible,
|
||||
.components-rejoining-animation {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
|
||||
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
|
||||
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
|
||||
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible,
|
||||
#components-reconnect-modal.components-reconnect-retrying,
|
||||
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
|
||||
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation,
|
||||
#components-reconnect-modal.components-reconnect-failed,
|
||||
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible {
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
#components-reconnect-modal {
|
||||
background-color: white;
|
||||
width: 20rem;
|
||||
margin: 20vh auto;
|
||||
padding: 2rem;
|
||||
border: 0;
|
||||
border-radius: 0.5rem;
|
||||
box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
|
||||
opacity: 0;
|
||||
transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
|
||||
animation: components-reconnect-modal-fadeOutOpacity 0.5s both;
|
||||
&[open]
|
||||
|
||||
{
|
||||
animation: components-reconnect-modal-slideUp 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity 0.5s ease-in-out 0.3s;
|
||||
animation-fill-mode: both;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#components-reconnect-modal::backdrop {
|
||||
background-color: rgba(0, 0, 0, 0.4);
|
||||
animation: components-reconnect-modal-fadeInOpacity 0.5s ease-in-out;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@keyframes components-reconnect-modal-slideUp {
|
||||
0% {
|
||||
transform: translateY(30px) scale(0.95);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes components-reconnect-modal-fadeInOpacity {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes components-reconnect-modal-fadeOutOpacity {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.components-reconnect-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
#components-reconnect-modal p {
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#components-reconnect-modal button {
|
||||
border: 0;
|
||||
background-color: #6b9ed2;
|
||||
color: white;
|
||||
padding: 4px 24px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
#components-reconnect-modal button:hover {
|
||||
background-color: #3b6ea2;
|
||||
}
|
||||
|
||||
#components-reconnect-modal button:active {
|
||||
background-color: #6b9ed2;
|
||||
}
|
||||
|
||||
.components-rejoining-animation {
|
||||
position: relative;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
}
|
||||
|
||||
.components-rejoining-animation div {
|
||||
position: absolute;
|
||||
border: 3px solid #0087ff;
|
||||
opacity: 1;
|
||||
border-radius: 50%;
|
||||
animation: components-rejoining-animation 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
|
||||
}
|
||||
|
||||
.components-rejoining-animation div:nth-child(2) {
|
||||
animation-delay: -0.5s;
|
||||
}
|
||||
|
||||
@keyframes components-rejoining-animation {
|
||||
0% {
|
||||
top: 40px;
|
||||
left: 40px;
|
||||
width: 0;
|
||||
height: 0;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
4.9% {
|
||||
top: 40px;
|
||||
left: 40px;
|
||||
width: 0;
|
||||
height: 0;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
5% {
|
||||
top: 40px;
|
||||
left: 40px;
|
||||
width: 0;
|
||||
height: 0;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
100% {
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
// Set up event handlers
|
||||
const reconnectModal = document.getElementById("components-reconnect-modal");
|
||||
reconnectModal.addEventListener("components-reconnect-state-changed", handleReconnectStateChanged);
|
||||
|
||||
const retryButton = document.getElementById("components-reconnect-button");
|
||||
retryButton.addEventListener("click", retry);
|
||||
|
||||
const resumeButton = document.getElementById("components-resume-button");
|
||||
resumeButton.addEventListener("click", resume);
|
||||
|
||||
function handleReconnectStateChanged(event) {
|
||||
if (event.detail.state === "show") {
|
||||
reconnectModal.showModal();
|
||||
} else if (event.detail.state === "hide") {
|
||||
reconnectModal.close();
|
||||
} else if (event.detail.state === "failed") {
|
||||
document.addEventListener("visibilitychange", retryWhenDocumentBecomesVisible);
|
||||
} else if (event.detail.state === "rejected") {
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
|
||||
async function retry() {
|
||||
document.removeEventListener("visibilitychange", retryWhenDocumentBecomesVisible);
|
||||
|
||||
try {
|
||||
// Reconnect will asynchronously return:
|
||||
// - true to mean success
|
||||
// - false to mean we reached the server, but it rejected the connection (e.g., unknown circuit ID)
|
||||
// - exception to mean we didn't reach the server (this can be sync or async)
|
||||
const successful = await Blazor.reconnect();
|
||||
if (!successful) {
|
||||
// We have been able to reach the server, but the circuit is no longer available.
|
||||
// We'll reload the page so the user can continue using the app as quickly as possible.
|
||||
const resumeSuccessful = await Blazor.resumeCircuit();
|
||||
if (!resumeSuccessful) {
|
||||
location.reload();
|
||||
} else {
|
||||
reconnectModal.close();
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
// We got an exception, server is currently unavailable
|
||||
document.addEventListener("visibilitychange", retryWhenDocumentBecomesVisible);
|
||||
}
|
||||
}
|
||||
|
||||
async function resume() {
|
||||
try {
|
||||
const successful = await Blazor.resumeCircuit();
|
||||
if (!successful) {
|
||||
location.reload();
|
||||
}
|
||||
} catch {
|
||||
reconnectModal.classList.replace("components-reconnect-paused", "components-reconnect-resume-failed");
|
||||
}
|
||||
}
|
||||
|
||||
async function retryWhenDocumentBecomesVisible() {
|
||||
if (document.visibilityState === "visible") {
|
||||
await retry();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
@page "/alerts"
|
||||
@rendermode InteractiveServer
|
||||
|
||||
<PageTitle>Alerts - Ghostnet.AI Monitoring</PageTitle>
|
||||
|
||||
<h1>Alerts</h1>
|
||||
<p class="hint">Aktive Alarme aus vmalert / Alertmanager — Anbindung folgt in M3.6.</p>
|
||||
|
||||
<div class="alert-row">
|
||||
<span>Keine aktiven Alerts (Platzhalter)</span>
|
||||
<span class="badge">--</span>
|
||||
</div>
|
||||
|
||||
<div class="note note-accent">
|
||||
Konfigurierte Regeln (M4): GpuJunctionTempCritical · GpuFanStalledUnderLoad ·
|
||||
GpuEdgeTempHigh · GpuVramNearFull · NodeExporterDown · NodeExporterAbsent
|
||||
</div>
|
||||
@@ -0,0 +1,36 @@
|
||||
@page "/Error"
|
||||
@using System.Diagnostics
|
||||
|
||||
<PageTitle>Error</PageTitle>
|
||||
|
||||
<h1 style="color: var(--red);">Error.</h1>
|
||||
<h2 style="color: var(--red);">An error occurred while processing your request.</h2>
|
||||
|
||||
@if (ShowRequestId)
|
||||
{
|
||||
<p>
|
||||
<strong>Request ID:</strong> <code>@RequestId</code>
|
||||
</p>
|
||||
}
|
||||
|
||||
<h3>Development Mode</h3>
|
||||
<p>
|
||||
Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.
|
||||
</p>
|
||||
<p>
|
||||
<strong>The Development environment shouldn't be enabled for deployed applications.</strong>
|
||||
It can result in displaying sensitive information from exceptions to end users.
|
||||
For local debugging, enable the <strong>Development</strong> environment by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>
|
||||
and restarting the app.
|
||||
</p>
|
||||
|
||||
@code{
|
||||
[CascadingParameter]
|
||||
private HttpContext? HttpContext { get; set; }
|
||||
|
||||
private string? RequestId { get; set; }
|
||||
private bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
|
||||
|
||||
protected override void OnInitialized() =>
|
||||
RequestId = Activity.Current?.Id ?? HttpContext?.TraceIdentifier;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
@page "/gpus"
|
||||
@rendermode InteractiveServer
|
||||
|
||||
<PageTitle>GPUs - Ghostnet.AI Monitoring</PageTitle>
|
||||
|
||||
<h1>GPUs</h1>
|
||||
<p class="hint">Detailansicht je Karte — Live-Werte folgen in M3.3.</p>
|
||||
|
||||
<div class="tile-grid">
|
||||
@for (var card = 0; card < 2; card++)
|
||||
{
|
||||
<div class="panel">
|
||||
<div class="panel-header">GPU @card</div>
|
||||
<div class="value-grid">
|
||||
<span class="tile-label">Auslastung</span><span class="val">-- %</span>
|
||||
<span class="tile-label">VRAM</span><span class="val">-- / -- GB</span>
|
||||
<span class="tile-label">Edge / Junction</span><span class="val">-- / -- °C</span>
|
||||
<span class="tile-label">Leistung</span><span class="val">-- W</span>
|
||||
</div>
|
||||
<div class="panel-footer-line">
|
||||
Lüfter: -- RPM (PWM -- %) · Verläufe folgen mit M3.4
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
@@ -0,0 +1,29 @@
|
||||
@page "/"
|
||||
@rendermode InteractiveServer
|
||||
|
||||
<PageTitle>Ressourcen - Ghostnet.AI Monitoring</PageTitle>
|
||||
|
||||
<h1>Ressourcen</h1>
|
||||
<p class="hint">Host-Übersicht — Live-Werte folgen in M3.2 (VictoriaMetrics-Anbindung).</p>
|
||||
|
||||
<div class="tile-grid">
|
||||
<div class="tile">
|
||||
<span class="tile-label">CPU</span>
|
||||
<span class="tile-value">-- %</span>
|
||||
<span class="tile-sub">Auslastung gesamt</span>
|
||||
</div>
|
||||
<div class="tile">
|
||||
<span class="tile-label">Arbeitsspeicher</span>
|
||||
<span class="tile-value">-- GB</span>
|
||||
<span class="tile-sub">-- von -- GB belegt</span>
|
||||
</div>
|
||||
<div class="tile">
|
||||
<span class="tile-label">Dateisystem (Root)</span>
|
||||
<span class="tile-value">-- %</span>
|
||||
<span class="tile-sub">-- von -- GB belegt</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="note">
|
||||
GPU-Kurzübersicht und Verläufe (1 h / 24 h / 7 d) folgen mit M3.4.
|
||||
</div>
|
||||
@@ -0,0 +1,30 @@
|
||||
@page "/logs"
|
||||
@rendermode InteractiveServer
|
||||
|
||||
<PageTitle>Logs - Ghostnet.AI Monitoring</PageTitle>
|
||||
|
||||
<h1>Logs</h1>
|
||||
<p class="hint">Browser über Loki — Abfrage folgt in M3.5.</p>
|
||||
|
||||
<div class="toolbar">
|
||||
<div class="toolbar-field">
|
||||
<span class="toolbar-label" id="log-unit-label">Unit / Quelle</span>
|
||||
<select aria-labelledby="log-unit-label" disabled>
|
||||
<option>Alle</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="toolbar-field">
|
||||
<span class="toolbar-label" id="log-search-label">Suche</span>
|
||||
<input type="text" aria-labelledby="log-search-label" placeholder="…" disabled />
|
||||
</div>
|
||||
<button disabled>Suchen</button>
|
||||
<button disabled>Live-Tail</button>
|
||||
</div>
|
||||
|
||||
<div class="panel">
|
||||
<div class="panel-header">Ergebnisse</div>
|
||||
<span class="tile-sub">
|
||||
Keine Logeinträge geladen (M3.5 verbindet diese Ansicht mit Loki
|
||||
<code>query_range</code>).
|
||||
</span>
|
||||
</div>
|
||||
@@ -0,0 +1,5 @@
|
||||
@page "/not-found"
|
||||
@layout MainLayout
|
||||
|
||||
<h3>Not Found</h3>
|
||||
<p>Sorry, the content you are looking for does not exist.</p>
|
||||
@@ -0,0 +1,6 @@
|
||||
<Router AppAssembly="typeof(Program).Assembly" NotFoundPage="typeof(Pages.NotFound)">
|
||||
<Found Context="routeData">
|
||||
<RouteView RouteData="routeData" DefaultLayout="typeof(Layout.MainLayout)" />
|
||||
<FocusOnNavigate RouteData="routeData" Selector="h1" />
|
||||
</Found>
|
||||
</Router>
|
||||
@@ -0,0 +1,11 @@
|
||||
@using System.Net.Http
|
||||
@using System.Net.Http.Json
|
||||
@using Microsoft.AspNetCore.Components.Forms
|
||||
@using Microsoft.AspNetCore.Components.Routing
|
||||
@using Microsoft.AspNetCore.Components.Web
|
||||
@using static Microsoft.AspNetCore.Components.Web.RenderMode
|
||||
@using Microsoft.AspNetCore.Components.Web.Virtualization
|
||||
@using Microsoft.JSInterop
|
||||
@using Ghostnet.Dashboard
|
||||
@using Ghostnet.Dashboard.Components
|
||||
@using Ghostnet.Dashboard.Components.Layout
|
||||
Reference in New Issue
Block a user