Rename project to Argus Nexus
This commit is contained in:
+2
-2
@@ -4,8 +4,8 @@
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>GOD'S EYE — Global Intelligence Platform</title>
|
||||
<meta name="description" content="Real-time global intelligence and surveillance platform" />
|
||||
<title>ARGUS NEXUS - Global Intelligence Platform</title>
|
||||
<meta name="description" content="Real-time global intelligence and situational awareness platform" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
@@ -72,8 +72,8 @@ function App() {
|
||||
const { lastJsonMessage, readyState, sendJsonMessage } = useWebSocket(wsUrl, { shouldReconnect: () => true, reconnectInterval: 3000 });
|
||||
|
||||
useEffect(() => {
|
||||
(window as any).__GODS_EYE_REQUEST_SECTOR__ = (box: any) => sendJsonMessage({ type: 'request_sector', box });
|
||||
return () => { (window as any).__GODS_EYE_REQUEST_SECTOR__ = null; };
|
||||
(window as any).__ARGUS_NEXUS_REQUEST_SECTOR__ = (box: any) => sendJsonMessage({ type: 'request_sector', box });
|
||||
return () => { (window as any).__ARGUS_NEXUS_REQUEST_SECTOR__ = null; };
|
||||
}, [sendJsonMessage]);
|
||||
|
||||
const [systemStatus, setSystemStatus] = useState('Initializing Sentinel...');
|
||||
@@ -81,7 +81,7 @@ function App() {
|
||||
useEffect(() => {
|
||||
const msg = lastJsonMessage as any;
|
||||
if (msg?.type === 'status') { setSystemStatus(msg.message); return; }
|
||||
if (msg?.type === 'sector_update') { (window as any).__GODS_EYE_ON_SECTOR_DATA__?.(msg); return; }
|
||||
if (msg?.type === 'sector_update') { (window as any).__ARGUS_NEXUS_ON_SECTOR_DATA__?.(msg); return; }
|
||||
if (msg?.type === 'update' && !historyModeRef.current) {
|
||||
const updateSig = JSON.stringify(msg.last_updated || {});
|
||||
if (updateSig === lastUpdateSigRef.current) return;
|
||||
@@ -173,7 +173,7 @@ function App() {
|
||||
<Shield size={15} className="text-sky-400" />
|
||||
</div>
|
||||
<div>
|
||||
<div className="text-sm font-black tracking-[0.2em] text-white drop-shadow-[0_0_8px_rgba(255,255,255,0.4)]">GOD'S EYE</div>
|
||||
<div className="text-sm font-black tracking-[0.2em] text-white drop-shadow-[0_0_8px_rgba(255,255,255,0.4)]">ARGUS NEXUS</div>
|
||||
<div className="text-[8px] text-sky-500 tracking-[0.35em] font-bold uppercase">Strategic Command</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -446,7 +446,7 @@ function App() {
|
||||
{/* BOTTOM STATUS BAR */}
|
||||
<footer className="absolute bottom-0 left-0 right-0 h-9 z-20 flex items-center justify-between px-4 bg-[#020617]/90 border-t border-slate-800/60 backdrop-blur-sm pointer-events-none">
|
||||
<div className="flex items-center gap-5 text-[9px] text-slate-600">
|
||||
<span className="flex items-center gap-1.5"><Globe size={9} className="text-sky-700"/> GOD'S EYE v2.1</span>
|
||||
<span className="flex items-center gap-1.5"><Globe size={9} className="text-sky-700"/> ARGUS NEXUS v2.1</span>
|
||||
<span className="flex items-center gap-1.5"><Plane size={9} className="text-amber-700"/>{rawData.planes.length.toLocaleString()} AC · <span className="text-rose-700">{milPlanes.length} MIL</span></span>
|
||||
<span className="flex items-center gap-1.5"><Anchor size={9} className="text-blue-700"/>{rawData.ships.length} VES</span>
|
||||
<span className="flex items-center gap-1.5"><Satellite size={9} className="text-sky-700"/>{rawData.satellites.length} SAT</span>
|
||||
|
||||
@@ -89,8 +89,8 @@ const GlobeView: React.FC<Props> = ({ data, selectedItem, onSelectItem, onPovCha
|
||||
}, [viewMode]);
|
||||
|
||||
useEffect(() => {
|
||||
(window as any).__GODS_EYE_ON_SECTOR_DATA__ = (msg: any) => { spRef.current = msg.planes || []; ssRef.current = msg.ships || []; };
|
||||
return () => { (window as any).__GODS_EYE_ON_SECTOR_DATA__ = null; };
|
||||
(window as any).__ARGUS_NEXUS_ON_SECTOR_DATA__ = (msg: any) => { spRef.current = msg.planes || []; ssRef.current = msg.ships || []; };
|
||||
return () => { (window as any).__ARGUS_NEXUS_ON_SECTOR_DATA__ = null; };
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
@@ -99,7 +99,7 @@ const GlobeView: React.FC<Props> = ({ data, selectedItem, onSelectItem, onPovCha
|
||||
const pov = currentPov.current;
|
||||
if (pov.altitude > 1.2) { spRef.current = []; ssRef.current = []; return; }
|
||||
const span = pov.altitude * 45;
|
||||
(window as any).__GODS_EYE_REQUEST_SECTOR__?.({ lamin: Math.max(-90, pov.lat-span), lamax: Math.min(90, pov.lat+span), lomin: pov.lng-span*1.5, lomax: pov.lng+span*1.5 });
|
||||
(window as any).__ARGUS_NEXUS_REQUEST_SECTOR__?.({ lamin: Math.max(-90, pov.lat-span), lamax: Math.min(90, pov.lat+span), lomin: pov.lng-span*1.5, lomax: pov.lng+span*1.5 });
|
||||
}, 2500);
|
||||
return () => clearInterval(interval);
|
||||
}, [isLoaded, viewMode]);
|
||||
@@ -133,7 +133,7 @@ const GlobeView: React.FC<Props> = ({ data, selectedItem, onSelectItem, onPovCha
|
||||
return rc.intersectObjects([pM.current, sM.current, saM.current]);
|
||||
};
|
||||
globeRef.current!.addEventListener('pointerup', (e) => {
|
||||
const hits = getHits(e); if (hits.length > 0 && hits[0].instanceId != null) (window as any).__GODS_EYE_HIT__ = { obj: hits[0].object, idx: hits[0].instanceId };
|
||||
const hits = getHits(e); if (hits.length > 0 && hits[0].instanceId != null) (window as any).__ARGUS_NEXUS_HIT__ = { obj: hits[0].object, idx: hits[0].instanceId };
|
||||
});
|
||||
tileMgr.loadBaseLayer().catch(()=>{}); setIsLoaded(true);
|
||||
return () => { if (typeof globe._destructor === 'function') globe._destructor(); globeInstance.current = null; };
|
||||
@@ -177,12 +177,12 @@ const GlobeView: React.FC<Props> = ({ data, selectedItem, onSelectItem, onPovCha
|
||||
const [x, y, z] = polar2xyz(selectedItem.lat, selectedItem.lon ?? selectedItem.lng, selectedItem.dataType === 'satellite' ? 0.16 : 0.03);
|
||||
selM.current.position.set(x, y, z); selM.current.lookAt(0, 0, 0); selM.current.visible = true;
|
||||
} else selM.current.visible = false;
|
||||
const hit = (window as any).__GODS_EYE_HIT__;
|
||||
const hit = (window as any).__ARGUS_NEXUS_HIT__;
|
||||
if (hit) {
|
||||
if (hit.obj === pM.current) onSelectItem({ ...rendered.p[hit.idx], dataType: 'plane' });
|
||||
else if (hit.obj === sM.current) onSelectItem({ ...rendered.s[hit.idx], dataType: 'ship' });
|
||||
else if (hit.obj === saM.current) onSelectItem({ ...rendered.sa[hit.idx], dataType: 'satellite' });
|
||||
(window as any).__GODS_EYE_HIT__ = null;
|
||||
(window as any).__ARGUS_NEXUS_HIT__ = null;
|
||||
}
|
||||
requestAnimationFrame(animate);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user