mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-06-20 21:00:41 +00:00
Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -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
Reference in New Issue
Block a user