Fix media-backend/media-webui: re-copy from post-revert MediaCollection
The original MediaEngine extraction (later folded into this repo) had been done BEFORE the owner's decision to revert the MediaViewer/Forge/ etc. rename, and was never re-extracted afterward like the other 7 service repos were - it silently carried stale renamed-era text (e.g. 'Porter' instead of 'MediaServant') into Go doc comments, WebUI prose, project-icons.json, and app-config.ts. Re-copied both directories fresh from the current (correctly reverted) MediaCollection/backend and MediaCollection/WebUI, then re-applied the go.mod replace-directive fix and re-added SECURITY_AUDIT.md (also newly migrated from MediaCollection root - a real deployment security checklist that would otherwise have been lost when MediaCollection is deleted). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
acde180086
commit
38a349eb52
20 files changed
+74
-55
No files matched your search
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"viewer": { "name": "Playhouse", "icon": "play" },
|
||||
"tools": { "name": "Forge", "icon": "wand-sparkles" },
|
||||
"analyzer": { "name": "Lookout", "icon": "scan-search" },
|
||||
"viewer": { "name": "MediaViewer", "icon": "play" },
|
||||
"tools": { "name": "MediaTools", "icon": "wand-sparkles" },
|
||||
"analyzer": { "name": "MediaAnalyzer", "icon": "scan-search" },
|
||||
"config": { "name": "MediaConfig", "icon": "settings-2" },
|
||||
"moderator": { "name": "Warden", "icon": "shield-check" },
|
||||
"kiosk": { "name": "Marquee", "icon": "image" },
|
||||
"servant": { "name": "Porter", "icon": "server" },
|
||||
"desktop": { "name": "Beacon", "icon": "monitor-play" }
|
||||
"moderator": { "name": "MediaModerator", "icon": "shield-check" },
|
||||
"kiosk": { "name": "MediaKiosk", "icon": "image" },
|
||||
"servant": { "name": "MediaServant", "icon": "server" },
|
||||
"desktop": { "name": "MediaViewer Desktop", "icon": "monitor-play" }
|
||||
}
|
||||
@@ -5,14 +5,14 @@ import { spawn } from 'node:child_process'
|
||||
const webUiDir = path.resolve(import.meta.dirname, '..')
|
||||
const collectionDir = path.resolve(webUiDir, '..')
|
||||
const targets = {
|
||||
viewer: 'Playhouse',
|
||||
tools: 'Forge',
|
||||
analyzer: 'Lookout',
|
||||
viewer: 'MediaViewer',
|
||||
tools: 'MediaTools',
|
||||
analyzer: 'MediaAnalyzer',
|
||||
config: 'MediaConfig',
|
||||
moderator: 'Warden',
|
||||
kiosk: 'Marquee',
|
||||
servant: 'Porter',
|
||||
desktop: 'Beacon',
|
||||
moderator: 'MediaModerator',
|
||||
kiosk: 'MediaKiosk',
|
||||
servant: 'MediaServant',
|
||||
desktop: 'MediaDesktop',
|
||||
}
|
||||
|
||||
const requested = process.argv.slice(2)
|
||||
|
||||
@@ -9,7 +9,7 @@ function projectIcon(id: AppId): ProjectIconName {
|
||||
const configs: Record<AppId, AppConfig> = {
|
||||
viewer: {
|
||||
id: 'viewer',
|
||||
name: 'Playhouse',
|
||||
name: 'MediaViewer',
|
||||
icon: projectIcon('viewer'),
|
||||
eyebrow: 'Immersive media library',
|
||||
description: 'Browse, search, and play your media collection from one calm workspace.',
|
||||
@@ -46,7 +46,7 @@ const configs: Record<AppId, AppConfig> = {
|
||||
},
|
||||
tools: {
|
||||
id: 'tools',
|
||||
name: 'Forge',
|
||||
name: 'MediaTools',
|
||||
icon: projectIcon('tools'),
|
||||
eyebrow: 'Media workflow studio',
|
||||
description: 'Generate, download, convert, and schedule media jobs in one place.',
|
||||
@@ -90,7 +90,7 @@ const configs: Record<AppId, AppConfig> = {
|
||||
},
|
||||
analyzer: {
|
||||
id: 'analyzer',
|
||||
name: 'Lookout',
|
||||
name: 'MediaAnalyzer',
|
||||
icon: projectIcon('analyzer'),
|
||||
eyebrow: 'Processing operations',
|
||||
description: 'Monitor discovery and define per-type processing pipelines and automation queues.',
|
||||
@@ -171,7 +171,7 @@ const configs: Record<AppId, AppConfig> = {
|
||||
},
|
||||
moderator: {
|
||||
id: 'moderator',
|
||||
name: 'Warden',
|
||||
name: 'MediaModerator',
|
||||
icon: projectIcon('moderator'),
|
||||
eyebrow: 'Administration and safety',
|
||||
description: 'Review users, media, tags, visibility, and platform health.',
|
||||
@@ -201,7 +201,7 @@ const configs: Record<AppId, AppConfig> = {
|
||||
},
|
||||
kiosk: {
|
||||
id: 'kiosk',
|
||||
name: 'Marquee',
|
||||
name: 'MediaKiosk',
|
||||
icon: projectIcon('kiosk'),
|
||||
eyebrow: 'Ambient display',
|
||||
description: 'Show the latest collection output in a focused, full-screen canvas.',
|
||||
@@ -217,7 +217,7 @@ const configs: Record<AppId, AppConfig> = {
|
||||
},
|
||||
servant: {
|
||||
id: 'servant',
|
||||
name: 'Porter',
|
||||
name: 'MediaServant',
|
||||
icon: projectIcon('servant'),
|
||||
eyebrow: 'Storage and delivery',
|
||||
description: 'Inspect mounts, file activity, bandwidth, and media delivery health.',
|
||||
@@ -240,7 +240,7 @@ const configs: Record<AppId, AppConfig> = {
|
||||
},
|
||||
desktop: {
|
||||
id: 'desktop',
|
||||
name: 'Beacon',
|
||||
name: 'MediaViewer Desktop',
|
||||
icon: projectIcon('desktop'),
|
||||
eyebrow: 'Connected player',
|
||||
description: 'Control playback, funscripts, and connected devices from your desktop.',
|
||||
|
||||
@@ -842,7 +842,7 @@
|
||||
<div class="flex flex-wrap items-center justify-between gap-3">
|
||||
<div>
|
||||
<p class="text-sm font-semibold text-fg">ComfyUI</p>
|
||||
<p class="mt-1 text-xs text-muted-fg">The image-generation service used by Forge.</p>
|
||||
<p class="mt-1 text-xs text-muted-fg">The image-generation service used by MediaTools.</p>
|
||||
</div>
|
||||
<div class="flex items-center gap-2">
|
||||
<Badge tone={statusFor('comfyui').tone} title={statusFor('comfyui').title}
|
||||
@@ -867,7 +867,7 @@
|
||||
<div class="flex flex-wrap items-start justify-between gap-3">
|
||||
<SectionTitle
|
||||
title="External connections"
|
||||
description="Optional services can pause their queue and use Porter bandwidth limits."
|
||||
description="Optional services can pause their queue and use MediaServant bandwidth limits."
|
||||
/>
|
||||
<Button variant="secondary" size="sm" onclick={addExternal}><Plus class="size-4" />Add connection</Button>
|
||||
</div>
|
||||
@@ -1046,8 +1046,8 @@
|
||||
<Card class="space-y-5">
|
||||
<div class="flex flex-wrap items-start justify-between gap-3">
|
||||
<SectionTitle
|
||||
title="Porter instances"
|
||||
description="Configure the URL for each running Porter instance. All services use these URLs to proxy media requests."
|
||||
title="MediaServant instances"
|
||||
description="Configure the URL for each running MediaServant instance. All services use these URLs to proxy media requests."
|
||||
/>
|
||||
<Button variant="secondary" size="sm" onclick={addServant}><Plus class="size-4" />Add instance</Button>
|
||||
</div>
|
||||
@@ -1111,7 +1111,7 @@
|
||||
/>
|
||||
</label>
|
||||
<label class="block text-xs font-medium text-muted-fg">
|
||||
Porter URL
|
||||
MediaServant URL
|
||||
<input
|
||||
type="text"
|
||||
value={urls[projectKey(project)] || ''}
|
||||
@@ -1221,7 +1221,7 @@
|
||||
{#if !isNoMounts(project)}
|
||||
<div class="grid gap-3 sm:grid-cols-2">
|
||||
<label class="block text-xs font-medium text-muted-fg">
|
||||
Porter Upload Limit (KB/s)
|
||||
MediaServant Upload Limit (KB/s)
|
||||
<input
|
||||
type="number"
|
||||
min="0"
|
||||
@@ -1233,7 +1233,7 @@
|
||||
/>
|
||||
</label>
|
||||
<label class="block text-xs font-medium text-muted-fg">
|
||||
Porter Download Limit (KB/s)
|
||||
MediaServant Download Limit (KB/s)
|
||||
<input
|
||||
type="number"
|
||||
min="0"
|
||||
@@ -1367,7 +1367,7 @@
|
||||
<div>
|
||||
<p class="text-sm font-medium text-fg">Mounts</p>
|
||||
<p class="mt-1 text-xs text-muted-fg">
|
||||
Shared file roots are configured in the Mounts workspace and resolved by Porter.
|
||||
Shared file roots are configured in the Mounts workspace and resolved by MediaServant.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -70,11 +70,11 @@
|
||||
<Card class="space-y-5"
|
||||
><SectionTitle
|
||||
title="Embedded player"
|
||||
description="The desktop shell embeds Playhouse when a server is connected."
|
||||
description="The desktop shell embeds MediaViewer when a server is connected."
|
||||
/>
|
||||
<div class="flex min-h-[420px] items-center justify-center rounded-lg border border-dashed border-border bg-bg">
|
||||
<EmptyState
|
||||
title="Connect a Playhouse server"
|
||||
title="Connect a MediaViewer server"
|
||||
message="Enter a server URL in the native desktop panel to load the library and player."
|
||||
/>
|
||||
</div></Card
|
||||
|
||||
@@ -166,7 +166,7 @@
|
||||
d="M8 21h8M12 17v4M7 9h.01M11 9h6M7 13h10"
|
||||
/></svg
|
||||
>
|
||||
<p class="text-sm">Waiting for the next image from Porter.</p>
|
||||
<p class="text-sm">Waiting for the next image from MediaServant.</p>
|
||||
<p class="text-xs text-white/40">The canvas will update automatically over WebSocket.</p>
|
||||
</div>{/if}
|
||||
<div
|
||||
|
||||
@@ -463,7 +463,7 @@
|
||||
Loading media…
|
||||
</p>{:else if media.length === 0}<EmptyState
|
||||
title="No catalog media found"
|
||||
message="Lookout outputs will appear once the catalog synchronization has data."
|
||||
message="MediaAnalyzer outputs will appear once the catalog synchronization has data."
|
||||
/>{:else}<div class="overflow-x-auto">
|
||||
<table class="w-full min-w-[720px] text-left">
|
||||
<thead
|
||||
|
||||
@@ -952,7 +952,7 @@
|
||||
<div class="flex items-center justify-between gap-3">
|
||||
<div>
|
||||
<h2 class="text-sm font-medium text-fg">Sync Info</h2>
|
||||
<p class="mt-1 text-xs text-muted-fg">Connect this player to other Playhouse endpoints.</p>
|
||||
<p class="mt-1 text-xs text-muted-fg">Connect this player to other MediaViewer endpoints.</p>
|
||||
</div>
|
||||
{#if syncConnected}<Badge tone="success"><Wifi class="mr-1 size-3" />Connected</Badge>{:else}<Badge
|
||||
tone="warning"><WifiOff class="mr-1 size-3" />Disconnected</Badge
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#5b8cff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" role="img" aria-labelledby="favicon-title">
|
||||
<title id="favicon-title">Playhouse</title>
|
||||
<title id="favicon-title">MediaViewer</title>
|
||||
<path d="M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z" />
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 371 B After Width: | Height: | Size: 373 B |
Reference in new issue
Block a user