diff --git a/backend/main.py b/backend/main.py index 586526c..d63ae64 100644 --- a/backend/main.py +++ b/backend/main.py @@ -410,7 +410,7 @@ async def serve_media(path: str, request: _Request): raise _HE(404, "Nicht gefunden.") return _media_response(filepath) -APP_VER = "1069" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "1070" # muss mit APP_VER in app.js übereinstimmen @app.get("/.well-known/assetlinks.json") async def assetlinks(): diff --git a/backend/static/index.html b/backend/static/index.html index 9920b45..e8ea43a 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -101,9 +101,9 @@ - - - + + + @@ -616,10 +616,10 @@ - - - - + + + + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index b794e01..1bec4db 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 = '1069'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '1070'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.6.0'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; // Cache-Bust-Parameter nach Update-Reload sofort entfernen. diff --git a/backend/static/js/pages/uebungen.js b/backend/static/js/pages/uebungen.js index 0e83ff9..9410e0a 100644 --- a/backend/static/js/pages/uebungen.js +++ b/backend/static/js/pages/uebungen.js @@ -976,7 +976,7 @@ window.Page_uebungen = (() => { const showIf = v => v ? '' : 'none'; const quickWrap = _container.querySelector('#ueb-quicksetup-btn')?.parentElement; - if (quickWrap) quickWrap.style.display = showIf(isExerciseTab); + if (quickWrap) quickWrap.style.display = isExerciseTab ? 'flex' : 'none'; const trainerEl = _container.querySelector('#ueb-trainer'); const suggestEl = _container.querySelector('#ueb-suggestions'); const bannerEl = _container.querySelector('#ueb-stats-banner'); diff --git a/backend/static/sw.js b/backend/static/sw.js index 5d989d4..ae167cc 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -4,7 +4,7 @@ ============================================================ */ // ← EINZIGE Stelle für die Version — STATIC_ASSETS und CACHE_VERSION leiten sich ab -const VER = '1069'; +const VER = '1070'; const CACHE_VERSION = `by-v${VER}`; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten