dsh-document-reader 0.0.0-stage → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +84 -2
- package/client.js +3652 -0
- package/client.pdfjs.js +21278 -0
- package/client.vendor.js +41 -0
- package/cordis.patch.yml +10 -0
- package/icon.svg +11 -0
- package/index.js +1414 -0
- package/locale/en.json +41 -0
- package/locale/zh.json +41 -0
- package/package.json +50 -3
package/locale/en.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "Document Reader",
|
|
4
|
+
"description": "A dedicated reader panel for local files: PDF, DOCX, EPUB, HTML, Markdown, text, images and Office decks/sheets, with in-document search, selection translation (Bing / Google / your DSH model), editing, rename, recent files, and a doc_reader agent tool plus chat context injection."
|
|
5
|
+
},
|
|
6
|
+
"panel": {
|
|
7
|
+
"title": "Reader",
|
|
8
|
+
"placeholder": "Type an absolute local file path and press Enter…",
|
|
9
|
+
"open": "Open",
|
|
10
|
+
"browse": "Browse files",
|
|
11
|
+
"recent": "Recent files",
|
|
12
|
+
"recentEmpty": "No files opened yet",
|
|
13
|
+
"clearRecent": "Clear recent files",
|
|
14
|
+
"error": "Cannot open",
|
|
15
|
+
"unsupported": "Unsupported file type",
|
|
16
|
+
"notFound": "File not found",
|
|
17
|
+
"loading": "Loading…",
|
|
18
|
+
"parentDir": "Parent folder",
|
|
19
|
+
"emptyDir": "No readable files in this folder",
|
|
20
|
+
"home": "Home",
|
|
21
|
+
"outline": "Outline",
|
|
22
|
+
"search": "Search",
|
|
23
|
+
"searchPrev": "Previous",
|
|
24
|
+
"searchNext": "Next",
|
|
25
|
+
"searchCount": "{found} matches",
|
|
26
|
+
"prevPage": "Previous page",
|
|
27
|
+
"nextPage": "Next page",
|
|
28
|
+
"pageOf": "Page {page} of {total}",
|
|
29
|
+
"zoomIn": "Zoom in",
|
|
30
|
+
"zoomOut": "Zoom out",
|
|
31
|
+
"zoomReset": "Reset zoom",
|
|
32
|
+
"rotateLeft": "Rotate left",
|
|
33
|
+
"rotateRight": "Rotate right",
|
|
34
|
+
"fitWindow": "Fit window",
|
|
35
|
+
"pickFile": "Choose file",
|
|
36
|
+
"dropHint": "Paste a supported file path above to open it",
|
|
37
|
+
"openInReader": "Open in reader",
|
|
38
|
+
"commandSearch": "Search",
|
|
39
|
+
"commandRecent": "Recent docs"
|
|
40
|
+
}
|
|
41
|
+
}
|
package/locale/zh.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "文档阅读器",
|
|
4
|
+
"description": "独立阅读面板:PDF、DOCX、EPUB、HTML、Markdown、文本、图片与 Office 演示稿/表格;支持文内搜索、选段翻译(必应/Google/DSH 模型)、编辑、重命名、最近文件,并提供 doc_reader 对话工具与上下文注入。"
|
|
5
|
+
},
|
|
6
|
+
"panel": {
|
|
7
|
+
"title": "阅读器",
|
|
8
|
+
"placeholder": "输入本地文件绝对路径后回车…",
|
|
9
|
+
"open": "打开",
|
|
10
|
+
"browse": "浏览文件",
|
|
11
|
+
"recent": "最近文件",
|
|
12
|
+
"recentEmpty": "还没有打开过文件",
|
|
13
|
+
"clearRecent": "清空最近文件",
|
|
14
|
+
"error": "无法打开",
|
|
15
|
+
"unsupported": "不支持的文件类型",
|
|
16
|
+
"notFound": "文件不存在",
|
|
17
|
+
"loading": "加载中…",
|
|
18
|
+
"parentDir": "上一级",
|
|
19
|
+
"emptyDir": "此目录下没有可读文件",
|
|
20
|
+
"home": "主目录",
|
|
21
|
+
"outline": "大纲",
|
|
22
|
+
"search": "搜索",
|
|
23
|
+
"searchPrev": "上一个",
|
|
24
|
+
"searchNext": "下一个",
|
|
25
|
+
"searchCount": "{found} 处",
|
|
26
|
+
"prevPage": "上一页",
|
|
27
|
+
"nextPage": "下一页",
|
|
28
|
+
"pageOf": "第 {page} / {total} 页",
|
|
29
|
+
"zoomIn": "放大",
|
|
30
|
+
"zoomOut": "缩小",
|
|
31
|
+
"zoomReset": "重置缩放",
|
|
32
|
+
"rotateLeft": "左转",
|
|
33
|
+
"rotateRight": "右转",
|
|
34
|
+
"fitWindow": "适应窗口",
|
|
35
|
+
"pickFile": "选择文件",
|
|
36
|
+
"dropHint": "把支持的文件路径粘贴到上方打开",
|
|
37
|
+
"openInReader": "在阅读器打开",
|
|
38
|
+
"commandSearch": "搜索",
|
|
39
|
+
"commandRecent": "最近文档"
|
|
40
|
+
}
|
|
41
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-document-reader",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Document & image reader panel for DeepSeek Harness — PDF/DOCX/EPUB/HTML/Markdown/text/images/Office, selection translate (Bing / Google / your DSH model), doc_reader agent tool, chat context injection, /doc command.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "wangjianghu",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/wangjianghu/dsh-document-reader.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": "https://github.com/wangjianghu/dsh-document-reader/issues",
|
|
13
|
+
"homepage": "https://github.com/wangjianghu/dsh-document-reader#readme",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"dsh",
|
|
16
|
+
"deepseek-harness",
|
|
17
|
+
"reader",
|
|
18
|
+
"pdf",
|
|
19
|
+
"docx",
|
|
20
|
+
"epub",
|
|
21
|
+
"translate"
|
|
22
|
+
],
|
|
23
|
+
"exports": {
|
|
24
|
+
".": "./index.js",
|
|
25
|
+
"./client": "./client.js",
|
|
26
|
+
"./client.vendor.js": "./client.vendor.js",
|
|
27
|
+
"./client.pdfjs.js": "./client.pdfjs.js",
|
|
28
|
+
"./locale/*.json": "./locale/*.json",
|
|
29
|
+
"./icon": "./icon.svg"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"index.js",
|
|
33
|
+
"client.js",
|
|
34
|
+
"client.vendor.js",
|
|
35
|
+
"client.pdfjs.js",
|
|
36
|
+
"cordis.patch.yml",
|
|
37
|
+
"locale/*.json",
|
|
38
|
+
"icon.svg"
|
|
39
|
+
],
|
|
40
|
+
"dsh": {
|
|
41
|
+
"bundle": {
|
|
42
|
+
"patch": "./cordis.patch.yml"
|
|
43
|
+
},
|
|
44
|
+
"client": {
|
|
45
|
+
"platform": "web",
|
|
46
|
+
"immediately": true,
|
|
47
|
+
"inject": []
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"pdfjs-dist": "^4.10.38"
|
|
52
|
+
}
|
|
6
53
|
}
|