Initial sanitized SmartSpeaker snapshot
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,250 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Antigravity IoT Enterprise Control Center</title>
|
||||
<!-- Google Fonts -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
|
||||
<!-- FontAwesome Icons -->
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
||||
<link rel="stylesheet" href="style.css?v=13">
|
||||
</head>
|
||||
<body>
|
||||
<div class="enterprise-layout">
|
||||
<!-- Sidebar Navigation -->
|
||||
<aside class="sidebar">
|
||||
<div class="sidebar-brand">
|
||||
<i class="fa-solid fa-shield-halved brand-icon"></i>
|
||||
<div class="brand-text">
|
||||
<h2>AGY ENTERPRISE</h2>
|
||||
<span>IoT Control Center</span>
|
||||
</div>
|
||||
</div>
|
||||
<nav class="sidebar-menu">
|
||||
<a href="#" class="menu-item active" data-tab="overview">
|
||||
<i class="fa-solid fa-chart-pie"></i> Overview
|
||||
</a>
|
||||
<a href="#" class="menu-item" data-tab="devices">
|
||||
<i class="fa-solid fa-microchip"></i> Device Fleet
|
||||
</a>
|
||||
<a href="#" class="menu-item" data-tab="terminal">
|
||||
<i class="fa-solid fa-terminal"></i> Live Terminal
|
||||
</a>
|
||||
<a href="#" class="menu-item" data-tab="builds">
|
||||
<i class="fa-solid fa-boxes-packing"></i> Firmware Builds
|
||||
</a>
|
||||
</nav>
|
||||
<div class="sidebar-footer">
|
||||
<div class="system-status">
|
||||
<div class="status-indicator online"></div>
|
||||
<div class="status-details">
|
||||
<span class="status-title">API Gateway</span>
|
||||
<span class="status-sub" id="sidebar-gateway-url">ws://localhost:8901</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<!-- Main Content Area -->
|
||||
<div class="main-content">
|
||||
<!-- Top Navbar -->
|
||||
<header class="top-nav">
|
||||
<div class="nav-title">
|
||||
<h1>Operations Console</h1>
|
||||
<span id="console-path">Dashboard / Overview</span>
|
||||
</div>
|
||||
<div class="nav-actions">
|
||||
<div class="connection-status-pill" id="dashboard-status">
|
||||
<span class="pulse-dot red"></span>
|
||||
<span class="status-text">Disconnected</span>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- Tab 1: Overview -->
|
||||
<div class="tab-page active" id="tab-overview">
|
||||
<!-- Fleet Stats Row -->
|
||||
<section class="metrics-row">
|
||||
<div class="metric-tile">
|
||||
<div class="tile-icon purple"><i class="fa-solid fa-network-wired"></i></div>
|
||||
<div class="tile-body">
|
||||
<span class="tile-label">Active Nodes</span>
|
||||
<span class="tile-val" id="stat-devices-count">0</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="metric-tile">
|
||||
<div class="tile-icon blue"><i class="fa-solid fa-database"></i></div>
|
||||
<div class="tile-body">
|
||||
<span class="tile-label">Messages Processed</span>
|
||||
<span class="tile-val" id="stat-messages-count">0</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="metric-tile">
|
||||
<div class="tile-icon green"><i class="fa-solid fa-heartbeat"></i></div>
|
||||
<div class="tile-body">
|
||||
<span class="tile-label">Average Latency</span>
|
||||
<span class="tile-val" id="stat-latency">-- ms</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="metric-tile">
|
||||
<div class="tile-icon orange"><i class="fa-solid fa-circle-nodes"></i></div>
|
||||
<div class="tile-body">
|
||||
<span class="tile-label">Network Status</span>
|
||||
<span class="tile-val" id="stat-network-state">Stable</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Core Grid -->
|
||||
<div class="workspace-grid">
|
||||
<!-- Devices Fleet Section -->
|
||||
<section class="workspace-card">
|
||||
<div class="card-header">
|
||||
<div class="header-left">
|
||||
<h3><i class="fa-solid fa-list-check"></i> Connected Fleet Nodes <span class="badge" id="connections-badge">0 Active</span></h3>
|
||||
<span class="header-subtitle">Real-time hardware connections</span>
|
||||
</div>
|
||||
<div class="header-right">
|
||||
<div class="search-box">
|
||||
<i class="fa-solid fa-magnifying-glass"></i>
|
||||
<input type="text" id="device-search" placeholder="Filter node ID/IP...">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="connections-list" id="connections-container">
|
||||
<div class="empty-state">
|
||||
<i class="fa-solid fa-circle-notch fa-spin"></i>
|
||||
<p>Awaiting fleet connection updates...</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Stream Feed / Audit Log Section -->
|
||||
<section class="workspace-card">
|
||||
<div class="card-header">
|
||||
<div class="header-left">
|
||||
<h3><i class="fa-solid fa-receipt"></i> System Audit Log</h3>
|
||||
<span class="header-subtitle">Real-time telemetry stream</span>
|
||||
</div>
|
||||
<div class="header-right actions-row">
|
||||
<div class="filter-group">
|
||||
<button class="filter-btn active" data-filter="all">All</button>
|
||||
<button class="filter-btn" data-filter="connect">Connects</button>
|
||||
<button class="filter-btn" data-filter="msg">Messages</button>
|
||||
<button class="filter-btn" data-filter="error">Errors</button>
|
||||
</div>
|
||||
<button class="action-btn" id="export-logs-btn" title="Export logs as JSON">
|
||||
<i class="fa-solid fa-file-arrow-down"></i> Export
|
||||
</button>
|
||||
<button class="action-btn clear" id="clear-console-btn" title="Clear console">
|
||||
<i class="fa-solid fa-trash-can"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="console-body" id="console-container">
|
||||
<div class="console-line system-line">[SYSTEM] Terminal initialized. Awaiting connection.</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Tab 2: Device Fleet Manager -->
|
||||
<div class="tab-page" id="tab-devices">
|
||||
<section class="workspace-card full-view-card">
|
||||
<div class="card-header">
|
||||
<div class="header-left">
|
||||
<h3><i class="fa-solid fa-microchip"></i> Device Fleet Manager</h3>
|
||||
<span class="header-subtitle">Full diagnostic fleet node view</span>
|
||||
</div>
|
||||
<div class="header-right">
|
||||
<div class="search-box" style="width: 280px;">
|
||||
<i class="fa-solid fa-magnifying-glass"></i>
|
||||
<input type="text" id="device-search-fleet" placeholder="Search fleet node ID/IP...">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="connections-list" id="connections-container-fleet">
|
||||
<div class="empty-state">
|
||||
<i class="fa-solid fa-plug-circle-exclamation"></i>
|
||||
<p>No fleet nodes active.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<!-- Tab 3: Telemetry Terminal -->
|
||||
<div class="tab-page" id="tab-terminal">
|
||||
<section class="workspace-card full-view-card">
|
||||
<div class="card-header">
|
||||
<div class="header-left">
|
||||
<h3><i class="fa-solid fa-terminal"></i> Telemetry Terminal Console</h3>
|
||||
<span class="header-subtitle">Real-time syslog and debug stream</span>
|
||||
</div>
|
||||
<div class="header-right actions-row">
|
||||
<div class="filter-group">
|
||||
<button class="filter-btn active" data-filter="all">All</button>
|
||||
<button class="filter-btn" data-filter="connect">Connects</button>
|
||||
<button class="filter-btn" data-filter="msg">Messages</button>
|
||||
<button class="filter-btn" data-filter="error">Errors</button>
|
||||
</div>
|
||||
<button class="action-btn" id="export-logs-btn-terminal" title="Export logs as JSON">
|
||||
<i class="fa-solid fa-file-arrow-down"></i> Export
|
||||
</button>
|
||||
<button class="action-btn clear" id="clear-console-btn-terminal" title="Clear console">
|
||||
<i class="fa-solid fa-trash-can"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="console-body" id="console-container-terminal">
|
||||
<div class="console-line system-line">[SYSTEM] Dedicated terminal logger active.</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<!-- Tab 4: Firmware Builds -->
|
||||
<div class="tab-page" id="tab-builds">
|
||||
<section class="workspace-card full-view-card">
|
||||
<div class="card-header">
|
||||
<div class="header-left">
|
||||
<h3><i class="fa-solid fa-boxes-packing"></i> Firmware Builds Catalog</h3>
|
||||
<span class="header-subtitle">Inspect version histories, changesets, and download compiled binaries</span>
|
||||
</div>
|
||||
<div class="header-right">
|
||||
<button class="action-btn" id="refresh-builds-btn" title="Refresh builds catalog list">
|
||||
<i class="fa-solid fa-rotate"></i> Refresh List
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div style="padding: 1.25rem; overflow-y: auto; flex: 1;">
|
||||
<div class="empty-state" id="builds-empty-state">
|
||||
<i class="fa-solid fa-circle-notch fa-spin"></i>
|
||||
<p>Fetching catalog releases...</p>
|
||||
</div>
|
||||
<div id="builds-grid-container" style="display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1.25rem;">
|
||||
<!-- Populated by JS -->
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Details/Diagnostics Modal -->
|
||||
<div class="modal" id="details-modal">
|
||||
<div class="modal-content wide">
|
||||
<div class="modal-header">
|
||||
<h3><i class="fa-solid fa-circle-info"></i> Node Diagnostics</h3>
|
||||
<button class="close-modal-btn" id="close-modal-btn">×</button>
|
||||
</div>
|
||||
<div class="modal-body" id="modal-body-content">
|
||||
<!-- Inserted by JS -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="app.js?v=21"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,951 @@
|
||||
/* Enterprise Layout Core Styling */
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
:root {
|
||||
--bg-primary: #0a0b10;
|
||||
--bg-secondary: #0f111a;
|
||||
--sidebar-bg: #07080c;
|
||||
--card-bg: rgba(22, 26, 44, 0.45);
|
||||
--border-color: rgba(255, 255, 255, 0.06);
|
||||
--text-primary: #f3f4f6;
|
||||
--text-secondary: #8d92a3;
|
||||
|
||||
/* Branding Accent Palette */
|
||||
--accent-purple: #a855f7;
|
||||
--accent-blue: #0ea5e9;
|
||||
--accent-green: #10b981;
|
||||
--accent-orange: #f59e0b;
|
||||
--accent-red: #ef4444;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--bg-primary);
|
||||
color: var(--text-primary);
|
||||
font-family: 'Outfit', sans-serif;
|
||||
min-height: 100vh;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
/* Scrollbars */
|
||||
::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
}
|
||||
::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-radius: 4px;
|
||||
}
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
/* Master Layout */
|
||||
.enterprise-layout {
|
||||
display: flex;
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Left Sidebar */
|
||||
.sidebar {
|
||||
width: 260px;
|
||||
background-color: var(--sidebar-bg);
|
||||
border-right: 1px solid var(--border-color);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 1.8rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.sidebar-brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.8rem;
|
||||
padding-bottom: 2rem;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
margin-bottom: 1.8rem;
|
||||
}
|
||||
|
||||
.brand-icon {
|
||||
font-size: 1.8rem;
|
||||
color: var(--accent-purple);
|
||||
filter: drop-shadow(0 0 6px var(--accent-purple));
|
||||
}
|
||||
|
||||
.brand-text h2 {
|
||||
font-size: 1.1rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.5px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.brand-text span {
|
||||
font-size: 0.75rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.sidebar-menu {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.menu-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 0.8rem 1rem;
|
||||
border-radius: 8px;
|
||||
color: var(--text-secondary);
|
||||
text-decoration: none;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.menu-item:hover, .menu-item.active {
|
||||
color: #fff;
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
|
||||
.menu-item.active {
|
||||
border-left: 3px solid var(--accent-purple);
|
||||
padding-left: calc(1rem - 3px);
|
||||
}
|
||||
|
||||
.sidebar-footer {
|
||||
padding-top: 1rem;
|
||||
border-top: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.system-status {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.8rem;
|
||||
}
|
||||
|
||||
.status-indicator {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.status-indicator.online {
|
||||
background-color: var(--accent-green);
|
||||
box-shadow: 0 0 8px var(--accent-green);
|
||||
}
|
||||
|
||||
.status-details {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.status-title {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.status-sub {
|
||||
font-size: 0.7rem;
|
||||
color: var(--text-secondary);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 160px;
|
||||
}
|
||||
|
||||
/* Main Content Area */
|
||||
.main-content {
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: var(--bg-primary);
|
||||
padding: 1.8rem;
|
||||
gap: 1.5rem;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Top Navigation Bar */
|
||||
.top-nav {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
padding-bottom: 1.2rem;
|
||||
}
|
||||
|
||||
.nav-title h1 {
|
||||
font-size: 1.6rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.5px;
|
||||
}
|
||||
|
||||
#console-path {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
}
|
||||
|
||||
/* Status Pill */
|
||||
.connection-status-pill {
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
border: 1px solid var(--border-color);
|
||||
padding: 0.5rem 1.2rem;
|
||||
border-radius: 50px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.8rem;
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.pulse-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.pulse-dot.red {
|
||||
background-color: var(--accent-red);
|
||||
box-shadow: 0 0 8px var(--accent-red);
|
||||
}
|
||||
|
||||
.pulse-dot.green {
|
||||
background-color: var(--accent-green);
|
||||
box-shadow: 0 0 8px var(--accent-green);
|
||||
}
|
||||
|
||||
/* Metrics Row */
|
||||
.metrics-row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.metric-tile {
|
||||
background: var(--card-bg);
|
||||
border: 1px solid var(--border-color);
|
||||
padding: 1.4rem;
|
||||
border-radius: 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1.2rem;
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.tile-icon {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.tile-icon.purple { background: rgba(168, 85, 247, 0.1); color: var(--accent-purple); border: 1px solid rgba(168, 85, 247, 0.2); }
|
||||
.tile-icon.blue { background: rgba(14, 165, 233, 0.1); color: var(--accent-blue); border: 1px solid rgba(14, 165, 233, 0.2); }
|
||||
.tile-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); border: 1px solid rgba(16, 185, 129, 0.2); }
|
||||
.tile-icon.orange { background: rgba(245, 158, 11, 0.1); color: var(--accent-orange); border: 1px solid rgba(245, 158, 11, 0.2); }
|
||||
|
||||
.tile-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.2rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.tile-label {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.tile-val {
|
||||
font-size: 1.4rem;
|
||||
font-weight: 700;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
/* Tab Pages & Workspace Panels */
|
||||
.tab-page {
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
flex-grow: 1;
|
||||
overflow: hidden;
|
||||
gap: 1.5rem;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.tab-page.active {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.workspace-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
grid-template-rows: 1fr;
|
||||
gap: 1.5rem;
|
||||
flex-grow: 1;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
.main-content {
|
||||
overflow-y: auto;
|
||||
}
|
||||
.tab-page {
|
||||
overflow: visible;
|
||||
height: auto;
|
||||
}
|
||||
.workspace-grid {
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: auto;
|
||||
height: auto;
|
||||
overflow: visible;
|
||||
}
|
||||
.workspace-card {
|
||||
height: 480px;
|
||||
}
|
||||
}
|
||||
|
||||
.workspace-card {
|
||||
background: var(--card-bg);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 14px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.full-view-card {
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
padding: 1.2rem 1.5rem;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.header-left h3 {
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.6rem;
|
||||
}
|
||||
|
||||
.header-subtitle {
|
||||
font-size: 0.75rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.search-box {
|
||||
background: rgba(0, 0, 0, 0.25);
|
||||
border: 1px solid var(--border-color);
|
||||
padding: 0.4rem 0.8rem;
|
||||
border-radius: 6px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.search-box i {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.search-box input {
|
||||
background: none;
|
||||
border: none;
|
||||
color: #fff;
|
||||
font-family: inherit;
|
||||
font-size: 0.85rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.search-box input:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
/* Connections Fleet List */
|
||||
.connections-list {
|
||||
padding: 1.2rem 1.5rem;
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.8rem;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.device-card {
|
||||
background: rgba(30, 41, 59, 0.4);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
backdrop-filter: blur(12px);
|
||||
border-radius: 12px;
|
||||
padding: 1.2rem 1.4rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.6rem;
|
||||
align-items: stretch;
|
||||
transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
|
||||
}
|
||||
|
||||
.device-card:hover {
|
||||
background: rgba(30, 41, 59, 0.55);
|
||||
border-color: rgba(99, 179, 237, 0.35);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
|
||||
}
|
||||
|
||||
.device-main {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
min-width: 0;
|
||||
flex-grow: 1;
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
.device-avatar {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 6px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.device-avatar.esp { background: rgba(16, 185, 129, 0.08); color: var(--accent-green); border: 1px solid rgba(16, 185, 129, 0.2); }
|
||||
.device-avatar.client { background: rgba(14, 165, 233, 0.08); color: var(--accent-blue); border: 1px solid rgba(14, 165, 233, 0.2); }
|
||||
|
||||
.device-details {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.device-name {
|
||||
font-weight: 600;
|
||||
font-size: 0.95rem;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.device-ip {
|
||||
font-size: 0.75rem;
|
||||
color: var(--text-secondary);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.device-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.device-msg-badge {
|
||||
background: rgba(14, 165, 233, 0.1);
|
||||
color: var(--accent-blue);
|
||||
border: 1px solid rgba(14, 165, 233, 0.2);
|
||||
padding: 0.2rem 0.5rem;
|
||||
border-radius: 4px;
|
||||
font-size: 0.7rem;
|
||||
font-weight: 600;
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
}
|
||||
|
||||
.diagnostics-btn {
|
||||
background: none;
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
color: var(--text-secondary);
|
||||
padding: 0.35rem 0.7rem;
|
||||
border-radius: 6px;
|
||||
font-size: 0.75rem;
|
||||
cursor: pointer;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.diagnostics-btn:hover {
|
||||
color: #fff;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border-color: rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
|
||||
/* Console Header Actions Row */
|
||||
.actions-row {
|
||||
display: flex;
|
||||
gap: 0.8rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.filter-group {
|
||||
display: flex;
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
border: 1px solid var(--border-color);
|
||||
padding: 2px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.filter-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-secondary);
|
||||
padding: 0.3rem 0.7rem;
|
||||
font-family: inherit;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.filter-btn.active, .filter-btn:hover {
|
||||
color: #fff;
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
.action-btn {
|
||||
background: none;
|
||||
border: 1px solid var(--border-color);
|
||||
color: var(--text-secondary);
|
||||
padding: 0.4rem 0.8rem;
|
||||
border-radius: 6px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.action-btn:hover {
|
||||
color: #fff;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border-color: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.action-btn.clear {
|
||||
padding: 0.4rem 0.5rem;
|
||||
}
|
||||
|
||||
/* Audit Log Console */
|
||||
.console-body {
|
||||
background: #050609;
|
||||
padding: 1.2rem;
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 0.8rem;
|
||||
overflow-y: auto;
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.console-line {
|
||||
line-height: 1.45;
|
||||
border-left: 2px solid transparent;
|
||||
padding-left: 0.5rem;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.system-line { color: var(--text-secondary); border-color: rgba(255, 255, 255, 0.15); }
|
||||
.connect-line { color: var(--accent-green); border-color: var(--accent-green); }
|
||||
.disconnect-line { color: var(--accent-red); border-color: var(--accent-red); }
|
||||
.msg-line { color: var(--accent-blue); border-color: var(--accent-blue); }
|
||||
.error-line { color: var(--accent-orange); border-color: var(--accent-orange); }
|
||||
|
||||
.empty-state {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: auto;
|
||||
color: var(--text-secondary);
|
||||
gap: 0.8rem;
|
||||
}
|
||||
|
||||
.empty-state i {
|
||||
font-size: 2.2rem;
|
||||
color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
/* Modals */
|
||||
.modal {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
backdrop-filter: blur(4px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.25s ease;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.modal.active {
|
||||
opacity: 1;
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 12px;
|
||||
width: 500px;
|
||||
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.modal-header {
|
||||
padding: 1.2rem;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.modal-header h3 {
|
||||
font-size: 1.05rem;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.close-modal-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-secondary);
|
||||
font-size: 1.5rem;
|
||||
cursor: pointer;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
.close-modal-btn:hover {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.modal-body {
|
||||
padding: 1.5rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.2rem;
|
||||
}
|
||||
|
||||
.diagnostic-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.03);
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.diag-label {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.85rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.diag-value {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 0.85rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.diag-value.high-green {
|
||||
color: var(--accent-green);
|
||||
}
|
||||
|
||||
/* Node Control Modal Extensions */
|
||||
.diagnostics-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
color: #fff;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
margin-bottom: 0.4rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
||||
padding-bottom: 0.3rem;
|
||||
}
|
||||
|
||||
.control-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.2rem;
|
||||
border-top: 1px solid var(--border-color);
|
||||
padding-top: 1.2rem;
|
||||
}
|
||||
|
||||
.control-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.control-label {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.slider-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.8rem;
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
border: 1px solid var(--border-color);
|
||||
padding: 0.5rem 0.8rem;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.slider-row i {
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.custom-slider {
|
||||
flex-grow: 1;
|
||||
-webkit-appearance: none;
|
||||
height: 4px;
|
||||
border-radius: 2px;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.custom-slider::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border-radius: 50%;
|
||||
background: var(--accent-purple);
|
||||
cursor: pointer;
|
||||
box-shadow: 0 0 6px var(--accent-purple);
|
||||
transition: transform 0.1s ease;
|
||||
}
|
||||
|
||||
.custom-slider::-webkit-slider-thumb:hover {
|
||||
transform: scale(1.2);
|
||||
}
|
||||
|
||||
.btn-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.control-btn {
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
border: 1px solid var(--border-color);
|
||||
color: var(--text-secondary);
|
||||
padding: 0.5rem 0.4rem;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.3rem;
|
||||
}
|
||||
|
||||
.control-btn:hover {
|
||||
color: #fff;
|
||||
background: rgba(168, 85, 247, 0.08);
|
||||
border-color: rgba(168, 85, 247, 0.3);
|
||||
}
|
||||
|
||||
.control-btn.warning:hover {
|
||||
background: rgba(239, 68, 68, 0.08);
|
||||
border-color: rgba(239, 68, 68, 0.3);
|
||||
}
|
||||
|
||||
.input-row {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.custom-input {
|
||||
flex-grow: 1;
|
||||
background: rgba(0, 0, 0, 0.25);
|
||||
border: 1px solid var(--border-color);
|
||||
color: #fff;
|
||||
padding: 0.5rem 0.8rem;
|
||||
border-radius: 6px;
|
||||
font-family: inherit;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.custom-input:focus {
|
||||
outline: none;
|
||||
border-color: var(--accent-purple);
|
||||
}
|
||||
|
||||
.action-btn.purple {
|
||||
background: var(--accent-purple);
|
||||
color: #fff;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.action-btn.purple:hover {
|
||||
background: #9333ea;
|
||||
box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
|
||||
}
|
||||
|
||||
/* Premium Card Sliders & Layout Overrides */
|
||||
.device-controls-inline {
|
||||
width: 280px;
|
||||
flex-shrink: 0;
|
||||
margin: 0 1.5rem;
|
||||
}
|
||||
|
||||
.inline-volume-slider,
|
||||
.inline-brightness-slider,
|
||||
.inline-haptic-slider {
|
||||
-webkit-appearance: none;
|
||||
height: 4px;
|
||||
border-radius: 2px;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
outline: none;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.inline-volume-slider::-webkit-slider-thumb,
|
||||
.inline-brightness-slider::-webkit-slider-thumb,
|
||||
.inline-haptic-slider::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
background: var(--accent-purple);
|
||||
cursor: pointer;
|
||||
box-shadow: 0 0 5px var(--accent-purple);
|
||||
transition: transform 0.15s ease;
|
||||
}
|
||||
|
||||
.inline-volume-slider::-webkit-slider-thumb:hover,
|
||||
.inline-brightness-slider::-webkit-slider-thumb:hover,
|
||||
.inline-haptic-slider::-webkit-slider-thumb:hover {
|
||||
transform: scale(1.4);
|
||||
}
|
||||
|
||||
.inline-volume-slider:disabled::-webkit-slider-thumb,
|
||||
.inline-brightness-slider:disabled::-webkit-slider-thumb,
|
||||
.inline-haptic-slider:disabled::-webkit-slider-thumb {
|
||||
background: #4a5568 !important;
|
||||
box-shadow: none !important;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.inline-volume-val,
|
||||
.inline-brightness-val,
|
||||
.inline-haptic-val {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.device-msg-badge {
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.device-msg-badge.touch-badge {
|
||||
font-family: 'Outfit', sans-serif;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Glassmorphism Details Sync Button */
|
||||
#ctrl-sync-btn:hover {
|
||||
background: rgba(168, 85, 247, 0.2) !important;
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
/* Sleek 2-column modal layout overrides */
|
||||
.modal-content.wide {
|
||||
width: 860px;
|
||||
max-width: 95vw;
|
||||
}
|
||||
|
||||
.modal-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 320px 1fr;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.modal-col-left {
|
||||
border-right: 1px solid var(--border-color);
|
||||
padding-right: 1.5rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.8rem;
|
||||
}
|
||||
|
||||
.modal-col-right {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
@media (max-width: 880px) {
|
||||
.modal-content.wide {
|
||||
width: 500px;
|
||||
max-width: 90vw;
|
||||
}
|
||||
.modal-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 1.2rem;
|
||||
}
|
||||
.modal-col-left {
|
||||
border-right: none;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
padding-right: 0;
|
||||
padding-bottom: 1.2rem;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user