From 22bc6bb3e83f7f48fc939f84e5527dcf8a419c2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=B4=80=E1=B4=8D=E1=B4=9B=E1=B4=8F=E1=B4=80=E1=B4=87?= =?UTF-8?q?=CA=80?= Date: Mon, 26 Jan 2026 20:11:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E6=BA=90=E9=A1=B5=E9=9D=A2=20UI=EF=BC=8C=E6=8F=90=E9=AB=98?= =?UTF-8?q?=E5=8F=AF=E8=AF=BB=E6=80=A7=20(#623)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/routes/video-sources/+page.svelte | 156 +++++++++++++--------- 1 file changed, 93 insertions(+), 63 deletions(-) diff --git a/web/src/routes/video-sources/+page.svelte b/web/src/routes/video-sources/+page.svelte index 03d738f..8992a82 100644 --- a/web/src/routes/video-sources/+page.svelte +++ b/web/src/routes/video-sources/+page.svelte @@ -4,6 +4,7 @@ import { Switch } from '$lib/components/ui/switch/index.js'; import { Input } from '$lib/components/ui/input/index.js'; import { Label } from '$lib/components/ui/label/index.js'; + import { Badge } from '$lib/components/ui/badge/index.js'; import * as Table from '$lib/components/ui/table/index.js'; import * as Tabs from '$lib/components/ui/tabs/index.js'; import * as Dialog from '$lib/components/ui/dialog/index.js'; @@ -15,6 +16,8 @@ import PlusIcon from '@lucide/svelte/icons/plus'; import InfoIcon from '@lucide/svelte/icons/info'; import TrashIcon2 from '@lucide/svelte/icons/trash-2'; + import CheckCircleIcon from '@lucide/svelte/icons/check-circle'; + import XCircleIcon from '@lucide/svelte/icons/x-circle'; import * as Tooltip from '$lib/components/ui/tooltip/index.js'; import { toast } from 'svelte-sonner'; import { setBreadcrumb } from '$lib/stores/breadcrumb'; @@ -315,10 +318,7 @@ 名称 下载路径 过滤规则 - 启用状态 - {#if key === 'submissions'} - 使用动态 API - {/if} + 启用状态 操作 @@ -327,73 +327,103 @@ {source.name} - - {source.path || '未设置'} - + + + {source.path || '未设置'} + + {#if source.rule && source.rule.length > 0} -
- - - {source.rule.length} 条规则 - - -

{source.ruleDisplay}

-
-
-
+ + + + {source.rule.length} 条规则 + + + +

{source.ruleDisplay}

+
+
{:else} - - + + - + {/if}
-
- -
-
- {#if key === 'submissions'} - -
- {#if source.useDynamicApi !== null} - - {/if} -
-
- {/if} - - - - {#if activeTab !== 'watch_later'} - + + 已启用{#if key === 'submissions' && source.useDynamicApi !== null}{source.useDynamicApi + ? '(动态 API)' + : ''}{/if} + + {:else} + + + 已禁用 + + {/if} + + + + + + + + +

编辑

+
+
+ + + + + +

重新评估规则

+
+
+ {#if activeTab !== 'watch_later'} + + + + + +

删除

+
+
{/if}
@@ -438,7 +468,7 @@ 编辑视频源: {editingSource?.name || ''}