chore: 前端小修改,ua 随机范围添加 windows (#470)

This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2025-09-25 00:50:17 +08:00
committed by GitHub
parent 3d25c6b321
commit 61c9e7de88
3 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ impl Client {
let mut headers = header::HeaderMap::new(); let mut headers = header::HeaderMap::new();
headers.insert( headers.insert(
header::USER_AGENT, header::USER_AGENT,
header::HeaderValue::from_static(ua::spoof_chrome_mac_ua()), header::HeaderValue::from_static(ua::spoof_chrome_ua()),
); );
headers.insert( headers.insert(
header::REFERER, header::REFERER,
+1 -1
View File
@@ -57,7 +57,7 @@
style: string; style: string;
} { } {
if (!shouldDownload) { if (!shouldDownload) {
// 被筛选规则排除,显示为“跳过” // 被过滤规则排除,显示为“跳过”
return { text: '跳过', style: 'bg-gray-100 text-gray-700' }; return { text: '跳过', style: 'bg-gray-100 text-gray-700' };
} }
const completed = downloadStatus.filter((status) => status === 7).length; const completed = downloadStatus.filter((status) => status === 7).length;
+8 -8
View File
@@ -265,9 +265,9 @@
<Table.Root> <Table.Root>
<Table.Header> <Table.Header>
<Table.Row> <Table.Row>
<Table.Head class="w-[25%]">名称</Table.Head> <Table.Head class="w-[20%]">名称</Table.Head>
<Table.Head class="w-[35%]">下载路径</Table.Head> <Table.Head class="w-[40%]">下载路径</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-[15%]">状态</Table.Head>
<Table.Head class="w-[10%] text-right">操作</Table.Head> <Table.Head class="w-[10%] text-right">操作</Table.Head>
</Table.Row> </Table.Row>
@@ -288,9 +288,9 @@
<div class="flex items-center gap-1"> <div class="flex items-center gap-1">
<Tooltip.Root> <Tooltip.Root>
<Tooltip.Trigger> <Tooltip.Trigger>
<div class="rounded bg-blue-100 px-2 py-1 text-xs text-blue-800"> <span class="text-muted-foreground text-sm"
{source.rule.length} 条规则 >{source.rule.length} 条规则</span
</div> >
</Tooltip.Trigger> </Tooltip.Trigger>
<Tooltip.Content> <Tooltip.Content>
<p class="text-xs">{source.ruleDisplay}</p> <p class="text-xs">{source.ruleDisplay}</p>
@@ -298,7 +298,7 @@
</Tooltip.Root> </Tooltip.Root>
</div> </div>
{:else} {:else}
<span class="text-muted-foreground text-sm"></span> <span class="text-muted-foreground text-sm">-</span>
{/if} {/if}
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
@@ -416,7 +416,7 @@
<AlertDialog.Header> <AlertDialog.Header>
<AlertDialog.Title>重新评估规则</AlertDialog.Title> <AlertDialog.Title>重新评估规则</AlertDialog.Title>
<AlertDialog.Description> <AlertDialog.Description>
确定要重新评估视频源 <strong>"{evaluateSource?.name}"</strong>筛选规则吗?<br /> 确定要重新评估视频源 <strong>"{evaluateSource?.name}"</strong>过滤规则吗?<br />
规则修改后默认仅对新视频生效,该操作可使用当前规则对数据库中已存在的历史视频进行重新评估,<span 规则修改后默认仅对新视频生效,该操作可使用当前规则对数据库中已存在的历史视频进行重新评估,<span
class="text-destructive font-medium">无法撤销</span class="text-destructive font-medium">无法撤销</span
><br /> ><br />