refactor: DevTools → ethend 重命名 + 加入生产环境

- 目录 devtools/ → ethend/
- CLI 脚本 devtools.sh/.bat → ethend.sh/.bat
- 环境变量 DEVTOOLS_PORT → ETHEND_PORT
- docker-compose.yml 新增 ethend 服务(生产部署)
- 同步更新全部文档、注释和配置文件

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-30 09:32:36 +08:00
parent 27187997b3
commit 365f5ceb2f
30 changed files with 455 additions and 189 deletions
+7 -7
View File
@@ -19,7 +19,7 @@
| 前端配置文件 | `frontend/web/vite.config.ts`, `frontend/web/tsconfig.json`, `frontend/web/tailwind.config.ts` 等 | 构建和样式配置 |
| 前端入口 | `frontend/web/index.html` | HTML 入口 |
| 公共资源 | `frontend/web/public/` | 静态资源(头像、背景图、manifest 等) |
| DevTools | `devtools/` | 管理面板源码 |
| ethend | `ethend/` | 管理面板源码 |
| Python 测试脚本 | `debug/cache/*.py` | 调试和端到端测试脚本 |
| Shell 调试脚本 | `debug/*.sh`, `debug/*.mjs` | Chromium 调试、诊断脚本 |
| 项目配置 | `.editorconfig`, `.gitignore`, `package.json` 等 | 项目级配置 |
@@ -36,7 +36,7 @@
|------|----------|------|
| 编译后的 Go 二进制 | `main`, `backend/*/main`, `backend/*/cmd/*` (不含 `.go`) | 平台相关,需在 Windows 重新编译 |
| Windows 可执行文件 | `*.exe` | 旧的 Windows 编译产物 |
| Node.js 依赖 | `node_modules/`, `frontend/web/node_modules/`, `frontend/node_modules/`, `devtools/node_modules/` | 体积大,通过 `npm install` 重新安装 |
| Node.js 依赖 | `node_modules/`, `frontend/web/node_modules/`, `frontend/node_modules/`, `ethend/node_modules/` | 体积大,通过 `npm install` 重新安装 |
| 前端构建产物 | `frontend/web/dist/` | 通过 `npm run build` 重新构建 |
| 敏感配置文件 | `backend/.env` | 包含 API 密钥和密码 |
| 锁文件 | `package-lock.json`, `frontend/web/package-lock.json`, `frontend/package-lock.json` | 跨平台 npm 依赖树可能不同 |
@@ -241,10 +241,10 @@ docker-compose -f docker-compose.dev.db.yml up -d
### 6.5 启动顺序
**推荐使用 DevTools 一键启动**(自动编译 + 按序启动 + 健康检查):
**推荐使用 ethend 一键启动**(自动编译 + 按序启动 + 健康检查):
```cmd
cd devtools
cd ethend
node src\index.js
:: 浏览器打开 http://localhost:9090,点击「一键启动」
```
@@ -252,10 +252,10 @@ node src\index.js
或使用启动脚本:
```cmd
devtools.bat
ethend.bat
```
DevTools 会按以下顺序自动编译并启动所有 6 个服务:
ethend 会按以下顺序自动编译并启动所有 6 个服务:
| 顺序 | 服务 | 端口 | 说明 |
|------|------|------|------|
@@ -266,7 +266,7 @@ DevTools 会按以下顺序自动编译并启动所有 6 个服务:
| 5 | gateway | 8080 | API 网关 / JWT / WebSocket |
| 6 | frontend | 5173 | React 开发服务器 |
> 每个步骤会自动等待健康检查通过后再启动下一个服务。如果 Go 二进制未编译,DevTools 会自动先编译再启动。
> 每个步骤会自动等待健康检查通过后再启动下一个服务。如果 Go 二进制未编译,ethend 会自动先编译再启动。
如需手动逐个启动: