Files
Nexus/docs/audit/2026-06-11-remove-browser-push-ui.md
T
Nexus Agent 540712500f fix: 移除 iframe 浏览器并优化推送页服务器展示
删除内置浏览器前后端;推送页支持卡片/列表切换、点击名称复制与长名称展示。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-12 01:43:51 +08:00

49 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 审计 — 移除内置浏览器 + 推送页服务器 UI
**Changelog**: `docs/changelog/2026-06-11-remove-embedded-browser.md` · `docs/changelog/2026-06-11-push-server-name-display.md`
## 范围(文件清单)
| 文件 | 变更 |
|------|------|
| `frontend/src/App.vue` | 移除浏览器侧栏与 GlobalBrowserPanel |
| `frontend/src/router/index.ts` | 移除 `/browser` |
| `frontend/src/pages/ServersPage.vue` | 站点 → 新标签打开 |
| `frontend/src/components/GlobalBrowserPanel.vue` | 删除 |
| `frontend/src/composables/useGlobalBrowser.ts` | 删除 |
| `frontend/src/pages/BrowserPage.vue` | 删除 |
| `server/api/browser.py` | 删除 |
| `server/utils/browser_ui_state.py` | 删除 |
| `server/main.py` | 注销 browser 路由 |
| `frontend/src/components/push/PushServerGrid.vue` | 卡片/列表切换、名称复制 |
| `frontend/src/composables/push/usePushServerViewMode.ts` | 视图偏好 localStorage |
| `frontend/src/components/push/PushProgressList.vue` | 名称 truncate + title |
| `frontend/src/components/push/PushHistoryTable.vue` | 服务器列 slot |
| `frontend/src/components/push/PushPreviewDialog.vue` | 名称 truncate + title |
| `frontend/src/composables/push/usePushLogs.ts` | 列宽 |
## Step 3 规则扫描
| H | 规则 | 结论 |
|---|------|------|
| H1 | SSRF / 安全 | PASS — 删除 iframe 浏览器 API;推送页无新后端 |
| H2 | 无静默吞错 | PASS |
| H3 | clipboard | PASS — copy 失败有 snackbar |
| H4 | CUD 审计 | N/A — 删除 browser state API |
## Closure
| H | 判定 | 依据 |
|---|------|------|
| H1H4 | PASS | 前端 UI + 删除 dead code |
## DoD
- [x] `npm run type-check`
- [x] `import server.main`
- [ ] 生产 `/app/#/push` 验证列表切换与复制
## 验证
侧栏无浏览器;推送页卡片/列表切换;点击名称复制。