diff --git a/VERSION b/VERSION index dea24de..ac2fca5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1177 \ No newline at end of file +1178 \ No newline at end of file diff --git a/backend/static/index.html b/backend/static/index.html index 964f064..f8bd4c2 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -86,14 +86,14 @@ Ban Yaro - + - - - - - + + + + + @@ -617,11 +617,11 @@ - - - - - + + + + + @@ -631,7 +631,7 @@ - + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index cb2129d..50f24cd 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 = '1177'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '1178'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.6.0'; // ← semantische Version, wird bei make release gesetzt window.APP_VER = APP_VER; // global verfügbar für andere Module (z.B. offline-indicator) window.APP_VERSION = APP_VERSION; diff --git a/backend/static/js/pages/map.js b/backend/static/js/pages/map.js index 86087fa..a44a77d 100644 --- a/backend/static/js/pages/map.js +++ b/backend/static/js/pages/map.js @@ -748,7 +748,8 @@ window.Page_map = (() => { _tileLayer.on('load', _applyTileTheme); _applyTileTheme(); }; - if (window.UI && UI.map.vectorEnabled && UI.map.vectorEnabled()) { + // ui.js exponiert UI als globales const (bare 'UI'), NICHT als window.UI! + if (typeof UI !== 'undefined' && UI.map && UI.map.vectorEnabled && UI.map.vectorEnabled()) { UI.map.vectorLayer({ dark: _isDarkMode() }).then(layer => { if (!_map) return; _usingVector = true; diff --git a/backend/static/js/ui-vector-test.js b/backend/static/js/ui-vector-test.js index 3676e1e..b04d237 100644 --- a/backend/static/js/ui-vector-test.js +++ b/backend/static/js/ui-vector-test.js @@ -7,7 +7,7 @@ function set(t) { if (s) s.textContent = t; } (async function () { try { - if (!window.UI || !UI.map) return set('❌ UI.map nicht definiert (ui.js nicht geladen?)'); + if (typeof UI === 'undefined' || !UI.map) return set('❌ UI.map nicht definiert (ui.js nicht geladen?)'); var enabled = UI.map.vectorEnabled ? UI.map.vectorEnabled() : 'METHODE FEHLT'; set('vectorEnabled=' + enabled + ' — erstelle Karte…'); var m = await UI.map.create('map', { center: [48.137, 11.576], zoom: 12 }); diff --git a/backend/static/landing.html b/backend/static/landing.html index 62af3f8..54ba165 100644 --- a/backend/static/landing.html +++ b/backend/static/landing.html @@ -4,7 +4,7 @@ - + Ban Yaro — Die Hunde-App für Deutschland, Österreich & Schweiz diff --git a/backend/static/sw.js b/backend/static/sw.js index c45ba47..971a58d 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 = '1177'; +const VER = '1178'; const CACHE_VERSION = `by-v${VER}`; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten