xto-fronted 0.4.90 → 0.4.91
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/dist/assets/404-Bq0LY5Cd.js +1 -0
- package/dist/assets/404-Cw_4ZCL6.css +1 -0
- package/dist/assets/{index-BDgOY6Rp.js → index-7ZZxpSfk.js} +1 -1
- package/dist/assets/index-BJUe8VUp.js +1 -0
- package/dist/assets/{index-Bz0BgZQ1.js → index-BlOR_ICg.js} +1 -1
- package/dist/assets/index-BlRslYYI.css +1 -0
- package/dist/assets/index-BudArKxR.css +1 -0
- package/dist/assets/{index-CwRA10ac.js → index-BzbOWBCV.js} +1 -1
- package/dist/assets/index-CFhWBbxk.css +1 -0
- package/dist/assets/{index-CfpZmcpk.css → index-CH6aTfYg.css} +1 -1
- package/dist/assets/{index-BIoRANs0.js → index-CT5f37nN.js} +1 -1
- package/dist/assets/index-Ce-kjtEM.js +2 -0
- package/dist/assets/{index-t-2Y0KhA.css → index-Cpew6d-v.css} +1 -1
- package/dist/assets/index-DkkuYBgT.css +1 -0
- package/dist/assets/index-vfvEFrCH.css +1 -0
- package/dist/assets/{index-CwJSA85U.js → index-wVLLAoVp.js} +1 -1
- package/dist/assets/vendor-DZmPBJ9d.js +16 -0
- package/dist/assets/vue-vendor-DjmFuEnG.js +29 -0
- package/dist/assets/{xto-base-PwLGsxxb.js → xto-base-B5HYOo6i.js} +1 -1
- package/dist/assets/{xto-core-CtL4zKiV.js → xto-core-DZYp_YAR.js} +1 -1
- package/dist/assets/{xto-data-bCXQa7fT.js → xto-data-ogck6x_i.js} +1 -1
- package/dist/assets/{xto-feedback-CPydp0kn.js → xto-feedback-C0-6cAL6.js} +1 -1
- package/dist/assets/{xto-form-bywohdAf.js → xto-form-IDg_78Vf.js} +1 -1
- package/dist/assets/{xto-navigation-Bbdpine9.js → xto-navigation-CPYLzfu7.js} +1 -1
- package/dist/index.html +9 -9
- package/package.json +91 -91
- package/src/App.vue +48 -48
- package/src/assets/styles/_dark.scss +639 -572
- package/src/assets/styles/_root.scss +183 -183
- package/src/assets/styles/_variables.scss +69 -69
- package/src/assets/styles/index.scss +460 -460
- package/src/components/Layout/Sidebar.vue +198 -198
- package/src/components/Layout/TopMenu.vue +1170 -1170
- package/src/components/Layout/index.vue +192 -192
- package/src/directives/permission.ts +12 -3
- package/src/index.ts +100 -100
- package/src/router/layoutRoute.ts +59 -59
- package/src/stores/menu.ts +64 -3
- package/src/types/json-bigint.d.ts +18 -18
- package/src/utils/permission.ts +12 -5
- package/src/views/dashboard/index.vue +545 -545
- package/src/views/error/403.vue +251 -251
- package/src/views/error/404.vue +253 -253
- package/src/views/login/index.vue +586 -586
- package/src/views/system/menu/index.vue +690 -690
- package/src/views/system/role/index.vue +583 -583
- package/src/views/system/user/index.vue +655 -655
- package/dist/App.vue.d.ts +0 -2
- package/dist/api/auth.d.ts +0 -8
- package/dist/api/system.d.ts +0 -16
- package/dist/api/user.d.ts +0 -13
- package/dist/assets/404-C9Uh6Uu-.css +0 -1
- package/dist/assets/404-zjGLLssH.js +0 -1
- package/dist/assets/index-B5xc4gQB.css +0 -1
- package/dist/assets/index-CAdztNsv.css +0 -1
- package/dist/assets/index-CCXrcISf.css +0 -1
- package/dist/assets/index-D8NDxq9d.js +0 -1
- package/dist/assets/index-DEB6-Iv_.js +0 -2
- package/dist/assets/index-DM4Ezclc.css +0 -1
- package/dist/assets/index-DYv7nImj.css +0 -1
- package/dist/assets/vendor-CUVPinTg.js +0 -13
- package/dist/assets/vue-vendor-DeJXJVbN.js +0 -29
- package/dist/components/Layout/Footer.vue.d.ts +0 -2
- package/dist/components/Layout/Header.vue.d.ts +0 -5
- package/dist/components/Layout/MixTopMenu.vue.d.ts +0 -5
- package/dist/components/Layout/Sidebar.vue.d.ts +0 -11
- package/dist/components/Layout/SidebarMenuItem.vue.d.ts +0 -5
- package/dist/components/Layout/Tabs.vue.d.ts +0 -2
- package/dist/components/Layout/TopMenu.vue.d.ts +0 -5
- package/dist/components/Layout/index.vue.d.ts +0 -2
- package/dist/composables/useApp.d.ts +0 -29
- package/dist/composables/useAuth.d.ts +0 -6
- package/dist/composables/useForm.d.ts +0 -20
- package/dist/composables/useI18n.d.ts +0 -30
- package/dist/composables/useTable.d.ts +0 -29
- package/dist/directives/permission.d.ts +0 -4
- package/dist/enums/index.d.ts +0 -32
- package/dist/index-58aI1w0v.js +0 -515
- package/dist/index-A_B_Ap_A.js +0 -4240
- package/dist/index-BAmYUT0G.js +0 -189
- package/dist/index-BRvi9qW-.js +0 -515
- package/dist/index-BVGW4DDQ.js +0 -189
- package/dist/index-Bmf0YbVq.js +0 -189
- package/dist/index-C2-a5KSQ.js +0 -4233
- package/dist/index-CeZ0CSSs.js +0 -641
- package/dist/index-D25KzR0I.js +0 -479
- package/dist/index-DEYOivza.js +0 -641
- package/dist/index-DReodgBw.js +0 -4233
- package/dist/index-DjERNRXX.js +0 -515
- package/dist/index-LSdsO2Ox.js +0 -479
- package/dist/index-gBlRG4kk.js +0 -479
- package/dist/index-xWU3J3OH.js +0 -641
- package/dist/index.d.ts +0 -59
- package/dist/index.es.js +0 -95
- package/dist/index.umd.js +0 -8
- package/dist/main.d.ts +0 -0
- package/dist/router/dynamicRoutes.d.ts +0 -30
- package/dist/router/guards.d.ts +0 -17
- package/dist/router/index.d.ts +0 -6
- package/dist/router/layoutRoute.d.ts +0 -22
- package/dist/router/staticRoutes.d.ts +0 -2
- package/dist/stores/app.d.ts +0 -93
- package/dist/stores/auth.d.ts +0 -41
- package/dist/stores/index.d.ts +0 -10
- package/dist/stores/locale.d.ts +0 -42
- package/dist/stores/menu.d.ts +0 -77
- package/dist/stores/user.d.ts +0 -92
- package/dist/style.css +0 -1
- package/dist/utils/auth.d.ts +0 -27
- package/dist/utils/config.d.ts +0 -30
- package/dist/utils/permission.d.ts +0 -18
- package/dist/utils/request.d.ts +0 -29
- package/dist/utils/storage.d.ts +0 -24
- package/dist/views/dashboard/index.vue.d.ts +0 -2
- package/dist/views/error/403.vue.d.ts +0 -2
- package/dist/views/error/404.vue.d.ts +0 -2
- package/dist/views/login/index.vue.d.ts +0 -4
- package/dist/views/system/menu/index.vue.d.ts +0 -4
- package/dist/views/system/role/index.vue.d.ts +0 -4
- package/dist/views/system/user/index.vue.d.ts +0 -4
package/package.json
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "xto-fronted",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"private": false,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"description": "XTO 前端应用框架",
|
|
7
|
-
"main": "dist/index.umd.js",
|
|
8
|
-
"module": "dist/index.es.js",
|
|
9
|
-
"types": "dist/index.d.ts",
|
|
10
|
-
"exports": {
|
|
11
|
-
".": {
|
|
12
|
-
"import": "./dist/index.es.js",
|
|
13
|
-
"require": "./dist/index.umd.js",
|
|
14
|
-
"types": "./dist/index.d.ts"
|
|
15
|
-
},
|
|
16
|
-
"./style.css": "./dist/style.css",
|
|
17
|
-
"./style.scss": "./src/style.scss"
|
|
18
|
-
},
|
|
19
|
-
"files": [
|
|
20
|
-
"dist",
|
|
21
|
-
"src",
|
|
22
|
-
"public",
|
|
23
|
-
"index.html",
|
|
24
|
-
"vite.config.ts",
|
|
25
|
-
"tsconfig.json",
|
|
26
|
-
"tsconfig.node.json",
|
|
27
|
-
".env.development",
|
|
28
|
-
".env.production"
|
|
29
|
-
],
|
|
30
|
-
"scripts": {
|
|
31
|
-
"dev": "vite",
|
|
32
|
-
"build": "vue-tsc && vite build",
|
|
33
|
-
"build:lib": "vue-tsc && vite build --mode lib",
|
|
34
|
-
"preview": "vite preview",
|
|
35
|
-
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix"
|
|
36
|
-
},
|
|
37
|
-
"peerDependencies": {
|
|
38
|
-
"@xto/base": "^1.4.0",
|
|
39
|
-
"@xto/business": "^1.2.0",
|
|
40
|
-
"@xto/core": "^1.2.3",
|
|
41
|
-
"@xto/data": "^1.2.0",
|
|
42
|
-
"@xto/feedback": "^1.2.0",
|
|
43
|
-
"@xto/form": "^1.2.0",
|
|
44
|
-
"@xto/layout": "^1.1.0",
|
|
45
|
-
"@xto/navigation": "^1.4.0",
|
|
46
|
-
"axios": "^1.6.0",
|
|
47
|
-
"pinia": "^2.1.0",
|
|
48
|
-
"vue": "^3.4.0",
|
|
49
|
-
"vue-router": "^4.3.0"
|
|
50
|
-
},
|
|
51
|
-
"devDependencies": {
|
|
52
|
-
"@types/node": "^20.11.30",
|
|
53
|
-
"@vitejs/plugin-vue": "^5.0.4",
|
|
54
|
-
"@xto/base": "^1.4.0",
|
|
55
|
-
"@xto/business": "^1.2.0",
|
|
56
|
-
"@xto/core": "^1.2.3",
|
|
57
|
-
"@xto/data": "^1.2.0",
|
|
58
|
-
"@xto/feedback": "^1.2.0",
|
|
59
|
-
"@xto/form": "^1.2.0",
|
|
60
|
-
"@xto/layout": "^1.1.0",
|
|
61
|
-
"@xto/navigation": "^1.4.0",
|
|
62
|
-
"axios": "^1.6.8",
|
|
63
|
-
"pinia": "^2.1.7",
|
|
64
|
-
"sass": "^1.72.0",
|
|
65
|
-
"sass-embedded": "^1.72.0",
|
|
66
|
-
"typescript": "^5.4.2",
|
|
67
|
-
"vite": "^5.2.0",
|
|
68
|
-
"vite-plugin-dts": "^4.5.4",
|
|
69
|
-
"vue": "^3.4.21",
|
|
70
|
-
"vue-router": "^4.3.0",
|
|
71
|
-
"vue-tsc": "^2.0.6"
|
|
72
|
-
},
|
|
73
|
-
"keywords": [
|
|
74
|
-
"vue",
|
|
75
|
-
"vue3",
|
|
76
|
-
"admin",
|
|
77
|
-
"template",
|
|
78
|
-
"xto"
|
|
79
|
-
],
|
|
80
|
-
"author": "",
|
|
81
|
-
"license": "MIT",
|
|
82
|
-
"homepage": "https://jinguchu.github.io/xto-ui/",
|
|
83
|
-
"repository": {
|
|
84
|
-
"type": "git",
|
|
85
|
-
"url": "git+https://github.com/jinguchu/xto-ui.git"
|
|
86
|
-
},
|
|
87
|
-
"dependencies": {
|
|
88
|
-
"json-bigint": "^1.0.0",
|
|
89
|
-
"xto-fronted": "0.4.71"
|
|
90
|
-
}
|
|
91
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "xto-fronted",
|
|
3
|
+
"version": "0.4.91",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "XTO 前端应用框架",
|
|
7
|
+
"main": "dist/index.umd.js",
|
|
8
|
+
"module": "dist/index.es.js",
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/index.es.js",
|
|
13
|
+
"require": "./dist/index.umd.js",
|
|
14
|
+
"types": "./dist/index.d.ts"
|
|
15
|
+
},
|
|
16
|
+
"./style.css": "./dist/style.css",
|
|
17
|
+
"./style.scss": "./src/style.scss"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist",
|
|
21
|
+
"src",
|
|
22
|
+
"public",
|
|
23
|
+
"index.html",
|
|
24
|
+
"vite.config.ts",
|
|
25
|
+
"tsconfig.json",
|
|
26
|
+
"tsconfig.node.json",
|
|
27
|
+
".env.development",
|
|
28
|
+
".env.production"
|
|
29
|
+
],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"dev": "vite",
|
|
32
|
+
"build": "vue-tsc && vite build",
|
|
33
|
+
"build:lib": "vue-tsc && vite build --mode lib",
|
|
34
|
+
"preview": "vite preview",
|
|
35
|
+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"@xto/base": "^1.4.0",
|
|
39
|
+
"@xto/business": "^1.2.0",
|
|
40
|
+
"@xto/core": "^1.2.3",
|
|
41
|
+
"@xto/data": "^1.2.0",
|
|
42
|
+
"@xto/feedback": "^1.2.0",
|
|
43
|
+
"@xto/form": "^1.2.0",
|
|
44
|
+
"@xto/layout": "^1.1.0",
|
|
45
|
+
"@xto/navigation": "^1.4.0",
|
|
46
|
+
"axios": "^1.6.0",
|
|
47
|
+
"pinia": "^2.1.0",
|
|
48
|
+
"vue": "^3.4.0",
|
|
49
|
+
"vue-router": "^4.3.0"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@types/node": "^20.11.30",
|
|
53
|
+
"@vitejs/plugin-vue": "^5.0.4",
|
|
54
|
+
"@xto/base": "^1.4.0",
|
|
55
|
+
"@xto/business": "^1.2.0",
|
|
56
|
+
"@xto/core": "^1.2.3",
|
|
57
|
+
"@xto/data": "^1.2.0",
|
|
58
|
+
"@xto/feedback": "^1.2.0",
|
|
59
|
+
"@xto/form": "^1.2.0",
|
|
60
|
+
"@xto/layout": "^1.1.0",
|
|
61
|
+
"@xto/navigation": "^1.4.0",
|
|
62
|
+
"axios": "^1.6.8",
|
|
63
|
+
"pinia": "^2.1.7",
|
|
64
|
+
"sass": "^1.72.0",
|
|
65
|
+
"sass-embedded": "^1.72.0",
|
|
66
|
+
"typescript": "^5.4.2",
|
|
67
|
+
"vite": "^5.2.0",
|
|
68
|
+
"vite-plugin-dts": "^4.5.4",
|
|
69
|
+
"vue": "^3.4.21",
|
|
70
|
+
"vue-router": "^4.3.0",
|
|
71
|
+
"vue-tsc": "^2.0.6"
|
|
72
|
+
},
|
|
73
|
+
"keywords": [
|
|
74
|
+
"vue",
|
|
75
|
+
"vue3",
|
|
76
|
+
"admin",
|
|
77
|
+
"template",
|
|
78
|
+
"xto"
|
|
79
|
+
],
|
|
80
|
+
"author": "",
|
|
81
|
+
"license": "MIT",
|
|
82
|
+
"homepage": "https://jinguchu.github.io/xto-ui/",
|
|
83
|
+
"repository": {
|
|
84
|
+
"type": "git",
|
|
85
|
+
"url": "git+https://github.com/jinguchu/xto-ui.git"
|
|
86
|
+
},
|
|
87
|
+
"dependencies": {
|
|
88
|
+
"json-bigint": "^1.0.0",
|
|
89
|
+
"xto-fronted": "0.4.71"
|
|
90
|
+
}
|
|
91
|
+
}
|
package/src/App.vue
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { useAppStore } from '@/stores/app'
|
|
3
|
-
|
|
4
|
-
const appStore = useAppStore()
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<template>
|
|
8
|
-
<div class="app" :class="{ dark: appStore.isDark }">
|
|
9
|
-
<router-view />
|
|
10
|
-
</div>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<style lang="scss">
|
|
14
|
-
.app {
|
|
15
|
-
width: 100%;
|
|
16
|
-
height: 100%;
|
|
17
|
-
background-color: var(--bg-color-page);
|
|
18
|
-
transition: background-color 0.3s var(--transition-easing);
|
|
19
|
-
font-family: var(--font-family);
|
|
20
|
-
-webkit-font-smoothing: antialiased;
|
|
21
|
-
-moz-osx-font-smoothing: grayscale;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// 全局滚动条样式 - 企业级精致感
|
|
25
|
-
::-webkit-scrollbar {
|
|
26
|
-
width: 8px;
|
|
27
|
-
height: 8px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
::-webkit-scrollbar-track {
|
|
31
|
-
background: transparent;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
::-webkit-scrollbar-thumb {
|
|
35
|
-
background: var(--color-border-light);
|
|
36
|
-
border-radius: 4px;
|
|
37
|
-
transition: background 0.2s;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
::-webkit-scrollbar-thumb:hover {
|
|
41
|
-
background: var(--color-border);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// 选中文本样式
|
|
45
|
-
::selection {
|
|
46
|
-
background: var(--color-primary-light-5);
|
|
47
|
-
color: var(--color-primary-dark-2);
|
|
48
|
-
}
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { useAppStore } from '@/stores/app'
|
|
3
|
+
|
|
4
|
+
const appStore = useAppStore()
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<div class="app" :class="{ dark: appStore.isDark }">
|
|
9
|
+
<router-view />
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<style lang="scss">
|
|
14
|
+
.app {
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 100%;
|
|
17
|
+
background-color: var(--bg-color-page);
|
|
18
|
+
transition: background-color 0.3s var(--transition-easing);
|
|
19
|
+
font-family: var(--font-family);
|
|
20
|
+
-webkit-font-smoothing: antialiased;
|
|
21
|
+
-moz-osx-font-smoothing: grayscale;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// 全局滚动条样式 - 企业级精致感
|
|
25
|
+
::-webkit-scrollbar {
|
|
26
|
+
width: 8px;
|
|
27
|
+
height: 8px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
::-webkit-scrollbar-track {
|
|
31
|
+
background: transparent;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
::-webkit-scrollbar-thumb {
|
|
35
|
+
background: var(--color-border-light);
|
|
36
|
+
border-radius: 4px;
|
|
37
|
+
transition: background 0.2s;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
::-webkit-scrollbar-thumb:hover {
|
|
41
|
+
background: var(--color-border);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// 选中文本样式
|
|
45
|
+
::selection {
|
|
46
|
+
background: var(--color-primary-light-5);
|
|
47
|
+
color: var(--color-primary-dark-2);
|
|
48
|
+
}
|
|
49
49
|
</style>
|