From 8c38723947f88579e67ffa79686cf37d9fbc8874 Mon Sep 17 00:00:00 2001 From: seaHi Date: Sun, 27 Sep 2026 15:30:58 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E5=90=8E?= =?UTF-8?q?=E5=8F=B0=E8=AE=BE=E7=BD=AE=E9=A1=B5=E9=9D=A2=E7=BB=93=E6=9E=84?= =?UTF-8?q?=E4=B8=8E=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/admin/settings/+page.svelte | 276 ++++++++++++------------- 1 file changed, 136 insertions(+), 140 deletions(-) diff --git a/src/routes/admin/settings/+page.svelte b/src/routes/admin/settings/+page.svelte index ccdfe59..b78ed59 100644 --- a/src/routes/admin/settings/+page.svelte +++ b/src/routes/admin/settings/+page.svelte @@ -64,29 +64,27 @@
{#if activeTab === 'basic'}
-
-

系统与安全环境

-
-
- 驱动框架 - SvelteKit 5 + Cloudflare -
-
- 当前管理员 - {data.user?.email || '未知用户'} -
-
- 数据库绑定 - {data.platformEnv} -
-
- R2存储绑定 - {data.r2Env} -
-
- 鉴权模式 - Cloudflare Access (Zero Trust) -
+

系统与安全环境

+
+
+ 驱动框架 + SvelteKit 5 + Cloudflare +
+
+ 当前管理员 + {data.user?.email || '未知用户'} +
+
+ 数据库绑定 + {data.platformEnv} +
+
+ R2存储绑定 + {data.r2Env} +
+
+ 鉴权模式 + Cloudflare Access (Zero Trust)
@@ -234,134 +232,130 @@ {#if activeTab === 'appearance'}
-
-

首页顶部主图与外观偏好

+

首页顶部主图与外观偏好

-
{ - return async ({ update }) => { - update({ reset: false }); - }; - }} - class="alias-form" - > + { + return async ({ update }) => { + update({ reset: false }); + }; + }} + class="alias-form" + > +
+ +
+ + {#if avatarEnabled}
- +
+ - 在网站首页顶部标题栏显示主图 / 站点头像 - -
- - {#if avatarEnabled} -
- -
- -
- {:else} - - {/if} - -
-
- -
+ {:else} + + {/if} + +
+ +
+
{/if} {#if activeTab === 'terms'}
-
-

个性化术语设定

-

- 您可以根据部署场景(如教学系统、文档库)自定义后台各模块的显示名称,例如将“文章”改为“实验手册”。 -

+

个性化术语设定

+

+ 您可以根据部署场景(如教学系统、文档库)自定义后台各模块的显示名称,例如将“文章”改为“实验手册”。 +

-
{ - return async ({ update }) => { - update({ reset: false }); - }; - }} - class="alias-form" - > -
-
- - -
-
- - -
+ { + return async ({ update }) => { + update({ reset: false }); + }; + }} + class="alias-form" + > +
+
+ +
+
+ + +
+
-
-
- - -
-
- - -
-
- - -
+
+
+ +
+
+ + +
+
+ + +
+
-
- -
- -
+
+ +
+
{:else if activeTab === 'analytics'} @@ -448,14 +442,16 @@ word-break: break-word; } - .settings-card h3 { - margin: 0 0 16px 0; + .settings-card > h3 { + margin: 0 0 12px 0; font-size: 1.2rem; + border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.1)); + padding-bottom: 10px; color: var(--text-color); - font-weight: 600; } - .settings-section .desc { + .settings-section .desc, + .settings-card > .desc { font-size: 0.9rem; color: var(--text-muted, rgba(0, 0, 0, 0.6)); margin-bottom: 24px;