Companion-App: letzte Action-Card-Grafik s0-c0 ergaenzt (30/30)

- s0-c0.png ("Open Source von oben!") hinzugefuegt -> alle 30 Karten als Grafik.
- Text-Fallback in cardImg entfernt; Service Worker cacht jetzt alle 30 (CACHE v3).
- README aktualisiert (alle 30).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
breitenbach76 2026-06-06 14:53:54 +02:00
parent 6a53de9ee7
commit 34a0c34acb
3 changed files with 6 additions and 8 deletions

View file

@ -1,10 +1,9 @@
/* Service Worker — SLC-Workshop Companion (App-Shell, offline-first) */
const CACHE = "slc-companion-v2";
const CACHE = "slc-companion-v3";
const SHELL = ["./", "index.html", "manifest.webmanifest", "icon.svg"];
// Action-Card-Grafiken (cards/s<service>-c<change>.png) fuer Offline vorab cachen.
// Action-Card-Grafiken (cards/s<service>-c<change>.png) fuer Offline vorab cachen (alle 30).
const CARDS = [];
for (let s = 0; s <= 5; s++) for (let c = 0; c <= 4; c++) {
if (s === 0 && c === 0) continue; // s0-c0 fehlt (Text-Fallback)
CARDS.push(`cards/s${s}-c${c}.png`);
}
const ASSETS = SHELL.concat(CARDS);