Publish the current application, design, and Phase 1 deployment updates. Excludes ignored personal notes, local MCP config, and generated TypeScript build info.
546 lines
23 KiB
HTML
546 lines
23 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" data-theme="dark">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>DataStack — Console</title>
|
|
<style>
|
|
:root {
|
|
--bg: #0a0a0b;
|
|
--surface: #111113;
|
|
--surface-2: #17171a;
|
|
--surface-3: #1d1d21;
|
|
--border: #232326;
|
|
--border-strong: #2e2e33;
|
|
--text: #e8e8ea;
|
|
--text-muted: #85858c;
|
|
--text-faint: #5a5a62;
|
|
--accent: #a3e635;
|
|
--accent-soft: rgba(163,230,53,0.08);
|
|
--accent-text: #a3e635;
|
|
--font: "Segoe UI","Segoe UI Web",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
|
|
--mono: "Consolas","SF Mono","Courier New",monospace;
|
|
--radius: 0;
|
|
}
|
|
[data-theme="light"] {
|
|
--bg: #fafafa;
|
|
--surface: #ffffff;
|
|
--surface-2: #f4f4f5;
|
|
--surface-3: #ececed;
|
|
--border: #e2e2e5;
|
|
--border-strong: #d0d0d3;
|
|
--text: #111113;
|
|
--text-muted: #5a5a62;
|
|
--text-faint: #85858c;
|
|
--accent: #65a30d;
|
|
--accent-soft: rgba(101,163,13,0.08);
|
|
--accent-text: #4d7c0f;
|
|
}
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
html, body {
|
|
background: var(--bg); color: var(--text);
|
|
font-family: var(--font); font-size: 13px;
|
|
line-height: 1.5; font-weight: 400;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
a { color: inherit; text-decoration: none; }
|
|
button { font-family: inherit; cursor: pointer; }
|
|
.icon { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
|
|
.icon-sm { width: 14px; height: 14px; }
|
|
|
|
/* ---------- Layout ---------- */
|
|
.admin {
|
|
display: grid;
|
|
grid-template-columns: 208px 1fr;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* ---------- Sidebar ---------- */
|
|
.sidebar {
|
|
background: var(--surface);
|
|
border-right: 1px solid var(--border);
|
|
display: flex; flex-direction: column;
|
|
height: 100vh; position: sticky; top: 0;
|
|
z-index: 40;
|
|
}
|
|
.sidebar-head {
|
|
height: 56px; padding: 0 16px;
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
border-bottom: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
.brand { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
|
|
.brand-mark { width: 14px; height: 14px; background: var(--accent); display: grid; place-items: center; }
|
|
.brand-mark::after { content: ""; width: 5px; height: 5px; background: var(--bg); }
|
|
.brand-tag {
|
|
font-size: 9px; padding: 1px 5px; margin-left: 6px;
|
|
border: 1px solid var(--border-strong);
|
|
color: var(--text-faint); letter-spacing: 0.5px;
|
|
}
|
|
|
|
.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 0; }
|
|
.nav-section { padding: 0 12px; margin-bottom: 16px; }
|
|
.nav-label {
|
|
font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px;
|
|
color: var(--text-faint); padding: 4px 8px 6px;
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
}
|
|
.nav-label .count {
|
|
background: var(--surface-2); color: var(--text-muted);
|
|
padding: 0 5px; font-size: 9px; letter-spacing: 0;
|
|
}
|
|
.nav-item {
|
|
display: flex; align-items: center; gap: 10px;
|
|
padding: 7px 8px; height: 32px;
|
|
font-size: 12.5px; color: var(--text-muted);
|
|
border-left: 2px solid transparent;
|
|
transition: background 0.12s, color 0.12s;
|
|
user-select: none;
|
|
}
|
|
.nav-item:hover { background: var(--surface-2); color: var(--text); }
|
|
.nav-item.active {
|
|
background: var(--surface-2);
|
|
color: var(--text);
|
|
border-left-color: var(--accent);
|
|
}
|
|
.nav-item.active .icon { color: var(--accent); }
|
|
|
|
.sidebar-foot {
|
|
border-top: 1px solid var(--border);
|
|
padding: 10px 12px;
|
|
display: flex; align-items: center; gap: 8px;
|
|
}
|
|
.avatar {
|
|
width: 26px; height: 26px; background: var(--surface-3);
|
|
border: 1px solid var(--border-strong);
|
|
display: grid; place-items: center;
|
|
font-size: 11px; font-weight: 500; color: var(--text);
|
|
flex-shrink: 0;
|
|
}
|
|
.user-meta { flex: 1; min-width: 0; }
|
|
.user-name { font-size: 12px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.user-role { font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.5px; }
|
|
.icon-btn {
|
|
width: 28px; height: 28px;
|
|
background: transparent; border: 1px solid var(--border);
|
|
display: grid; place-items: center;
|
|
color: var(--text-muted); transition: background 0.12s;
|
|
}
|
|
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
|
|
|
|
/* ---------- Main ---------- */
|
|
.admin-main { display: flex; flex-direction: column; min-width: 0; }
|
|
|
|
.topbar {
|
|
height: 56px; padding: 0 24px;
|
|
background: var(--surface);
|
|
border-bottom: 1px solid var(--border);
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
gap: 16px; position: sticky; top: 0; z-index: 30;
|
|
}
|
|
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
|
|
.menu-btn { display: none; }
|
|
.breadcrumb {
|
|
display: flex; align-items: center; gap: 6px;
|
|
font-size: 12px; color: var(--text-faint);
|
|
}
|
|
.breadcrumb .sep { color: var(--border-strong); }
|
|
.breadcrumb .current { color: var(--text); font-weight: 400; }
|
|
|
|
.topbar-right { display: flex; align-items: center; gap: 8px; }
|
|
.live-chip {
|
|
display: inline-flex; align-items: center; gap: 6px;
|
|
padding: 4px 9px; border: 1px solid var(--border-strong);
|
|
font-size: 10px; letter-spacing: 0.5px; text-transform: uppercase;
|
|
color: var(--text-muted);
|
|
}
|
|
.live-dot { width: 5px; height: 5px; background: var(--accent); animation: pulse 2s infinite; }
|
|
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.35;} }
|
|
.theme-toggle { width: 28px; height: 28px; background: transparent; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-muted); }
|
|
.theme-toggle:hover { background: var(--surface-2); }
|
|
|
|
/* ---------- Content ---------- */
|
|
.content { padding: 24px; max-width: 1240px; width: 100%; }
|
|
|
|
.page-head {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
|
|
}
|
|
.page-title { font-size: 17px; font-weight: 500; letter-spacing: -0.2px; }
|
|
.page-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
|
|
.page-actions { display: flex; gap: 8px; }
|
|
|
|
.btn {
|
|
display: inline-flex; align-items: center; gap: 6px;
|
|
padding: 6px 12px; height: 30px;
|
|
font-size: 12px; font-weight: 400; font-family: inherit;
|
|
border: 1px solid var(--border-strong);
|
|
background: transparent; color: var(--text);
|
|
transition: background 0.12s, border-color 0.12s;
|
|
}
|
|
.btn:hover { background: var(--surface-2); }
|
|
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
|
|
.btn-primary:hover { background: #d0d0d3; border-color: #d0d0d3; }
|
|
.btn-icon { padding: 0; width: 30px; height: 30px; justify-content: center; }
|
|
|
|
/* ---------- Stats ---------- */
|
|
.stats {
|
|
display: grid; grid-template-columns: repeat(4, 1fr);
|
|
gap: 12px; margin-bottom: 16px;
|
|
}
|
|
.stat {
|
|
background: var(--surface); border: 1px solid var(--border);
|
|
padding: 14px 16px;
|
|
}
|
|
.stat-label {
|
|
font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px;
|
|
color: var(--text-faint); margin-bottom: 6px;
|
|
display: flex; align-items: center; gap: 5px;
|
|
}
|
|
.stat-value {
|
|
font-size: 22px; font-weight: 500; letter-spacing: -0.5px;
|
|
color: var(--text); line-height: 1.1;
|
|
}
|
|
.stat-value .unit { font-size: 11px; color: var(--text-muted); font-weight: 400; margin-left: 3px; }
|
|
.stat-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; color: var(--text-muted); }
|
|
.delta-pos { color: var(--accent-text); }
|
|
.delta-neg { color: #f87171; }
|
|
[data-theme="light"] .delta-neg { color: #dc2626; }
|
|
|
|
/* ---------- Two column ---------- */
|
|
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
|
|
|
|
.panel {
|
|
background: var(--surface); border: 1px solid var(--border);
|
|
display: flex; flex-direction: column;
|
|
}
|
|
.panel-head {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding: 12px 16px; border-bottom: 1px solid var(--border);
|
|
gap: 12px;
|
|
}
|
|
.panel-title {
|
|
font-size: 12px; font-weight: 500; color: var(--text);
|
|
display: flex; align-items: center; gap: 8px;
|
|
}
|
|
.panel-title .live-dot { width: 5px; height: 5px; }
|
|
.panel-meta { font-size: 11px; color: var(--text-faint); }
|
|
.panel-body { flex: 1; min-height: 0; }
|
|
.panel-link { font-size: 11px; color: var(--text-muted); border-bottom: 1px solid transparent; }
|
|
.panel-link:hover { color: var(--text); border-bottom-color: var(--text-muted); }
|
|
|
|
/* ---------- Stream ---------- */
|
|
.stream { font-family: var(--mono); font-size: 11.5px; }
|
|
.stream-row {
|
|
display: grid;
|
|
grid-template-columns: 58px 96px 1fr 44px;
|
|
gap: 10px; padding: 7px 16px;
|
|
border-bottom: 1px solid rgba(35,35,38,0.6);
|
|
align-items: center;
|
|
}
|
|
[data-theme="light"] .stream-row { border-bottom-color: var(--border); }
|
|
.stream-row:last-child { border-bottom: none; }
|
|
.stream-row .time { color: var(--text-faint); }
|
|
.stream-row .client { color: var(--accent-text); }
|
|
.stream-row .payload { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.stream-row .size { text-align: right; color: var(--text-faint); }
|
|
|
|
/* ---------- Client list (right col) ---------- */
|
|
.list-row {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding: 9px 16px; border-bottom: 1px solid rgba(35,35,38,0.6);
|
|
gap: 10px;
|
|
}
|
|
[data-theme="light"] .list-row { border-bottom-color: var(--border); }
|
|
.list-row:last-child { border-bottom: none; }
|
|
.list-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
|
|
.list-dot { width: 6px; height: 6px; background: var(--accent); flex-shrink: 0; }
|
|
.list-dot.offline { background: var(--text-faint); }
|
|
.list-name { font-size: 12px; color: var(--text); }
|
|
.list-meta { font-size: 11px; color: var(--text-faint); margin-top: 1px; }
|
|
.list-right { font-size: 11px; color: var(--text-muted); text-align: right; flex-shrink: 0; }
|
|
.list-right strong { color: var(--text); font-weight: 500; }
|
|
|
|
/* ---------- Storage ---------- */
|
|
.storage { padding: 14px 16px; }
|
|
.storage-bar {
|
|
height: 4px; background: var(--surface-3);
|
|
margin: 8px 0 6px; position: relative;
|
|
overflow: hidden;
|
|
}
|
|
.storage-fill { height: 100%; background: var(--accent); width: 34%; }
|
|
.storage-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); }
|
|
.storage-labels span:last-child { color: var(--text-faint); }
|
|
|
|
/* ---------- Mobile ---------- */
|
|
.overlay {
|
|
display: none; position: fixed; inset: 0;
|
|
background: rgba(0,0,0,0.55); z-index: 35;
|
|
}
|
|
.overlay.open { display: block; }
|
|
|
|
@media (max-width: 1024px) {
|
|
.admin { grid-template-columns: 1fr; }
|
|
.sidebar {
|
|
position: fixed; top: 0; left: 0;
|
|
width: 220px; transform: translateX(-100%);
|
|
transition: transform 0.2s ease-out;
|
|
}
|
|
.sidebar.open { transform: translateX(0); }
|
|
.menu-btn { display: grid; }
|
|
.stats { grid-template-columns: repeat(2, 1fr); }
|
|
.grid-2 { grid-template-columns: 1fr; }
|
|
}
|
|
@media (max-width: 640px) {
|
|
.content { padding: 16px; }
|
|
.topbar { padding: 0 16px; }
|
|
.stats { gap: 8px; }
|
|
.stat { padding: 12px; }
|
|
.stat-value { font-size: 18px; }
|
|
.live-chip { display: none; }
|
|
.breadcrumb .sep, .breadcrumb .root { display: none; }
|
|
.stream-row { grid-template-columns: 50px 80px 1fr; padding: 6px 12px; font-size: 10.5px; }
|
|
.stream-row .size { display: none; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<!-- SVG sprite -->
|
|
<svg width="0" height="0" style="position:absolute">
|
|
<symbol id="i-grid" viewBox="0 0 16 16"><rect x="2.5" y="2.5" width="4.5" height="4.5"/><rect x="9" y="2.5" width="4.5" height="4.5"/><rect x="2.5" y="9" width="4.5" height="4.5"/><rect x="9" y="9" width="4.5" height="4.5"/></symbol>
|
|
<symbol id="i-db" viewBox="0 0 16 16"><ellipse cx="8" cy="4" rx="5.5" ry="2"/><path d="M2.5 4v8c0 1.1 2.5 2 5.5 2s5.5-.9 5.5-2V4"/><path d="M2.5 8c0 1.1 2.5 2 5.5 2s5.5-.9 5.5-2"/></symbol>
|
|
<symbol id="i-users" viewBox="0 0 16 16"><circle cx="6" cy="6" r="2.5"/><path d="M1.5 13.5c0-2.2 2-3.5 4.5-3.5s4.5 1.3 4.5 3.5"/><path d="M11 3.5a2.5 2.5 0 0 1 0 5"/><path d="M12.5 10c1.4.4 2.5 1.4 2.5 3.5"/></symbol>
|
|
<symbol id="i-download" viewBox="0 0 16 16"><path d="M8 2v8"/><path d="M4.5 6.5 8 10l3.5-3.5"/><path d="M2.5 13.5h11"/></symbol>
|
|
<symbol id="i-settings" viewBox="0 0 16 16"><circle cx="8" cy="8" r="2.2"/><path d="M8 1.5v2M8 12.5v2M1.5 8h2M12.5 8h2M3.5 3.5l1.4 1.4M11.1 11.1l1.4 1.4M3.5 12.5l1.4-1.4M11.1 4.9l1.4-1.4"/></symbol>
|
|
<symbol id="i-list" viewBox="0 0 16 16"><path d="M3 4h10M3 8h10M3 12h7"/></symbol>
|
|
<symbol id="i-book" viewBox="0 0 16 16"><path d="M3 2.5h7.5c1 0 1.5.5 1.5 1.5v10H4.5c-1 0-1.5-.5-1.5-1.5V2.5Z"/><path d="M3 12.5c0-1 .5-1.5 1.5-1.5H12"/></symbol>
|
|
<symbol id="i-menu" viewBox="0 0 16 16"><path d="M2.5 4h11M2.5 8h11M2.5 12h11"/></symbol>
|
|
<symbol id="i-sun" viewBox="0 0 16 16"><circle cx="8" cy="8" r="3"/><path d="M8 1.5v1.5M8 13v1.5M1.5 8H3M13 8h1.5M3.5 3.5l1 1M11.5 11.5l1 1M3.5 12.5l1-1M11.5 4.5l1-1"/></symbol>
|
|
<symbol id="i-moon" viewBox="0 0 16 16"><path d="M13.5 10A6 6 0 1 1 6 2.5c-.3 0-.5 0-.7.1a5.5 5.5 0 0 0 8.2 7.4Z"/></symbol>
|
|
<symbol id="i-refresh" viewBox="0 0 16 16"><path d="M13.5 8a5.5 5.5 0 1 1-1.6-3.9"/><path d="M13.5 2.5v3.5H10"/></symbol>
|
|
<symbol id="i-plus" viewBox="0 0 16 16"><path d="M8 3v10M3 8h10"/></symbol>
|
|
<symbol id="i-bell" viewBox="0 0 16 16"><path d="M4 11V7a4 4 0 0 1 8 0v4l1 1.5H3L4 11Z"/><path d="M6.5 13.5a1.5 1.5 0 0 0 3 0"/></symbol>
|
|
<symbol id="i-arrow-r" viewBox="0 0 16 16"><path d="M6 4l4 4-4 4"/></symbol>
|
|
</svg>
|
|
|
|
<div class="admin">
|
|
|
|
<!-- SIDEBAR (FROZEN STANDARD) -->
|
|
<aside class="sidebar" id="sidebar">
|
|
<div class="sidebar-head">
|
|
<a href="/" class="brand">
|
|
<span class="brand-mark"></span>
|
|
DataStack
|
|
<span class="brand-tag">CONSOLE</span>
|
|
</a>
|
|
</div>
|
|
|
|
<nav class="sidebar-nav">
|
|
<div class="nav-section">
|
|
<div class="nav-label">Main</div>
|
|
<a href="/vcon/dashboard" class="nav-item active">
|
|
<svg class="icon"><use href="#i-grid"/></svg>
|
|
Dashboard
|
|
</a>
|
|
<a href="/vcon/data" class="nav-item">
|
|
<svg class="icon"><use href="#i-db"/></svg>
|
|
Data
|
|
</a>
|
|
<a href="/vcon/clients" class="nav-item">
|
|
<svg class="icon"><use href="#i-users"/></svg>
|
|
Clients
|
|
</a>
|
|
<a href="/vcon/export" class="nav-item">
|
|
<svg class="icon"><use href="#i-download"/></svg>
|
|
Export
|
|
</a>
|
|
</div>
|
|
|
|
<div class="nav-section">
|
|
<div class="nav-label">System <span class="count">3</span></div>
|
|
<a href="/vcon/logs" class="nav-item">
|
|
<svg class="icon"><use href="#i-list"/></svg>
|
|
Logs
|
|
</a>
|
|
<a href="/vcon/settings" class="nav-item">
|
|
<svg class="icon"><use href="#i-settings"/></svg>
|
|
Settings
|
|
</a>
|
|
<a href="/docs" class="nav-item">
|
|
<svg class="icon"><use href="#i-book"/></svg>
|
|
Docs
|
|
</a>
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="sidebar-foot">
|
|
<div class="avatar">A</div>
|
|
<div class="user-meta">
|
|
<div class="user-name">Admin</div>
|
|
<div class="user-role">Owner</div>
|
|
</div>
|
|
<button class="icon-btn" title="Settings">
|
|
<svg class="icon icon-sm"><use href="#i-settings"/></svg>
|
|
</button>
|
|
</div>
|
|
</aside>
|
|
|
|
<div class="overlay" id="overlay" onclick="toggleSidebar()"></div>
|
|
|
|
<!-- MAIN -->
|
|
<main class="admin-main">
|
|
|
|
<!-- TOPBAR -->
|
|
<header class="topbar">
|
|
<div class="topbar-left">
|
|
<button class="icon-btn menu-btn" onclick="toggleSidebar()">
|
|
<svg class="icon icon-sm"><use href="#i-menu"/></svg>
|
|
</button>
|
|
<div class="breadcrumb">
|
|
<span class="root">Console</span>
|
|
<span class="sep">/</span>
|
|
<span class="current">Dashboard</span>
|
|
</div>
|
|
</div>
|
|
<div class="topbar-right">
|
|
<span class="live-chip"><span class="live-dot"></span>Live · 1,284 ev/min</span>
|
|
<button class="theme-toggle" onclick="toggleTheme()" title="Toggle theme">
|
|
<svg class="icon icon-sm" id="theme-icon"><use href="#i-sun"/></svg>
|
|
</button>
|
|
<button class="icon-btn" title="Notifications">
|
|
<svg class="icon icon-sm"><use href="#i-bell"/></svg>
|
|
</button>
|
|
</div>
|
|
</header>
|
|
|
|
<!-- CONTENT -->
|
|
<div class="content">
|
|
|
|
<div class="page-head">
|
|
<div>
|
|
<h1 class="page-title">Dashboard</h1>
|
|
<div class="page-sub">Last 24 hours · UTC</div>
|
|
</div>
|
|
<div class="page-actions">
|
|
<button class="btn btn-icon" title="Refresh">
|
|
<svg class="icon icon-sm"><use href="#i-refresh"/></svg>
|
|
</button>
|
|
<button class="btn btn-primary">
|
|
<svg class="icon icon-sm"><use href="#i-plus"/></svg>
|
|
New client
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- STATS -->
|
|
<div class="stats">
|
|
<div class="stat">
|
|
<div class="stat-label">Events today</div>
|
|
<div class="stat-value">42,891</div>
|
|
<div class="stat-meta"><span class="delta-pos">+12.4%</span> vs yesterday</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="stat-label">Clients online</div>
|
|
<div class="stat-value">8<span class="unit">/ 12</span></div>
|
|
<div class="stat-meta">4 offline · 2 pending</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="stat-label">Storage used</div>
|
|
<div class="stat-value">18.2<span class="unit">MB</span></div>
|
|
<div class="stat-meta">3 CSV files · today</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="stat-label">Last export</div>
|
|
<div class="stat-value">2h<span class="unit">ago</span></div>
|
|
<div class="stat-meta">2026-10-23 · CSV · 4,120 rows</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- GRID -->
|
|
<div class="grid-2">
|
|
|
|
<!-- LIVE STREAM -->
|
|
<div class="panel">
|
|
<div class="panel-head">
|
|
<div class="panel-title"><span class="live-dot"></span>Live ingestion</div>
|
|
<div style="display:flex;align-items:center;gap:14px">
|
|
<span class="panel-meta">1,284 ev/min</span>
|
|
<a href="/vcon/data" class="panel-link">View all →</a>
|
|
</div>
|
|
</div>
|
|
<div class="panel-body stream">
|
|
<div class="stream-row"><span class="time">14:28:01</span><span class="client">py-client-01</span><span class="payload">{ sensor: "temp", value: 22.4 }</span><span class="size">42B</span></div>
|
|
<div class="stream-row"><span class="time">14:28:01</span><span class="client">py-client-02</span><span class="payload">{ user: "u_8291", action: "click" }</span><span class="size">38B</span></div>
|
|
<div class="stream-row"><span class="time">14:28:02</span><span class="client">py-client-01</span><span class="payload">{ sensor: "humidity", value: 61 }</span><span class="size">40B</span></div>
|
|
<div class="stream-row"><span class="time">14:28:02</span><span class="client">py-client-03</span><span class="payload">{ order_id: "A-2041", status: "shipped" }</span><span class="size">44B</span></div>
|
|
<div class="stream-row"><span class="time">14:28:03</span><span class="client">py-client-02</span><span class="payload">{ user: "u_1840", action: "view" }</span><span class="size">36B</span></div>
|
|
<div class="stream-row"><span class="time">14:28:03</span><span class="client">py-client-01</span><span class="payload">{ sensor: "temp", value: 22.6 }</span><span class="size">42B</span></div>
|
|
<div class="stream-row"><span class="time">14:28:04</span><span class="client">py-client-04</span><span class="payload">{ device: "d_01", battery: 87 }</span><span class="size">40B</span></div>
|
|
<div class="stream-row"><span class="time">14:28:04</span><span class="client">py-client-02</span><span class="payload">{ user: "u_9903", action: "purchase" }</span><span class="size">42B</span></div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- RIGHT COLUMN -->
|
|
<div style="display:flex;flex-direction:column;gap:12px">
|
|
|
|
<!-- Active clients -->
|
|
<div class="panel">
|
|
<div class="panel-head">
|
|
<div class="panel-title">Active clients</div>
|
|
<a href="/vcon/clients" class="panel-link">All →</a>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div class="list-row">
|
|
<div class="list-left"><span class="list-dot"></span><div><div class="list-name">py-client-01</div><div class="list-meta">sensors-app</div></div></div>
|
|
<div class="list-right"><strong>18.4k</strong></div>
|
|
</div>
|
|
<div class="list-row">
|
|
<div class="list-left"><span class="list-dot"></span><div><div class="list-name">py-client-02</div><div class="list-meta">web-analytics</div></div></div>
|
|
<div class="list-right"><strong>12.1k</strong></div>
|
|
</div>
|
|
<div class="list-row">
|
|
<div class="list-left"><span class="list-dot"></span><div><div class="list-name">py-client-03</div><div class="list-meta">orders-sync</div></div></div>
|
|
<div class="list-right"><strong>8.2k</strong></div>
|
|
</div>
|
|
<div class="list-row">
|
|
<div class="list-left"><span class="list-dot offline"></span><div><div class="list-name">py-client-05</div><div class="list-meta">staging-test</div></div></div>
|
|
<div class="list-right">offline</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Storage -->
|
|
<div class="panel">
|
|
<div class="panel-head">
|
|
<div class="panel-title">Storage</div>
|
|
<span class="panel-meta">34% of 50 GB</span>
|
|
</div>
|
|
<div class="storage">
|
|
<div class="storage-bar"><div class="storage-fill"></div></div>
|
|
<div class="storage-labels"><span>18.2 GB used</span><span>31.8 GB free</span></div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</main>
|
|
</div>
|
|
|
|
<script>
|
|
function toggleSidebar() {
|
|
document.getElementById('sidebar').classList.toggle('open');
|
|
document.getElementById('overlay').classList.toggle('open');
|
|
}
|
|
function toggleTheme() {
|
|
const html = document.documentElement;
|
|
const icon = document.getElementById('theme-icon');
|
|
const isDark = html.getAttribute('data-theme') === 'dark';
|
|
html.setAttribute('data-theme', isDark ? 'light' : 'dark');
|
|
icon.innerHTML = '<use href="' + (isDark ? '#i-moon' : '#i-sun') + '"/>';
|
|
}
|
|
</script>
|
|
</body>
|
|
</html> |