Skip to content

Commit 0e9924d

Browse files
authored
docs(ui): list api.js and i18n.js in the ui file structure (#364)
The "文件结构" block in ui/README.md is an exhaustive listing of ui/ (it even lists data.js and README.md), but it stopped at five entries when ui/js/api.js (#78) and ui/js/i18n.js (#86) were added on 2026-08-18 and never came back to it. The block is now missing two modules that the same document discusses at length elsewhere (api.js: the front-end's only backend client; i18n.js: the zh/en language pack), so the file contradicts itself. List both, in the order index.html loads its scripts.
1 parent 8aca8a3 commit 0e9924d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎ui/README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ python3 -m http.server 8000 --directory ui
6363
ui/
6464
├── index.html # 入口(登录页 + 应用外壳 + 全部视图)
6565
├── css/style.css # 设计系统(深色主题 · 强调色 #4ecdc4 · 响应式预留 · v1.15 视觉美化)
66+
├── js/api.js # API 客户端(封装 fetch:api.get/post/patch/del,自动带 Bearer token;401 → 清 token 回登录页)
6667
├── js/data.js # 内嵌数据(仅游客市场 MARKET + 上架表单兜底 MODELS/PLANS/PROVIDERS/PROVIDER_LABELS;登录态 mock 已清零 v1.22)
68+
├── js/i18n.js # 语言包(零依赖,I18N zh/en 双词典 + t() + data-i18n 静态文案 + 后端错误映射)
6769
├── js/app.js # 交互逻辑(导航、筛选、表单、分页、Toast;v1.15 内联 SVG 图标 + 空状态组件)
6870
└── README.md # 本文件
6971
```

0 commit comments

Comments
 (0)