fix(tactical): resolve DTO types and TS1272 build error for isolatedModules
This commit is contained in:
@@ -5,6 +5,7 @@ import App from './App.tsx'
|
||||
import CompareView from './pages/CompareView'
|
||||
import IntelligenceDashboard from './pages/IntelligenceDashboard'
|
||||
import { ExecutiveShowcase } from './pages/ExecutiveShowcase'
|
||||
import { TacticalDefenseView } from './pages/TacticalDefenseView'
|
||||
import './index.css'
|
||||
|
||||
maplibregl.setRTLTextPlugin(
|
||||
@@ -15,14 +16,15 @@ maplibregl.setRTLTextPlugin(
|
||||
|
||||
// Lightweight hash router
|
||||
const NAV = [
|
||||
{ hash: '#executive', label: 'العرض الاستراتيجي', icon: '🎖️' },
|
||||
{ hash: '#map', label: 'الخريطة الحية', icon: '🗺️' },
|
||||
{ hash: '#tactical', label: 'المنظومة التكتيكية العسكرية', icon: '🎖️' },
|
||||
{ hash: '#map', label: 'الخريطة والطقس', icon: '🗺️' },
|
||||
{ hash: '#review', label: 'تدقيق الطرق', icon: '🔍' },
|
||||
{ hash: '#compare', label: 'المقارنة', icon: '⚖️' },
|
||||
{ hash: '#compare', label: 'المقارنة المرجعية', icon: '⚖️' },
|
||||
{ hash: '#executive', label: 'العرض الاستراتيجي', icon: '🏛️' },
|
||||
]
|
||||
|
||||
function ViewNav({ hash }: { hash: string }) {
|
||||
const currentHash = hash || '#map'
|
||||
const currentHash = hash || '#tactical'
|
||||
return (
|
||||
<div style={{
|
||||
position: 'fixed',
|
||||
@@ -72,14 +74,15 @@ function ViewNav({ hash }: { hash: string }) {
|
||||
}
|
||||
|
||||
function Root() {
|
||||
const [hash, setHash] = useState(window.location.hash || '#map')
|
||||
const [hash, setHash] = useState(window.location.hash || '#tactical')
|
||||
useEffect(() => {
|
||||
const on = () => setHash(window.location.hash || '#map')
|
||||
const on = () => setHash(window.location.hash || '#tactical')
|
||||
window.addEventListener('hashchange', on)
|
||||
return () => window.removeEventListener('hashchange', on)
|
||||
}, [])
|
||||
|
||||
const view =
|
||||
hash === '#tactical' || hash === '#military' ? <TacticalDefenseView /> :
|
||||
hash === '#executive' || hash === '#pitch' ? <ExecutiveShowcase /> :
|
||||
hash === '#compare' ? <CompareView /> :
|
||||
hash === '#review' ? <IntelligenceDashboard /> :
|
||||
|
||||
Reference in New Issue
Block a user