Add version footer and disable map scroll wheel zoom
- Add build-time version generation script that captures git commit info - Create /api/version endpoint to serve version data - Add version footer component showing commit SHA, date, and branch - Link version SHA to commit on git.deco.sh for easy navigation - Fix footer text duplication issue with i18n translations - Disable mouse wheel zoom on map, require +/- buttons for better UX - Update service worker cache to v4 with new version-footer.js 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
87fef8309d
commit
ec60d6bd2a
10 changed files with 237 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
// Service Worker for Great Lakes Ice Report PWA
|
||||
const CACHE_NAME = 'ice-report-v2';
|
||||
const CACHE_NAME = 'ice-report-v4';
|
||||
const OFFLINE_URL = '/offline.html';
|
||||
|
||||
// Files to cache for offline functionality
|
||||
|
@ -12,6 +12,7 @@ const CACHE_FILES = [
|
|||
'/app.js',
|
||||
'/admin.js',
|
||||
'/utils.js',
|
||||
'/version-footer.js',
|
||||
'/manifest.json',
|
||||
OFFLINE_URL
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue