Download htmx.org v1.9.10 into static/htmx.min.js and update all
references (layout.html, handlers.go fallback page, sw.js precache
list) to use the local copy. This enables the PWA to work fully
offline since the service worker can now cache htmx from the same
origin.
Bump service worker cache version to v2 so existing installations
pick up the new asset list.
Closesleeworks-agents/gitea-mobile#17
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add Progressive Web App support for installable mobile experience
on iOS Safari and Android Chrome.
- static/manifest.json: app name, standalone display, dark theme,
icon references for 192px and 512px
- static/sw.js: service worker with cache-first strategy for static
assets, network-first for HTML/HTMX, offline fallback to cache
- static/icon-192.png, static/icon-512.png: placeholder app icons
- Apple meta tags: apple-mobile-web-app-capable, status bar style,
apple-touch-icon for iOS Add to Home Screen
- Service worker registration in base layout template
Closesleeworks-agents/gitea-mobile#6
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>