Feature: Offline-Banner, Online-Toast und API-Offline-Fehlerbehandlung

- #offline-banner in index.html (display:none, fixed oben) mit Inline-Script für window.online/offline Events
- Wieder-online Toast via UI.toast.success
- api.js fängt network-Fehler und SW-503-Offline-Antworten ab und zeigt UI.toast.warning
- SW-Cache auf by-v210 gebumpt (api.js + components.css geändert)
This commit is contained in:
rene 2026-04-18 18:40:05 +02:00
parent e98ce0d232
commit eb72d6f675
4 changed files with 154 additions and 4 deletions

View file

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