Merge media-webui/media-backend into the general shared component/backend system
Extracts a new backend/authproxy package for the AuthGuard-proxy helper
functions (session cookie handling, input normalization, error
translation) that Bitmagnet/GameStream/media-backend/AutoCode/
CollabTable/PubliSafe/SimpleCollection/SyncServer/UnraidMonitor/
OutdoorGames were each independently reimplementing, and repoints all
of them onto it.
Extends packages/web-ui's Button/Badge with the variants media-webui
needed (outline, icon size, primary badge) and promotes EmptyState/
SectionTitle/Metric/StatusWidget/StatusDialog into the shared library,
then migrates media-webui off its own diverged ui/{button,card,badge,
metric} components and local duplicates of the promoted components
onto @gabriel20xx/web-ui, so media-webui is a proper consumer of the
same design system every other project already uses instead of a
parallel fork.
Also removes the dead `desktop`/MediaDesktop service variant from
media-backend and media-webui (MediaDesktop is an Electron client that
never actually runs this stack).
This commit is contained in:
1 parent
9589d07baf
commit
7b5a4e6c2c
49 files changed
+872
-726
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { ArrowDown, ArrowRight, ChevronDown, FileCog, Image as ImageIcon, Search, Sparkles } from '@lucide/svelte'
|
||||
import Badge from '$lib/components/ui/badge.svelte'
|
||||
import { Badge } from '@gabriel20xx/web-ui'
|
||||
import { cn } from '$lib/utils/cn'
|
||||
|
||||
type StageStatus = { pending: number; processing: number; processed: number; errors: number; active: boolean }
|
||||
@@ -220,9 +220,9 @@
|
||||
<span class="text-sm font-semibold text-fg">Metadata</span>
|
||||
</div>
|
||||
{#if metadataStatus.active}
|
||||
<Badge tone="primary" class="animate-pulse">Active</Badge>
|
||||
<Badge variant="primary" class="animate-pulse">Active</Badge>
|
||||
{:else}
|
||||
<Badge tone="neutral">Idle</Badge>
|
||||
<Badge>Idle</Badge>
|
||||
{/if}
|
||||
</div>
|
||||
<p class="text-xs text-muted-fg">{metadataDescription}</p>
|
||||
@@ -249,9 +249,9 @@
|
||||
<span class="text-sm font-semibold text-fg">Thumbnails</span>
|
||||
</div>
|
||||
{#if thumbnailsStatus.active}
|
||||
<Badge tone="primary" class="animate-pulse">Active</Badge>
|
||||
<Badge variant="primary" class="animate-pulse">Active</Badge>
|
||||
{:else}
|
||||
<Badge tone="neutral">Idle</Badge>
|
||||
<Badge>Idle</Badge>
|
||||
{/if}
|
||||
</div>
|
||||
<p class="text-xs text-muted-fg">{thumbnailsDescription}</p>
|
||||
@@ -279,9 +279,9 @@
|
||||
<span class="text-sm font-semibold text-fg">AI analysis</span>
|
||||
</div>
|
||||
{#if analysisStatus.active}
|
||||
<Badge tone="primary" class="animate-pulse">Active</Badge>
|
||||
<Badge variant="primary" class="animate-pulse">Active</Badge>
|
||||
{:else}
|
||||
<Badge tone="neutral">Idle</Badge>
|
||||
<Badge>Idle</Badge>
|
||||
{/if}
|
||||
</div>
|
||||
<p class="text-xs text-muted-fg">
|
||||
|
||||
Reference in new issue
Block a user