diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-27 19:13:03 +0100 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-27 19:13:03 +0100 |
| commit | 2df51e89039b9b160aafb52b700e874411eb0555 (patch) | |
| tree | ffed8ff63fb39a422f7d14d1c6da3e8281997631 /crates/wipfel/www/manifest.webmanifest | |
| parent | 2d3cba97ff6ffbfe094ed0045329d875c6d1960b (diff) | |
wipfel: PWA — manifest, service worker, Web Share Target
- 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.
Diffstat (limited to 'crates/wipfel/www/manifest.webmanifest')
| -rw-r--r-- | crates/wipfel/www/manifest.webmanifest | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/crates/wipfel/www/manifest.webmanifest b/crates/wipfel/www/manifest.webmanifest new file mode 100644 index 0000000..29996fb --- /dev/null +++ b/crates/wipfel/www/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"] } + ] + } + } +} |
