Feature: Offline-Bereitschafts-Indikator (Pfote im Header), SW by-v1077
- Neue Pfote oben rechts im Header zeigt 5-stufige Offline-Bereitschaft (1 Ballen + 4 Zehen, je 20% — grau outline → grün gefüllt) - 5 Checks: App-Shell · Page-Module · Hund-/Tagebuchdaten · Karten- Tiles (≥50) · Foto-Previews - Klick öffnet Status-Modal mit Checkliste + 'Fehlende nachladen'- Button. Lädt aktiv: Page-Module per fetch, API-Daten für aktiven Hund, Tile-Cache per SW-Message CACHE_TILES, Diary-Foto-Previews - Refresh: alle 60s + bei SW CACHE_UPDATE-Message - Eigene offline-indicator.js (nicht im app.js mit reingequetscht); ins STATIC_ASSETS-Precache aufgenommen
This commit is contained in:
parent
280213c11d
commit
8097d21605
6 changed files with 305 additions and 10 deletions
|
|
@ -4,7 +4,7 @@
|
|||
============================================================ */
|
||||
|
||||
// ← EINZIGE Stelle für die Version — STATIC_ASSETS und CACHE_VERSION leiten sich ab
|
||||
const VER = '1076';
|
||||
const VER = '1077';
|
||||
const CACHE_VERSION = `by-v${VER}`;
|
||||
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
||||
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
||||
|
|
@ -32,6 +32,7 @@ const STATIC_ASSETS = [
|
|||
`/js/ui.js?v=${VER}`,
|
||||
`/js/app.js?v=${VER}`,
|
||||
`/js/worlds.js?v=${VER}`,
|
||||
`/js/offline-indicator.js?v=${VER}`,
|
||||
'/js/leaflet.markercluster.js',
|
||||
'/css/MarkerCluster.css',
|
||||
'/css/MarkerCluster.Default.css',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue