diff --git a/Dockerfile b/Dockerfile index c29da6b..07e8bd6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,9 @@ RUN pip install --no-cache-dir -r requirements.txt # App-Code COPY backend/ . +# Zentrale Version (wird von main.py beim Startup gelesen) +COPY VERSION /app/VERSION + # Media-Verzeichnis RUN mkdir -p /data/media/dogs /data/media/diary /data/media/poison \ /data/media/breeds/gallery /data/media/breeds/submissions diff --git a/VERSION b/VERSION index dab082f..e50f8eb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1095 \ No newline at end of file +1096 \ No newline at end of file diff --git a/backend/static/index.html b/backend/static/index.html index 1bccf33..f03b358 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -101,9 +101,9 @@ - - - + + +
@@ -625,11 +625,11 @@ - - - - - + + + + + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 746c4b4..5506da7 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 = '1095'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '1096'; // ← 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/sw.js b/backend/static/sw.js index f13cb1c..8160c7b 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 = '1095'; +const VER = '1096'; const CACHE_VERSION = `by-v${VER}`; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten