@zhin.js/client 1.0.2 → 1.0.3
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/app/src/main.tsx
CHANGED
|
@@ -12,10 +12,6 @@ interface PluginDetail {
|
|
|
12
12
|
description: string
|
|
13
13
|
commands: Array<{
|
|
14
14
|
name: string
|
|
15
|
-
pattern: string
|
|
16
|
-
description: string
|
|
17
|
-
alias: string[]
|
|
18
|
-
examples: string[]
|
|
19
15
|
}>
|
|
20
16
|
components: Array<{
|
|
21
17
|
name: string
|
|
@@ -207,14 +203,7 @@ export default function DashboardPluginDetail() {
|
|
|
207
203
|
<Flex direction="column" gap="1">
|
|
208
204
|
<Flex align="center" gap="2">
|
|
209
205
|
<Code size="2">{cmd.name}</Code>
|
|
210
|
-
{cmd.alias.length > 0 && (
|
|
211
|
-
<Text size="1" color="gray">别名: {cmd.alias.join(', ')}</Text>
|
|
212
|
-
)}
|
|
213
206
|
</Flex>
|
|
214
|
-
<Text size="1" color="gray">{cmd.description}</Text>
|
|
215
|
-
{cmd.examples.length > 0 && (
|
|
216
|
-
<Text size="1" color="gray" className="italic">示例: {cmd.examples[0]}</Text>
|
|
217
|
-
)}
|
|
218
207
|
</Flex>
|
|
219
208
|
</Box>
|
|
220
209
|
))}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhin.js/client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Zhin 客户端",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -29,13 +29,15 @@
|
|
|
29
29
|
"app"
|
|
30
30
|
],
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"radix-ui": "^1.4.3",
|
|
33
32
|
"@radix-ui/themes": "^3.2.1",
|
|
34
|
-
"lucide-react": "^0.469.0",
|
|
35
33
|
"@types/events": "^3.0.3",
|
|
36
34
|
"@types/node": "^24.7.1",
|
|
37
35
|
"@types/react": "^19.2.2",
|
|
38
|
-
"@types/react-dom": "^19.2.1"
|
|
36
|
+
"@types/react-dom": "^19.2.1",
|
|
37
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
38
|
+
"lucide-react": "^0.469.0",
|
|
39
|
+
"radix-ui": "^1.4.3",
|
|
40
|
+
"vite": "^7.0.6"
|
|
39
41
|
},
|
|
40
42
|
"scripts": {
|
|
41
43
|
"build": "tsc",
|