build: frontend with Microsoft 365 sign-in

The student app's login page offers Microsoft 365 when the provider is
configured, /auth/oauth/callback redeems the one-time code, a consent
screen finishes a first sign-in, the profile attaches Microsoft through
a link ticket, and the service worker leaves /oauth alone. The build
also carries the summer presentation theme already committed in the
frontend sources.
This commit is contained in:
Jakub Zych
2026-10-21 00:23:38 +02:00
parent 438c0b9761
commit 85cae45cb9
60 changed files with 62 additions and 56 deletions

View File

@@ -1,4 +1,4 @@
const BUILD = '3ce237944e1d'
const BUILD = 'a45a8c1270b6'
// The service worker of the BM student app. The Vite plugin bm-service-worker
// (vite.config.ts) emits this file as /sw.js and replaces the build id above,
// so every build that changes an asset gets a fresh cache and an update prompt.
@@ -10,11 +10,13 @@ const BUILD = '3ce237944e1d'
const CACHE = 'bm-' + BUILD
const OFFLINE_URL = '/offline.html'
// API, realtime, upload and admin paths are never intercepted. The speaker
// deck (/_presentations) holds notes and text meant only for its owner, and
// no response from these prefixes may ever land in a device cache. The list
// mirrors reservedPrefixes in plugins/jz/bm/static.go plus /ws and the admin.
const SKIP_PREFIXES = ['/_user', '/_bm', '/_quizzes', '/_presentations', '/api', '/ws', '/storage', '/bmadmin']
// API, realtime, upload, social sign-in and admin paths are never
// intercepted. The speaker deck (/_presentations) holds notes and text meant
// only for its owner, and no response from these prefixes may ever land in a
// device cache; /oauth navigations are redirects to and from the sign-in
// provider. The list mirrors reservedPrefixes in plugins/jz/bm/static.go plus
// /ws and the admin.
const SKIP_PREFIXES = ['/_user', '/_bm', '/_quizzes', '/_presentations', '/api', '/ws', '/storage', '/oauth', '/bmadmin']
// swRoute classifies a request: 'skip' leaves it to the browser, 'page' is a
// network-only navigation with an offline fallback, 'asset' is cache-first.