Commit Graph

3 Commits

Author SHA1 Message Date
Claude 7717f84afe
feat(web): enable offline mode support
Add comprehensive offline mode support to allow the app to run locally
without internet connectivity:

- Add offline detection hook (useOfflineDetection)
- Add visual offline indicator banner in UI
- Add PWA support with enhanced manifest and service worker
- Update map component to gracefully handle offline state with overlay
- Skip geocoding API calls when offline, falling back to coordinates
- Add PWA meta tags for better mobile app experience
- Service worker caches app shell and runtime resources

The app now handles internet-dependent features gracefully:
- Maps display offline message but still allow coordinate selection
- Geocoding falls back to showing coordinates when offline
- Webhooks already log errors without failing operations
- OAuth providers will fail gracefully when offline

Core functionality (creating/editing memos with local auth) works
fully offline when backend is accessible locally.
2025-11-19 03:20:21 +00:00
Leyang be2db3f170
feat: use vite plugin pwa for generate right sw.js (#2658)
Co-authored-by: boojack <stevenlgtm@gmail.com>
2023-12-23 12:00:03 +08:00
XQ dfac877957
feat: add `manifest.json` for pwa (#144)
* chore: update `i18nStore`

* feat: add pwa `manifest.json`
2022-08-12 21:30:59 +08:00