feat: 支持设置快捷订阅的路径默认值 (#502)

This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2025-10-14 18:44:33 +08:00
committed by GitHub
parent c7e0d31811
commit 84d353365a
13 changed files with 153 additions and 80 deletions

View File

@@ -77,7 +77,7 @@
<div style="max-width: 450px; width: 100%;">
<SubscriptionCard
item={collection}
type="collection"
type="collections"
onSubscriptionSuccess={handleSubscriptionSuccess}
/>
</div>

View File

@@ -63,7 +63,7 @@
<div style="max-width: 450px; width: 100%;">
<SubscriptionCard
item={favorite}
type="favorite"
type="favorites"
onSubscriptionSuccess={handleSubscriptionSuccess}
/>
</div>

View File

@@ -78,7 +78,7 @@
<div style="max-width: 450px; width: 100%;">
<SubscriptionCard
item={upper}
type="upper"
type="submissions"
onSubscriptionSuccess={handleSubscriptionSuccess}
/>
</div>

View File

@@ -191,8 +191,6 @@
</div>
</div>
<Separator />
<div class="space-y-4">
<div class="space-y-2">
<Label for="backend-auth-token">后端 API 认证Token</Label>
@@ -209,6 +207,23 @@
<Separator />
<div class="grid grid-cols-1 gap-6 lg:grid-cols-2">
<div class="space-y-2">
<Label for="favorite-default-path">收藏夹快捷订阅路径模板</Label>
<Input id="favorite-default-path" bind:value={formData.favorite_default_path} />
</div>
<div class="space-y-2">
<Label for="collection-default-path">合集快捷订阅路径模板</Label>
<Input id="collection-default-path" bind:value={formData.collection_default_path} />
</div>
<div class="space-y-2">
<Label for="submission-default-path">UP 主投稿快捷订阅路径模板</Label>
<Input id="submission-default-path" bind:value={formData.submission_default_path} />
</div>
</div>
<Separator />
<div class="space-y-4">
<div class="flex items-center space-x-2">
<Switch id="cdn-sorting" bind:checked={formData.cdn_sorting} />