refactor: ChakraUI v3 frontend + direct SQL backend services

Frontend:
- Replace Tailwind CSS with ChakraUI v3 (react, recharts, fontsource)
- 24 themes (12 Dune factions x day/night variants)
- Collapsible sidebar navigation with 6 groups
- Recharts AreaChart/PieChart for CPU/RAM/metrics
- New Experimental page (ports legacy admin_experimental.html)
- Common components: DataTable, Modal, Badge, Toaster

Backend:
- Fix services to use direct SQL (dune.* schema) instead of stored procedures
- PlayerService, EconomyService, GuildService, WorldService rewritten
- Auto-login for SPA development in factory.py
- Fix settings.yaml path resolution

Launcher:
- Add option [7] Start New Dashboard in launcher.ps1 and start.sh
- Auto-installs pip + npm dependencies
- Sets up SSH tunnels + kubectl port-forwards
- Starts backend API + frontend Vite dev server

Security:
- Sanitize hardcoded RMQ password in config.py
- Add frontend/dist/ to .gitignore
This commit is contained in:
Reditus committed 2026-05-25 03:08:02 +01:00
1 parent d7ac8a6641
commit 011ba8c8b4
52 files changed
+5901 -2444

No files matched your search

+3 -3
View File
@@ -54,7 +54,7 @@ DEFAULTS = {
"game_host": "127.0.0.1",
"game_port": 32021,
"username": "admin",
"password": "@5bkR636nz3TxML@",
"password": None,
"vhost": "%2f",
},
"filebrowser": {
@@ -189,7 +189,7 @@ def _find_missing_keys(defaults, current, path=""):
def load_settings(settings_path=None):
"""Load settings from YAML file with defaults and env var overrides."""
if settings_path is None:
settings_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), "settings.yaml")
settings_path = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), "settings.yaml")
settings = copy.deepcopy(DEFAULTS)
@@ -267,7 +267,7 @@ def get_settings():
def save_settings(settings):
"""Save settings to YAML file."""
global _settings_cache
settings_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), "settings.yaml")
settings_path = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), "settings.yaml")
try:
with open(settings_path, "w") as f:
yaml.safe_dump(settings, f, default_flow_style=False, sort_keys=False)