Files
DataStack/Design-Files/DataStack — Clients-Pages.html
T

626 lines
31 KiB
HTML
Raw Normal View History

2026-10-23 19:56:38 -07:00
<!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 — Clients</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-text:#a3e635;
--danger:#f87171;--warn:#fbbf24;
--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:#fff;--surface-2:#f4f4f5;--surface-3:#ececed;
--border:#e2e2e5;--border-strong:#d0d0d3;
--text:#111113;--text-muted:#5a5a62;--text-faint:#85858c;
--accent:#65a30d;--accent-text:#4d7c0f;
--danger:#dc2626;--warn:#d97706;
}
*{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,input,select{font-family:inherit;font-size:inherit;color:inherit}
button{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{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:.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:.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 .12s,color .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:.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 .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)}
.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:.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:.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:16px;flex-wrap:wrap}
.page-title{font-size:17px;font-weight:500;letter-spacing:-.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;border:1px solid var(--border-strong);
background:transparent;color:var(--text);transition:background .12s,border-color .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}
.btn-sm{padding:4px 9px;height:26px;font-size:11px}
.btn-danger{color:var(--danger);border-color:var(--border)}
.btn-danger:hover{background:rgba(248,113,113,.08);border-color:var(--danger)}
/* Stats strip */
.stats-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;
background:var(--border);border:1px solid var(--border);margin-bottom:16px}
.stat-cell{background:var(--surface);padding:12px 16px}
.stat-label{font-size:10px;text-transform:uppercase;letter-spacing:.6px;
color:var(--text-faint);margin-bottom:4px}
.stat-value{font-size:18px;font-weight:500;letter-spacing:-.3px;color:var(--text);
line-height:1.1;display:flex;align-items:center;gap:6px}
.stat-value .badge-dot{width:6px;height:6px;background:var(--accent)}
.stat-value .badge-dot.off{background:var(--text-faint)}
.stat-value .badge-dot.pending{background:var(--warn)}
.stat-value .unit{font-size:11px;color:var(--text-muted);font-weight:400}
/* Filter bar */
.filter-bar{display:flex;align-items:center;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.search-box{flex:1;max-width:340px;height:30px;border:1px solid var(--border);
background:var(--surface);display:flex;align-items:center;padding:0 10px;gap:6px}
.search-box .icon{color:var(--text-faint)}
.search-box input{flex:1;background:transparent;border:none;outline:none;
font-size:12px;color:var(--text)}
.search-box input::placeholder{color:var(--text-faint)}
.pill-group{display:flex;gap:4px;margin-left:auto}
.pill{height:26px;padding:0 10px;border:1px solid var(--border);background:transparent;
font-size:11.5px;color:var(--text-muted);display:inline-flex;align-items:center;gap:5px}
.pill:hover{background:var(--surface-2);color:var(--text)}
.pill.active{background:var(--surface-2);color:var(--text);border-color:var(--border-strong)}
.pill .count{font-size:10px;color:var(--text-faint)}
/* Table */
.panel{background:var(--surface);border:1px solid var(--border);display:flex;flex-direction:column}
.table{width:100%;border-collapse:collapse;font-size:12px}
.table thead th{text-align:left;padding:8px 14px;font-size:10px;
text-transform:uppercase;letter-spacing:.6px;color:var(--text-faint);
font-weight:400;background:var(--surface-2);border-bottom:1px solid var(--border);
white-space:nowrap}
.table thead th.right{text-align:right}
.table tbody td{padding:9px 14px;border-bottom:1px solid rgba(35,35,38,.6);
color:var(--text-muted);vertical-align:middle}
[data-theme="light"] .table tbody td{border-bottom-color:var(--border)}
.table tbody tr:last-child td{border-bottom:none}
.table tbody tr:hover td{background:var(--surface-2)}
.table td.mono{font-family:var(--mono);font-size:11.5px}
.table td.right{text-align:right}
/* Client cell */
.client-cell{display:flex;align-items:center;gap:10px;min-width:0}
.client-dot{width:6px;height:6px;background:var(--accent);flex-shrink:0}
.client-dot.offline{background:var(--text-faint)}
.client-dot.pending{background:var(--warn)}
.client-name{font-size:12.5px;color:var(--text);font-weight:400;line-height:1.2}
.client-type{font-size:10.5px;color:var(--text-faint);margin-top:2px}
/* API key */
.api-key-cell{display:flex;align-items:center;gap:6px}
.api-key-cell .key{font-family:var(--mono);font-size:11.5px;color:var(--text-muted)}
.api-key-cell .copy{width:20px;height:20px;background:transparent;border:none;
display:grid;place-items:center;color:var(--text-faint);transition:color .12s}
.api-key-cell .copy:hover{color:var(--text)}
/* Row actions */
.row-actions{display:inline-flex;gap:2px}
.row-actions .act{width:26px;height:26px;background:transparent;border:1px solid transparent;
display:grid;place-items:center;color:var(--text-muted);transition:.12s}
.row-actions .act:hover{background:var(--surface-3);color:var(--text);border-color:var(--border)}
.row-actions .act.danger:hover{color:var(--danger);border-color:var(--danger)}
/* Last seen */
.last-seen{font-family:var(--mono);font-size:11.5px}
.last-seen .rel{color:var(--text-faint);font-size:10.5px;margin-left:4px;font-family:var(--font)}
/* Empty state hint */
.hint{font-size:11px;color:var(--text-faint);margin-top:8px}
/* Modal */
.modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.6);
z-index:100;place-items:center;padding:16px}
.modal.open{display:grid}
.modal-panel{background:var(--surface);border:1px solid var(--border-strong);
width:100%;max-width:440px;display:flex;flex-direction:column}
.modal-head{display:flex;align-items:center;justify-content:space-between;
padding:12px 16px;border-bottom:1px solid var(--border)}
.modal-title{font-size:13px;font-weight:500}
.modal-body{padding:16px;display:flex;flex-direction:column;gap:14px}
.form-field{display:flex;flex-direction:column;gap:4px}
.form-field label{font-size:10px;text-transform:uppercase;letter-spacing:.6px;
color:var(--text-faint);display:flex;align-items:center;gap:6px}
.form-field label .optional{text-transform:none;letter-spacing:0;color:var(--text-faint);
font-size:10px;font-weight:400}
.form-field input,.form-field select{width:100%;height:32px;padding:0 10px;
background:var(--bg);border:1px solid var(--border);outline:none;font-size:12.5px;
color:var(--text);transition:border-color .12s}
.form-field input::placeholder{color:var(--text-faint)}
.form-field input:focus,.form-field select:focus{border-color:var(--border-strong)}
.modal-foot{display:flex;justify-content:flex-end;gap:8px;
padding:12px 16px;border-top:1px solid var(--border)}
.modal-foot .spacer{flex:1}
/* Mobile */
.overlay{display:none;position:fixed;inset:0;background:rgba(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 .2s ease-out}
.sidebar.open{transform:translateX(0)}
.menu-btn{display:grid}
.stats-strip{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
.content{padding:16px}
.topbar{padding:0 16px}
.live-chip{display:none}
.breadcrumb .sep,.breadcrumb .root{display:none}
.table td.api-key-cell,.table thead th:nth-child(2){display:none}
.table td.storage-cell,.table thead th.storage-cell{display:none}
.pill-group{margin-left:0;width:100%;overflow-x:auto}
.stats-strip{grid-template-columns:1fr 1fr}
.stat-value{font-size:16px}
}
</style>
</head>
<body>
<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-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-plus" viewBox="0 0 16 16"><path d="M8 3v10M3 8h10"/></symbol>
<symbol id="i-search" viewBox="0 0 16 16"><circle cx="7" cy="7" r="4.5"/><path d="M10.5 10.5 14 14"/></symbol>
<symbol id="i-copy" viewBox="0 0 16 16"><rect x="5" y="5" width="8" height="9"/><path d="M3 11V3h8"/></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-trash" viewBox="0 0 16 16"><path d="M3 4h10"/><path d="M5 4V2.5h6V4"/><path d="M4 4l.7 9.5h6.6L12 4"/><path d="M6.5 7v4M9.5 7v4"/></symbol>
<symbol id="i-activity" viewBox="0 0 16 16"><path d="M2 8h3l2-5 2 10 2-5h3"/></symbol>
<symbol id="i-x" viewBox="0 0 16 16"><path d="M4 4l8 8M12 4l-8 8"/></symbol>
</svg>
<div class="admin">
<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"><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 active"><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 class="admin-main">
<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">Clients</span>
</div>
</div>
<div class="topbar-right">
<span class="live-chip"><span class="live-dot"></span>Live · 8 online</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>
<div class="content">
<div class="page-head">
<div>
<h1 class="page-title">Clients</h1>
<div class="page-sub">Registered SDK clients and their API access</div>
</div>
<div class="page-actions">
<button class="btn btn-primary" onclick="openModal()">
<svg class="icon icon-sm"><use href="#i-plus"/></svg>
New client
</button>
</div>
</div>
<!-- Stats strip -->
<div class="stats-strip">
<div class="stat-cell">
<div class="stat-label">Total clients</div>
<div class="stat-value">12</div>
</div>
<div class="stat-cell">
<div class="stat-label">Online now</div>
<div class="stat-value"><span class="badge-dot"></span>8</div>
</div>
<div class="stat-cell">
<div class="stat-label">Offline</div>
<div class="stat-value"><span class="badge-dot off"></span>3</div>
</div>
<div class="stat-cell">
<div class="stat-label">Pending setup</div>
<div class="stat-value"><span class="badge-dot pending"></span>1</div>
</div>
</div>
<!-- Filter bar -->
<div class="filter-bar">
<div class="search-box">
<svg class="icon icon-sm"><use href="#i-search"/></svg>
<input type="text" placeholder="Search by name, API key or type…" />
</div>
<div class="pill-group">
<button class="pill active">All <span class="count">12</span></button>
<button class="pill">Online <span class="count">8</span></button>
<button class="pill">Offline <span class="count">3</span></button>
<button class="pill">Pending <span class="count">1</span></button>
</div>
</div>
<!-- Table -->
<div class="panel">
<table class="table">
<thead>
<tr>
<th>Client</th>
<th>API key</th>
<th class="right">Events today</th>
<th class="right storage-cell">Storage</th>
<th>Last seen</th>
<th class="right"></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div class="client-cell">
<span class="client-dot"></span>
<div>
<div class="client-name">py-client-01</div>
<div class="client-type">sensors-app · Python</div>
</div>
</div>
</td>
<td class="api-key-cell">
<span class="key">sk_live_••••8f3a</span>
<button class="copy" title="Copy key"><svg class="icon icon-sm"><use href="#i-copy"/></svg></button>
</td>
<td class="right mono">18,420</td>
<td class="right mono storage-cell">4.2 MB</td>
<td class="mono">14:28:01 <span class="rel">2s ago</span></td>
<td class="right">
<div class="row-actions">
<button class="act" title="View events"><svg class="icon icon-sm"><use href="#i-activity"/></svg></button>
<button class="act" title="Rotate key"><svg class="icon icon-sm"><use href="#i-refresh"/></svg></button>
<button class="act danger" title="Revoke"><svg class="icon icon-sm"><use href="#i-trash"/></svg></button>
</div>
</td>
</tr>
<tr>
<td>
<div class="client-cell">
<span class="client-dot"></span>
<div>
<div class="client-name">py-client-02</div>
<div class="client-type">web-analytics · Python</div>
</div>
</div>
</td>
<td class="api-key-cell">
<span class="key">sk_live_••••3b71</span>
<button class="copy"><svg class="icon icon-sm"><use href="#i-copy"/></svg></button>
</td>
<td class="right mono">12,182</td>
<td class="right mono storage-cell">2.8 MB</td>
<td class="mono">14:27:58 <span class="rel">4s ago</span></td>
<td class="right">
<div class="row-actions">
<button class="act"><svg class="icon icon-sm"><use href="#i-activity"/></svg></button>
<button class="act"><svg class="icon icon-sm"><use href="#i-refresh"/></svg></button>
<button class="act danger"><svg class="icon icon-sm"><use href="#i-trash"/></svg></button>
</div>
</td>
</tr>
<tr>
<td>
<div class="client-cell">
<span class="client-dot"></span>
<div>
<div class="client-name">py-client-03</div>
<div class="client-type">orders-sync · Python</div>
</div>
</div>
</td>
<td class="api-key-cell">
<span class="key">sk_live_••••e0c9</span>
<button class="copy"><svg class="icon icon-sm"><use href="#i-copy"/></svg></button>
</td>
<td class="right mono">8,204</td>
<td class="right mono storage-cell">1.9 MB</td>
<td class="mono">14:28:00 <span class="rel">1s ago</span></td>
<td class="right">
<div class="row-actions">
<button class="act"><svg class="icon icon-sm"><use href="#i-activity"/></svg></button>
<button class="act"><svg class="icon icon-sm"><use href="#i-refresh"/></svg></button>
<button class="act danger"><svg class="icon icon-sm"><use href="#i-trash"/></svg></button>
</div>
</td>
</tr>
<tr>
<td>
<div class="client-cell">
<span class="client-dot"></span>
<div>
<div class="client-name">py-client-04</div>
<div class="client-type">devices-iote · Python</div>
</div>
</div>
</td>
<td class="api-key-cell">
<span class="key">sk_live_••••7d42</span>
<button class="copy"><svg class="icon icon-sm"><use href="#i-copy"/></svg></button>
</td>
<td class="right mono">2,144</td>
<td class="right mono storage-cell">0.5 MB</td>
<td class="mono">14:27:52 <span class="rel">8s ago</span></td>
<td class="right">
<div class="row-actions">
<button class="act"><svg class="icon icon-sm"><use href="#i-activity"/></svg></button>
<button class="act"><svg class="icon icon-sm"><use href="#i-refresh"/></svg></button>
<button class="act danger"><svg class="icon icon-sm"><use href="#i-trash"/></svg></button>
</div>
</td>
</tr>
<tr>
<td>
<div class="client-cell">
<span class="client-dot"></span>
<div>
<div class="client-name">py-client-06</div>
<div class="client-type">mobile-backend · Python</div>
</div>
</div>
</td>
<td class="api-key-cell">
<span class="key">sk_live_••••1a09</span>
<button class="copy"><svg class="icon icon-sm"><use href="#i-copy"/></svg></button>
</td>
<td class="right mono">1,204</td>
<td class="right mono storage-cell">0.3 MB</td>
<td class="mono">14:27:48 <span class="rel">12s ago</span></td>
<td class="right">
<div class="row-actions">
<button class="act"><svg class="icon icon-sm"><use href="#i-activity"/></svg></button>
<button class="act"><svg class="icon icon-sm"><use href="#i-refresh"/></svg></button>
<button class="act danger"><svg class="icon icon-sm"><use href="#i-trash"/></svg></button>
</div>
</td>
</tr>
<tr>
<td>
<div class="client-cell">
<span class="client-dot offline"></span>
<div>
<div class="client-name">py-client-05</div>
<div class="client-type">staging-test · Python</div>
</div>
</div>
</td>
<td class="api-key-cell">
<span class="key">sk_test_••••f5b2</span>
<button class="copy"><svg class="icon icon-sm"><use href="#i-copy"/></svg></button>
</td>
<td class="right mono">340</td>
<td class="right mono storage-cell">0.1 MB</td>
<td class="mono">12:24:11 <span class="rel">2h ago</span></td>
<td class="right">
<div class="row-actions">
<button class="act"><svg class="icon icon-sm"><use href="#i-activity"/></svg></button>
<button class="act"><svg class="icon icon-sm"><use href="#i-refresh"/></svg></button>
<button class="act danger"><svg class="icon icon-sm"><use href="#i-trash"/></svg></button>
</div>
</td>
</tr>
<tr>
<td>
<div class="client-cell">
<span class="client-dot offline"></span>
<div>
<div class="client-name">py-client-07</div>
<div class="client-type">cron-jobs · Python</div>
</div>
</div>
</td>
<td class="api-key-cell">
<span class="key">sk_test_••••9c14</span>
<button class="copy"><svg class="icon icon-sm"><use href="#i-copy"/></svg></button>
</td>
<td class="right mono">82</td>
<td class="right mono storage-cell">12 KB</td>
<td class="mono">08:12:04 <span class="rel">6h ago</span></td>
<td class="right">
<div class="row-actions">
<button class="act"><svg class="icon icon-sm"><use href="#i-activity"/></svg></button>
<button class="act"><svg class="icon icon-sm"><use href="#i-refresh"/></svg></button>
<button class="act danger"><svg class="icon icon-sm"><use href="#i-trash"/></svg></button>
</div>
</td>
</tr>
<tr>
<td>
<div class="client-cell">
<span class="client-dot pending"></span>
<div>
<div class="client-name">py-client-08</div>
<div class="client-type">new-proto · Python</div>
</div>
</div>
</td>
<td class="api-key-cell">
<span class="key">sk_live_••••4e88</span>
<button class="copy"><svg class="icon icon-sm"><use href="#i-copy"/></svg></button>
</td>
<td class="right mono">0</td>
<td class="right mono storage-cell">—</td>
<td class="mono">— <span class="rel">never</span></td>
<td class="right">
<div class="row-actions">
<button class="act"><svg class="icon icon-sm"><use href="#i-activity"/></svg></button>
<button class="act"><svg class="icon icon-sm"><use href="#i-refresh"/></svg></button>
<button class="act danger"><svg class="icon icon-sm"><use href="#i-trash"/></svg></button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="hint">Rotating a key invalidates the current one instantly · Revoking disconnects all active sessions</div>
</div>
</main>
</div>
<!-- Modal -->
<div class="modal" id="modal" onclick="if(event.target===this)closeModal()">
<div class="modal-panel">
<div class="modal-head">
<span class="modal-title">Create client</span>
<button class="icon-btn" onclick="closeModal()"><svg class="icon icon-sm"><use href="#i-x"/></svg></button>
</div>
<div class="modal-body">
<div class="form-field">
<label>Client name</label>
<input type="text" placeholder="e.g. sensors-app" />
</div>
<div class="form-field">
<label>SDK type</label>
<select>
<option>Python</option>
<option>Node.js</option>
<option>PHP</option>
<option>Android</option>
</select>
</div>
<div class="form-field">
<label>Description <span class="optional">optional</span></label>
<input type="text" placeholder="Short description" />
</div>
</div>
<div class="modal-foot">
<button class="btn" onclick="closeModal()">Cancel</button>
<button class="btn btn-primary">Create client</button>
</div>
</div>
</div>
<script>
function toggleSidebar(){
document.getElementById('sidebar').classList.toggle('open');
document.getElementById('overlay').classList.toggle('open');
}
function toggleTheme(){
const html=document.documentElement, 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')+'"/>';
}
function openModal(){ document.getElementById('modal').classList.add('open'); }
function closeModal(){ document.getElementById('modal').classList.remove('open'); }
</script>
</body>
</html>