Repository navigation
管理后台:把系统设置并入「访问与安全」并删除该页 - #128
Merged
todosdev[bot] merged 1 commit intoOct 18, 2026
Merged
Conversation
- Move the "allow setup page" toggle into AdminSecurityPage, read from and saved with the existing PUT /admin/system/settings alongside the other toggles - Move the database maintenance section below the save button on the same page - Remove the /admin/system route, its lazy import, and AdminSystemPage.tsx - Drop the now-unused admin.system i18n key; keep migrated keys such as setupPage*, dbMaintenance*, checkUpgradeDb, and dbUpToDate Checkpoint: 1u65_IEKpspptS0_ogv7b
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
web/src/pages/admin/AdminSecurityPage.tsxsetupPageEnabled状态,读值并入现有GET /admin/system/settings(setup_page_enabled ?? "1" !== "0"),保存并入现有PUT(值"1"/"0")。Toggle组件。POST /admin/setup,展示「已是最新 / 初始化成功 / 未授权 / 禁止 / 失败」,请求中禁用按钮。web/src/pages/admin/AdminPage.tsxtabs移除/admin/system及不再使用的Database图标 import(移动端共用同一tabs,自动一致)。web/src/App.tsxAdminSystemPage的 lazy import 与<Route path="system">,/admin/system现落入根级*兜底路由重定向到首页。web/src/pages/admin/AdminSystemPage.tsxAdminSecurityPage)。web/src/locales/en.json/zh.jsonadmin.system;被迁移部分继续使用的键(setupPage*、dbMaintenance*、checkUpgradeDb、checkingDb、dbUpToDate、dbInitialized、dbUpgrade*等)全部保留。Testing
pnpm install --frozen-lockfile✅pnpm lint✅(仅有 worker 与PasswordPromptDialog.tsx的既有 warning,改动文件无问题)pnpm format:check✅pnpm typecheck(web + worker)✅pnpm build(web)✅ —— 产物中已无AdminSystemPagechunk后端接口路径与字段名未改动;仅修改
web/src/**。