Refactor code structure for improved readability and maintainability

This commit is contained in:
shuaiplus
2026-02-15 02:45:57 +08:00
parent 326e13adf0
commit beefe2227e
3 changed files with 3 additions and 1194 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import { Env, DEFAULT_DEV_SECRET } from '../types';
import { StorageService } from '../services/storage';
import { jsonResponse, errorResponse } from '../utils/response';
import { handleRegisterPage } from './setupRegisterPage';
import { handleRegisterPage } from './setupPage';
type JwtSecretState = 'missing' | 'default' | 'too_short';
@@ -627,8 +627,8 @@ function renderRegisterPageHTML(jwtState: JwtSecretState | null): string {
s3Title: '同步策略(可跳过)',
s3CommonTitle: '共同前置步骤',
s3Common1: '如果还没 fork,请先 fork 本项目到你自己的 GitHub。',
s3Common2: 'Cloudflare 控制台 → Workers 和 Pages → 你的服务 → 设置 → 构建与部署 → 源代码,先解绑当前一键部署仓库。',
s3Common3: '在同一位置重新绑定到你自己 fork 仓库。',
s3Common2: 'Cloudflare 控制台 → Workers 和 Pages → NodeWarden → 设置 → 构建 → Git 存储库 → 断开联机。',
s3Common3: '在同一位置重新绑定到你自己 fork 仓库。',
manualSync: '手动同步',
autoSync: '自动同步',
s3ManualText: '手动同步:在 GitHub 网页端一键完成。',
File diff suppressed because it is too large Load Diff