feat: 支持忽略常见错误的通知 (#719)

This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2026-06-08 18:36:31 +08:00
committed by GitHub
parent 6d8bf14880
commit 116ae79578
8 changed files with 61 additions and 7 deletions

View File

@@ -330,6 +330,7 @@ export interface Config {
video_name: string;
page_name: string;
notifiers: Notifier[] | null;
ignore_common_errors: boolean;
favorite_default_path: string;
collection_default_path: string;
submission_default_path: string;

View File

@@ -792,6 +792,17 @@
<!-- 通知设置 -->
<Tabs.Content value="notifiers" class="mt-6 space-y-6">
<div class="space-y-4">
<div class="flex items-center justify-between rounded-lg border p-4">
<div class="space-y-1">
<Label for="ignore-common-errors">忽略常见错误</Label>
<p class="text-muted-foreground text-sm">
b 站接口频繁出现 -503
服务暂不可用,在通知器内通知容易刷屏,开启该选项以忽略此错误通知
</p>
</div>
<Switch id="ignore-common-errors" bind:checked={formData.ignore_common_errors} />
</div>
<div class="flex items-center justify-between">
<div>
<h3 class="text-lg font-semibold">通知器管理</h3>