Implements full MeshDD-Bot with TCP connection to Meshtastic devices, SQLite storage for nodes/messages, aiohttp web dashboard with WebSocket live updates, and Leaflet.js map view with color-coded node markers. Includes bot commands (!ping, !nodes, !info, !help, !weather, !stats, !uptime) and automatic version bumping via pre-commit hook. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
228 lines
3.8 KiB
CSS
228 lines
3.8 KiB
CSS
:root {
|
|
--bg-primary: #1a1a2e;
|
|
--bg-secondary: #16213e;
|
|
--bg-card: #0f3460;
|
|
--text-primary: #e0e0e0;
|
|
--text-secondary: #a0a0b0;
|
|
--accent: #00d4ff;
|
|
--accent-dim: #0088aa;
|
|
--green: #00e676;
|
|
--orange: #ff9100;
|
|
--red: #ff5252;
|
|
--border: #2a2a4a;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
min-height: 100vh;
|
|
}
|
|
|
|
header {
|
|
background: var(--bg-secondary);
|
|
border-bottom: 1px solid var(--border);
|
|
padding: 1rem 2rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 1.5rem;
|
|
color: var(--accent);
|
|
}
|
|
|
|
header .status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.status-dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
background: var(--red);
|
|
}
|
|
|
|
.status-dot.connected {
|
|
background: var(--green);
|
|
box-shadow: 0 0 6px var(--green);
|
|
}
|
|
|
|
.nav-links {
|
|
display: flex;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.nav-links a {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
padding: 0.4rem 0.8rem;
|
|
border: 1px solid var(--accent-dim);
|
|
border-radius: 4px;
|
|
font-size: 0.85rem;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.nav-links a:hover {
|
|
background: var(--accent-dim);
|
|
color: #fff;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.stat-card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 1.2rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.stat-card .value {
|
|
font-size: 2rem;
|
|
font-weight: bold;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.stat-card .label {
|
|
color: var(--text-secondary);
|
|
font-size: 0.85rem;
|
|
margin-top: 0.3rem;
|
|
}
|
|
|
|
.panels {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.panels {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.panel {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.panel-header {
|
|
background: var(--bg-card);
|
|
padding: 0.8rem 1rem;
|
|
font-weight: 600;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.panel-body {
|
|
padding: 0;
|
|
max-height: 500px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
table th,
|
|
table td {
|
|
padding: 0.6rem 0.8rem;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--border);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
table th {
|
|
background: var(--bg-card);
|
|
color: var(--text-secondary);
|
|
font-weight: 600;
|
|
position: sticky;
|
|
top: 0;
|
|
}
|
|
|
|
table tr:hover {
|
|
background: rgba(0, 212, 255, 0.05);
|
|
}
|
|
|
|
.message-list {
|
|
list-style: none;
|
|
}
|
|
|
|
.message-item {
|
|
padding: 0.7rem 1rem;
|
|
border-bottom: 1px solid var(--border);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.message-item .meta {
|
|
color: var(--text-secondary);
|
|
font-size: 0.75rem;
|
|
margin-bottom: 0.2rem;
|
|
}
|
|
|
|
.message-item .text {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.battery-indicator {
|
|
display: inline-block;
|
|
width: 24px;
|
|
height: 12px;
|
|
border: 1px solid var(--text-secondary);
|
|
border-radius: 2px;
|
|
position: relative;
|
|
}
|
|
|
|
.battery-indicator::after {
|
|
content: '';
|
|
position: absolute;
|
|
right: -4px;
|
|
top: 2px;
|
|
width: 3px;
|
|
height: 6px;
|
|
background: var(--text-secondary);
|
|
border-radius: 0 1px 1px 0;
|
|
}
|
|
|
|
.battery-fill {
|
|
height: 100%;
|
|
border-radius: 1px;
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--border);
|
|
border-radius: 3px;
|
|
}
|