Files
shared/media-webui
Gabriel20xx 9589d07baf media-backend/media-webui: proxy admin login identity to AuthGuard
The media-collection family (KioskDisplay, MediaAnalyzer, MediaTools,
MediaViewer, MediaServant, ModerationHub, ProjectConfigurator) shared one
standalone local single-admin auth implementation with no AuthGuard
connection, including its own local "reset admin account" flow - the same
situation the recently-migrated forks were in. Proxies every /auth/... and
/api/auth/... admin-identity operation to AuthGuard via the existing Go
authclient, forwards its Set-Cookie, keeps a local one-time setup-claim flag
(reusing the existing settings table, no schema change), and drops the local
reset flow entirely (only AuthGuard's own web UI keeps one now).

Deliberately left untouched: the separate "moderator manages platform
users" surface (admin_storage.go's mountModeratorRoutes) and the
independent loginRequired/auth_required public-install toggle, both of
which are unrelated to this service's own admin login identity despite
superficially sharing code style/table with the migrated pieces.
2026-09-02 21:45:19 +02:00
..

MediaCollection WebUI

The browser-facing MediaCollection services share one SvelteKit application. The service variant is selected at build time with VITE_MEDIA_APP and uses the same Svelte 5, Tailwind CSS v4, bits-ui-compatible component patterns, Lucide icons, semantic tokens, responsive shell, and static adapter as the other projects.

From this directory:

npm install
npm run build:all

build:all creates ignored .webui/ directories in each service. Docker builds compile the requested variant in a dedicated frontend stage and set MEDIA_UI_DIR to the generated output. The existing JSON, media, WebSocket, Socket.IO, and service-to-service routes remain owned by each backend.