From 2df51e89039b9b160aafb52b700e874411eb0555 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Tue, 27 Oct 2026 19:13:03 +0100 Subject: wipfel: PWA — manifest, service worker, Web Share Target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - manifest.webmanifest: standalone, dark theme, mountain icons (regular + maskable) - sw.js: network-first with cache fallback -> full offline after first visit (wasm + hill DB included); versioned cache, stale caches pruned - share_target: images shared to the installed app are POSTed to __share; the SW stashes the bytes at __shared and redirects with ?shared=1; the app picks them up on startup and cleans the URL - index.html: manifest link, theme-color, icons, SW registration - build/serve scripts ship the new files; dist refreshed Note: sharing does not bypass AOSP GPS redaction when the share source passes a MediaStore URI (the browser is still the reader) — the .nomedia/rename trick remains the way to get GPS EXIF into a browser. --- dist/wipfel/manifest.webmanifest | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 dist/wipfel/manifest.webmanifest (limited to 'dist/wipfel/manifest.webmanifest') diff --git a/dist/wipfel/manifest.webmanifest b/dist/wipfel/manifest.webmanifest new file mode 100644 index 0000000..29996fb --- /dev/null +++ b/dist/wipfel/manifest.webmanifest @@ -0,0 +1,25 @@ +{ + "name": "wipfel — web based gipfel photogrammetry", + "short_name": "wipfel", + "description": "Measure mountains from photographs. All processing stays on your device.", + "start_url": "./", + "scope": "./", + "display": "standalone", + "background_color": "#141418", + "theme_color": "#141418", + "icons": [ + { "src": "icons/icon-192.png", "sizes": "192x192", "type": "image/png" }, + { "src": "icons/icon-512.png", "sizes": "512x512", "type": "image/png" }, + { "src": "icons/icon-maskable-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" } + ], + "share_target": { + "action": "__share", + "method": "POST", + "enctype": "multipart/form-data", + "params": { + "files": [ + { "name": "files", "accept": ["image/jpeg", "image/png", "image/webp"] } + ] + } + } +} -- cgit v1.2.3