@dshtrading/client-ui-knowledge 0.6.3 → 0.7.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/lib/client/contract.d.ts +1 -1
- package/lib/client/locales.js +36 -2
- package/lib/client.js +1167 -295
- package/lib/client.js.map +1 -1
- package/package.json +5 -5
package/lib/client/contract.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* client-ui-knowledge 的 locale 契约:独立 namespace「dshtrading.knowledge」
|
|
4
4
|
* (P5 拆包后文案随视图包走)。key 前缀 kv.*(stage view knowledge)。
|
|
5
5
|
*/
|
|
6
|
-
type KnowledgeLocaleKey = 'kv.search.placeholder' | 'kv.filter.tag' | 'kv.filter.allTags' | 'kv.filter.allAuthors' | 'kv.filter.allCredibility' | 'kv.filter.allSourceTypes' | 'kv.filter.reset' | 'kv.credibility.high' | 'kv.credibility.medium' | 'kv.credibility.low' | 'kv.sourceType.bilibili' | 'kv.sourceType.wechat' | 'kv.sourceType.manual' | 'kv.empty.hint' | 'kv.empty.filtered' | 'kv.stats.cards' | 'kv.stats.clusters' | 'kv.drawer.coreClaims' | 'kv.drawer.factCheck' | 'kv.drawer.verified' | 'kv.drawer.discrepancies' | 'kv.drawer.unverifiable' | 'kv.drawer.takeaways' | 'kv.drawer.boundaries' | 'kv.drawer.tickers' | 'kv.drawer.related' | 'kv.drawer.openSource';
|
|
6
|
+
type KnowledgeLocaleKey = 'kv.search.placeholder' | 'kv.filter.tag' | 'kv.filter.allTags' | 'kv.filter.allAuthors' | 'kv.filter.allCredibility' | 'kv.filter.allSourceTypes' | 'kv.filter.reset' | 'kv.credibility.high' | 'kv.credibility.medium' | 'kv.credibility.low' | 'kv.sourceType.bilibili' | 'kv.sourceType.wechat' | 'kv.sourceType.manual' | 'kv.empty.hint' | 'kv.empty.filtered' | 'kv.stats.cards' | 'kv.stats.clusters' | 'kv.drawer.coreClaims' | 'kv.drawer.factCheck' | 'kv.drawer.verified' | 'kv.drawer.discrepancies' | 'kv.drawer.unverifiable' | 'kv.drawer.takeaways' | 'kv.drawer.boundaries' | 'kv.drawer.tickers' | 'kv.drawer.related' | 'kv.drawer.openSource' | 'kv.io.export' | 'kv.io.import' | 'kv.io.exportEmpty' | 'kv.io.dialogTitle' | 'kv.io.modeSkip' | 'kv.io.modeOverwrite' | 'kv.io.planCreate' | 'kv.io.planUpdate' | 'kv.io.planSkip' | 'kv.io.planDropped' | 'kv.io.planInvalid' | 'kv.io.confirm' | 'kv.io.cancel' | 'kv.io.applied' | 'kv.io.failed' | 'kv.io.fileHint' | 'kv.io.exportTooLarge';
|
|
7
7
|
declare module '@deepseek-ai/dsh-client-locale/client' {
|
|
8
8
|
interface LocaleNamespaceMap {
|
|
9
9
|
/** 知识库视图词典(client-ui-knowledge 包私有)。 */
|
package/lib/client/locales.js
CHANGED
|
@@ -26,7 +26,24 @@ const zh = {
|
|
|
26
26
|
"kv.drawer.boundaries": "适用边界与避坑",
|
|
27
27
|
"kv.drawer.tickers": "关联标的",
|
|
28
28
|
"kv.drawer.related": "关联卡片",
|
|
29
|
-
"kv.drawer.openSource": "打开原始链接"
|
|
29
|
+
"kv.drawer.openSource": "打开原始链接",
|
|
30
|
+
"kv.io.export": "导出",
|
|
31
|
+
"kv.io.import": "导入",
|
|
32
|
+
"kv.io.exportEmpty": "当前筛选结果为空,没有可导出的卡片",
|
|
33
|
+
"kv.io.dialogTitle": "导入知识库文件",
|
|
34
|
+
"kv.io.modeSkip": "跳过:库里已有同来源链接的卡片保持原样",
|
|
35
|
+
"kv.io.modeOverwrite": "覆盖:用文件内容改写同来源链接的卡片,保留本机卡片 id",
|
|
36
|
+
"kv.io.planCreate": "新增",
|
|
37
|
+
"kv.io.planUpdate": "更新",
|
|
38
|
+
"kv.io.planSkip": "跳过",
|
|
39
|
+
"kv.io.planDropped": "丢弃关联",
|
|
40
|
+
"kv.io.planInvalid": "非法",
|
|
41
|
+
"kv.io.confirm": "确认导入",
|
|
42
|
+
"kv.io.cancel": "取消",
|
|
43
|
+
"kv.io.applied": "导入完成",
|
|
44
|
+
"kv.io.failed": "导入失败",
|
|
45
|
+
"kv.io.fileHint": "预览按本机现有卡片计算,确认后才会写入知识库",
|
|
46
|
+
"kv.io.exportTooLarge": "导出内容超过上限(2000 张卡片或 8 MiB):请先缩小筛选范围再导出,否则文件导不回来"
|
|
30
47
|
};
|
|
31
48
|
const en = {
|
|
32
49
|
"kv.search.placeholder": "Search title, summary, tags...",
|
|
@@ -55,7 +72,24 @@ const en = {
|
|
|
55
72
|
"kv.drawer.boundaries": "Boundaries & Pitfalls",
|
|
56
73
|
"kv.drawer.tickers": "Related Tickers",
|
|
57
74
|
"kv.drawer.related": "Related Cards",
|
|
58
|
-
"kv.drawer.openSource": "Open Original URL"
|
|
75
|
+
"kv.drawer.openSource": "Open Original URL",
|
|
76
|
+
"kv.io.export": "Export",
|
|
77
|
+
"kv.io.import": "Import",
|
|
78
|
+
"kv.io.exportEmpty": "No cards in the current filter — nothing to export",
|
|
79
|
+
"kv.io.dialogTitle": "Import knowledge bundle",
|
|
80
|
+
"kv.io.modeSkip": "Skip: cards with the same source link already on this machine stay unchanged",
|
|
81
|
+
"kv.io.modeOverwrite": "Overwrite: replace cards with the same source link, keeping their local card ids",
|
|
82
|
+
"kv.io.planCreate": "Create",
|
|
83
|
+
"kv.io.planUpdate": "Update",
|
|
84
|
+
"kv.io.planSkip": "Skip",
|
|
85
|
+
"kv.io.planDropped": "Dropped links",
|
|
86
|
+
"kv.io.planInvalid": "Invalid",
|
|
87
|
+
"kv.io.confirm": "Import now",
|
|
88
|
+
"kv.io.cancel": "Cancel",
|
|
89
|
+
"kv.io.applied": "Import complete",
|
|
90
|
+
"kv.io.failed": "Import failed",
|
|
91
|
+
"kv.io.fileHint": "Preview is computed against the cards already on this machine; nothing is written until you confirm",
|
|
92
|
+
"kv.io.exportTooLarge": "Export exceeds the limit (2000 cards or 8 MiB): narrow the filter before exporting, otherwise the file cannot be imported back"
|
|
59
93
|
};
|
|
60
94
|
//#endregion
|
|
61
95
|
export { en, zh };
|