From b2262a8e861fcfd27fd3cc86995256975c231ee2 Mon Sep 17 00:00:00 2001 From: rene Date: Fri, 5 Jun 2026 07:57:21 +0200 Subject: [PATCH] =?UTF-8?q?Vektor-Basemap:=20=3Fvectormap=3D1/0=20fr=C3=BC?= =?UTF-8?q?h=20in=20boot.js=20erfassen=20(=C3=BCberlebt=20Query-Stripping?= =?UTF-8?q?=20beim=20Boot)=20+=20APP=5FVER=20bump?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION | 2 +- backend/static/index.html | 24 ++++++++++++------------ backend/static/js/app.js | 2 +- backend/static/js/boot.js | 4 ++++ backend/static/landing.html | 2 +- backend/static/sw.js | 2 +- 6 files changed, 20 insertions(+), 16 deletions(-) diff --git a/VERSION b/VERSION index 2b8b705..66dae0a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1174 \ No newline at end of file +1175 \ No newline at end of file diff --git a/backend/static/index.html b/backend/static/index.html index eba6cda..52ce81c 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 75a9129..09a298b 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 = '1174'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '1175'; // ← 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/boot.js b/backend/static/js/boot.js index 26e5df5..7868586 100644 --- a/backend/static/js/boot.js +++ b/backend/static/js/boot.js @@ -17,6 +17,10 @@ localStorage.setItem('by_ref_code', rc.toUpperCase()); localStorage.setItem('by_ref_code_ts', String(Date.now())); } + // Vektor-Basemap-Feature-Flag aus ?vectormap=1/0 SOFORT sichern (bevor Boot + // die URL-Query strippt). Wird in ui.js Map.create ausgewertet. + var vm = new URLSearchParams(location.search).get('vectormap'); + if (vm !== null) localStorage.setItem('by_vector_map', vm === '0' ? '0' : '1'); } catch (e) {} })(); diff --git a/backend/static/landing.html b/backend/static/landing.html index 52bfc79..81ff8c5 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 474f666..551d669 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 = '1174'; +const VER = '1175'; const CACHE_VERSION = `by-v${VER}`; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten