feat: vertical/horizontal nav layout toggle with grouped dropdowns, mobile auto-sidebar

This commit is contained in:
Reditus committed 2026-06-14 22:54:55 +01:00
1 parent 3486f3b2cb
commit 306ebcc871
6 files changed
+263 -8

No files matched your search

+2 -1
View File
@@ -4,7 +4,7 @@ import json
import logging
from flask import Blueprint, render_template, request, jsonify
from flask_login import login_required, current_user
from app.utils.constants import NAV_PAGES, GUILD_ROLES
from app.utils.constants import NAV_PAGES, NAV_GROUPS, GUILD_ROLES
from app.utils.debug_logging import sanitize_for_log
from app.services.player import LIKE_PC
@@ -49,6 +49,7 @@ def register_routes(app, services, settings):
)
return dict(
nav_pages=NAV_PAGES,
nav_groups=NAV_GROUPS,
current_path=request.path if request else '/',
fmt_role=fmt_role,
conn_ok=conn_ok,
+25
View File
@@ -84,3 +84,28 @@ NAV_PAGES = [
('/admin-experimental', 'Experimental'),
('/backup', 'Backup'),
]
NAV_GROUPS = [
('/', 'Overview'),
('Server', [
('/server', 'Server'),
('/director', 'Director'),
('/shell', 'Shell'),
('/files', 'Files'),
]),
('Players', [
('/players', 'Players'),
('/vehicles', 'Vehicles'),
('/guilds', 'Guilds'),
('/buildings', 'Buildings'),
]),
('World', [
('/events', 'Events'),
('/chat', 'Chat'),
('/map', 'Map'),
]),
('System', [
('/admin-experimental', 'Experimental'),
('/backup', 'Backup'),
]),
]