mirror of
https://github.com/smittix/intercept.git
synced 2026-06-08 22:21:55 -07:00
410225d54d
- Device population: move refreshDroneDevices() inline to index.html
(same pattern as refreshTscmDevices) and call it from switchMode
alongside DroneMode.init(); remove _refreshDevices/populateSelect
from drone.js which was never guaranteed to run before lazy-load
completed, causing selects to stay on "Loading…" permanently
- IIFE pattern: change from named IIFE + window.DroneMode assignment
to var DroneMode = (function(){...return{...}})() matching OOK/
SpyStations convention
- Init guard: add _initialized flag (OOK state.initialized pattern);
re-entry after destroy() re-registers map/SSE cleanly without
duplicating click listeners on every mode switch
- Lifecycle: destroy() resets _initialized = false so map and SSE
are correctly rebuilt on re-entry
- Stop phase: add isDroneRunning tracking variable in index.html;
_setRunningUI() syncs it; switchMode stop phase now POSTs
/drone/stop when leaving drone mode while active, matching TSCM
- /drone/devices: add monitor_capable field to WiFi interfaces,
add running_as_root and warnings array to response (mirrors
/tscm/devices shape); add os import; show privilege warning div
in drone.html when not running as root
- drone.html: remove for= attribute from SDR label (plain <label>
inside .form-group matches TSCM convention); add droneDeviceWarnings
div for privilege warnings
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
158 lines
3.1 KiB
CSS
158 lines
3.1 KiB
CSS
/* Drone Intelligence Styles */
|
|
|
|
/* ── Main visuals panel ── */
|
|
.drone-visuals-container {
|
|
display: none;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
background: var(--bg-primary);
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.drone-visuals-header {
|
|
flex-shrink: 0;
|
|
padding: 10px 16px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.drone-visuals-stats {
|
|
display: flex;
|
|
gap: 24px;
|
|
}
|
|
|
|
.drone-vsstat {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 2px;
|
|
}
|
|
|
|
.drone-vsstat-value {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
font-family: var(--font-mono);
|
|
color: var(--text-primary);
|
|
line-height: 1;
|
|
}
|
|
|
|
.drone-vsstat-label {
|
|
font-size: 9px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--text-dim);
|
|
}
|
|
|
|
.drone-visuals-body {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.drone-contact-panel {
|
|
width: 300px;
|
|
flex-shrink: 0;
|
|
overflow-y: auto;
|
|
border-right: 1px solid var(--border-color);
|
|
padding: 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.drone-main-map {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.drone-empty-state {
|
|
padding: 24px 12px;
|
|
text-align: center;
|
|
font-size: 11px;
|
|
color: var(--text-dim);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.drone-vector-pills {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.drone-vector-pill {
|
|
font-size: 10px;
|
|
font-family: var(--font-mono);
|
|
padding: 3px 8px;
|
|
border-radius: 3px;
|
|
background: var(--bg-primary);
|
|
color: var(--text-dim);
|
|
border: 1px solid var(--border-color);
|
|
transition: background 0.2s, color 0.2s;
|
|
}
|
|
|
|
.drone-vector-pill.active {
|
|
background: color-mix(in srgb, var(--accent-cyan) 15%, transparent);
|
|
color: var(--accent-cyan);
|
|
border-color: var(--accent-cyan);
|
|
}
|
|
|
|
.drone-contact-card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
padding: 10px 12px;
|
|
margin-bottom: 8px;
|
|
cursor: pointer;
|
|
transition: border-color 0.15s;
|
|
}
|
|
|
|
.drone-contact-card:hover {
|
|
border-color: var(--accent-cyan);
|
|
}
|
|
|
|
.drone-contact-card.high-risk {
|
|
border-left: 3px solid var(--accent-red);
|
|
}
|
|
|
|
.drone-contact-card.medium-risk {
|
|
border-left: 3px solid var(--accent-yellow);
|
|
}
|
|
|
|
.drone-contact-card.low-risk {
|
|
border-left: 3px solid var(--accent-green);
|
|
}
|
|
|
|
.drone-compliance-badge {
|
|
font-size: 9px;
|
|
font-family: var(--font-mono);
|
|
padding: 2px 6px;
|
|
border-radius: 2px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.drone-compliance-badge.compliant {
|
|
background: color-mix(in srgb, var(--accent-green) 20%, transparent);
|
|
color: var(--accent-green);
|
|
}
|
|
|
|
.drone-compliance-badge.non-compliant {
|
|
background: color-mix(in srgb, var(--accent-red) 20%, transparent);
|
|
color: var(--accent-red);
|
|
}
|
|
|
|
|
|
.drone-marker-high-risk {
|
|
animation: dsc-distress-pulse 1.5s infinite;
|
|
}
|
|
|
|
@keyframes dsc-distress-pulse {
|
|
0%, 100% { opacity: 1; transform: scale(1); }
|
|
50% { opacity: 0.4; transform: scale(1.4); }
|
|
}
|