This commit is contained in:
1 parent
aea883cb77
commit
1b05b7ea54
7 files changed
+8
-8
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
# shared
|
||||
|
||||
The single source of truth for code reused across every project in this workspace: a Svelte design system and application shell, and backend helpers (Postgres access, config, auth/session persistence, an AuthGuard client, log shipping) in four languages. Every project that consumes this repo — including the media-family services (CarrierNode, ContentScanner, CraftStudio, MediaViewer, MediaKiosk, ModerationHub, ProjectConfigurator) — is its own independent frontend/backend; none of them share a generic multi-flavor binary or app anymore.
|
||||
The single source of truth for code reused across every project in this workspace: a Svelte design system and application shell, and backend helpers (Postgres access, config, auth/session persistence, an AuthGuard client, log shipping) in four languages. Every project that consumes this repo — including the media-family services (CarrierNode, ContentScanner, CraftStudio, MediaViewer, KioskDisplay, ModerationHub, ProjectConfigurator) — is its own independent frontend/backend; none of them share a generic multi-flavor binary or app anymore.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Package carriernodeclient is the HTTP client the 6 non-CarrierNode
|
||||
// media-family services (MediaViewer, CraftStudio, ContentScanner,
|
||||
// ModerationHub, ProjectConfigurator, MediaKiosk) use to store and serve
|
||||
// ModerationHub, ProjectConfigurator, KioskDisplay) use to store and serve
|
||||
// media by calling CarrierNode's API, instead of touching a local
|
||||
// MediaRoots/ThumbnailRoot/OutputRoot/DownloadsRoot/InputRoot/CopyRoot
|
||||
// filesystem directly. CarrierNode's own backend keeps resolving and
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Package mediaauth is the shared media-backend family's /auth/... and /api/auth/...
|
||||
// handlers, proxied to AuthGuard. Promoted from each service's own
|
||||
// internal/auth into this shared library so all 7 independent media-family
|
||||
// backends (CarrierNode, ModerationHub, ProjectConfigurator, MediaKiosk,
|
||||
// backends (CarrierNode, ModerationHub, ProjectConfigurator, KioskDisplay,
|
||||
// MediaViewer, ContentScanner, CraftStudio) use one copy instead of
|
||||
// duplicating it.
|
||||
//
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// by a caller-chosen sessionId) see each other's play/pause/seek/remote-control
|
||||
// state live. Promoted unchanged from each service's own internal sync.go into
|
||||
// this shared library so the 6 media-family backends that mount it (every one
|
||||
// except MediaKiosk) use one copy instead of duplicating it.
|
||||
// except KioskDisplay) use one copy instead of duplicating it.
|
||||
//
|
||||
// A service wires this up as:
|
||||
//
|
||||
|
||||
@@ -4,10 +4,10 @@ import { join } from 'path';
|
||||
// TODO(shared extraction): this audits legacy pre-SvelteKit `<project>/public/*.html`
|
||||
// script tags. this repo's webui/ is SvelteKit-based (no per-service `public/` HTML pages), and
|
||||
// none of the sibling monorepo service directories below live inside this repo anymore (they're
|
||||
// now separate repos: MediaModerator, MediaTools, MediaKiosk, MediaViewer). The existsSync guard
|
||||
// now separate repos: MediaModerator, MediaTools, KioskDisplay, MediaViewer). The existsSync guard
|
||||
// below means this currently no-ops safely (nothing to audit) rather than erroring. Left as-is
|
||||
// rather than guessing at a SvelteKit-equivalent audit — remove or repurpose if useful.
|
||||
const projects = ['MediaModerator', 'CraftStudio', 'MediaKiosk', 'MediaViewer'];
|
||||
const projects = ['MediaModerator', 'CraftStudio', 'KioskDisplay', 'MediaViewer'];
|
||||
const scriptSrcRe = /<script[^>]+src="([^"]+)"[^>]*>/g;
|
||||
|
||||
projects.forEach(proj => {
|
||||
|
||||
@@ -88,7 +88,7 @@ const projects = [
|
||||
{ name: 'CraftStudio Converter', publicDir: 'CraftStudio/public/converter' },
|
||||
{ name: 'CraftStudio Generator', publicDir: 'CraftStudio/generator/public' },
|
||||
{ name: 'CraftStudio Downloader', publicDir: 'CraftStudio/downloader/public' },
|
||||
{ name: 'MediaKiosk', publicDir: 'MediaKiosk/public' },
|
||||
{ name: 'KioskDisplay', publicDir: 'KioskDisplay/public' },
|
||||
{ name: 'MediaViewer', publicDir: 'MediaViewer/public' },
|
||||
{ name: 'ContentScanner', publicDir: 'ContentScanner/public' },
|
||||
{ name: 'MediaDesktop', publicDir: 'MediaDesktop/public' },
|
||||
|
||||
@@ -27,7 +27,7 @@ function New-ConsumerProject {
|
||||
# uses) - originally a git submodule, converted to this vendored-copy pattern
|
||||
# for consistency and to drop the private-submodule checkout auth dependency
|
||||
# in CI. The media-family services (CarrierNode, ContentScanner, CraftStudio,
|
||||
# MediaViewer, MediaKiosk, ModerationHub, ProjectConfigurator) used to mount
|
||||
# MediaViewer, KioskDisplay, ModerationHub, ProjectConfigurator) used to mount
|
||||
# a shared multi-flavor webui/media-backend at a separate 'engine' folder
|
||||
# instead; each is now its own independent frontend/backend and vendors this
|
||||
# snapshot the same way as every other consumer below.
|
||||
|
||||
Reference in new issue
Block a user