feat: PDF自绘阅读器+抓手(空格按住/H切换/顶部按钮)+缩放适应宽度(pdf.js worker注入bundle零服务端依赖)

This commit is contained in:
Aisland
2026-08-17 22:50:14 +08:00
parent eaaef0945e
commit b86b2361e8
12 changed files with 666 additions and 46 deletions
+8
View File
@@ -64,6 +64,10 @@ export const zh = {
'pane.openLater': '该类型暂不支持预览',
'file.loading': '加载中…',
'file.fail': '文件读取失败',
'pdf.pan': '抓手(按住空格临时拖动 / H 切换常开)',
'pdf.zoomIn': '放大',
'pdf.zoomOut': '缩小',
'pdf.fit': '适应宽度',
'pane.gitNotRepo': '当前目录不是 git 仓库',
'pane.gitClean': '工作区干净',
'pane.jobsEmpty': '当前会话暂无后台任务',
@@ -142,6 +146,10 @@ export const en = {
'pane.openLater': 'Preview not supported for this type',
'file.loading': 'Loading…',
'file.fail': 'Failed to read file',
'pdf.pan': 'Pan tool (hold Space to drag temporarily / H to toggle)',
'pdf.zoomIn': 'Zoom in',
'pdf.zoomOut': 'Zoom out',
'pdf.fit': 'Fit width',
'pane.gitNotRepo': 'Not a git repository',
'pane.gitClean': 'Working tree clean',
'pane.jobsEmpty': 'No background jobs in the current session',