diff --git a/shared/.gitignore b/shared/.gitignore index 43b0725..a6a885d 100644 --- a/shared/.gitignore +++ b/shared/.gitignore @@ -1,6 +1,7 @@ node_modules/ packages/*/dist/ packages/*/.svelte-kit/ +webui/.svelte-kit/ *.tgz .npm/ __pycache__/ diff --git a/shared/backend/README.md b/shared/backend/README.md index 2beb52c..0e3fc00 100644 --- a/shared/backend/README.md +++ b/shared/backend/README.md @@ -8,7 +8,7 @@ services, not application-specific SQL or HTTP handlers. - `auth` — shared bcrypt policy, secure token generation/hashing, account/session schema, and account/session persistence. - `authclient` — HTTP client and `net/http` middleware for services that adopt the centralized AuthServer instead of embedding `auth` against their own database. - `migrate` — embedded filesystem adapter for Goose migrations. -- `logshipper` — client adapter for LoggingServer (Web/LoggingServer): batches and ships log entries centrally while mirroring the same human-readable output and Debug/Info/Warn/Error/Critical/Audit/*Ctx method surface as each project's local internal/logging package. +- `logshipper` — client adapter for OmniLogger (Web/OmniLogger): batches and ships log entries centrally while mirroring the same human-readable output and Debug/Info/Warn/Error/Critical/Audit/*Ctx method surface as each project's local internal/logging package. Run `go test ./...` and `go vet ./...` from this directory. The module path is `repos.gfranz.ch/Gabriel20xx/shared/backend`; change it if the shared folder is diff --git a/shared/backend/logshipper/shipper.go b/shared/backend/logshipper/shipper.go index 600a360..d700abd 100644 --- a/shared/backend/logshipper/shipper.go +++ b/shared/backend/logshipper/shipper.go @@ -1,5 +1,5 @@ -// Package logshipper is the client-side adapter for LoggingServer -// (Web/LoggingServer), the workspace's centralized log sink. It is the +// Package logshipper is the client-side adapter for OmniLogger +// (Web/OmniLogger), the workspace's centralized log sink. It is the // logging equivalent of the authclient package added alongside AuthServer: // each service currently owns its own local internal/logging package (see // Original/OutdoorGames/OutdoorGamesServerGo/internal/logging/logging.go for @@ -10,12 +10,12 @@ // logging.New(...) call for logshipper.New(...) with no call-site changes, // once the owner decides to migrate a given service. // -// No project imports this yet — see LoggingServer/README.md's "Migration +// No project imports this yet — see OmniLogger/README.md's "Migration // notes" for the deliberate, per-project follow-up this requires. // // Shipper always writes the same human-readable line to stdout/stderr that // the local loggers write today, in addition to batching entries off to -// LoggingServer. Nothing is lost if LoggingServer is never wired up, never +// OmniLogger. Nothing is lost if OmniLogger is never wired up, never // reachable, or removed later — this is a mirror, not a replacement, for the // container's own stdout/stderr logs. package logshipper @@ -63,7 +63,7 @@ func levelOf(s string) Level { } } -// sevName is the canonical, lowercase level name LoggingServer's ingest API +// sevName is the canonical, lowercase level name OmniLogger's ingest API // expects (debug/info/warn/error/critical), independent of the uppercase // name used in the local stdout/stderr line. func sevName(sev Level) (upper, lower string) { @@ -92,13 +92,13 @@ const ( // Config configures a Shipper. Only BaseURL, IngestToken, and Service are // normally set by a caller; everything else has a workable default. type Config struct { - // BaseURL is LoggingServer's base URL, e.g. "http://loggingserver:8090". + // BaseURL is OmniLogger's base URL, e.g. "http://omnilogger:8090". // Required. BaseURL string - // IngestToken is the shared INGEST_TOKEN bearer secret LoggingServer - // requires (see LoggingServer/README.md). Required. + // IngestToken is the shared INGEST_TOKEN bearer secret OmniLogger + // requires (see OmniLogger/README.md). Required. IngestToken string - // Service is this process's service name as reported to LoggingServer, + // Service is this process's service name as reported to OmniLogger, // e.g. "playhouse" or "outdoorgames-server-go". Required. Service string @@ -110,11 +110,11 @@ type Config struct { // var (debug/info/warn/error/critical/silent). Defaults to "info". Level string // LogAll mirrors the LOG_ALL env var: when true, a verbose JSON context - // dump is also printed locally (never sent to LoggingServer differently + // dump is also printed locally (never sent to OmniLogger differently // than normal — see Debug/InfoCtx doc comments). LogAll bool - // FlushInterval is how often buffered entries are sent to LoggingServer. + // FlushInterval is how often buffered entries are sent to OmniLogger. // Defaults to 2s. FlushInterval time.Duration // MaxBatchSize triggers an out-of-band flush as soon as the buffer @@ -127,13 +127,13 @@ type Config struct { // Defaults to 2000. BufferCapacity int - // HTTPClient overrides the client used to POST to LoggingServer. + // HTTPClient overrides the client used to POST to OmniLogger. // Defaults to a client with a 5s timeout. HTTPClient *http.Client } -// wireEntry mirrors LoggingServer's POST /api/logs request shape -// (LoggingServer/internal/httpapi.LogEntryInput) field-for-field. +// wireEntry mirrors OmniLogger's POST /api/logs request shape +// (OmniLogger/internal/httpapi.LogEntryInput) field-for-field. type wireEntry struct { Service string `json:"service"` Level string `json:"level"` @@ -142,7 +142,7 @@ type wireEntry struct { OccurredAt time.Time `json:"occurred_at"` } -// Shipper batches log entries in memory and flushes them to LoggingServer on +// Shipper batches log entries in memory and flushes them to OmniLogger on // a background goroutine, while also behaving like a local // internal/logging.Logger (same method surface, same stdout/stderr output). // A Shipper is safe for concurrent use. @@ -263,7 +263,7 @@ func (s *Shipper) enqueue(entry wireEntry) { } } -// flush sends every currently buffered entry to LoggingServer in one +// flush sends every currently buffered entry to OmniLogger in one // request. Failures are swallowed (beyond a rate-limited local warning) by // design: a host application must never fail, panic, or slow down because // its log sink is unreachable. @@ -302,12 +302,12 @@ func (s *Shipper) flush() { defer resp.Body.Close() if resp.StatusCode < 200 || resp.StatusCode >= 300 { - s.warnOnce(fmt.Errorf("logshipper: LoggingServer rejected %d entries: HTTP %d", len(batch), resp.StatusCode)) + s.warnOnce(fmt.Errorf("logshipper: OmniLogger rejected %d entries: HTTP %d", len(batch), resp.StatusCode)) } } // warnOnce prints a local stderr warning at most once per minute, no matter -// how many sends fail in that window, so an unreachable LoggingServer cannot +// how many sends fail in that window, so an unreachable OmniLogger cannot // itself become a log-spam problem. func (s *Shipper) warnOnce(err error) { s.warnMu.Lock() @@ -369,7 +369,7 @@ func (s *Shipper) emit(sev Level, ctx map[string]any, args ...any) { } // Unlike the local-only verbose dump above (which scrubs IDs for - // readability), the context shipped to LoggingServer is sent unscrubbed: + // readability), the context shipped to OmniLogger is sent unscrubbed: // the whole point of centralizing logs is cross-service correlation by // request/user/entity ID, so stripping IDs here would defeat that. var rawCtx json.RawMessage diff --git a/shared/media-backend/.env.example b/shared/media-backend/.env.example index 7771cc7..c6c0183 100644 --- a/shared/media-backend/.env.example +++ b/shared/media-backend/.env.example @@ -9,7 +9,7 @@ OUTPUT_DIR=../output DOWNLOADS_DIR=../downloads THUMBNAIL_DIR=../thumbnails MODEL_CACHE_DIR=../models -WORKFLOWS_DIR=../MediaTools/public/workflows +WORKFLOWS_DIR=../CraftStudio/public/workflows FFMPEG_PATH=ffmpeg FFPROBE_PATH=ffprobe YT_DLP_PATH=yt-dlp diff --git a/shared/media-backend/README.md b/shared/media-backend/README.md index 11fddd6..b875961 100644 --- a/shared/media-backend/README.md +++ b/shared/media-backend/README.md @@ -1,6 +1,6 @@ # Shared media backend -The backend is one Go module, shared across every `MEDIA_SERVICE` instance in the workspace. Set `MEDIA_SERVICE` to `viewer`, `tools`, `analyzer`, `config`, `moderator`, `kiosk`, or `carriernode` to select the route set while keeping the same auth, database, migration, file-safety, and worker implementation. +The backend is one Go module, shared across every `MEDIA_SERVICE` instance in the workspace. Set `MEDIA_SERVICE` to `viewer`, `craftstudio`, `contentscanner`, `config`, `moderator`, `kiosk`, or `carriernode` to select the route set while keeping the same auth, database, migration, file-safety, and worker implementation. From this directory: diff --git a/shared/media-backend/internal/config/config.go b/shared/media-backend/internal/config/config.go index cf3e520..5cafe40 100644 --- a/shared/media-backend/internal/config/config.go +++ b/shared/media-backend/internal/config/config.go @@ -11,13 +11,13 @@ import ( type Service string const ( - Viewer Service = "viewer" - Tools Service = "tools" - Analyzer Service = "analyzer" - ConfigService Service = "config" - Moderator Service = "moderator" - Kiosk Service = "kiosk" - CarrierNode Service = "carriernode" + Viewer Service = "viewer" + CraftStudio Service = "craftstudio" + ContentScanner Service = "contentscanner" + ConfigService Service = "config" + Moderator Service = "moderator" + Kiosk Service = "kiosk" + CarrierNode Service = "carriernode" ) type Config struct { @@ -89,7 +89,7 @@ func Load() (*Config, error) { MediaRoots: roots, InputRoot: filepath.Clean(envOr("INPUT_DIR", "./input")), CopyRoot: filepath.Clean(envOr("UPLOAD_COPY_DIR", "./copy")), - WorkflowsRoot: filepath.Clean(envOr("WORKFLOWS_DIR", filepath.Join("..", "MediaTools", "public", "workflows"))), + WorkflowsRoot: filepath.Clean(envOr("WORKFLOWS_DIR", filepath.Join("..", "CraftStudio", "public", "workflows"))), ThumbnailRoot: filepath.Clean(envOr("THUMBNAIL_DIR", "./thumbnails")), OutputRoot: filepath.Clean(envOr("OUTPUT_DIR", "./output")), DownloadsRoot: filepath.Clean(envOr("DOWNLOADS_DIR", "./downloads")), @@ -124,10 +124,10 @@ func normalizeService(value string) Service { switch strings.ToLower(strings.TrimSpace(value)) { case "viewer", "mediaviewer": return Viewer - case "tools", "mediatools": - return Tools - case "analyzer", "mediaanalyzer": - return Analyzer + case "craftstudio": + return CraftStudio + case "contentscanner": + return ContentScanner case "config", "mediaconfig", "projectconfigurator": return ConfigService case "moderator", "mediamoderator": @@ -145,10 +145,10 @@ func serviceName(service Service) string { switch service { case Viewer: return "MediaViewer" - case Tools: - return "MediaTools" - case Analyzer: - return "MediaAnalyzer" + case CraftStudio: + return "CraftStudio" + case ContentScanner: + return "ContentScanner" case ConfigService: return "ProjectConfigurator" case Moderator: diff --git a/shared/media-backend/internal/database/migrations/001_initial.sql b/shared/media-backend/internal/database/migrations/001_initial.sql index bc54631..8623c51 100644 --- a/shared/media-backend/internal/database/migrations/001_initial.sql +++ b/shared/media-backend/internal/database/migrations/001_initial.sql @@ -311,7 +311,7 @@ CREATE INDEX IF NOT EXISTS media_analysis_tasks_status_idx ON media_analysis_tas -- to make repeated analysis runs idempotent instead of piling up duplicate tag rows. CREATE UNIQUE INDEX IF NOT EXISTS media_tags_ai_tag_unique ON media_tags (media_key, tag) WHERE user_id IS NULL; --- Speeds up the MediaAnalyzer dashboard/pipelines/history/live-status queries: analyzerStats and +-- Speeds up the ContentScanner dashboard/pipelines/history/live-status queries: analyzerStats and -- analyzerPipelineBreakdown group active media by type (and join it against thumbnails), and -- analyzerHistory sorts media_worker_jobs by queued_at with no status filter, none of which the -- existing media/media_worker_jobs indexes above actually cover. diff --git a/shared/media-backend/internal/server/admin_storage.go b/shared/media-backend/internal/server/admin_storage.go index c00fa36..12f1921 100644 --- a/shared/media-backend/internal/server/admin_storage.go +++ b/shared/media-backend/internal/server/admin_storage.go @@ -290,11 +290,11 @@ var serviceTabsByService = map[config.Service][]tabOption{ config.Viewer: { {"Library", "/"}, {"Feed", "/feed"}, {"Tags", "/tags"}, {"Playlists", "/playlists"}, {"About", "/about"}, }, - config.Tools: { + config.CraftStudio: { {"Generator", "/"}, {"Downloader", "/downloader"}, {"Converter", "/converter"}, {"Schedules", "/schedules"}, {"Library", "/library"}, {"About", "/about"}, }, - config.Analyzer: { + config.ContentScanner: { {"Dashboard", "/"}, {"Discover", "/discover"}, {"Images", "/images"}, {"Videos", "/videos"}, {"Audios", "/audios"}, {"Funscripts", "/funscripts"}, {"Schedules", "/schedules"}, {"About", "/about"}, }, @@ -310,8 +310,8 @@ var serviceTabsByService = map[config.Service][]tabOption{ // mount "type" values each service's own tab accepts when configuring its mounts. var serviceMountTypesByService = map[config.Service][]string{ config.Viewer: {"media", "thumbnails", "funscripts"}, - config.Tools: {"downloads", "generated", "converted", "converter input", "generator input", "generator copy"}, - config.Analyzer: {"images", "videos", "audios", "funscripts", "models", "thumbnails"}, + config.CraftStudio: {"downloads", "generated", "converted", "converter input", "generator input", "generator copy"}, + config.ContentScanner: {"images", "videos", "audios", "funscripts", "models", "thumbnails"}, config.Moderator: {"media", "thumbnails"}, config.Kiosk: {"media"}, config.CarrierNode: {"media", "output"}, @@ -538,7 +538,7 @@ func (s *Server) mountMappings(ctx context.Context) map[string]any { // opposed to a project-specific working directory like "downloads", "generated", // "thumbnails", or "models", which have their own dedicated Root config fields instead and // are deliberately left out here. A path is entered under whichever project's tab happens to -// need it (MediaAnalyzer's "images"/"videos"/"audios", MediaViewer/MediaKiosk's "media", ...) +// need it (ContentScanner's "images"/"videos"/"audios", MediaViewer/MediaKiosk's "media", ...) // but they're all describing locations CarrierNode itself has to walk, since it's the only // service with the volume mounted - see effectiveMediaRoots. var mediaLibraryMountTypes = map[string]bool{ @@ -964,7 +964,7 @@ func (s *Server) writeCarrierNodeFiles(w http.ResponseWriter, r *http.Request, r if recent { sort.Slice(files, func(i, j int) bool { return files[i].Mtime > files[j].Mtime }) } - // Internal callers (e.g. MediaAnalyzer discovery) need to list an entire real-sized library + // Internal callers (e.g. ContentScanner discovery) need to list an entire real-sized library // in one pass; the public 1000-item cap stays in place for anyone without the shared secret. maxLimit := 1000 if s.cfg.InternalServiceSecret != "" && r.Header.Get("X-Internal-Auth") == s.cfg.InternalServiceSecret { @@ -1175,7 +1175,7 @@ func (s *Server) carrierNodeStore(w http.ResponseWriter, r *http.Request) { } // resolveStoreFile is CarrierNode's own local-filesystem lookup for /api/store, which catalogs a -// file MediaTools already pushed into one of CarrierNode's mounts (InputRoot, MediaRoots, +// file CraftStudio already pushed into one of CarrierNode's mounts (InputRoot, MediaRoots, // DownloadsRoot, OutputRoot) - unlike everything else in this file, it's called with a path that // isn't necessarily under MediaRoots, so it can't just use resolveMediaPath. func (s *Server) resolveStoreFile(value string) (string, error) { diff --git a/shared/media-backend/internal/server/analyzer.go b/shared/media-backend/internal/server/analyzer.go index 2e9a27a..4e77659 100644 --- a/shared/media-backend/internal/server/analyzer.go +++ b/shared/media-backend/internal/server/analyzer.go @@ -1501,7 +1501,7 @@ func hasFunscriptSidecar(filePath string) bool { } // funscriptSidecarExists is hasFunscriptSidecar for callers without local filesystem access -// (MediaAnalyzer) - it checks for the sidecar on CarrierNode instead of statting a local path. +// (ContentScanner) - it checks for the sidecar on CarrierNode instead of statting a local path. func (s *Server) funscriptSidecarExists(ctx context.Context, key string) bool { base := strings.TrimSuffix(key, filepath.Ext(key)) for _, candidate := range []string{base + ".funscript", base + ".json"} { diff --git a/shared/media-backend/internal/server/analyzer_ai.go b/shared/media-backend/internal/server/analyzer_ai.go index 6b986b3..bf779c4 100644 --- a/shared/media-backend/internal/server/analyzer_ai.go +++ b/shared/media-backend/internal/server/analyzer_ai.go @@ -433,7 +433,7 @@ type analysisSidecarRequest struct { } // callAnalyzerModelsService calls the AnalyzerModels sidecar (a separate process in the same -// container, not baked into this binary - see ANALYZER_MODELS_URL and MediaAnalyzer/Dockerfile), +// container, not baked into this binary - see ANALYZER_MODELS_URL and ContentScanner/Dockerfile), // the same way executeGeneration already calls out to ComfyUI for image generation. Video frames // are analyzed through the image endpoint since by the time this runs the video has already been // reduced to a still frame. diff --git a/shared/media-backend/internal/server/server.go b/shared/media-backend/internal/server/server.go index 6af08bc..c19f647 100644 --- a/shared/media-backend/internal/server/server.go +++ b/shared/media-backend/internal/server/server.go @@ -211,9 +211,9 @@ func (s *Server) mountServiceRoutes(r chi.Router) { switch s.cfg.Service { case config.Viewer: s.mountViewerRoutes(r) - case config.Tools: + case config.CraftStudio: s.mountToolsRoutes(r) - case config.Analyzer: + case config.ContentScanner: s.mountAnalyzerRoutes(r) case config.ConfigService: s.mountConfigRoutes(r) @@ -337,7 +337,7 @@ func (s *Server) listenAndServe(ctx context.Context) error { func (s *Server) Run(ctx context.Context) error { go s.resumeWorkflowJobs(ctx) - if s.cfg.Service == config.Analyzer { + if s.cfg.Service == config.ContentScanner { go s.runAnalyzerScheduler(ctx) } if s.cfg.Service == config.ConfigService { diff --git a/shared/media-backend/internal/server/workflows.go b/shared/media-backend/internal/server/workflows.go index 7ed0925..3992f24 100644 --- a/shared/media-backend/internal/server/workflows.go +++ b/shared/media-backend/internal/server/workflows.go @@ -441,7 +441,7 @@ func firstString(values map[string]any, keys ...string) string { // workflowFileCarrierNodePaths mirrors the search order resolveWorkflowFile used to walk locally // (InputRoot, MediaRoots, DownloadsRoot, OutputRoot) but as CarrierNode-side mount prefixes, since -// MediaTools no longer has any of those roots mounted on its own filesystem. +// CraftStudio no longer has any of those roots mounted on its own filesystem. var workflowFileCarrierNodePaths = []string{"/mount/inputs/", "/media/", "/media/downloads/", "/mount/generated/"} // fetchWorkflowFileFromCarrierNode locates a converter input under any of CarrierNode's mounts and diff --git a/shared/packages/legacy-assets/public/css/index.css b/shared/packages/legacy-assets/public/css/index.css index bf66f11..fbcd8fe 100644 --- a/shared/packages/legacy-assets/public/css/index.css +++ b/shared/packages/legacy-assets/public/css/index.css @@ -1165,7 +1165,7 @@ body.nc-content-scroll-shell:not(.is-feed-stage-active) padding-top: var(--tab-content-top-gap, 0.75rem); } -/* Semantic worker badges/pills used by MediaAnalyzer history rows. */ +/* Semantic worker badges/pills used by ContentScanner history rows. */ .worker-badge-image, .worker-badge-video, .worker-badge-audio, diff --git a/shared/scripts/media/audit-html-js.mjs b/shared/scripts/media/audit-html-js.mjs index babdb47..b0e51f6 100644 --- a/shared/scripts/media/audit-html-js.mjs +++ b/shared/scripts/media/audit-html-js.mjs @@ -7,7 +7,7 @@ import { join } from 'path'; // now separate repos: MediaModerator, MediaTools, MediaKiosk, 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', 'MediaTools', 'MediaKiosk', 'MediaViewer']; +const projects = ['MediaModerator', 'CraftStudio', 'MediaKiosk', 'MediaViewer']; const scriptSrcRe = /]+src="([^"]+)"[^>]*>/g; projects.forEach(proj => { diff --git a/shared/scripts/media/enforce-design-system-css.mjs b/shared/scripts/media/enforce-design-system-css.mjs index 3a48bb1..9bf7574 100644 --- a/shared/scripts/media/enforce-design-system-css.mjs +++ b/shared/scripts/media/enforce-design-system-css.mjs @@ -35,22 +35,22 @@ const sharedThemePath = path.join( const bannedSelectorRules = [ { name: 'project-coupled service token', - regex: /\b(?:kiosk|viewer|moderator|generator|library|analyzer|downloader|carriernode)-page\b/i, + regex: /\b(?:kiosk|viewer|moderator|generator|library|contentscanner|downloader|carriernode)-page\b/i, }, { name: 'project-coupled state class token', regex: - /\b(?:viewer|kiosk|moderator|generator|library|analyzer|downloader|carriernode)-(?:home|page|stage|mode|active|panel)\b/i, + /\b(?:viewer|kiosk|moderator|generator|library|contentscanner|downloader|carriernode)-(?:home|page|stage|mode|active|panel)\b/i, }, { name: 'project-prefixed keyframe name', regex: - /@keyframes\s+nc-(?:viewer|kiosk|moderator|generator|library|analyzer|downloader|carriernode)/i, + /@keyframes\s+nc-(?:viewer|kiosk|moderator|generator|library|contentscanner|downloader|carriernode)/i, }, { name: 'project-coupled data attribute', regex: - /\[data-(?:kiosk|viewer|moderator|generator|library|analyzer|downloader|carriernode)[^\]]*\]/i, + /\[data-(?:kiosk|viewer|moderator|generator|library|contentscanner|downloader|carriernode)[^\]]*\]/i, }, { name: 'route-coupled panel selector', diff --git a/shared/scripts/media/enforce-js-mapping.mjs b/shared/scripts/media/enforce-js-mapping.mjs index a098051..2bbd058 100644 --- a/shared/scripts/media/enforce-js-mapping.mjs +++ b/shared/scripts/media/enforce-js-mapping.mjs @@ -84,13 +84,13 @@ function appendContent(targetPath, appendContent) { log('\n── Verification ──'); const projects = [ { name: 'MediaModerator', publicDir: 'MediaModerator/public' }, - { name: 'MediaTools', publicDir: 'MediaTools/public' }, - { name: 'MediaTools Converter', publicDir: 'MediaTools/public/converter' }, - { name: 'MediaTools Generator', publicDir: 'MediaTools/generator/public' }, - { name: 'MediaTools Downloader', publicDir: 'MediaTools/downloader/public' }, + { name: 'CraftStudio', publicDir: 'CraftStudio/public' }, + { 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: 'MediaViewer', publicDir: 'MediaViewer/public' }, - { name: 'MediaAnalyzer', publicDir: 'MediaAnalyzer/public' }, + { name: 'ContentScanner', publicDir: 'ContentScanner/public' }, { name: 'MediaDesktop', publicDir: 'MediaDesktop/public' }, ]; let allOk = true; diff --git a/shared/scripts/sync-consumers.ps1 b/shared/scripts/sync-consumers.ps1 index 6973636..1fa8499 100644 --- a/shared/scripts/sync-consumers.ps1 +++ b/shared/scripts/sync-consumers.ps1 @@ -44,10 +44,10 @@ $consumerProjects = @( New-ConsumerProject 'Forks/HordeWorker' New-ConsumerProject 'Original/OutdoorGames' New-ConsumerProject 'Original/KioskDisplay' -Destination 'engine' - New-ConsumerProject 'Original/MediaAnalyzer' -Destination 'engine' - New-ConsumerProject 'Original/MediaTools' -Destination 'engine' + New-ConsumerProject 'Original/CraftStudio' -Destination 'engine' New-ConsumerProject 'Original/MediaViewer' -Destination 'engine' New-ConsumerProject 'Central/CarrierNode' -Destination 'engine' + New-ConsumerProject 'Central/ContentScanner' -Destination 'engine' New-ConsumerProject 'Central/ModerationHub' -Destination 'engine' New-ConsumerProject 'Central/ProjectConfigurator' -Destination 'engine' New-ConsumerProject 'Central/AuthGuard' diff --git a/shared/webui/package.json b/shared/webui/package.json index 27b18e4..a15a01f 100644 --- a/shared/webui/package.json +++ b/shared/webui/package.json @@ -8,8 +8,8 @@ "build": "vite build", "build:all": "node scripts/build-all.mjs", "build:viewer": "node scripts/build-all.mjs viewer", - "build:tools": "node scripts/build-all.mjs tools", - "build:analyzer": "node scripts/build-all.mjs analyzer", + "build:craftstudio": "node scripts/build-all.mjs craftstudio", + "build:contentscanner": "node scripts/build-all.mjs contentscanner", "build:config": "node scripts/build-all.mjs config", "build:moderator": "node scripts/build-all.mjs moderator", "build:kiosk": "node scripts/build-all.mjs kiosk", diff --git a/shared/webui/project-icons.json b/shared/webui/project-icons.json index 066316d..fcd323f 100644 --- a/shared/webui/project-icons.json +++ b/shared/webui/project-icons.json @@ -1,7 +1,7 @@ { "viewer": { "name": "MediaViewer", "icon": "play" }, - "tools": { "name": "MediaTools", "icon": "wand-sparkles" }, - "analyzer": { "name": "MediaAnalyzer", "icon": "scan-search" }, + "craftstudio": { "name": "CraftStudio", "icon": "wand-sparkles" }, + "contentscanner": { "name": "ContentScanner", "icon": "scan-search" }, "config": { "name": "ProjectConfigurator", "icon": "settings-2" }, "moderator": { "name": "MediaModerator", "icon": "shield-check" }, "kiosk": { "name": "MediaKiosk", "icon": "image" }, diff --git a/shared/webui/scripts/build-all.mjs b/shared/webui/scripts/build-all.mjs index f602224..9961926 100644 --- a/shared/webui/scripts/build-all.mjs +++ b/shared/webui/scripts/build-all.mjs @@ -6,8 +6,8 @@ const webUiDir = path.resolve(import.meta.dirname, '..') const enginesDir = path.resolve(webUiDir, '..') const targets = { viewer: 'MediaViewer', - tools: 'MediaTools', - analyzer: 'MediaAnalyzer', + craftstudio: 'CraftStudio', + contentscanner: 'ContentScanner', config: 'ProjectConfigurator', moderator: 'MediaModerator', kiosk: 'MediaKiosk', diff --git a/shared/webui/src/lib/app-config.ts b/shared/webui/src/lib/app-config.ts index 4c5395c..207b6a4 100644 --- a/shared/webui/src/lib/app-config.ts +++ b/shared/webui/src/lib/app-config.ts @@ -44,10 +44,10 @@ const configs: Record = { }, ], }, - tools: { - id: 'tools', - name: 'MediaTools', - icon: projectIcon('tools'), + craftstudio: { + id: 'craftstudio', + name: 'CraftStudio', + icon: projectIcon('craftstudio'), eyebrow: 'Media workflow studio', description: 'Generate, download, convert, and schedule media jobs in one place.', nav: [ @@ -88,10 +88,10 @@ const configs: Record = { }, ], }, - analyzer: { - id: 'analyzer', - name: 'MediaAnalyzer', - icon: projectIcon('analyzer'), + contentscanner: { + id: 'contentscanner', + name: 'ContentScanner', + icon: projectIcon('contentscanner'), eyebrow: 'Processing operations', description: 'Monitor discovery and define per-type processing pipelines and automation queues.', nav: [ diff --git a/shared/webui/src/lib/components/AppShell.svelte b/shared/webui/src/lib/components/AppShell.svelte index dd45afe..78d95eb 100644 --- a/shared/webui/src/lib/components/AppShell.svelte +++ b/shared/webui/src/lib/components/AppShell.svelte @@ -12,6 +12,7 @@ import { pageActions } from '$lib/stores/page-actions.svelte' import { get, post, put } from '$lib/api' import '$lib/language.svelte' + import { layoutState } from '$lib/layout.svelte' import type { AppConfig, AuthState, AuthUser } from '$lib/types' import type { Snippet } from 'svelte' @@ -170,7 +171,7 @@ username={displayName} /> -
+
+ + @@ -79,4 +89,17 @@ border: 1px solid var(--sc-border); border-radius: var(--sc-radius-md); } + + .wide-row { + display: flex; + align-items: center; + justify-content: space-between; + gap: 0.75rem; + } + + .wide-row input { + width: 1rem; + height: 1rem; + accent-color: var(--sc-primary); + } diff --git a/shared/webui/src/lib/components/WorkspacePage.svelte b/shared/webui/src/lib/components/WorkspacePage.svelte index b292714..fcd82e6 100644 --- a/shared/webui/src/lib/components/WorkspacePage.svelte +++ b/shared/webui/src/lib/components/WorkspacePage.svelte @@ -1,7 +1,7 @@