Repository navigation
完善文档阅读缩放、翻译保护与 PDF 导出 - #960
Merged
Merged
Conversation
…-gestures-20261010 # Conflicts: # scripts/verify-userscript-build.mjs # vitest.coverage.config.ts
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 缩放、长文档导出和原格式下载也存在性能及完整性问题。本次完善文档阅读和导出链路,并加入已打开原文件的直接下载。
验证:最终提交的相关 50 个测试文件共 1858 条通过、1 条已有说明的跳过用例;7 个文档纯算法模块逐文件四项覆盖率均为 100%。类型检查、测试审计、Chrome/Firefox 构建、扩展清单、油猴构建及 verifier、文档构建全部通过。另有 13 条 HTTP 证据管理离线测试通过。
油猴使用同依赖、同锁文件、Node 24.19.0 独立主线基线对照:main 为 2,064,354 B,候选为 2,065,321 B,增加 967 B(0.0468%),保留 2,066,000 B 上限;裁剪文档专用扫描,不降低完整性检查。
验收边界:普通公开文档曾使用真实免费服务翻译并检查选定页面;300 页压力与取消验收使用 mock。免费服务仍有句意和专业术语误译;原版译页为图像,过长译文全文保存于批注。未逐页人工审阅所有大文档,也未验证实体触控板或 Firefox 运行时;本次合并复验覆盖相关测试及构建。