Commit Graph

22 Commits

Author SHA1 Message Date
jessikitty b2a863bd80 Fix preview: map admin raw-row *_path fields to /uploads URLs
The /api/admin/ghosts endpoint returns raw DB rows (webm_path,
webp_path, image_path as bare filenames), not the public API's
camelCase URL shape. buildGhost now reads those and prefixes /uploads/,
so WebM video renders in the preview instead of falling through to the
procedural wisp.
2026-06-19 21:49:58 +10:00
jessikitty e81f779ea5 Fix preview.html encoding (store raw HTML, not base64) 2026-06-19 15:22:33 +10:00
jessikitty a8552592c7 Add admin-gated ghost preview page (/preview)
Camera-background single-ghost preview reusing the hunt's render path
(WebM VP9+alpha VideoTexture -> WebP/GIF -> procedural wisp). Login gate
matches admin; ghost list via JWT-protected /api/admin/ghosts. Dropdown
to pick a ghost, sliders for distance/size, camera toggle.
2026-06-19 15:20:17 +10:00
jessikitty 458c66a2c0 Fix: decode base64-corrupted source files (html/css/js + backend) 2026-06-19 05:06:43 +00:00
jessikitty 327b37babb Fix: decode base64-corrupted admin html/css/js 2026-06-19 01:21:26 +00:00
jessikitty 3fa50c4c2f Admin UI: style video row thumbnails like image thumbnails
Add .thumb-cell video to the existing .thumb-cell img rule so WebM-only
ghost thumbnails render at the same 34px size.
2026-06-19 09:54:25 +10:00
jessikitty 8e8e259b4c Admin UI: video-aware preview + table thumbnails
- openGhost() previews stored media, preferring WebM video over still image
- showPreview/hidePreview swap between <img> and <video> elements
- Live local preview on file pick (handles mp4/webm)
- Ghost-table row thumbnail renders <video> when only a WebM exists
2026-06-19 09:52:24 +10:00
jessikitty 2fe4d67518 Admin UI: allow MP4/WebM in billboard upload + video preview element
- Widen file input accept to include .webm/.mp4
- Add a <video> preview element alongside the <img> preview
- Update label and help text to mention server-side MP4 conversion
2026-06-19 09:46:29 +10:00
jessikitty ec4442d4ce Add WebM (VP9+alpha) VideoTexture ghost billboards with GIF/WebP fallback
- Detect VP9-alpha WebM support once at load; iOS Safari falls back to <img>
- addGhost prefers data.webm via THREE.VideoTexture (browser-decoded, no
  per-frame needsUpdate pump) when supported
- On video error, gracefully swap the billboard to the GIF/image texture
- Pause + release ghost <video> elements on capture and on hunt teardown to
  avoid leaking decoders
2026-06-18 13:15:54 +10:00
jessikitty 00cd1696c6 Add iOS motion-gate overlay styles 2026-06-18 08:41:39 +10:00
jessikitty ee3dace9b1 Add iOS Enable Motion overlay to hunt screen 2026-06-18 08:40:29 +10:00
jessikitty 0da74fb2dc Fix iOS gyro: explicit Enable Motion gate; spawn ghosts near center, reveal on spawn 2026-06-18 08:39:37 +10:00
jessikitty af4fd70e39 Add About/Tribute page styles 2026-06-17 22:02:50 +10:00
jessikitty 3a9dff06fe Wire up About screen routing and button 2026-06-17 22:00:50 +10:00
jessikitty 60d5844894 Add About/Tribute info page (words-only homage explanation) 2026-06-17 21:58:19 +10:00
jessikitty 35a2777dcb Add admin console client logic 2026-06-17 16:40:06 +10:00
jessikitty e1f18303a6 Add game client logic (scan, AR hunt, roster) 2026-06-17 16:39:18 +10:00
jessikitty f3c450092a Add admin panel page 2026-06-17 16:38:05 +10:00
jessikitty 5dbbefc032 Add main game page (title, scan, AR hunt, roster) 2026-06-17 16:37:40 +10:00
jessikitty 13906e9bf2 Add admin panel CSS 2026-06-17 16:37:15 +10:00
jessikitty 261e8c1275 Add game CSS (title, scanner, AR HUD, roster) 2026-06-17 16:36:50 +10:00
jessikitty 0a0f04f72b Add shared CSS 2026-06-17 16:36:10 +10:00