feat(web): unify web entry, preset config, SSE streaming and dual-pane live logs
This commit is contained in:
@@ -11,12 +11,14 @@ Web 工作台将现有 CLI 能力封装为可视化页面与 REST API,支持
|
||||
5. 下载输出文件、配置 API Key 与输出目录
|
||||
6. 工作台展示系统健康状态(输出目录可写性、API Key 配置、任务统计)
|
||||
|
||||
批量抓取策略:多个项目按顺序执行(前一个项目完成后才开始下一个)。
|
||||
|
||||
## 启动方式
|
||||
|
||||
在仓库根目录执行:
|
||||
|
||||
```bash
|
||||
mvn spring-boot:run -Dspring-boot.run.mainClass=com.svnlog.WebApplication
|
||||
mvn spring-boot:run -Dspring-boot.run.mainClass=com.svnlog.web.WebApplication
|
||||
```
|
||||
|
||||
启动后访问:
|
||||
@@ -48,6 +50,12 @@ http://localhost:8080
|
||||
|
||||
建议在生产环境优先使用环境变量,避免敏感信息暴露。
|
||||
|
||||
## SVN 预设来源与调用方式
|
||||
|
||||
- SVN 地址统一维护在 `application.properties` 的 `svn.presets[*]` 中。
|
||||
- 前端不再传 SVN URL,业务接口统一传 `presetId`,后端按 `presetId` 解析地址。
|
||||
- `GET /api/svn/presets` 仅返回 `id` 与 `name`(不返回 `url`)。
|
||||
|
||||
## 主要 API
|
||||
|
||||
- `POST /api/svn/test-connection`
|
||||
@@ -57,6 +65,7 @@ http://localhost:8080
|
||||
- `GET /api/tasks`
|
||||
- `GET /api/tasks/query?status=&type=&keyword=&page=1&size=10`
|
||||
- `GET /api/tasks/{taskId}`
|
||||
- `GET /api/tasks/{taskId}/stream`(SSE 实时输出)
|
||||
- `POST /api/tasks/{taskId}/cancel`
|
||||
- `GET /api/health`
|
||||
- `GET /api/health/details`
|
||||
|
||||
Reference in New Issue
Block a user