feat: add missing frontend routes and components

- Add PlayerDetail route and all new page routes to App.tsx
- Add Vehicles, Buildings, Map, Accounts, Files, Director, Settings to NavBar
- Include Accounts page component
- Include Director page component
This commit is contained in:
Reditus committed 2026-05-23 07:33:48 +01:00
1 parent c472e5428a
commit b220792b40
4 files changed
+223 -3

No files matched your search

+10 -3
View File
@@ -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() {
<span className="text-nav-text text-xs uppercase tracking-widest">Admin</span>
</div>
<div className="flex items-center gap-1">
<div className="flex items-center gap-1 overflow-x-auto no-scrollbar">
{NAV_ITEMS.map((item) => (
<Link
key={item.path}
to={item.path}
className={`px-4 h-[52px] flex items-center text-[13px] font-medium border-b-2 transition-colors ${
location.pathname === item.path
className={`px-4 h-[52px] flex items-center text-[13px] font-medium border-b-2 transition-colors whitespace-nowrap ${
location.pathname === item.path || (item.path !== '/' && location.pathname.startsWith(item.path))
? 'text-nav-active border-nav-active'
: 'text-nav-text border-transparent hover:text-white hover:bg-white/5'
}`}