Fix: APP_VER-Mismatch (Dauer-Aktualisieren-Bug), Mülleimer-Zahl im Hero (SW by-v964)

This commit is contained in:
rene 2026-05-14 22:15:17 +02:00
parent 58046ce0c7
commit cf6e5920ae
4 changed files with 6 additions and 3 deletions

View file

@ -406,7 +406,7 @@ async def serve_media(path: str, request: _Request):
raise _HE(404, "Nicht gefunden.") raise _HE(404, "Nicht gefunden.")
return _media_response(filepath) return _media_response(filepath)
APP_VER = "962" # muss mit APP_VER in app.js übereinstimmen APP_VER = "964" # muss mit APP_VER in app.js übereinstimmen
@app.get("/.well-known/assetlinks.json") @app.get("/.well-known/assetlinks.json")
async def assetlinks(): async def assetlinks():

View file

@ -3,7 +3,7 @@
Router, State-Management, Navigation, Initialisierung. Router, State-Management, Navigation, Initialisierung.
============================================================ */ ============================================================ */
const APP_VER = '963'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VER = '964'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VERSION = '1.5.1'; // ← semantische Version, wird bei make release gesetzt const APP_VERSION = '1.5.1'; // ← semantische Version, wird bei make release gesetzt
const IS_STAGING = location.hostname === 'staging.banyaro.app'; const IS_STAGING = location.hostname === 'staging.banyaro.app';
// Cache-Bust-Parameter nach Update-Reload sofort entfernen // Cache-Bust-Parameter nach Update-Reload sofort entfernen

View file

@ -747,6 +747,8 @@
<strong id="stat-dogs"></strong> Hunde <strong id="stat-dogs"></strong> Hunde
<span class="sep">·</span> <span class="sep">·</span>
<strong id="stat-km"></strong> km Gassi-Wege <strong id="stat-km"></strong> km Gassi-Wege
<span class="sep">·</span>
<strong id="stat-kotbeutel"></strong> Mülleimer
</div> </div>
</div> </div>
</header> </header>
@ -1584,6 +1586,7 @@
set('big-dogs', d.dogs); set('big-dogs', d.dogs);
set('big-km', d.km); set('big-km', d.km);
set('big-posts', d.forum_posts); set('big-posts', d.forum_posts);
set('stat-kotbeutel', d.kotbeutel);
set('big-kotbeutel', d.kotbeutel); set('big-kotbeutel', d.kotbeutel);
var heroStats = document.getElementById('hero-stats'); var heroStats = document.getElementById('hero-stats');

View file

@ -3,7 +3,7 @@
Offline-Cache + Push Notifications + Tile-Cache Offline-Cache + Push Notifications + Tile-Cache
============================================================ */ ============================================================ */
const CACHE_VERSION = 'by-v963'; const CACHE_VERSION = 'by-v964';
const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_STATIC = `${CACHE_VERSION}-static`;
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache