docs(AGENTS.md): 更新开发指南和本地化文件格式

修复中文语言文件缩进问题并更新自定义页脚说明
添加前端文件修改后的格式化建议到开发指南
This commit is contained in:
xiaojunnuo
2026-05-01 00:18:11 +08:00
parent 519743dbdb
commit 146098d9ce
3 changed files with 94 additions and 93 deletions
+1
View File
@@ -203,4 +203,5 @@ Get-ChildItem packages\ui\certd-client\src\views\certd
- 做前端任务时,先定位 `packages/ui/certd-client/src/views/certd` 下的页面,再找对应 `src/api` - 做前端任务时,先定位 `packages/ui/certd-client/src/views/certd` 下的页面,再找对应 `src/api`
- 做服务商、DNS、部署、通知相关任务时,先看 `packages/ui/certd-server/src/plugins`,再看 `packages/plugins/plugin-lib` 里的共享辅助能力。 - 做服务商、DNS、部署、通知相关任务时,先看 `packages/ui/certd-server/src/plugins`,再看 `packages/plugins/plugin-lib` 里的共享辅助能力。
- 做数据库结构变更时,添加或更新迁移脚本,不要依赖 TypeORM 自动同步。 - 做数据库结构变更时,添加或更新迁移脚本,不要依赖 TypeORM 自动同步。
- 前端 TS/Vue/locale 等文件改动后,优先只对本次改动文件运行项目现有自动格式化/修复,例如 `corepack pnpm --dir packages\ui\certd-client exec prettier --write <files>``corepack pnpm --dir packages\ui\certd-client exec eslint --fix <files>`;不要为了格式化无关文件而扩大 diff。项目保留了 `tslint` 依赖,但当前主要使用 ESLint + Prettier。
- 优先对改动包运行聚焦的测试或类型检查;只有跨包影响明显时再考虑全 monorepo 构建。 - 优先对改动包运行聚焦的测试或类型检查;只有跨包影响明显时再考虑全 monorepo 构建。
@@ -81,7 +81,7 @@ export default {
noticeHelper: "System notice, will be displayed on the login page", noticeHelper: "System notice, will be displayed on the login page",
noticePlaceholder: "System notice", noticePlaceholder: "System notice",
customFooter: "Custom Footer", customFooter: "Custom Footer",
customFooterHelper: "Custom site footer, displayed at the bottom of the page", customFooterHelper: "Custom site footer, displayed at the bottom of the page, support HTML format",
customFooterPlaceholder: "Custom footer content", customFooterPlaceholder: "Custom footer content",
reverseProxy: "Reverse Proxy List", reverseProxy: "Reverse Proxy List",
@@ -79,7 +79,7 @@ export default {
noticeHelper: "系统公告,将在首页显示", noticeHelper: "系统公告,将在首页显示",
noticePlaceholder: "系统公告", noticePlaceholder: "系统公告",
customFooter: "自定义页脚", customFooter: "自定义页脚",
customFooterHelper: "自定义站点页脚,将在页面底部显示", customFooterHelper: "自定义站点页脚,将在页面底部显示,支持HTML格式",
customFooterPlaceholder: "自定义页脚内容", customFooterPlaceholder: "自定义页脚内容",
reverseProxy: "反向代理列表", reverseProxy: "反向代理列表",