dsh-pdf-mineru 0.0.4 → 0.0.5
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/CHANGELOG.md +14 -0
- package/README.md +16 -8
- package/lib/client.js +78 -107
- package/lib/client.js.map +1 -1
- package/lib/index.js +187 -187
- package/lib/types/client/SettingsPage.d.ts +29 -0
- package/lib/types/client/StorageOperations.d.ts +8 -0
- package/lib/types/client/index.d.ts +34 -0
- package/lib/types/client/locales.d.ts +4 -0
- package/lib/types/config.d.ts +64 -0
- package/lib/types/domain/errors.d.ts +20 -0
- package/lib/types/domain/ids.d.ts +20 -0
- package/lib/types/domain/job.d.ts +2 -0
- package/lib/types/domain/request.d.ts +65 -0
- package/lib/types/domain/result.d.ts +32 -0
- package/lib/types/domain/schemas.d.ts +36 -0
- package/lib/types/index.d.ts +17 -0
- package/lib/types/observability.d.ts +32 -0
- package/lib/types/providers/official-v4-types.d.ts +55 -0
- package/lib/types/providers/official-v4.d.ts +19 -0
- package/lib/types/providers/provider.d.ts +128 -0
- package/lib/types/providers/registry.d.ts +15 -0
- package/lib/types/providers/retry.d.ts +67 -0
- package/lib/types/providers/safe-zip.d.ts +23 -0
- package/lib/types/providers/self-hosted-v2.d.ts +61 -0
- package/lib/types/rpc.d.ts +35 -0
- package/lib/types/service/batch-coordinator.d.ts +30 -0
- package/lib/types/service/cache-key.d.ts +7 -0
- package/lib/types/service/mineru-service.d.ts +90 -0
- package/lib/types/service/request-normalizer.d.ts +14 -0
- package/lib/types/service/shared-operations.d.ts +49 -0
- package/lib/types/storage/access-gate.d.ts +7 -0
- package/lib/types/storage/artifact-sink.d.ts +24 -0
- package/lib/types/storage/batch-artifact-router.d.ts +18 -0
- package/lib/types/storage/index.d.ts +10 -0
- package/lib/types/storage/maintenance-service.d.ts +203 -0
- package/lib/types/storage/paths.d.ts +28 -0
- package/lib/types/storage/process-lock.d.ts +27 -0
- package/lib/types/storage/result-repository.d.ts +66 -0
- package/lib/types/tools.d.ts +14 -0
- package/package.json +38 -41
- package/lib/index.d.ts +0 -972
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.0.5
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Aligned package exports, host/client TypeScript project references, `lib/types` declarations, tsdown faces, CSS Modules transformation, Node/pnpm constraints, and bundle/watch scripts with the DeepSeek Harness internal package conventions.
|
|
8
|
+
- Migrated the browser plugin to contribute through `settings.plugin.item`, with a compatibility fallback to `settings.section` for older Harness clients.
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Restored the MinerU settings page on the DSH 0.1.2 client architecture by removing obsolete/static client graph edges, using the Cordis client context, and registering the current Remote credentials dependency.
|
|
13
|
+
- Migrated API-key status and writes from the removed `connection.api.credentials` facade to `remote.credentials`.
|
|
14
|
+
- Updated the existing-shell GUI verifier for authenticated Web startup, versioned application batches, current combo URLs, and isolated redacted credential Remote mocks.
|
|
15
|
+
- Removed the obsolete BetterLocale bridge and the local facade for the deleted Client Runtime package.
|
|
16
|
+
|
|
3
17
|
## 0.0.4
|
|
4
18
|
|
|
5
19
|
### Added
|
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
+
<img src="./docs/assets/deepseek-mineru-banner.png" width="100%" alt="DeepSeek 娘与 MinerU 文档解析插件横幅">
|
|
4
|
+
|
|
3
5
|
# dsh-pdf-mineru
|
|
4
6
|
|
|
5
7
|
**让 DeepSeek Harness 以统一方式使用 MinerU 解析文档**
|
|
@@ -18,11 +20,6 @@
|
|
|
18
20
|
|
|
19
21
|
</div>
|
|
20
22
|
|
|
21
|
-
<p align="center">
|
|
22
|
-
<img src="./docs/assets/mineru-settings-preview.png" width="800" alt="dsh-pdf-mineru 在 DSH Settings 中的 Provider 与解析默认值界面">
|
|
23
|
-
</p>
|
|
24
|
-
<p align="center"><sub>Provider 与解析默认值的可视化配置;同一页面还提供缓存、重试、安全限制和存储运维。</sub></p>
|
|
25
|
-
|
|
26
23
|
---
|
|
27
24
|
|
|
28
25
|
一个插件,两个 Provider,三项模型工具。模型不需要理解上游的 task ID、batch ID、预签名上传地址、状态 URL 或 ZIP 结构,只需要选择同步直返或 DSH 原生后台任务。
|
|
@@ -51,7 +48,7 @@ dsh plugin --profile web add link:/absolute/path/to/dsh-pdf-mineru
|
|
|
51
48
|
|
|
52
49
|
### 2. 连接 MinerU
|
|
53
50
|
|
|
54
|
-
打开 **Settings → MinerU**,选择活动 Provider:
|
|
51
|
+
打开 **Settings → Plugins → MinerU**,选择活动 Provider:
|
|
55
52
|
|
|
56
53
|
- **Self-hosted v2**:默认连接 `http://localhost:18000`,本地 HTTP 需要显式启用 `Allow Insecure HTTP`。
|
|
57
54
|
- **Official v4**:默认连接 `https://mineru.net/api/v4`,并通过 DSH Credential 或环境变量提供 Token。
|
|
@@ -169,7 +166,12 @@ Provider 不注册工具、不访问 DSH Session、不决定存储路径,也
|
|
|
169
166
|
|
|
170
167
|
## 配置
|
|
171
168
|
|
|
172
|
-
推荐通过 **Settings → MinerU**
|
|
169
|
+
推荐通过 **Settings → Plugins → MinerU** 编辑配置。插件通过 Harness 的 `settings.plugin.item` 扩展点贡献设置卡片,并为尚未提供该扩展点的旧客户端保留独立 Settings section fallback。Provider、解析默认值、轮询、重试和输出限制对新任务实时生效;`storageRoot` 变更需要重启插件进程。
|
|
170
|
+
|
|
171
|
+
<p align="center">
|
|
172
|
+
<img src="./docs/assets/mineru-settings-preview.png" width="800" alt="dsh-pdf-mineru 在 DSH Settings 中的 Provider 与解析默认值界面">
|
|
173
|
+
</p>
|
|
174
|
+
<p align="center"><sub>Provider 与解析默认值的可视化配置;同一页面还提供缓存、重试、安全限制和存储运维。</sub></p>
|
|
173
175
|
|
|
174
176
|
<details>
|
|
175
177
|
<summary><strong>Self-hosted v2 最小配置</strong></summary>
|
|
@@ -348,6 +350,10 @@ pnpm test
|
|
|
348
350
|
pnpm run build
|
|
349
351
|
git diff --check
|
|
350
352
|
|
|
353
|
+
# 与 Harness 内部包一致的别名
|
|
354
|
+
pnpm run bundle
|
|
355
|
+
pnpm run watch
|
|
356
|
+
|
|
351
357
|
# 在已运行的 DSH Web shell 中隔离加载当前 client bundle
|
|
352
358
|
pnpm run verify:gui
|
|
353
359
|
|
|
@@ -355,6 +361,8 @@ pnpm run verify:gui
|
|
|
355
361
|
MINERU_API_KEY=<token> pnpm run smoke:official-v4 -- /absolute/path/sample.pdf
|
|
356
362
|
```
|
|
357
363
|
|
|
364
|
+
`typecheck` 通过 host/client TypeScript project references 生成 `lib/types` 声明;`build` 随后分别产出 Node host 和浏览器 client bundle。CSS Modules 使用与 Harness 内部客户端包相同的 Lightning CSS 转换与内联注入方式。
|
|
365
|
+
|
|
358
366
|
默认测试使用 mock HTTP 和本地 ZIP fixture,不需要真实 Token。`smoke:official-v4` 必须显式提供真实 Token 和 PDF,不进入默认测试。
|
|
359
367
|
|
|
360
368
|
更深入的领域模型、缓存键、并发语义和安全约束见 [ARCHITECTURE.md](./ARCHITECTURE.md)。
|
|
@@ -363,4 +371,4 @@ MINERU_API_KEY=<token> pnpm run smoke:official-v4 -- /absolute/path/sample.pdf
|
|
|
363
371
|
|
|
364
372
|
本项目使用 [MIT License](./LICENSE) 开源。
|
|
365
373
|
|
|
366
|
-
感谢 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 提供插件运行时,感谢 [MinerU](https://github.com/opendatalab/MinerU) 提供文档解析能力,也感谢 [Huanlin/dsh-plugin-mineru](https://github.com/HuanLinOTO/dsh-plugin-mineru) 带来的早期实现灵感。
|
|
374
|
+
感谢 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 提供插件运行时,感谢 [MinerU](https://github.com/opendatalab/MinerU) 提供文档解析能力,也感谢 [Huanlin/dsh-plugin-mineru](https://github.com/HuanLinOTO/dsh-plugin-mineru) 带来的早期实现灵感。Banner 中的 DeepSeek 鲸鱼娘形象源自上善无形的原创角色与 ZipZipPipe 的 DeepSeek 二创设计,相关形象遵循 [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh-hans) 许可。
|
package/lib/client.js
CHANGED
|
@@ -7,62 +7,62 @@ window.__ModuleLoader__.load({
|
|
|
7
7
|
let react = require("react");
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
9
|
//#region \0dsh-css:/home/runner/work/dsh-pdf-mineru/dsh-pdf-mineru/src/client/SettingsPage.module.css.mjs
|
|
10
|
-
const css = ".dshm_rqqbcs_section {\n display: flex;\n flex-direction: column;\n gap: 16px;\n max-width: 800px;\n color: var(--dsw-alias-label-primary);\n padding-bottom: 32px;\n}\n\n.dshm_rqqbcs_title {\n margin: 0;\n font-size: 18px;\n line-height: 26px;\n font-weight: 600;\n color: var(--dsw-alias-label-primary);\n}\n\n.dshm_rqqbcs_intro {\n margin: 0;\n font-size: 13px;\n line-height: 20px;\n color: var(--dsw-alias-label-tertiary);\n}\n\n.dshm_rqqbcs_error {\n margin: 0;\n padding: 8px 12px;\n border: 1px solid var(--dsw-alias-state-error-primary);\n border-radius: 6px;\n background: var(--dsw-alias-interactive-bg-hover-danger);\n font-size: 12px;\n line-height: 18px;\n color: var(--dsw-alias-state-error-primary);\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n}\n\n.dshm_rqqbcs_errorDismiss {\n flex: none;\n border: none;\n background: transparent;\n color: inherit;\n font-size: 16px;\n line-height: 1;\n cursor: pointer;\n padding: 0 4px;\n}\n\n.dshm_rqqbcs_loading {\n font-size: 14px;\n line-height: 22px;\n color: var(--dsw-alias-label-tertiary);\n}\n\n.dshm_rqqbcs_editorGroup {\n border: 0;\n border-top: 1px solid var(--dsw-alias-border-l2);\n padding: 16px 0 0;\n display: flex;\n flex-direction: column;\n gap: 12px;\n background: transparent;\n}\n\n.dshm_rqqbcs_groupTitle {\n margin: 0 0 4px 0;\n font-size: 14px;\n line-height: 20px;\n font-weight: 600;\n color: var(--dsw-alias-label-primary);\n border-bottom: 1px solid var(--dsw-alias-border-l3);\n padding-bottom: 6px;\n}\n\n.dshm_rqqbcs_row {\n display: flex;\n gap: 12px;\n flex-wrap: wrap;\n}\n\n.dshm_rqqbcs_row > .dshm_rqqbcs_field {\n flex: 1 1 220px;\n}\n\n.dshm_rqqbcs_field {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.dshm_rqqbcs_checkboxField {\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: pointer;\n user-select: none;\n}\n\n.dshm_rqqbcs_fieldLabel {\n font-size: 12px;\n line-height: 18px;\n font-weight: 500;\n color: var(--dsw-alias-label-secondary);\n}\n\n.dshm_rqqbcs_checkboxLabel {\n font-size: 13px;\n line-height: 18px;\n color: var(--dsw-alias-label-primary);\n}\n\n.dshm_rqqbcs_input,\n.dshm_rqqbcs_select {\n box-sizing: border-box;\n height: 32px;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 6px;\n padding: 0 10px;\n font-size: 13px;\n line-height: 20px;\n color: var(--dsw-alias-label-primary);\n background: var(--dsw-alias-bg-layer-1);\n outline: none;\n}\n\n.dshm_rqqbcs_input:focus,\n.dshm_rqqbcs_select:focus {\n border-color: var(--dsw-alias-brand-primary);\n}\n\n.dshm_rqqbcs_input::placeholder {\n color: var(--dsw-alias-label-dimmed);\n}\n\n.dshm_rqqbcs_input:disabled,\n.dshm_rqqbcs_select:disabled {\n opacity: 0.6;\n cursor: default;\n}\n\n.dshm_rqqbcs_fieldHint {\n font-size: 11px;\n line-height: 16px;\n color: var(--dsw-alias-label-tertiary);\n margin-top: 2px;\n}\n\n.dshm_rqqbcs_credentialInputRow {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 8px;\n align-items: center;\n}\n\n.dshm_rqqbcs_credentialInputRow > .dshm_rqqbcs_input {\n min-width: 0;\n width: 100%;\n}\n\n@media (max-width: 520px) {\n .dshm_rqqbcs_credentialInputRow {\n grid-template-columns: minmax(0, 1fr);\n }\n\n .dshm_rqqbcs_credentialInputRow > .dshm_rqqbcs_secondaryButton {\n justify-self: start;\n }\n}\n\n.dshm_rqqbcs_chipGroup {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n margin-top: 2px;\n}\n\n.dshm_rqqbcs_chip {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n box-sizing: border-box;\n height: 24px;\n padding: 0 8px;\n font-size: 11px;\n line-height: 16px;\n font-family: var(--ds-font-family-code, monospace);\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 4px;\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-secondary);\n cursor: pointer;\n user-select: none;\n transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;\n}\n\n.dshm_rqqbcs_chip:hover {\n background: var(--dsw-alias-interactive-bg-hover-solid);\n color: var(--dsw-alias-label-primary);\n border-color: var(--dsw-alias-border-l3);\n}\n\n.dshm_rqqbcs_chipActive {\n background: var(--dsw-alias-bg-layer-2);\n border-color: var(--dsw-alias-brand-primary);\n color: var(--dsw-alias-brand-primary);\n font-weight: 500;\n}\n\n.dshm_rqqbcs_chipBadge {\n font-size: 10px;\n font-family: system-ui, -apple-system, sans-serif;\n opacity: 0.85;\n}\n\n.dshm_rqqbcs_checkboxGroup {\n display: flex;\n flex-wrap: wrap;\n gap: 12px;\n margin-top: 4px;\n}\n\n.dshm_rqqbcs_checkboxOption {\n display: flex;\n align-items: center;\n gap: 6px;\n font-size: 12px;\n color: var(--dsw-alias-label-primary);\n cursor: pointer;\n}\n\n.dshm_rqqbcs_checkboxField input[type=\"checkbox\"],\n.dshm_rqqbcs_checkboxOption input[type=\"checkbox\"] {\n cursor: pointer;\n accent-color: var(--dsw-alias-state-business-primary);\n}\n\n.dshm_rqqbcs_actionBar {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 12px;\n padding-top: 8px;\n}\n\n.dshm_rqqbcs_primaryButton {\n box-sizing: border-box;\n height: 34px;\n padding: 0 16px;\n border: none;\n border-radius: 6px;\n background: var(--dsw-alias-button-primary-fill);\n color: var(--dsw-alias-label-primary-foreground);\n font-size: 13px;\n font-weight: 500;\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n transition: background-color 0.15s ease, opacity 0.15s ease;\n}\n\n.dshm_rqqbcs_primaryButton:hover:not(:disabled) {\n background: var(--dsw-alias-button-primary-hover);\n}\n\n.dshm_rqqbcs_primaryButton:disabled {\n opacity: 0.4;\n cursor: not-allowed;\n}\n\n.dshm_rqqbcs_primaryButton:focus-visible {\n box-shadow: 0 0 0 2px var(--dsw-alias-border-l3);\n outline: none;\n}\n\n.dshm_rqqbcs_secondaryButton {\n box-sizing: border-box;\n height: 34px;\n padding: 0 14px;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 6px;\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-primary);\n font-size: 13px;\n font-weight: 500;\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n transition: background-color 0.15s ease, opacity 0.15s ease;\n}\n\n.dshm_rqqbcs_secondaryButton:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover-solid);\n}\n\n.dshm_rqqbcs_secondaryButton:disabled {\n opacity: 0.4;\n cursor: not-allowed;\n}\n\n.dshm_rqqbcs_secondaryButton:focus-visible {\n box-shadow: 0 0 0 2px var(--dsw-alias-border-l3);\n outline: none;\n}\n\n.dshm_rqqbcs_testResult {\n padding: 10px 12px;\n border-radius: 6px;\n font-size: 12px;\n line-height: 18px;\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.dshm_rqqbcs_testResultHealthy {\n background: var(--dsw-alias-state-success-tertiary);\n border: 1px solid var(--dsw-alias-state-success-primary);\n color: var(--dsw-alias-state-success-primary);\n}\n\n.dshm_rqqbcs_testResultError {\n background: var(--dsw-alias-interactive-bg-hover-danger);\n border: 1px solid var(--dsw-alias-state-error-primary);\n color: var(--dsw-alias-state-error-primary);\n}\n\n.dshm_rqqbcs_testResultTesting {\n background: var(--dsw-alias-bg-layer-2);\n border: 1px solid var(--dsw-alias-border-l2);\n color: var(--dsw-alias-label-secondary);\n}\n\n.dshm_rqqbcs_testHeader {\n font-weight: 600;\n}\n\n.dshm_rqqbcs_testDetails {\n font-family: var(--ds-font-family-code, monospace);\n font-size: 11px;\n color: var(--dsw-alias-label-secondary);\n}\n\n.dshm_rqqbcs_operationToolbar {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n align-items: center;\n}\n\n.dshm_rqqbcs_operationError {\n padding: 8px 0;\n border-top: 1px solid var(--dsw-alias-state-error-primary);\n color: var(--dsw-alias-state-error-primary);\n font-size: 12px;\n line-height: 18px;\n overflow-wrap: anywhere;\n}\n\n.dshm_rqqbcs_operationResult {\n border-top: 1px solid var(--dsw-alias-border-l3);\n padding-top: 10px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n min-width: 0;\n}\n\n.dshm_rqqbcs_resultTitle {\n font-size: 13px;\n line-height: 20px;\n font-weight: 600;\n color: var(--dsw-alias-label-primary);\n}\n\n.dshm_rqqbcs_metricHeaders,\n.dshm_rqqbcs_metric {\n display: grid;\n grid-template-columns: minmax(120px, 1fr) minmax(80px, auto) minmax(54px, auto);\n gap: 10px;\n align-items: baseline;\n}\n\n.dshm_rqqbcs_metricHeaders {\n padding-bottom: 4px;\n color: var(--dsw-alias-label-tertiary);\n font-size: 11px;\n line-height: 16px;\n}\n\n.dshm_rqqbcs_metrics {\n display: grid;\n gap: 6px;\n margin: 0;\n}\n\n.dshm_rqqbcs_metric dt,\n.dshm_rqqbcs_metric dd {\n margin: 0;\n min-width: 0;\n font-size: 12px;\n line-height: 18px;\n}\n\n.dshm_rqqbcs_metric dt {\n color: var(--dsw-alias-label-secondary);\n}\n\n.dshm_rqqbcs_metric dd {\n color: var(--dsw-alias-label-primary);\n text-align: right;\n font-variant-numeric: tabular-nums;\n}\n\n.dshm_rqqbcs_summaryLine {\n display: flex;\n flex-wrap: wrap;\n gap: 6px 16px;\n color: var(--dsw-alias-label-secondary);\n font-size: 12px;\n line-height: 18px;\n}\n\n.dshm_rqqbcs_tableWrap {\n width: 100%;\n max-width: 100%;\n overflow-x: auto;\n}\n\n.dshm_rqqbcs_operationTable {\n width: 100%;\n min-width: 520px;\n border-collapse: collapse;\n table-layout: fixed;\n font-size: 11px;\n line-height: 16px;\n}\n\n.dshm_rqqbcs_operationTable th,\n.dshm_rqqbcs_operationTable td {\n padding: 6px 8px;\n border-bottom: 1px solid var(--dsw-alias-border-l3);\n text-align: left;\n color: var(--dsw-alias-label-secondary);\n}\n\n.dshm_rqqbcs_operationTable th:first-child,\n.dshm_rqqbcs_operationTable td:first-child {\n width: 28px;\n padding-left: 0;\n}\n\n.dshm_rqqbcs_operationTable th:nth-child(3),\n.dshm_rqqbcs_operationTable td:nth-child(3) {\n width: 80px;\n}\n\n.dshm_rqqbcs_operationTable th:nth-child(4),\n.dshm_rqqbcs_operationTable td:nth-child(4) {\n width: 150px;\n}\n\n.dshm_rqqbcs_operationTable code {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--dsw-alias-label-primary);\n font-family: var(--ds-font-family-code, monospace);\n background: var(--dsw-alias-markdown-inline-code);\n border-radius: 4px;\n padding: 1px 4px;\n}\n\n.dshm_rqqbcs_dangerButton {\n box-sizing: border-box;\n height: 34px;\n padding: 0 14px;\n border: 1px solid var(--dsw-alias-state-error-primary);\n border-radius: 6px;\n background: transparent;\n color: var(--dsw-alias-state-error-primary);\n font-size: 13px;\n font-weight: 500;\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n transition: background-color 0.15s ease, opacity 0.15s ease;\n}\n\n.dshm_rqqbcs_dangerButton:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover-danger);\n}\n\n.dshm_rqqbcs_dangerButton:disabled {\n opacity: 0.4;\n cursor: not-allowed;\n}\n\n.dshm_rqqbcs_dangerButton:focus-visible {\n box-shadow: 0 0 0 2px var(--dsw-alias-state-error-primary);\n outline: none;\n}\n\n@media (max-width: 520px) {\n .dshm_rqqbcs_row {\n flex-wrap: nowrap;\n }\n\n .dshm_rqqbcs_row > .dshm_rqqbcs_field {\n flex: 0 0 auto;\n width: 100%;\n }\n\n .dshm_rqqbcs_operationToolbar > button {\n flex: 1 1 150px;\n }\n\n .dshm_rqqbcs_metricHeaders,\n .dshm_rqqbcs_metric {\n grid-template-columns: minmax(0, 1fr) auto auto;\n }\n}\n";
|
|
10
|
+
const css = ".dshm_Hp5wKG_section{max-width:800px;color:var(--dsw-alias-label-primary);flex-direction:column;gap:16px;padding-bottom:32px;display:flex}.dshm_Hp5wKG_title{color:var(--dsw-alias-label-primary);margin:0;font-size:18px;font-weight:600;line-height:26px}.dshm_Hp5wKG_intro{color:var(--dsw-alias-label-tertiary);margin:0;font-size:13px;line-height:20px}.dshm_Hp5wKG_error{border:1px solid var(--dsw-alias-state-error-primary);background:var(--dsw-alias-interactive-bg-hover-danger);color:var(--dsw-alias-state-error-primary);border-radius:6px;justify-content:space-between;align-items:center;gap:8px;margin:0;padding:8px 12px;font-size:12px;line-height:18px;display:flex}.dshm_Hp5wKG_errorDismiss{color:inherit;cursor:pointer;background:0 0;border:none;flex:none;padding:0 4px;font-size:16px;line-height:1}.dshm_Hp5wKG_loading{color:var(--dsw-alias-label-tertiary);font-size:14px;line-height:22px}.dshm_Hp5wKG_editorGroup{border:0;border-top:1px solid var(--dsw-alias-border-l2);background:0 0;flex-direction:column;gap:12px;padding:16px 0 0;display:flex}.dshm_Hp5wKG_groupTitle{color:var(--dsw-alias-label-primary);border-bottom:1px solid var(--dsw-alias-border-l3);margin:0 0 4px;padding-bottom:6px;font-size:14px;font-weight:600;line-height:20px}.dshm_Hp5wKG_row{flex-wrap:wrap;gap:12px;display:flex}.dshm_Hp5wKG_row>.dshm_Hp5wKG_field{flex:220px}.dshm_Hp5wKG_field{flex-direction:column;gap:4px;display:flex}.dshm_Hp5wKG_checkboxField{cursor:pointer;user-select:none;align-items:center;gap:8px;display:flex}.dshm_Hp5wKG_fieldLabel{color:var(--dsw-alias-label-secondary);font-size:12px;font-weight:500;line-height:18px}.dshm_Hp5wKG_checkboxLabel{color:var(--dsw-alias-label-primary);font-size:13px;line-height:18px}.dshm_Hp5wKG_input,.dshm_Hp5wKG_select{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);height:32px;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-1);border-radius:6px;outline:none;padding:0 10px;font-size:13px;line-height:20px}.dshm_Hp5wKG_input:focus,.dshm_Hp5wKG_select:focus{border-color:var(--dsw-alias-brand-primary)}.dshm_Hp5wKG_input::placeholder{color:var(--dsw-alias-label-dimmed)}.dshm_Hp5wKG_input:disabled,.dshm_Hp5wKG_select:disabled{opacity:.6;cursor:default}.dshm_Hp5wKG_fieldHint{color:var(--dsw-alias-label-tertiary);margin-top:2px;font-size:11px;line-height:16px}.dshm_Hp5wKG_credentialInputRow{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;display:grid}.dshm_Hp5wKG_credentialInputRow>.dshm_Hp5wKG_input{width:100%;min-width:0}@media (width<=520px){.dshm_Hp5wKG_credentialInputRow{grid-template-columns:minmax(0,1fr)}.dshm_Hp5wKG_credentialInputRow>.dshm_Hp5wKG_secondaryButton{justify-self:start}}.dshm_Hp5wKG_chipGroup{flex-wrap:wrap;gap:6px;margin-top:2px;display:flex}.dshm_Hp5wKG_chip{box-sizing:border-box;height:24px;font-size:11px;line-height:16px;font-family:var(--ds-font-family-code,monospace);border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-secondary);cursor:pointer;user-select:none;border-radius:4px;align-items:center;gap:4px;padding:0 8px;transition:background-color .15s,border-color .15s,color .15s;display:inline-flex}.dshm_Hp5wKG_chip:hover{background:var(--dsw-alias-interactive-bg-hover-solid);color:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-border-l3)}.dshm_Hp5wKG_chipActive{background:var(--dsw-alias-bg-layer-2);border-color:var(--dsw-alias-brand-primary);color:var(--dsw-alias-brand-primary);font-weight:500}.dshm_Hp5wKG_chipBadge{opacity:.85;font-family:system-ui,-apple-system,sans-serif;font-size:10px}.dshm_Hp5wKG_checkboxGroup{flex-wrap:wrap;gap:12px;margin-top:4px;display:flex}.dshm_Hp5wKG_checkboxOption{color:var(--dsw-alias-label-primary);cursor:pointer;align-items:center;gap:6px;font-size:12px;display:flex}.dshm_Hp5wKG_checkboxField input[type=checkbox],.dshm_Hp5wKG_checkboxOption input[type=checkbox]{cursor:pointer;accent-color:var(--dsw-alias-state-business-primary)}.dshm_Hp5wKG_actionBar{justify-content:flex-start;align-items:center;gap:12px;padding-top:8px;display:flex}.dshm_Hp5wKG_primaryButton{box-sizing:border-box;background:var(--dsw-alias-button-primary-fill);height:34px;color:var(--dsw-alias-label-primary-foreground);cursor:pointer;border:none;border-radius:6px;justify-content:center;align-items:center;padding:0 16px;font-size:13px;font-weight:500;transition:background-color .15s,opacity .15s;display:inline-flex}.dshm_Hp5wKG_primaryButton:hover:not(:disabled){background:var(--dsw-alias-button-primary-hover)}.dshm_Hp5wKG_primaryButton:disabled{opacity:.4;cursor:not-allowed}.dshm_Hp5wKG_primaryButton:focus-visible{box-shadow:0 0 0 2px var(--dsw-alias-border-l3);outline:none}.dshm_Hp5wKG_secondaryButton{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);height:34px;color:var(--dsw-alias-label-primary);cursor:pointer;border-radius:6px;justify-content:center;align-items:center;padding:0 14px;font-size:13px;font-weight:500;transition:background-color .15s,opacity .15s;display:inline-flex}.dshm_Hp5wKG_secondaryButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-solid)}.dshm_Hp5wKG_secondaryButton:disabled{opacity:.4;cursor:not-allowed}.dshm_Hp5wKG_secondaryButton:focus-visible{box-shadow:0 0 0 2px var(--dsw-alias-border-l3);outline:none}.dshm_Hp5wKG_testResult{border-radius:6px;flex-direction:column;gap:4px;padding:10px 12px;font-size:12px;line-height:18px;display:flex}.dshm_Hp5wKG_testResultHealthy{background:var(--dsw-alias-state-success-tertiary);border:1px solid var(--dsw-alias-state-success-primary);color:var(--dsw-alias-state-success-primary)}.dshm_Hp5wKG_testResultError{background:var(--dsw-alias-interactive-bg-hover-danger);border:1px solid var(--dsw-alias-state-error-primary);color:var(--dsw-alias-state-error-primary)}.dshm_Hp5wKG_testResultTesting{background:var(--dsw-alias-bg-layer-2);border:1px solid var(--dsw-alias-border-l2);color:var(--dsw-alias-label-secondary)}.dshm_Hp5wKG_testHeader{font-weight:600}.dshm_Hp5wKG_testDetails{font-family:var(--ds-font-family-code,monospace);color:var(--dsw-alias-label-secondary);font-size:11px}.dshm_Hp5wKG_operationToolbar{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.dshm_Hp5wKG_operationError{border-top:1px solid var(--dsw-alias-state-error-primary);color:var(--dsw-alias-state-error-primary);overflow-wrap:anywhere;padding:8px 0;font-size:12px;line-height:18px}.dshm_Hp5wKG_operationResult{border-top:1px solid var(--dsw-alias-border-l3);flex-direction:column;gap:8px;min-width:0;padding-top:10px;display:flex}.dshm_Hp5wKG_resultTitle{color:var(--dsw-alias-label-primary);font-size:13px;font-weight:600;line-height:20px}.dshm_Hp5wKG_metricHeaders,.dshm_Hp5wKG_metric{grid-template-columns:minmax(120px,1fr) minmax(80px,auto) minmax(54px,auto);align-items:baseline;gap:10px;display:grid}.dshm_Hp5wKG_metricHeaders{color:var(--dsw-alias-label-tertiary);padding-bottom:4px;font-size:11px;line-height:16px}.dshm_Hp5wKG_metrics{gap:6px;margin:0;display:grid}.dshm_Hp5wKG_metric dt,.dshm_Hp5wKG_metric dd{min-width:0;margin:0;font-size:12px;line-height:18px}.dshm_Hp5wKG_metric dt{color:var(--dsw-alias-label-secondary)}.dshm_Hp5wKG_metric dd{color:var(--dsw-alias-label-primary);text-align:right;font-variant-numeric:tabular-nums}.dshm_Hp5wKG_summaryLine{color:var(--dsw-alias-label-secondary);flex-wrap:wrap;gap:6px 16px;font-size:12px;line-height:18px;display:flex}.dshm_Hp5wKG_tableWrap{width:100%;max-width:100%;overflow-x:auto}.dshm_Hp5wKG_operationTable{border-collapse:collapse;table-layout:fixed;width:100%;min-width:520px;font-size:11px;line-height:16px}.dshm_Hp5wKG_operationTable th,.dshm_Hp5wKG_operationTable td{border-bottom:1px solid var(--dsw-alias-border-l3);text-align:left;color:var(--dsw-alias-label-secondary);padding:6px 8px}.dshm_Hp5wKG_operationTable th:first-child,.dshm_Hp5wKG_operationTable td:first-child{width:28px;padding-left:0}.dshm_Hp5wKG_operationTable th:nth-child(3),.dshm_Hp5wKG_operationTable td:nth-child(3){width:80px}.dshm_Hp5wKG_operationTable th:nth-child(4),.dshm_Hp5wKG_operationTable td:nth-child(4){width:150px}.dshm_Hp5wKG_operationTable code{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-primary);font-family:var(--ds-font-family-code,monospace);background:var(--dsw-alias-markdown-inline-code);border-radius:4px;padding:1px 4px;display:block;overflow:hidden}.dshm_Hp5wKG_dangerButton{box-sizing:border-box;border:1px solid var(--dsw-alias-state-error-primary);height:34px;color:var(--dsw-alias-state-error-primary);cursor:pointer;background:0 0;border-radius:6px;justify-content:center;align-items:center;padding:0 14px;font-size:13px;font-weight:500;transition:background-color .15s,opacity .15s;display:inline-flex}.dshm_Hp5wKG_dangerButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-danger)}.dshm_Hp5wKG_dangerButton:disabled{opacity:.4;cursor:not-allowed}.dshm_Hp5wKG_dangerButton:focus-visible{box-shadow:0 0 0 2px var(--dsw-alias-state-error-primary);outline:none}@media (width<=520px){.dshm_Hp5wKG_row{flex-wrap:nowrap}.dshm_Hp5wKG_row>.dshm_Hp5wKG_field{flex:none;width:100%}.dshm_Hp5wKG_operationToolbar>button{flex:150px}.dshm_Hp5wKG_metricHeaders,.dshm_Hp5wKG_metric{grid-template-columns:minmax(0,1fr) auto auto}}";
|
|
11
11
|
const classMap = {
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"fieldHint": "
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
12
|
+
"actionBar": "dshm_Hp5wKG_actionBar",
|
|
13
|
+
"checkboxField": "dshm_Hp5wKG_checkboxField",
|
|
14
|
+
"checkboxGroup": "dshm_Hp5wKG_checkboxGroup",
|
|
15
|
+
"checkboxLabel": "dshm_Hp5wKG_checkboxLabel",
|
|
16
|
+
"checkboxOption": "dshm_Hp5wKG_checkboxOption",
|
|
17
|
+
"chip": "dshm_Hp5wKG_chip",
|
|
18
|
+
"chipActive": "dshm_Hp5wKG_chipActive",
|
|
19
|
+
"chipBadge": "dshm_Hp5wKG_chipBadge",
|
|
20
|
+
"chipGroup": "dshm_Hp5wKG_chipGroup",
|
|
21
|
+
"credentialInputRow": "dshm_Hp5wKG_credentialInputRow",
|
|
22
|
+
"dangerButton": "dshm_Hp5wKG_dangerButton",
|
|
23
|
+
"editorGroup": "dshm_Hp5wKG_editorGroup",
|
|
24
|
+
"error": "dshm_Hp5wKG_error",
|
|
25
|
+
"errorDismiss": "dshm_Hp5wKG_errorDismiss",
|
|
26
|
+
"field": "dshm_Hp5wKG_field",
|
|
27
|
+
"fieldHint": "dshm_Hp5wKG_fieldHint",
|
|
28
|
+
"fieldLabel": "dshm_Hp5wKG_fieldLabel",
|
|
29
|
+
"groupTitle": "dshm_Hp5wKG_groupTitle",
|
|
30
|
+
"input": "dshm_Hp5wKG_input",
|
|
31
|
+
"intro": "dshm_Hp5wKG_intro",
|
|
32
|
+
"loading": "dshm_Hp5wKG_loading",
|
|
33
|
+
"metric": "dshm_Hp5wKG_metric",
|
|
34
|
+
"metricHeaders": "dshm_Hp5wKG_metricHeaders",
|
|
35
|
+
"metrics": "dshm_Hp5wKG_metrics",
|
|
36
|
+
"operationError": "dshm_Hp5wKG_operationError",
|
|
37
|
+
"operationResult": "dshm_Hp5wKG_operationResult",
|
|
38
|
+
"operationTable": "dshm_Hp5wKG_operationTable",
|
|
39
|
+
"operationToolbar": "dshm_Hp5wKG_operationToolbar",
|
|
40
|
+
"primaryButton": "dshm_Hp5wKG_primaryButton",
|
|
41
|
+
"resultTitle": "dshm_Hp5wKG_resultTitle",
|
|
42
|
+
"row": "dshm_Hp5wKG_row",
|
|
43
|
+
"secondaryButton": "dshm_Hp5wKG_secondaryButton",
|
|
44
|
+
"section": "dshm_Hp5wKG_section",
|
|
45
|
+
"select": "dshm_Hp5wKG_select",
|
|
46
|
+
"summaryLine": "dshm_Hp5wKG_summaryLine",
|
|
47
|
+
"tableWrap": "dshm_Hp5wKG_tableWrap",
|
|
48
|
+
"testDetails": "dshm_Hp5wKG_testDetails",
|
|
49
|
+
"testHeader": "dshm_Hp5wKG_testHeader",
|
|
50
|
+
"testResult": "dshm_Hp5wKG_testResult",
|
|
51
|
+
"testResultError": "dshm_Hp5wKG_testResultError",
|
|
52
|
+
"testResultHealthy": "dshm_Hp5wKG_testResultHealthy",
|
|
53
|
+
"testResultTesting": "dshm_Hp5wKG_testResultTesting",
|
|
54
|
+
"title": "dshm_Hp5wKG_title"
|
|
55
55
|
};
|
|
56
56
|
const tagId = "dsh-pdf-mineru/SettingsPage.module.css";
|
|
57
|
-
if (typeof document !== "undefined"
|
|
58
|
-
|
|
59
|
-
tag
|
|
60
|
-
|
|
57
|
+
if (typeof document !== "undefined") {
|
|
58
|
+
let tag = document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]");
|
|
59
|
+
if (tag === null) {
|
|
60
|
+
tag = document.createElement("style");
|
|
61
|
+
tag.dataset.plugin = "dsh-pdf-mineru";
|
|
62
|
+
tag.dataset.pluginCss = tagId;
|
|
63
|
+
document.head.appendChild(tag);
|
|
64
|
+
}
|
|
61
65
|
tag.textContent = css;
|
|
62
|
-
document.head.appendChild(tag);
|
|
63
|
-
} else if (typeof document !== "undefined") {
|
|
64
|
-
const existing = document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]");
|
|
65
|
-
if (existing) existing.textContent = css;
|
|
66
66
|
}
|
|
67
67
|
//#endregion
|
|
68
68
|
//#region src/client/StorageOperations.tsx
|
|
@@ -539,9 +539,9 @@ window.__ModuleLoader__.load({
|
|
|
539
539
|
return reference === void 0 || reference.length === 0 ? void 0 : reference;
|
|
540
540
|
}
|
|
541
541
|
async function describeCredential(credentials, reference) {
|
|
542
|
-
const
|
|
543
|
-
if (!
|
|
544
|
-
return
|
|
542
|
+
const result = await credentials.describe([reference]);
|
|
543
|
+
if (!result.ok) throw new Error(result.error.message);
|
|
544
|
+
return result.value[reference] ?? {
|
|
545
545
|
configured: false,
|
|
546
546
|
writable: true
|
|
547
547
|
};
|
|
@@ -549,15 +549,12 @@ window.__ModuleLoader__.load({
|
|
|
549
549
|
async function storeCredential(credentials, reference, value) {
|
|
550
550
|
const secret = value.trim();
|
|
551
551
|
if (secret.length === 0) throw new TypeError("API key must not be empty");
|
|
552
|
-
const
|
|
553
|
-
|
|
554
|
-
value: secret
|
|
555
|
-
});
|
|
556
|
-
if (!response.result.ok) throw new Error(response.result.error.message);
|
|
552
|
+
const result = await credentials.set(reference, secret);
|
|
553
|
+
if (!result.ok) throw new Error(result.error.message);
|
|
557
554
|
}
|
|
558
555
|
async function clearCredential(credentials, reference) {
|
|
559
|
-
const
|
|
560
|
-
if (!
|
|
556
|
+
const result = await credentials.unset(reference);
|
|
557
|
+
if (!result.ok) throw new Error(result.error.message);
|
|
561
558
|
}
|
|
562
559
|
function SettingsPage({ rpc, credentials, t }) {
|
|
563
560
|
const [draft, setDraft] = (0, react.useState)(null);
|
|
@@ -1733,69 +1730,43 @@ window.__ModuleLoader__.load({
|
|
|
1733
1730
|
"artifact.content-list": "结构化内容块 (.json)",
|
|
1734
1731
|
"artifact.images": "提取图片"
|
|
1735
1732
|
};
|
|
1736
|
-
/**
|
|
1737
|
-
* BetterLocale does not inherit the base locale service's English fallback.
|
|
1738
|
-
* Reuse one canonical English dictionary instead of maintaining sixteen
|
|
1739
|
-
* byte-for-byte copies that falsely appear to be translations.
|
|
1740
|
-
*/
|
|
1741
|
-
const dicts = Object.fromEntries([
|
|
1742
|
-
"ja",
|
|
1743
|
-
"de",
|
|
1744
|
-
"fr",
|
|
1745
|
-
"pt",
|
|
1746
|
-
"ko",
|
|
1747
|
-
"ar",
|
|
1748
|
-
"hi",
|
|
1749
|
-
"id",
|
|
1750
|
-
"tr",
|
|
1751
|
-
"vi",
|
|
1752
|
-
"th",
|
|
1753
|
-
"ru",
|
|
1754
|
-
"it",
|
|
1755
|
-
"nl",
|
|
1756
|
-
"sv",
|
|
1757
|
-
"pl"
|
|
1758
|
-
].map((locale) => [locale, en]));
|
|
1759
1733
|
//#endregion
|
|
1760
1734
|
//#region src/client/index.ts
|
|
1761
1735
|
const inject = [
|
|
1762
1736
|
"slots",
|
|
1763
1737
|
"locale",
|
|
1764
|
-
"connection"
|
|
1738
|
+
"connection",
|
|
1739
|
+
"remote",
|
|
1740
|
+
"remote.credentials"
|
|
1765
1741
|
];
|
|
1766
1742
|
function apply(ctx) {
|
|
1767
1743
|
ctx.effect(() => ctx.locale.register(NS, {
|
|
1768
1744
|
zh,
|
|
1769
1745
|
en
|
|
1770
1746
|
}), "dsh-pdf-mineru: dictionaries");
|
|
1771
|
-
ctx.
|
|
1772
|
-
|
|
1773
|
-
const sync = () => {
|
|
1774
|
-
dispose?.();
|
|
1775
|
-
dispose = void 0;
|
|
1776
|
-
const store = ctx.get("betterLocale");
|
|
1777
|
-
if (store !== void 0) dispose = store.register(NS, dicts);
|
|
1778
|
-
};
|
|
1779
|
-
sync();
|
|
1780
|
-
const unsubscribe = ctx.locale.subscribe(sync);
|
|
1781
|
-
return () => {
|
|
1782
|
-
unsubscribe();
|
|
1783
|
-
dispose?.();
|
|
1784
|
-
};
|
|
1785
|
-
}, "dsh-pdf-mineru: better-locale override dicts");
|
|
1786
|
-
const connection = ctx.connection;
|
|
1747
|
+
const connection = ctx.get("connection");
|
|
1748
|
+
if (connection === void 0) throw new Error("dsh-pdf-mineru: connection service is unavailable");
|
|
1787
1749
|
const t = ctx.locale.bind(NS);
|
|
1788
|
-
const
|
|
1750
|
+
const injected = () => ({
|
|
1789
1751
|
rpc: connection.rpc,
|
|
1790
|
-
credentials:
|
|
1791
|
-
t
|
|
1752
|
+
credentials: ctx.remote.credentials
|
|
1792
1753
|
});
|
|
1754
|
+
if (ctx.slots.spec?.("settings.plugin.item") !== void 0) {
|
|
1755
|
+
ctx.slots.inject("settings.plugin.item", () => ctx.slots.register({
|
|
1756
|
+
name: "settings.plugin.item",
|
|
1757
|
+
key: NS,
|
|
1758
|
+
locale: NS,
|
|
1759
|
+
inject: injected
|
|
1760
|
+
}, SettingsPage));
|
|
1761
|
+
return;
|
|
1762
|
+
}
|
|
1793
1763
|
ctx.slots.inject("settings.section", () => ctx.slots.register({
|
|
1794
1764
|
name: "settings.section",
|
|
1795
|
-
id:
|
|
1765
|
+
id: NS,
|
|
1796
1766
|
order: 40,
|
|
1797
1767
|
label: () => t("nav"),
|
|
1798
|
-
|
|
1768
|
+
locale: NS,
|
|
1769
|
+
inject: injected
|
|
1799
1770
|
}, SettingsPage));
|
|
1800
1771
|
}
|
|
1801
1772
|
//#endregion
|