diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 247d544..b089240 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 = '479'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '480'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const App = (() => { diff --git a/backend/static/manifest.json b/backend/static/manifest.json index 1214470..8b91344 100644 --- a/backend/static/manifest.json +++ b/backend/static/manifest.json @@ -1,20 +1,83 @@ { + "id": "/", "name": "Ban Yaro — Die Hunde-Plattform", "short_name": "Ban Yaro", "description": "Alles rund um deinen Hund. Von Welpe bis Opa.", "start_url": "/", + "scope": "/", "display": "standalone", "orientation": "portrait-primary", "background_color": "#FAF7F2", "theme_color": "#C4843A", "lang": "de", - "categories": ["lifestyle", "social"], + "dir": "ltr", + "categories": [ + "lifestyle", + "social" + ], + "prefer_related_applications": false, "icons": [ - { "src": "/icons/icon-192.png", "sizes": "192x192", "type": "image/png", "purpose": "any" }, - { "src": "/icons/icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "any" }, - { "src": "/icons/icon-180.png", "sizes": "180x180", "type": "image/png", "purpose": "any" }, - { "src": "/icons/icon-192-any.png", "sizes": "192x192", "type": "image/png", "purpose": "maskable" }, - { "src": "/icons/icon-512-any.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" } + { + "src": "/icons/icon-192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "any" + }, + { + "src": "/icons/icon-512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "any" + }, + { + "src": "/icons/icon-192-any.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "/icons/icon-512-any.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ], + "screenshots": [ + { + "src": "/img/screenshots/screen-1.jpg", + "sizes": "920x2000", + "type": "image/jpeg", + "form_factor": "narrow", + "label": "Tagebuch & Erinnerungen" + }, + { + "src": "/img/screenshots/screen-2.jpg", + "sizes": "920x2000", + "type": "image/jpeg", + "form_factor": "narrow", + "label": "Karte & Gassi-Spots" + }, + { + "src": "/img/screenshots/screen-3.jpg", + "sizes": "920x2000", + "type": "image/jpeg", + "form_factor": "narrow", + "label": "Gesundheit & Termine" + }, + { + "src": "/img/screenshots/screen-4.jpg", + "sizes": "920x2000", + "type": "image/jpeg", + "form_factor": "narrow", + "label": "Giftköder-Alarm" + }, + { + "src": "/img/screenshots/screen-5.jpg", + "sizes": "920x2000", + "type": "image/jpeg", + "form_factor": "narrow", + "label": "Installation ohne App Store" + } ], "share_target": { "action": "/share", @@ -22,28 +85,51 @@ "enctype": "multipart/form-data", "params": { "title": "title", - "text": "text", - "url": "url", - "files": [{ "name": "media", "accept": ["image/*", "video/*"] }] + "text": "text", + "url": "url", + "files": [ + { + "name": "media", + "accept": [ + "image/*", + "video/*" + ] + } + ] } }, "shortcuts": [ { - "name": "Tagebuch", - "url": "/#diary", - "icons": [{ "src": "/icons/icon-192.png", "sizes": "192x192" }] + "name": "Tagebuch", + "url": "/#diary", + "icons": [ + { + "src": "/icons/icon-192.png", + "sizes": "192x192" + } + ] }, { - "name": "Widget", - "short_name": "Widget", + "name": "Widget", + "short_name": "Widget", "description": "Nächste Erinnerung + zufälliges Tagebuchbild", - "url": "/#widget", - "icons": [{ "src": "/icons/icon-192.png", "sizes": "192x192" }] + "url": "/#widget", + "icons": [ + { + "src": "/icons/icon-192.png", + "sizes": "192x192" + } + ] }, { - "name": "Giftköder melden", - "url": "/#poison", - "icons": [{ "src": "/icons/icon-192.png", "sizes": "192x192" }] + "name": "Giftköder melden", + "url": "/#poison", + "icons": [ + { + "src": "/icons/icon-192.png", + "sizes": "192x192" + } + ] } ] -} +} \ No newline at end of file diff --git a/backend/static/sw.js b/backend/static/sw.js index 8a0622e..bc49fd5 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-v502'; +const CACHE_VERSION = 'by-v503'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten