refactor: 支持在管理后台中动态使用文章别名配置
continuous-integration/drone/push Build is passing

This commit is contained in:
seahi committed 2026-08-15 15:25:07 +08:00
1 parent b7ccf5d78c
commit 2955cfde64
3 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -101,7 +101,7 @@
<th>ID</th> <th>ID</th>
<th>{$page.data.aliases?.category || '分类'}名称</th> <th>{$page.data.aliases?.category || '分类'}名称</th>
<th>别名</th> <th>别名</th>
<th>关联文章数</th> <th>关联{$page.data.aliases?.post || '文章'}数</th>
<th>操作</th> <th>操作</th>
</tr> </tr>
</thead> </thead>
@@ -171,7 +171,7 @@
const form = e.target as HTMLFormElement; const form = e.target as HTMLFormElement;
const submitter = e.submitter; const submitter = e.submitter;
const confirmed = await confirmState.show( const confirmed = await confirmState.show(
`确定要删除${$page.data.aliases?.category || '分类'} "${category.name}" 吗?删除后相关文章将归为未${$page.data.aliases?.category || '分类'}。` `确定要删除${$page.data.aliases?.category || '分类'} "${category.name}" 吗?删除后相关${$page.data.aliases?.post || '文章'}将归为未${$page.data.aliases?.category || '分类'}。`
); );
if (confirmed) { if (confirmed) {
form.dataset.confirmed = 'true'; form.dataset.confirmed = 'true';
+2 -2
View File
@@ -98,7 +98,7 @@
<th>ID</th> <th>ID</th>
<th>{$page.data.aliases?.series || '系列'}名称</th> <th>{$page.data.aliases?.series || '系列'}名称</th>
<th>别名</th> <th>别名</th>
<th>关联文章数</th> <th>关联{$page.data.aliases?.post || '文章'}数</th>
<th>操作</th> <th>操作</th>
</tr> </tr>
</thead> </thead>
@@ -167,7 +167,7 @@
const form = event.target as HTMLFormElement; const form = event.target as HTMLFormElement;
const submitter = event.submitter; const submitter = event.submitter;
const confirmed = await confirmState.show( const confirmed = await confirmState.show(
`确定删除系列“${item.name}”吗?相关文章会保留,但不再属于任何系列。` `确定删除${$page.data.aliases?.series || '系列'}“${item.name}”吗?相关${$page.data.aliases?.post || '文章'}会保留,但不再属于任何${$page.data.aliases?.series || '系列'}。`
); );
if (confirmed) { if (confirmed) {
form.dataset.confirmed = 'true'; form.dataset.confirmed = 'true';
+1 -1
View File
@@ -53,7 +53,7 @@
<tr> <tr>
<th>ID</th> <th>ID</th>
<th>{$page.data.aliases?.tag || '标签'}名称</th> <th>{$page.data.aliases?.tag || '标签'}名称</th>
<th>关联文章数</th> <th>关联{$page.data.aliases?.post || '文章'}数</th>
<th>操作</th> <th>操作</th>
</tr> </tr>
</thead> </thead>