Repository navigation
feat: 优化说明书缩略图与 PDF 阅读体验 - #28
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更说明
说明书上传与排序列表现在直接显示待上传图片、待上传 PDF 和已保存资料的缩略图,移动资料时预览会随资料一起移动。本地 PDF 仅按
application/pdfMIME 进入 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 大小提示全仓
npm run lint仍有 4 个与本 PR 无关的基线错误,位于Common.vue、AddBook.vue和ScanCodePage.vue。