From 98d62e490c73d5c13a015a893fca1103ea82f90b Mon Sep 17 00:00:00 2001 From: anonsaber Date: Wed, 30 Sep 2026 23:35:32 +0800 Subject: [PATCH] =?UTF-8?q?docs(spa):=20=E7=99=BB=E5=BD=95=E5=8D=A1?= =?UTF-8?q?=E6=96=87=E6=A1=88=E5=8E=BB=E9=87=8D=EF=BC=8C=E5=8F=AA=E6=94=B9?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E4=B8=B2=E4=B8=8D=E5=8A=A8=E7=BB=93=E6=9E=84?= =?UTF-8?q?=E4=B8=8E=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 授权卡里同一件事被讲了三遍:CONFIG_ENCRYPTION_KEY 在正文、占位符、 顶部横幅各出现一次;「不写 localStorage」在提示里说、在 setup 隐私说明里 又说一遍;「只在页面内存」在正文、提示、会话过期默认文案里各出现一次。 收敛到每句话只出现一处(正文讲动作与 TTL,占位符只提示粘贴,提示只讲 重新授权,存储与内存的事实保留在正文与 setup 隐私说明里): - auth.bodyPre 输入启动必填的环境变量 -> 输入 - auth.bodyPost 服务端会签发有效期 15 分钟的管理会话;该值与会话只在当前页面内存中使用 -> 管理会话有效期 15 分钟,只存在当前页面内存中 - auth.placeholder 输入 CONFIG_ENCRYPTION_KEY 的值 -> 粘贴该值 - auth.hint 不会写入 localStorage、sessionStorage 或 Cookie。关闭或刷新页面后需要重新授权 -> 关闭或刷新页面后需要重新授权 EN 字典同步,web/index.html 里 3 处 data-i18n 回退文案跟着改。 键名、DOM 结构、data-i18n 键、逻辑与校验全部未动。 node --check web/config.js 通过;node --test web/config.test.mjs 6/6 通过。 --- web/config.js | 16 ++++++++-------- web/index.html | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/web/config.js b/web/config.js index 73bba55..ddbf8ee 100644 --- a/web/config.js +++ b/web/config.js @@ -30,13 +30,13 @@ "setup.fetchError": "Unable to read the service startup status right now. To protect management credentials, the authorization entry stays hidden; confirm the service is available and re-check.", "auth.eyebrow": "Authorization required", "auth.title": "Create admin session", - "auth.bodyPre": "Enter the value of the required startup key ", - "auth.bodyPost": ". The server issues a 15-minute admin session; the key and session exist only in the current page memory.", + "auth.bodyPre": "Enter ", + "auth.bodyPost": ". The session lasts 15 minutes and lives only in this page's memory.", "auth.label": "Business encryption key", - "auth.placeholder": "Enter the CONFIG_ENCRYPTION_KEY value", + "auth.placeholder": "Paste the value", "auth.submit": "Create session", "auth.submitBusy": "Authorizing…", - "auth.hint": "Never written to localStorage, sessionStorage or cookies. You must re-authorize after closing or refreshing the page.", + "auth.hint": "You must re-authorize after closing or refreshing the page.", "config.aria": "Business configuration and runtime parameters", "session.active": "Admin session active", "session.expiryDefault": "Session kept only in current page memory", @@ -232,13 +232,13 @@ "setup.fetchError": "暂时无法读取服务启动状态。为保护管理凭据,授权入口保持隐藏;请确认服务可用后重新检查。", "auth.eyebrow": "需要授权", "auth.title": "创建管理会话", - "auth.bodyPre": "输入启动必填的环境变量 ", - "auth.bodyPost": " 的值。服务端会签发有效期 15 分钟的管理会话;该值与会话只在当前页面内存中使用。", + "auth.bodyPre": "输入 ", + "auth.bodyPost": ",管理会话有效期 15 分钟,只存在当前页面内存中。", "auth.label": "业务加密密钥", - "auth.placeholder": "输入 CONFIG_ENCRYPTION_KEY 的值", + "auth.placeholder": "粘贴该值", "auth.submit": "创建会话", "auth.submitBusy": "正在授权…", - "auth.hint": "不会写入 localStorage、sessionStorage 或 Cookie。关闭或刷新页面后需要重新授权。", + "auth.hint": "关闭或刷新页面后需要重新授权。", "config.aria": "业务配置与运行参数", "session.active": "管理会话有效", "session.expiryDefault": "会话仅保存在当前页面内存", diff --git a/web/index.html b/web/index.html index 5984ee1..a822826 100644 --- a/web/index.html +++ b/web/index.html @@ -54,14 +54,14 @@

Authorization required

Create admin session

-

Enter the value of the required startup key CONFIG_ENCRYPTION_KEY. The server issues a 15-minute admin session; the key and session exist only in the current page memory.

+

Enter CONFIG_ENCRYPTION_KEY. The session lasts 15 minutes and lives only in this page's memory.

- +
-

Never written to localStorage, sessionStorage or cookies. You must re-authorize after closing or refreshing the page.

+

You must re-authorize after closing or refreshing the page.