diff --git a/backend/main.py b/backend/main.py index f812da7..cc27d9a 100644 --- a/backend/main.py +++ b/backend/main.py @@ -327,7 +327,7 @@ MEDIA_DIR = os.getenv("MEDIA_DIR", "/data/media") os.makedirs(MEDIA_DIR, exist_ok=True) app.mount("/media", StaticFiles(directory=MEDIA_DIR), name="media") -APP_VER = "751" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "752" # muss mit APP_VER in app.js übereinstimmen @app.get("/api/version") async def app_version(): diff --git a/backend/static/js/app.js b/backend/static/js/app.js index f9b7eeb..8b8ee5a 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -3,7 +3,7 @@ Router, State-Management, Navigation, Initialisierung. ============================================================ */ -const APP_VER = '751'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '752'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.5.0'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; diff --git a/backend/static/js/worlds.js b/backend/static/js/worlds.js index 15b3074..438dd1f 100644 --- a/backend/static/js/worlds.js +++ b/backend/static/js/worlds.js @@ -311,7 +311,7 @@ window.Worlds = (() => { width:100%;margin-top:${options.length ? '14px' : '0'};padding:12px;border:none; background:none;cursor:pointer;color:var(--c-primary);font-size:var(--text-sm);font-weight:600"> - Alle Funktionen + Weitere Funktionen `; @@ -343,8 +343,13 @@ window.Worlds = (() => { const worldNames = ['jetzt', 'hund', 'welt']; const worldLabels = { jetzt: 'JETZT', hund: 'HUND', welt: 'WELT' }; + // Alle Seiten die aktuell in irgendeiner Welt konfiguriert sind + const cfg = _getConfig(); + const configured = new Set(worldNames.flatMap(w => cfg[w] || [])); + const sections = worldNames.map(w => { - const chips = (_DEFAULT_CONFIG[w] || []).map(_chipMeta).filter(c => c && _chipAllowed(c)); + const chips = (_DEFAULT_CONFIG[w] || []).map(_chipMeta) + .filter(c => c && _chipAllowed(c) && !configured.has(c.page)); if (!chips.length) return ''; return `