Skip to content

feat: 优化说明书缩略图与 PDF 阅读体验 - #28

Merged
mcoder2014 merged 4 commits into
masterfrom
feat/cq/manuals_ui
Sep 19, 2026
Merged

mcoder2014 merged 4 commits into
masterfrom
feat/cq/manuals_ui

Conversation

@mcoder2014

Copy link
Copy Markdown
Owner

变更说明

说明书上传与排序列表现在直接显示待上传图片、待上传 PDF 和已保存资料的缩略图,移动资料时预览会随资料一起移动。本地 PDF 仅按 application/pdf MIME 进入 iframe,避免扩展名伪装的 HTML/SVG 在同源 blob 中执行。

说明书详情页内嵌浏览器原生 PDF 阅读器,同时保留新窗口打开和下载入口;资料序号、类型和原始文件名调整为辅助信息,减少对正文阅读的干扰。API、数据表、权限模型和文件响应规则均未修改。

验证

  • npm run test:frontend:92/92 通过
  • node --test test/manuals-browser.cjs:9/9 通过,包含 320 px 布局、缩略图排序与释放、伪 PDF XSS、生产同款 CSP 下的 Chrome PDF 阅读器
  • npx eslint src/views/ManualEditor.vue src/views/ManualDetail.vue test/manuals-browser.cjs:通过
  • VUE_APP_API_BASE_URL=/ npm run build:通过,仅有既有 caniuse-lite 和 bundle 大小提示
  • 独立 Review Agent 最终结论:Ready to merge,Critical/Important/Minor 均为 0

全仓 npm run lint 仍有 4 个与本 PR 无关的基线错误,位于 Common.vue、AddBook.vue 和 ScanCodePage.vue。

@mcoder2014
mcoder2014 merged commit f125d3f into master Sep 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant