Companion-App: finale Action-Card-Grafiken eingebunden (29/30)
- 29 PNGs als app/cards/s<service>-c<change>.png (PNG-Nr n -> Service floor(n/5),
Change n%5). Karten-Screen zeigt jetzt die finale Grafik statt Text.
- Helfer cardImg()/cardMedia(); Text-Fallback fuer die noch fehlende Karte
s0-c0 ("Open Source von oben!").
- Service Worker cacht die Karten-Grafiken vorab (Offline), CACHE -> v2.
- README-Umsetzungsstand ergaenzt.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
b12bed892a
commit
43320be1fb
32 changed files with 21 additions and 5 deletions
|
|
@ -1,6 +1,13 @@
|
|||
/* Service Worker — SLC-Workshop Companion (App-Shell, offline-first) */
|
||||
const CACHE = "slc-companion-v1";
|
||||
const ASSETS = ["./", "index.html", "manifest.webmanifest", "icon.svg"];
|
||||
const CACHE = "slc-companion-v2";
|
||||
const SHELL = ["./", "index.html", "manifest.webmanifest", "icon.svg"];
|
||||
// Action-Card-Grafiken (cards/s<service>-c<change>.png) fuer Offline vorab cachen.
|
||||
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);
|
||||
|
||||
self.addEventListener("install", (e) => {
|
||||
e.waitUntil(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue