diff --git a/backend/static/js/app.js b/backend/static/js/app.js index c79a63a..fe30461 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 = '467'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '468'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const App = (() => { diff --git a/backend/static/js/pages/admin.js b/backend/static/js/pages/admin.js index b1a0c3b..8fab722 100644 --- a/backend/static/js/pages/admin.js +++ b/backend/static/js/pages/admin.js @@ -1220,6 +1220,11 @@ window.Page_admin = (() => { const pct = Math.min(Math.round(count / limit * 100), 100); const barColor = pct < 50 ? '#4ade80' : pct <= 80 ? '#facc15' : '#f87171'; + // Wochensumme + Gesamtsumme aus daily_history + const hist7 = (d.daily_history || []).slice(-7); + const weekTotal = hist7.reduce((s, h) => s + (h.count ?? 0), 0); + const totalAll = (d.daily_history || []).reduce((s, h) => s + (h.count ?? 0), 0); + // Sparkline aus daily_history (letzte 30 Tage) const hist = Array.isArray(d.daily_history) ? d.daily_history : []; const W = 400, H = 60, padY = 5; @@ -1262,10 +1267,15 @@ window.Page_admin = (() => { OpenRouteService - - ${count.toLocaleString('de')} / ${limit.toLocaleString('de')} heute - +
+ + ${count.toLocaleString('de')} / ${limit.toLocaleString('de')} heute + + + ${weekTotal} diese Woche · ${totalAll} gesamt (30 Tage) + +
diff --git a/backend/static/sw.js b/backend/static/sw.js index f64754d..8918bc7 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -3,7 +3,7 @@ Offline-Cache + Push Notifications + Tile-Cache ============================================================ */ -const CACHE_VERSION = 'by-v490'; +const CACHE_VERSION = 'by-v491'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten