diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
index d47d440..8aa6e13 100644
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@ -4,11 +4,19 @@ import { useRealtime } from './hooks/useRealtime'
import AppShell from './components/layout/AppShell'
import Overview from './components/overview/Overview'
import PlayerExplorer from './components/players/PlayerExplorer'
+import PlayerDetail from './components/players/PlayerDetail'
import GuildManager from './components/guilds/GuildManager'
+import Vehicles from './components/vehicles/Vehicles'
+import Buildings from './components/buildings/Buildings'
+import MapViewer from './components/map/MapViewer'
+import Accounts from './components/accounts/Accounts'
import ServerControl from './components/server/ServerControl'
import AdminTools from './components/admin/AdminTools'
import ChatMonitor from './components/chat/ChatMonitor'
import Terminal from './components/shell/Terminal'
+import FileBrowser from './components/files/FileBrowser'
+import Director from './components/director/Director'
+import Settings from './components/settings/Settings'
function RealtimeInit() {
useRealtime()
@@ -24,11 +32,19 @@ function App() {
} />
} />
+ } />
} />
+ } />
+ } />
+ } />
+ } />
} />
} />
} />
} />
+ } />
+ } />
+ } />
diff --git a/frontend/src/components/accounts/Accounts.tsx b/frontend/src/components/accounts/Accounts.tsx
new file mode 100644
index 0000000..04f993d
--- /dev/null
+++ b/frontend/src/components/accounts/Accounts.tsx
@@ -0,0 +1,62 @@
+import { useState } from 'react'
+import useSWR from 'swr'
+import client from '../../api/client'
+import { useApp } from '../../stores/AppContext'
+import DataTable from '../common/DataTable'
+
+const fetcher = (url: string) => client.get(url).then((r) => r.data)
+
+interface Account {
+ id: number
+ email: string
+ funcom_id: string
+ character_count: number
+ is_demo: boolean
+ is_cheater: boolean
+ last_login: string
+}
+
+export default function Accounts() {
+ const [search, setSearch] = useState('')
+ const { dispatch } = useApp()
+
+ const { data: accountsData, isLoading } = useSWR(
+ search.length >= 2 ? `/accounts?q=${encodeURIComponent(search)}&limit=50` : '/accounts?limit=100',
+ fetcher,
+ { refreshInterval: 30000 }
+ )
+
+ const accountList: Account[] = accountsData?.success ? accountsData.data : []
+
+ return (
+
+
Director Control
+
+
+ {([
+ { key: 'battlegroup', label: 'Battlegroup' },
+ { key: 'config', label: 'Config' },
+ { key: 'transfer', label: 'Transfer' },
+ { key: 'fls', label: 'FLS' },
+ ] as const).map((t) => (
+
+ ))}
+
+
+ {tab === 'battlegroup' && (
+
+
Battlegroup State
+ {bgData?.success ? (
+
+ {JSON.stringify(bgData.data, null, 2)}
+
+ ) : (
+
Loading battlegroup data...
+ )}
+
+ )}
+
+ {tab === 'config' && (
+
+
Update Config
+
+
+
+
+
+
+
+
+
+
+
+
+
+ )}
+
+ {tab === 'transfer' && (
+
+
Transfer Rules
+
+
+
+
+ )}
+
+ {tab === 'fls' && (
+
+
FLS Settings
+
+
+
+
+ )}
+
+ )
+}
diff --git a/frontend/src/components/layout/NavBar.tsx b/frontend/src/components/layout/NavBar.tsx
index 1c42d65..53f3e36 100644
--- a/frontend/src/components/layout/NavBar.tsx
+++ b/frontend/src/components/layout/NavBar.tsx
@@ -7,9 +7,16 @@ const NAV_ITEMS = [
{ path: '/', label: 'Overview' },
{ path: '/players', label: 'Players' },
{ path: '/guilds', label: 'Guilds' },
+ { path: '/vehicles', label: 'Vehicles' },
+ { path: '/buildings', label: 'Buildings' },
+ { path: '/map', label: 'Map' },
+ { path: '/accounts', label: 'Accounts' },
{ path: '/server', label: 'Server' },
{ path: '/chat', label: 'Chat' },
{ path: '/admin', label: 'Admin' },
+ { path: '/files', label: 'Files' },
+ { path: '/director', label: 'Director' },
+ { path: '/settings', label: 'Settings' },
{ path: '/shell', label: 'Shell' },
]
@@ -24,13 +31,13 @@ export default function NavBar() {