@duxweb/dvha-template 1.0.4 → 1.0.6
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/package.json
CHANGED
package/template/base/main.ts
CHANGED
|
@@ -9,14 +9,12 @@ import 'virtual:uno.css'
|
|
|
9
9
|
const app = createApp(App)
|
|
10
10
|
|
|
11
11
|
const config: IConfig = {
|
|
12
|
-
apiUrl: 'https://m1.apifoxmock.com/m1/4407506-4052338-default',
|
|
13
12
|
defaultManage: 'admin',
|
|
14
13
|
manages: [
|
|
15
14
|
{
|
|
16
15
|
name: 'admin',
|
|
17
16
|
title: 'DVHA 后台管理系统',
|
|
18
17
|
routePrefix: '/admin',
|
|
19
|
-
apiUrl: '/admin',
|
|
20
18
|
components: {
|
|
21
19
|
authLayout: () => import('./pages/layout.vue'),
|
|
22
20
|
notFound: () => import('./pages/404.vue'),
|
|
@@ -46,18 +44,13 @@ const config: IConfig = {
|
|
|
46
44
|
label: '用户管理',
|
|
47
45
|
component: () => import('./pages/home.vue'),
|
|
48
46
|
},
|
|
49
|
-
{
|
|
50
|
-
name: 'settings',
|
|
51
|
-
path: 'settings',
|
|
52
|
-
icon: 'i-tabler:settings',
|
|
53
|
-
label: '系统设置',
|
|
54
|
-
component: () => import('./pages/home.vue'),
|
|
55
|
-
},
|
|
56
47
|
],
|
|
57
48
|
},
|
|
58
49
|
],
|
|
59
|
-
dataProvider: simpleDataProvider
|
|
60
|
-
|
|
50
|
+
dataProvider: simpleDataProvider({
|
|
51
|
+
apiUrl: 'https://m1.apifoxmock.com/m1/4407506-4052338-default/admin',
|
|
52
|
+
}),
|
|
53
|
+
authProvider: simpleAuthProvider(),
|
|
61
54
|
}
|
|
62
55
|
|
|
63
56
|
app.use(createDux(config))
|
|
@@ -15,15 +15,21 @@
|
|
|
15
15
|
"preview": "vite preview"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@duxweb/dvha-core": "
|
|
18
|
+
"@duxweb/dvha-core": "latest",
|
|
19
19
|
"@iconify-json/tabler": "^1.2.18",
|
|
20
20
|
"@unocss/preset-icons": "^66.1.2",
|
|
21
21
|
"@unocss/reset": "^66.1.2",
|
|
22
22
|
"@vueuse/core": "^13.2.0",
|
|
23
23
|
"@vueuse/integrations": "^13.2.0",
|
|
24
24
|
"axios": "^1.9.0",
|
|
25
|
+
"clsx": "^2.1.1",
|
|
25
26
|
"lodash-es": "^4.17.21",
|
|
26
|
-
"
|
|
27
|
+
"petite-vue-i18n": "^11.1.4",
|
|
28
|
+
"pinia": "^3.0.0",
|
|
29
|
+
"pinia-plugin-persistedstate": "^4.0.0",
|
|
30
|
+
"unocss": "^66.1.2",
|
|
31
|
+
"vue": "^3.5.0",
|
|
32
|
+
"vue-router": "^4.0.0"
|
|
27
33
|
},
|
|
28
34
|
"devDependencies": {
|
|
29
35
|
"@antfu/eslint-config": "^4.13.1",
|
|
@@ -3,15 +3,6 @@
|
|
|
3
3
|
"display": "Vue 3 + Vite + UnoCSS",
|
|
4
4
|
"description": "基础的 Vue 3 项目模板",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@duxweb/dvha-core": "latest",
|
|
7
|
-
"@iconify-json/tabler": "^1.2.18",
|
|
8
|
-
"@unocss/preset-icons": "^66.1.2",
|
|
9
|
-
"@vueuse/core": "^13.2.0",
|
|
10
|
-
"@vueuse/integrations": "^13.2.0",
|
|
11
|
-
"axios": "^1.9.0",
|
|
12
|
-
"lodash-es": "^4.17.21",
|
|
13
|
-
"unocss": "^66.1.2",
|
|
14
|
-
"@unocss/reset": "^66.1.2"
|
|
15
6
|
},
|
|
16
7
|
"devDependencies": {},
|
|
17
8
|
"imports": [
|
|
@@ -19,4 +10,4 @@
|
|
|
19
10
|
"import 'virtual:uno.css'"
|
|
20
11
|
],
|
|
21
12
|
"appUse": []
|
|
22
|
-
}
|
|
13
|
+
}
|
|
@@ -3,16 +3,7 @@
|
|
|
3
3
|
"display": "Vue 3 + Element Plus",
|
|
4
4
|
"description": "使用 Element Plus 的 Vue 3 项目",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"
|
|
7
|
-
"@iconify-json/tabler": "^1.2.18",
|
|
8
|
-
"@unocss/preset-icons": "^66.1.2",
|
|
9
|
-
"@vueuse/core": "^13.2.0",
|
|
10
|
-
"@vueuse/integrations": "^13.2.0",
|
|
11
|
-
"axios": "^1.9.0",
|
|
12
|
-
"element-plus": "^2.9.10",
|
|
13
|
-
"lodash-es": "^4.17.21",
|
|
14
|
-
"unocss": "^66.1.2",
|
|
15
|
-
"@unocss/reset": "^66.1.2"
|
|
6
|
+
"element-plus": "^2.9.10"
|
|
16
7
|
},
|
|
17
8
|
"devDependencies": {},
|
|
18
9
|
"imports": [
|
|
@@ -24,4 +15,4 @@
|
|
|
24
15
|
"import ElementPlus from 'element-plus'",
|
|
25
16
|
"app.use(ElementPlus)"
|
|
26
17
|
]
|
|
27
|
-
}
|
|
18
|
+
}
|
|
@@ -3,16 +3,7 @@
|
|
|
3
3
|
"display": "Vue 3 + Naive UI",
|
|
4
4
|
"description": "使用 Naive UI 的 Vue 3 项目",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"
|
|
7
|
-
"@iconify-json/tabler": "^1.2.18",
|
|
8
|
-
"@unocss/preset-icons": "^66.1.2",
|
|
9
|
-
"@vueuse/core": "^13.2.0",
|
|
10
|
-
"@vueuse/integrations": "^13.2.0",
|
|
11
|
-
"axios": "^1.9.0",
|
|
12
|
-
"naive-ui": "^2.41.0",
|
|
13
|
-
"lodash-es": "^4.17.21",
|
|
14
|
-
"unocss": "^66.1.2",
|
|
15
|
-
"@unocss/reset": "^66.1.2"
|
|
6
|
+
"naive-ui": "^2.41.0"
|
|
16
7
|
},
|
|
17
8
|
"devDependencies": {},
|
|
18
9
|
"imports": [
|
|
@@ -23,4 +14,4 @@
|
|
|
23
14
|
"import naive from 'naive-ui'",
|
|
24
15
|
"app.use(naive)"
|
|
25
16
|
]
|
|
26
|
-
}
|
|
17
|
+
}
|