v2: live console (SSE+fast-poll), scheduled tasks, tag-group commands, CPU sparklines, dead-node alerts

This commit is contained in:
hermes
2026-09-23 19:40:36 +00:00
parent e3e5865419
commit 33dd524196
21 changed files with 9291 additions and 12 deletions

39
public/styles_v2.css Normal file
View File

@@ -0,0 +1,39 @@
/* ═══ NexusOps v2 styles ═══ */
/* Live console drawer */
#consoleDrawer {
position: fixed; top: 0; right: -520px; width: 520px; height: 100vh;
background: #0b1120; border-left: 1px solid var(--border-color, #1e293b);
z-index: 1000; display: flex; flex-direction: column;
transition: right 0.25s ease; box-shadow: -8px 0 32px rgba(0,0,0,0.5);
}
#consoleDrawer.active { right: 0; }
.console-drawer-header {
display: flex; justify-content: space-between; align-items: center;
padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-color, #1e293b);
}
.console-drawer-header h2 { font-size: 1rem; margin: 0; color: #fff; }
.console-drawer-header p { font-size: 0.75rem; color: var(--text-muted, #64748b); margin: 0.15rem 0 0; }
.console-output {
flex: 1; overflow-y: auto; padding: 1rem;
font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; line-height: 1.5;
}
.console-line { white-space: pre-wrap; word-break: break-all; margin-bottom: 0.15rem; }
.console-line.cmd { color: #4ade80; font-weight: 600; }
.console-line.out { color: #d1d5db; }
.console-line.sys { color: #64748b; font-style: italic; }
.console-input-row {
display: flex; gap: 0.5rem; padding: 1rem; border-top: 1px solid var(--border-color, #1e293b);
}
.console-input-row .form-input { flex: 1; }
/* Schedules */
.schedule-item {
display: flex; justify-content: space-between; align-items: center;
padding: 0.65rem 0.75rem; border: 1px solid var(--border-color, #1e293b);
border-radius: 8px; margin-bottom: 0.5rem; background: rgba(15,23,42,0.5);
}
.schedule-item .sched-meta { display: block; font-size: 0.72rem; color: var(--text-muted, #64748b); margin-top: 0.15rem; }
/* Sparklines */
.sparkline { vertical-align: middle; opacity: 0.9; }