feat: web command console v1 (GET /console) (#57)
Co-authored-by: host <host@test.local>
This commit is contained in:
1 parent
c6e633d162
commit
e40c2c33bb
4 files changed
+441
No files matched your search
@@ -455,6 +455,18 @@ owner_user_id)` 只写 `project_members` 的 owner 成员记录,不建项目
|
||||
记录本身;项目记录(name 等)由 server 写 `projects` 表。两者配合
|
||||
才算一个完整项目,不要只调一处。
|
||||
|
||||
## 命令台(v1)
|
||||
|
||||
`GET /console` 出一个纯静态单页(`cloud/console.html`,无构建步骤),
|
||||
与控制面同源挂载。页面本身不走鉴权(只是个壳,没有 key 时调不到
|
||||
任何数据);数据一律凭用户在浏览器里填的 X-API-Key 调接口,key 只
|
||||
存在本浏览器 localStorage。v1 功能:项目列表/新建、任务列表(10 秒
|
||||
自动刷新)/新建(含 goal 模式)/详情(result/error、成本)/重试/
|
||||
取消/合并/提 PR、workers、健康状态。访问方式:v1 不走公网 nginx,
|
||||
经 SSH 隧道访问主机 127.0.0.1:8765/console(或 8766);公网入口
|
||||
(nginx 加 location)是后续决策——页面壳公开后数据仍凭 key,
|
||||
但是否公开仍须单独定。
|
||||
|
||||
## 测试
|
||||
|
||||
```bash
|
||||
|
||||
Reference in new issue
Block a user