Add logout button to header
Adds a logout button in the top bar on authenticated pages. Posts to /api/auth/logout to clear the server session, then redirects to login. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
// NextSnap Service Worker
|
||||
// Provides offline-first caching for the app shell
|
||||
|
||||
const CACHE_VERSION = 'nextsnap-v25';
|
||||
const APP_SHELL_CACHE = 'nextsnap-shell-v21';
|
||||
const RUNTIME_CACHE = 'nextsnap-runtime-v21';
|
||||
const CACHE_VERSION = 'nextsnap-v27';
|
||||
const APP_SHELL_CACHE = 'nextsnap-shell-v23';
|
||||
const RUNTIME_CACHE = 'nextsnap-runtime-v23';
|
||||
|
||||
// Offline fallback page with bottom nav bar so user can navigate to cached pages
|
||||
const OFFLINE_PAGE = `<!DOCTYPE html>
|
||||
|
||||
Reference in New Issue
Block a user