@zhin.js/client 1.0.1 → 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
@@ -31,7 +31,7 @@ const routes = [
31
31
  {
32
32
  key: 'dashboard-home',
33
33
  index: true,
34
- path: '/dashboard',
34
+ path: '',
35
35
  title: '系统概览',
36
36
  icon: <Icons.Home className="w-5 h-5" />,
37
37
  element: <DashboardHome />,
@@ -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.1",
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",
@@ -10,7 +10,7 @@ import {
10
10
  REHYDRATE,
11
11
  createTransform,
12
12
  } from 'redux-persist';
13
- import createWebStorage from 'redux-persist/lib/storage/createWebStorage';
13
+ import storage from 'redux-persist/es/storage';
14
14
  import {reducers, Reducers } from './reducers';
15
15
  import { useDispatch as useReduxDispatch, TypedUseSelectorHook, useSelector as useReduxSelector } from 'react-redux';
16
16
 
@@ -39,7 +39,7 @@ const scriptTransform = createTransform(
39
39
 
40
40
  const persistConfig: any = {
41
41
  key: 'root',
42
- storage: createWebStorage('local'),
42
+ storage: storage,
43
43
  transforms: [routeTransform, scriptTransform],
44
44
  }
45
45
  const persistedReducer = persistReducer(persistConfig, combineReducers(reducers)) as any