diff --git a/VERSION b/VERSION index 64e9c64..ededf28 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1219 \ No newline at end of file +1220 \ No newline at end of file diff --git a/backend/static/index.html b/backend/static/index.html index 1770205..9b1271c 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 6d91f3c..a55f2a6 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 = '1219'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '1220'; // ← 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 568f5d3..9f06461 100644 --- a/backend/static/js/pages/map.js +++ b/backend/static/js/pages/map.js @@ -749,8 +749,9 @@ window.Page_map = (() => { // MapLibre-GL-Engine (zentrale Karte) — GPU/Worker, performant. // Flag-gated; Raster-Leaflet bleibt Default. [lng,lat]-Reihenfolge! // ========================================================== - // Flag: ?mapgl=1/0 → localStorage 'by_map_gl'. Default: auf Staging AN (Breitentest), - // auf Produktion AUS (bis Freigabe). Explizit per Flag überschreibbar. + // Flag: ?mapgl=1/0 → localStorage 'by_map_gl'. Default: auf allen deployten Hosts AN + // (Prod banyaro.app/.de + staging.banyaro.app); localhost/LAN bleibt OSM-Raster (keine + // Tiles lokal). by_map_gl=0 erzwingt Leaflet-Fallback. Freigegeben für Prod 2026-06-05. function _useGL() { try { const u = new URLSearchParams(location.search); @@ -758,7 +759,7 @@ window.Page_map = (() => { const flag = localStorage.getItem('by_map_gl'); if (flag === '1') return true; if (flag === '0') return false; - return /(^|\.)staging\.banyaro\.app$/.test(location.hostname); + return /(^|\.)banyaro\.(app|de)$/.test(location.hostname); } catch (e) { return false; } } diff --git a/backend/static/js/ui.js b/backend/static/js/ui.js index b3d66a8..f7e5de4 100644 --- a/backend/static/js/ui.js +++ b/backend/static/js/ui.js @@ -900,13 +900,14 @@ const UI = (() => { let _uiGL = false; // ist die aktuell erstellte UI-Karte GL? let _maplibreUIPromise = null; - // Gleiche Logik wie pages/map.js _useGL: Staging-Default AN, Prod AUS, by_map_gl überschreibt. + // Gleiche Logik wie pages/map.js _useGL: GL-Default auf allen deployten Hosts AN, by_map_gl überschreibt. function _uiUseGL() { try { const flag = localStorage.getItem('by_map_gl'); if (flag === '1') return true; if (flag === '0') return false; - return /(^|\.)staging\.banyaro\.app$/.test(location.hostname); + // GL-Default auf allen deployten Hosts (Prod + Staging); localhost bleibt OSM. Prod-Freigabe 2026-06-05. + return /(^|\.)banyaro\.(app|de)$/.test(location.hostname); } catch (e) { return false; } } diff --git a/backend/static/landing.html b/backend/static/landing.html index 9eef0c0..ddc5d3d 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 b3e17b8..c168f51 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 = '1219'; +const VER = '1220'; const CACHE_VERSION = `by-v${VER}`; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten