@dsh-workbench/module-hello 1.0.0 → 1.1.0
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/README.md +1 -1
- package/package.json +8 -5
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ dsh plugin --profile workbench add @dsh-workbench/module-hello
|
|
|
21
21
|
|
|
22
22
|
| 东西 | 在哪 | 说明 |
|
|
23
23
|
|---|---|---|
|
|
24
|
-
| 模块声明 | `package.json` 的 `dsh.workbench` | `apiVersion:
|
|
24
|
+
| 模块声明 | `package.json` 的 `dsh.workbench` | `apiVersion: 3`、单元 id `hello`、中英名字、一张卡(只有排序位)、零工具、不注入外壳服务 |
|
|
25
25
|
| 宿主面 | `src/host.ts` | 把 `{ unit: 'hello', mount }` 注册进外壳的 `workbenchUnits`;`routes` 空、`registerTools` 空 |
|
|
26
26
|
| 浏览器面 | `src/client.tsx` | 把 `{ unit, messages, card }` 注册进外壳;卡片用 kit 的 `Card` |
|
|
27
27
|
| 文案 | `src/messages.ts` | zh / en 两份字典,键名以前缀分域 |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-workbench/module-hello",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "最小示例模块:装上后面板里多一张卡片,用来试装试卸。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -27,10 +27,13 @@
|
|
|
27
27
|
]
|
|
28
28
|
},
|
|
29
29
|
"workbench": {
|
|
30
|
-
"apiVersion":
|
|
30
|
+
"apiVersion": 3,
|
|
31
31
|
"unit": "hello",
|
|
32
|
+
"title": {
|
|
33
|
+
"zh": "示例模块",
|
|
34
|
+
"en": "Sample module"
|
|
35
|
+
},
|
|
32
36
|
"card": {
|
|
33
|
-
"titleKey": "hello.cardTitle",
|
|
34
37
|
"order": 90
|
|
35
38
|
},
|
|
36
39
|
"tools": [],
|
|
@@ -59,8 +62,8 @@
|
|
|
59
62
|
"react": "^19.3.0",
|
|
60
63
|
"typescript": "5.9",
|
|
61
64
|
"vitest": "^5.0.2",
|
|
62
|
-
"@dsh-workbench/core": "1.
|
|
63
|
-
"@dsh-workbench/module-tools": "1.
|
|
65
|
+
"@dsh-workbench/core": "1.1.0",
|
|
66
|
+
"@dsh-workbench/module-tools": "1.1.0"
|
|
64
67
|
},
|
|
65
68
|
"publishConfig": {
|
|
66
69
|
"access": "public"
|