Files
bot_dev1 607689b9e6 feat(#183): 前端接入注册表 API 模型管理/版本发布改走服务端 localStorage 降级(E2)
对接 E1(#182)注册表 HTTP API,模型管理与版本发布从 localStorage 改走服务端:

- 新增 src/api/iaop/registry.ts:封装 E1 四接口(listModels/registerModel/
  promoteModel/rollbackModel),复用 FBA access token 注入(useAccessStore),
  走 iAOP 后端 /api/v1/registry/ 独立路径,原生 fetch + 超时 + 错误信息统一;
  导出 isRegistryUnavailable 供调用方降级判断。
- admin/models.vue:数据源切换为注册表 API(list/promote/rollback 全落服务端,
  两个浏览器互见);API 不可达时降级 localStorage 现有实现,UI 标注「离线演示模式」;
  检测到旧 iaop.admin.models.v1 数据且服务端空时提示一次性导入服务端。
- studio/version.vue:发布 = 注册新版本到注册表(registerModel),列表优先读服务端、
  失败降级静态演示;离线发布仅前端可见并标注。
- api/iaop/index.ts:导出 registry。

验收:TypeScript 全部文件转译通过(babel preset-typescript);pnpm build 受限于
本机无 node/pnpm 环境,待 CI/部署机执行(代码严格对齐 infer.ts/templates.ts
既有可构建模式)。fixes #183
2026-08-06 15:59:44 +08:00
..

FastAPI Best Architecture UI

Front-end Implementation of the FastAPI Best Architecture

Help

For more details, please check the official documentation

Contributors

Special thanks

License

This project is licensed under the terms of the MIT license