feat: watch another fight, rename nav — FIGHT! + WATCH, fix stale SW assets

- Add "WATCH ANOTHER FIGHT" button on post-fight overlay (loads random fight)
- Rename "JOIN A BOUT" → "FIGHT!" in nav, join page, register page
- Rename "ARENA" → "WATCH" in nav
- Server: return 404 for missing asset files instead of index.html (fixes "Unexpected token '<'")
- PWA: cleanupOutdatedCaches, skipWaiting, clientsClaim for instant SW updates
- Serve PWA files (sw.js, workbox, icons) with correct cache headers

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-03-07 23:15:39 +00:00
co-authored by Claude Opus 4.6
parent 7d5f4a6b8d
commit 84625bc4d2
4 changed files with 38 additions and 4 deletions
+2 -2
View File
@@ -8,8 +8,8 @@ const { bot, isLoggedIn } = useNostr()
const isMenuOpen = ref(false)
const links = [
{ to: '/join', label: 'JOIN A BOUT' },
{ to: '/arena', label: 'ARENA' },
{ to: '/join', label: 'FIGHT!' },
{ to: '/arena', label: 'WATCH' },
{ to: '/leaderboard', label: 'RANKINGS' },
]
</script>