| Age | Commit message (Collapse) | Author |
|
Self-contained hardening, no server config required:
default-src 'self'; script-src 'self' 'wasm-unsafe-eval';
img-src 'self' blob: data:; connect-src 'self' blob: data:;
style-src 'self' 'unsafe-inline'
- script-src needs 'wasm-unsafe-eval' for WebAssembly compilation
(the scoped exception; plain 'unsafe-eval' stays forbidden) and no
inline script is allowed, so the module loader moved from an inline
<script> to loader.js
- style-src keeps 'unsafe-inline' because the Yew views position the
find-peak popup and size the compass strip via style attributes
- blob: in img-src/connect-src for createImageBitmap and blob reads;
data: for inline assets
Size budget note: unchanged (~550 KB gzipped total, well under the
1.5 MB plan budget).
|
|
This reverts commit 2df51e89039b9b160aafb52b700e874411eb0555.
|
|
- 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.
|
|
The flpsed.org site is generated statically; keeping the deployable
bundle in the tree lets the site pipeline pick it up directly.
Regenerate with crates/wipfel/build-release.sh.
|
|
build-release.sh assembles dist/wipfel/ with the loader page, style,
wasm bundle and the gzipped hill database. All runtime fetches are
relative to the page URL, so the directory works under any path on
any static server (verified from a subdirectory).
|