feat: 视频源页显示最新视频时间 (#700)

This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2026-04-07 18:38:02 +08:00
committed by GitHub
parent 91ab64a068
commit 744bb536b3
4 changed files with 26 additions and 5 deletions

View File

@@ -224,6 +224,7 @@ export interface VideoSourceDetail {
ruleDisplay: string | null;
useDynamicApi: boolean | null;
enabled: boolean;
latestRowAt: string | null;
}
export interface VideoSourcesDetailsResponse {

View File

@@ -366,8 +366,9 @@
<Table.Row>
<Table.Head class="w-[20%]">名称</Table.Head>
<Table.Head class="w-[30%]">下载路径</Table.Head>
<Table.Head class="w-[15%]">最新视频时间</Table.Head>
<Table.Head class="w-[15%]">过滤规则</Table.Head>
<Table.Head class="w-[15%]">启用状态</Table.Head>
<Table.Head class="w-[10%]">启用状态</Table.Head>
<Table.Head class="w-[10%] text-right">操作</Table.Head>
</Table.Row>
</Table.Header>
@@ -387,6 +388,17 @@
</span>
</div>
</Table.Cell>
<Table.Cell>
{#if source.latestRowAt}
<Badge variant="secondary" class="flex w-fit items-center gap-1.5">
{new Date(source.latestRowAt).toLocaleString('zh-CN')}
</Badge>
{:else}
<Badge variant="secondary" class="flex w-fit items-center gap-1.5">
-
</Badge>
{/if}
</Table.Cell>
<Table.Cell>
{#if source.rule && source.rule.length > 0}
<Tooltip.Root disableHoverableContent={true}>