From 338c332743d9c500041d44c9472f1aefb919db25 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, 13 Jul 2026 10:41:37 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=B0=83=E6=95=B4=E9=83=A8?= =?UTF-8?q?=E5=88=86=E9=A1=B5=E9=9D=A2=E7=9A=84=E5=B8=83=E5=B1=80=E5=92=8C?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=20(#729)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/bili_sync/build.rs | 1 + .../components/filter-option-editor.svelte | 339 +++++++++--------- web/src/routes/settings/+page.svelte | 24 +- web/src/routes/video-sources/+page.svelte | 25 +- 4 files changed, 198 insertions(+), 191 deletions(-) diff --git a/crates/bili_sync/build.rs b/crates/bili_sync/build.rs index d8f91cb..5881cba 100644 --- a/crates/bili_sync/build.rs +++ b/crates/bili_sync/build.rs @@ -1,3 +1,4 @@ fn main() { + println!("cargo::rerun-if-changed=../../web/build"); built::write_built_file().expect("Failed to acquire build-time information"); } diff --git a/web/src/lib/components/filter-option-editor.svelte b/web/src/lib/components/filter-option-editor.svelte index 5b7df12..ad9d981 100644 --- a/web/src/lib/components/filter-option-editor.svelte +++ b/web/src/lib/components/filter-option-editor.svelte @@ -10,174 +10,179 @@ $props(); -
- -
-
- - -
-
- - -
-
- - -
-
- - -
-
-
- - - -
- -

排在前面的编码格式优先级更高

-
- {#each value.codecs as codec, index (index)} -
- {index + 1} - {codec} -
- - - -
-
- {/each} - - {#if value.codecs.length < 3} +
+
+ +

+ 根据质量过滤视频音频流,条件过于严苛可能导致视频无可用流 +

+
- -
- {#each ['AV1', 'HEV', 'AVC'] as codec (codec)} - {#if !value.codecs.includes(codec)} - - {/if} - {/each} -
+ +
- {/if} -
-
- - - -
- -

排除某些类型的特殊流

-
- - -
-
- - -
-
- - -
-
- - +
+ + +
+
+ + +
+
+ + +
+
+
+ + + +
+ +

排在前面的编码格式优先级更高

+
+ {#each value.codecs as codec, index (index)} +
+ {index + 1} + {codec} +
+ + + +
+
+ {/each} + + {#if value.codecs.length < 3} +
+ +
+ {#each ['AV1', 'HEV', 'AVC'] as codec (codec)} + {#if !value.codecs.includes(codec)} + + {/if} + {/each} +
+
+ {/if} +
+
+ + + +
+ +

排除某些类型的特殊流

+
+ + +
+
+ + +
+
+ + +
+
+ + +
diff --git a/web/src/routes/settings/+page.svelte b/web/src/routes/settings/+page.svelte index 1596aea..aab7d48 100644 --- a/web/src/routes/settings/+page.svelte +++ b/web/src/routes/settings/+page.svelte @@ -609,17 +609,6 @@
-
-
- -

- b 站接口频繁出现 -503 - 服务暂不可用,在通知器内通知容易刷屏,开启该选项以忽略此错误通知 -

-
- -
-

通知器管理

@@ -678,6 +667,19 @@
{/if}
+ + + +
+
+ +

+ 接口偶发 -503 服务暂不可用或 -504 + 服务调用超时,在通知器内容易刷屏,开启该选项以忽略此类错误通知 +

+
+ +
diff --git a/web/src/routes/video-sources/+page.svelte b/web/src/routes/video-sources/+page.svelte index b18de5e..ffc2471 100644 --- a/web/src/routes/video-sources/+page.svelte +++ b/web/src/routes/video-sources/+page.svelte @@ -607,23 +607,22 @@
{/if} -
-
- -
- -

关闭时继承全局过滤设置

-
-
- {#if editFilterOption} - - {/if} -
-
(editForm.rule = rule)} />
+ +
+
+ + +
+ {#if editFilterOption} +
+ +
+ {/if} +