Spaces:
Paused
Paused
FTA7700 commited on
Commit ·
ed3fb12
1
Parent(s): c866b7d
Row-align Language/Preview, helper/ID-fields, Rating order/Preview-helper via 3 mini 2-col grids; drop duplicate internal Image Settings title; site-wide title weight to font-normal
Browse files
web/src/components/RenderSettingsForm.vue
CHANGED
|
@@ -471,30 +471,59 @@ function toggleExclude(key: string, checked: boolean) {
|
|
| 471 |
</script>
|
| 472 |
|
| 473 |
<template>
|
| 474 |
-
<
|
| 475 |
-
<div class="grid grid-cols-1 lg:grid-cols-[300px_1fr] gap-6 items-
|
| 476 |
-
<div class="
|
| 477 |
-
|
| 478 |
-
|
| 479 |
-
|
| 480 |
-
|
| 481 |
-
|
| 482 |
-
|
| 483 |
-
|
| 484 |
-
>
|
| 485 |
-
|
| 486 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 487 |
</SelectTrigger>
|
| 488 |
<SelectContent>
|
| 489 |
-
<SelectItem
|
| 490 |
-
|
| 491 |
-
</SelectItem>
|
| 492 |
</SelectContent>
|
| 493 |
</Select>
|
| 494 |
</div>
|
| 495 |
-
<
|
|
|
|
|
|
|
|
|
|
| 496 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 497 |
|
|
|
|
|
|
|
| 498 |
<!-- Fanart.tv preference -->
|
| 499 |
<template v-if="currentSettings.fanart_available">
|
| 500 |
<div class="flex items-center gap-2">
|
|
@@ -510,7 +539,6 @@ function toggleExclude(key: string, checked: boolean) {
|
|
| 510 |
|
| 511 |
<div class="space-y-2 pt-2">
|
| 512 |
<div class="space-y-2">
|
| 513 |
-
<Label>Rating order</Label>
|
| 514 |
<p class="text-xs text-muted-foreground">Use the arrows to reorder. Higher items have priority.</p>
|
| 515 |
<RatingsOrderList v-model="editRatingsOrder" />
|
| 516 |
</div>
|
|
@@ -573,31 +601,6 @@ function toggleExclude(key: string, checked: boolean) {
|
|
| 573 |
|
| 574 |
<div class="space-y-4">
|
| 575 |
|
| 576 |
-
<!-- Preview by real ID -->
|
| 577 |
-
<div class="space-y-3">
|
| 578 |
-
<p class="text-sm font-semibold">Preview with real content</p>
|
| 579 |
-
<div class="flex flex-wrap items-center gap-4 max-w-md">
|
| 580 |
-
<div class="flex items-center gap-2">
|
| 581 |
-
<Label :for="inputId('preview-id-type')">ID type</Label>
|
| 582 |
-
<Select v-model="previewIdType">
|
| 583 |
-
<SelectTrigger :id="inputId('preview-id-type')" class="w-28">
|
| 584 |
-
<SelectValue />
|
| 585 |
-
</SelectTrigger>
|
| 586 |
-
<SelectContent>
|
| 587 |
-
<SelectItem value="imdb">IMDb</SelectItem>
|
| 588 |
-
<SelectItem value="tmdb">TMDB</SelectItem>
|
| 589 |
-
<SelectItem value="tvdb">TVDB</SelectItem>
|
| 590 |
-
</SelectContent>
|
| 591 |
-
</Select>
|
| 592 |
-
</div>
|
| 593 |
-
<div class="flex items-center gap-2 flex-1">
|
| 594 |
-
<Label :for="inputId('preview-id-value')">ID</Label>
|
| 595 |
-
<Input :id="inputId('preview-id-value')" v-model="previewIdValue" placeholder="e.g. tt0013442" />
|
| 596 |
-
</div>
|
| 597 |
-
</div>
|
| 598 |
-
<p class="text-xs text-muted-foreground">Leave blank to preview with the sample placeholder image below.</p>
|
| 599 |
-
</div>
|
| 600 |
-
|
| 601 |
<div class="grid grid-cols-1 xl:grid-cols-2 gap-4 items-stretch">
|
| 602 |
<!-- Section 2: Poster -->
|
| 603 |
<div class="rounded-md border p-4 space-y-3">
|
|
|
|
| 471 |
</script>
|
| 472 |
|
| 473 |
<template>
|
| 474 |
+
<!-- Row 1: Language | Preview title -->
|
| 475 |
+
<div class="grid grid-cols-1 lg:grid-cols-[300px_1fr] gap-6 items-center">
|
| 476 |
+
<div class="flex items-center gap-3">
|
| 477 |
+
<Label :for="inputId('lang')">Language</Label>
|
| 478 |
+
<Select
|
| 479 |
+
:model-value="editLang"
|
| 480 |
+
@update:model-value="editLang = $event as string"
|
| 481 |
+
>
|
| 482 |
+
<SelectTrigger :id="inputId('lang')" class="max-w-[200px]" data-testid="lang-select">
|
| 483 |
+
<SelectValue placeholder="Select language" />
|
| 484 |
+
</SelectTrigger>
|
| 485 |
+
<SelectContent>
|
| 486 |
+
<SelectItem v-for="lang in LANGUAGES" :key="lang.code" :value="lang.code">
|
| 487 |
+
{{ lang.code }} - {{ lang.name }}
|
| 488 |
+
</SelectItem>
|
| 489 |
+
</SelectContent>
|
| 490 |
+
</Select>
|
| 491 |
+
</div>
|
| 492 |
+
<p class="text-sm font-semibold">Preview with real content</p>
|
| 493 |
+
</div>
|
| 494 |
+
|
| 495 |
+
<!-- Row 2: helper text | ID fields -->
|
| 496 |
+
<div class="grid grid-cols-1 lg:grid-cols-[300px_1fr] gap-6 items-center">
|
| 497 |
+
<p class="text-xs text-muted-foreground">Best effort — falls back to English if unavailable.</p>
|
| 498 |
+
<div class="flex flex-wrap items-center gap-4 max-w-md">
|
| 499 |
+
<div class="flex items-center gap-2">
|
| 500 |
+
<Label :for="inputId('preview-id-type')">ID type</Label>
|
| 501 |
+
<Select v-model="previewIdType">
|
| 502 |
+
<SelectTrigger :id="inputId('preview-id-type')" class="w-28">
|
| 503 |
+
<SelectValue />
|
| 504 |
</SelectTrigger>
|
| 505 |
<SelectContent>
|
| 506 |
+
<SelectItem value="imdb">IMDb</SelectItem>
|
| 507 |
+
<SelectItem value="tmdb">TMDB</SelectItem>
|
| 508 |
+
<SelectItem value="tvdb">TVDB</SelectItem>
|
| 509 |
</SelectContent>
|
| 510 |
</Select>
|
| 511 |
</div>
|
| 512 |
+
<div class="flex items-center gap-2 flex-1">
|
| 513 |
+
<Label :for="inputId('preview-id-value')">ID</Label>
|
| 514 |
+
<Input :id="inputId('preview-id-value')" v-model="previewIdValue" placeholder="e.g. tt0013442" />
|
| 515 |
+
</div>
|
| 516 |
</div>
|
| 517 |
+
</div>
|
| 518 |
+
|
| 519 |
+
<!-- Row 3: Rating order label | Preview helper text -->
|
| 520 |
+
<div class="grid grid-cols-1 lg:grid-cols-[300px_1fr] gap-6 items-center">
|
| 521 |
+
<Label>Rating order</Label>
|
| 522 |
+
<p class="text-xs text-muted-foreground">Leave blank to preview with the sample placeholder image below.</p>
|
| 523 |
+
</div>
|
| 524 |
|
| 525 |
+
<div class="grid grid-cols-1 lg:grid-cols-[300px_1fr] gap-6 items-start mt-4">
|
| 526 |
+
<div class="space-y-4">
|
| 527 |
<!-- Fanart.tv preference -->
|
| 528 |
<template v-if="currentSettings.fanart_available">
|
| 529 |
<div class="flex items-center gap-2">
|
|
|
|
| 539 |
|
| 540 |
<div class="space-y-2 pt-2">
|
| 541 |
<div class="space-y-2">
|
|
|
|
| 542 |
<p class="text-xs text-muted-foreground">Use the arrows to reorder. Higher items have priority.</p>
|
| 543 |
<RatingsOrderList v-model="editRatingsOrder" />
|
| 544 |
</div>
|
|
|
|
| 601 |
|
| 602 |
<div class="space-y-4">
|
| 603 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 604 |
<div class="grid grid-cols-1 xl:grid-cols-2 gap-4 items-stretch">
|
| 605 |
<!-- Section 2: Poster -->
|
| 606 |
<div class="rounded-md border p-4 space-y-3">
|
web/src/views/ApiKeysView.vue
CHANGED
|
@@ -136,7 +136,7 @@ async function deleteKey(id: number) {
|
|
| 136 |
<template>
|
| 137 |
<div class="space-y-8">
|
| 138 |
<div class="flex items-center justify-between">
|
| 139 |
-
<h1 class="text-2xl font-
|
| 140 |
<RefreshButton :fetching="isFetching" @refresh="refetch()" />
|
| 141 |
</div>
|
| 142 |
|
|
|
|
| 136 |
<template>
|
| 137 |
<div class="space-y-8">
|
| 138 |
<div class="flex items-center justify-between">
|
| 139 |
+
<h1 class="text-2xl font-normal">API Keys</h1>
|
| 140 |
<RefreshButton :fetching="isFetching" @refresh="refetch()" />
|
| 141 |
</div>
|
| 142 |
|
web/src/views/DashboardView.vue
CHANGED
|
@@ -403,7 +403,7 @@ async function runRefreshConfirmed() {
|
|
| 403 |
|
| 404 |
<div class="space-y-4 pt-2 border-t">
|
| 405 |
<div class="flex items-center justify-between pt-4">
|
| 406 |
-
<h1 class="text-2xl font-
|
| 407 |
</div>
|
| 408 |
|
| 409 |
<div v-if="purgePending || auditPending" class="space-y-2">
|
|
|
|
| 403 |
|
| 404 |
<div class="space-y-4 pt-2 border-t">
|
| 405 |
<div class="flex items-center justify-between pt-4">
|
| 406 |
+
<h1 class="text-2xl font-normal">Purge</h1>
|
| 407 |
</div>
|
| 408 |
|
| 409 |
<div v-if="purgePending || auditPending" class="space-y-2">
|
web/src/views/KeySettingsView.vue
CHANGED
|
@@ -80,11 +80,11 @@ function handleLogout() {
|
|
| 80 |
<div class="w-full max-w-6xl space-y-6">
|
| 81 |
<div class="flex items-center justify-between">
|
| 82 |
<div>
|
| 83 |
-
<h1 class="text-2xl font-bold">Image Settings</h1>
|
| 84 |
<p v-if="keyName" class="text-sm text-muted-foreground">
|
| 85 |
{{ keyName }}
|
| 86 |
<span class="font-mono">({{ keyPrefix }}...)</span>
|
| 87 |
</p>
|
|
|
|
| 88 |
</div>
|
| 89 |
<Button v-if="auth.disablePublicPages" as-child variant="outline" size="sm">
|
| 90 |
<router-link to="/docs">
|
|
|
|
| 80 |
<div class="w-full max-w-6xl space-y-6">
|
| 81 |
<div class="flex items-center justify-between">
|
| 82 |
<div>
|
|
|
|
| 83 |
<p v-if="keyName" class="text-sm text-muted-foreground">
|
| 84 |
{{ keyName }}
|
| 85 |
<span class="font-mono">({{ keyPrefix }}...)</span>
|
| 86 |
</p>
|
| 87 |
+
<h1 class="text-2xl font-normal">Image Settings</h1>
|
| 88 |
</div>
|
| 89 |
<Button v-if="auth.disablePublicPages" as-child variant="outline" size="sm">
|
| 90 |
<router-link to="/docs">
|
web/src/views/LoginView.vue
CHANGED
|
@@ -68,7 +68,7 @@ function toggleMode() {
|
|
| 68 |
<main v-if="!checking" class="min-h-screen flex flex-col items-center justify-center gap-6 px-4 py-8">
|
| 69 |
<div class="w-full max-w-sm space-y-6">
|
| 70 |
<div class="text-center">
|
| 71 |
-
<h1 class="text-2xl font-
|
| 72 |
<p class="text-xs text-muted-foreground">v{{ version }}</p>
|
| 73 |
</div>
|
| 74 |
|
|
|
|
| 68 |
<main v-if="!checking" class="min-h-screen flex flex-col items-center justify-center gap-6 px-4 py-8">
|
| 69 |
<div class="w-full max-w-sm space-y-6">
|
| 70 |
<div class="text-center">
|
| 71 |
+
<h1 class="text-2xl font-normal">OpenPosterDB</h1>
|
| 72 |
<p class="text-xs text-muted-foreground">v{{ version }}</p>
|
| 73 |
</div>
|
| 74 |
|
web/src/views/SettingsView.vue
CHANGED
|
@@ -70,7 +70,7 @@ async function toggleFreeApiKey() {
|
|
| 70 |
<template>
|
| 71 |
<div class="space-y-8">
|
| 72 |
<div class="flex items-center justify-between">
|
| 73 |
-
<h1 class="text-2xl font-
|
| 74 |
<RefreshButton :fetching="isFetching" @refresh="refetch()" />
|
| 75 |
</div>
|
| 76 |
|
|
@@ -106,7 +106,7 @@ async function toggleFreeApiKey() {
|
|
| 106 |
</div>
|
| 107 |
|
| 108 |
<div class="rounded-lg border p-6 space-y-4">
|
| 109 |
-
<h2 class="text-lg font-
|
| 110 |
<p class="text-sm text-muted-foreground">
|
| 111 |
These defaults apply to all API keys unless overridden per-key.
|
| 112 |
</p>
|
|
|
|
| 70 |
<template>
|
| 71 |
<div class="space-y-8">
|
| 72 |
<div class="flex items-center justify-between">
|
| 73 |
+
<h1 class="text-2xl font-normal">Settings</h1>
|
| 74 |
<RefreshButton :fetching="isFetching" @refresh="refetch()" />
|
| 75 |
</div>
|
| 76 |
|
|
|
|
| 106 |
</div>
|
| 107 |
|
| 108 |
<div class="rounded-lg border p-6 space-y-4">
|
| 109 |
+
<h2 class="text-lg font-normal">Global Image Settings</h2>
|
| 110 |
<p class="text-sm text-muted-foreground">
|
| 111 |
These defaults apply to all API keys unless overridden per-key.
|
| 112 |
</p>
|
web/src/views/SetupView.vue
CHANGED
|
@@ -45,7 +45,7 @@ async function handleSetup() {
|
|
| 45 |
<main class="min-h-screen flex items-center justify-center">
|
| 46 |
<div class="w-full max-w-sm space-y-6">
|
| 47 |
<div class="text-center">
|
| 48 |
-
<h1 class="text-2xl font-
|
| 49 |
<p class="text-muted-foreground">Create your admin account</p>
|
| 50 |
</div>
|
| 51 |
|
|
|
|
| 45 |
<main class="min-h-screen flex items-center justify-center">
|
| 46 |
<div class="w-full max-w-sm space-y-6">
|
| 47 |
<div class="text-center">
|
| 48 |
+
<h1 class="text-2xl font-normal">OpenPosterDB Setup</h1>
|
| 49 |
<p class="text-muted-foreground">Create your admin account</p>
|
| 50 |
</div>
|
| 51 |
|