refactor(projects): 动态路由权限完善

This commit is contained in:
Soybean
2022-04-29 02:00:51 +08:00
parent 401f0c748d
commit 55ddc9cab0
36 changed files with 406 additions and 717 deletions

210
pnpm-lock.yaml generated
View File

@ -4,8 +4,8 @@ specifiers:
'@amap/amap-jsapi-types': ^0.0.8
'@antv/g2plot': ^2.4.16
'@better-scroll/core': ^2.4.2
'@commitlint/cli': ^16.2.3
'@commitlint/config-conventional': ^16.2.1
'@commitlint/cli': ^16.2.4
'@commitlint/config-conventional': ^16.2.4
'@iconify/json': ^2.1.33
'@iconify/vue': ^3.2.1
'@soybeanjs/vue-admin-layout': ^1.0.3
@ -54,7 +54,7 @@ specifiers:
swiper: ^8.1.4
typescript: ^4.6.3
ua-parser-js: ^1.0.2
unocss: ^0.31.17
unocss: ^0.32.1
unplugin-icons: ^0.14.1
unplugin-vue-components: 0.19.3
unplugin-vue-define-options: ^0.6.1
@ -97,8 +97,8 @@ dependencies:
devDependencies:
'@amap/amap-jsapi-types': 0.0.8
'@commitlint/cli': 16.2.3
'@commitlint/config-conventional': 16.2.1
'@commitlint/cli': 16.2.4
'@commitlint/config-conventional': 16.2.4
'@iconify/json': 2.1.33
'@iconify/vue': 3.2.1_vue@3.2.33
'@types/bmapgl': 0.0.5
@ -131,7 +131,7 @@ devDependencies:
rollup-plugin-visualizer: 5.6.0
sass: 1.51.0
typescript: 4.6.3
unocss: 0.31.17_vite@2.9.6
unocss: 0.32.1_vite@2.9.6
unplugin-icons: 0.14.1_vite@2.9.6
unplugin-vue-components: 0.19.3_vite@2.9.6+vue@3.2.33
unplugin-vue-define-options: 0.6.1_vite@2.9.6+vue@3.2.33
@ -649,14 +649,14 @@ packages:
resolution: {integrity: sha512-Gy/Jfbpu+hq0u+PcjkTqyXGqAf+0dexTzEZ5IDXEVwJVLmd3cx8A73oTcAZ8QZgk4wSHvlMjXecSaptkhnNPEw==}
dev: false
/@commitlint/cli/16.2.3:
resolution: {integrity: sha512-VsJBQLvhhlOgEfxs/Z5liYuK0dXqLE5hz1VJzLBxiOxG31kL/X5Q4OvK292BmO7IGZcm1yJE3XQPWSiFaEHbWA==}
/@commitlint/cli/16.2.4:
resolution: {integrity: sha512-rbvqvz9JI+uiKxV2nH65BtSU01fsADd3bxe9fWtO3rM0c+CI/H9FfzKkDLvSRmXjvk1G2/wXlCGeqO9IBT4X9g==}
engines: {node: '>=v12'}
hasBin: true
dependencies:
'@commitlint/format': 16.2.1
'@commitlint/lint': 16.2.1
'@commitlint/load': 16.2.3
'@commitlint/lint': 16.2.4
'@commitlint/load': 16.2.4
'@commitlint/read': 16.2.1
'@commitlint/types': 16.2.1
lodash: 4.17.21
@ -668,8 +668,8 @@ packages:
- '@swc/wasm'
dev: true
/@commitlint/config-conventional/16.2.1:
resolution: {integrity: sha512-cP9gArx7gnaj4IqmtCIcHdRjTYdRUi6lmGE+lOzGGjGe45qGOS8nyQQNvkNy2Ey2VqoSWuXXkD8zCUh6EHf1Ww==}
/@commitlint/config-conventional/16.2.4:
resolution: {integrity: sha512-av2UQJa3CuE5P0dzxj/o/B9XVALqYzEViHrMXtDrW9iuflrqCStWBAioijppj9URyz6ONpohJKAtSdgAOE0gkA==}
engines: {node: '>=v12'}
dependencies:
conventional-changelog-conventionalcommits: 4.6.3
@ -704,21 +704,21 @@ packages:
chalk: 4.1.2
dev: true
/@commitlint/is-ignored/16.2.1:
resolution: {integrity: sha512-exl8HRzTIfb1YvDJp2b2HU5z1BT+9tmgxR2XF0YEzkMiCIuEKh+XLeocPr1VcvAKXv3Cmv5X/OfNRp+i+/HIhQ==}
/@commitlint/is-ignored/16.2.4:
resolution: {integrity: sha512-Lxdq9aOAYCOOOjKi58ulbwK/oBiiKz+7Sq0+/SpFIEFwhHkIVugvDvWjh2VRBXmRC/x5lNcjDcYEwS/uYUvlYQ==}
engines: {node: '>=v12'}
dependencies:
'@commitlint/types': 16.2.1
semver: 7.3.5
semver: 7.3.7
dev: true
/@commitlint/lint/16.2.1:
resolution: {integrity: sha512-fNINQ3X2ZqsCkNB3Z0Z8ElmhewqrS3gy2wgBTx97BkcjOWiyPAGwDJ752hwrsUnWAVBRztgw826n37xPzxsOgg==}
/@commitlint/lint/16.2.4:
resolution: {integrity: sha512-AUDuwOxb2eGqsXbTMON3imUGkc1jRdtXrbbohiLSCSk3jFVXgJLTMaEcr39pR00N8nE9uZ+V2sYaiILByZVmxQ==}
engines: {node: '>=v12'}
dependencies:
'@commitlint/is-ignored': 16.2.1
'@commitlint/is-ignored': 16.2.4
'@commitlint/parse': 16.2.1
'@commitlint/rules': 16.2.1
'@commitlint/rules': 16.2.4
'@commitlint/types': 16.2.1
dev: true
@ -741,6 +741,27 @@ packages:
- '@swc/core'
- '@swc/wasm'
dev: true
optional: true
/@commitlint/load/16.2.4:
resolution: {integrity: sha512-HjANm3/29ROV+zt4yfaY/K6gpr9Dbzgtlp0kSwZGW0poDXlD/yqVYgPQ6JolJzZii5FUz5R4yVLC15hVL/w60w==}
engines: {node: '>=v12'}
dependencies:
'@commitlint/config-validator': 16.2.1
'@commitlint/execute-rule': 16.2.1
'@commitlint/resolve-extends': 16.2.1
'@commitlint/types': 16.2.1
'@types/node': 17.0.29
chalk: 4.1.2
cosmiconfig: 7.0.1
cosmiconfig-typescript-loader: 1.0.9_5281fe59fc32158e106b8b5e2bebb315
lodash: 4.17.21
resolve-from: 5.0.0
typescript: 4.6.3
transitivePeerDependencies:
- '@swc/core'
- '@swc/wasm'
dev: true
/@commitlint/message/16.2.1:
resolution: {integrity: sha512-2eWX/47rftViYg7a3axYDdrgwKv32mxbycBJT6OQY/MJM7SUfYNYYvbMFOQFaA4xIVZt7t2Alyqslbl6blVwWw==}
@ -778,8 +799,8 @@ packages:
resolve-global: 1.0.0
dev: true
/@commitlint/rules/16.2.1:
resolution: {integrity: sha512-ZFezJXQaBBso+BOTre/+1dGCuCzlWVaeLiVRGypI53qVgPMzQqZhkCcrxBFeqB87qeyzr4A4EoG++IvITwwpIw==}
/@commitlint/rules/16.2.4:
resolution: {integrity: sha512-rK5rNBIN2ZQNQK+I6trRPK3dWa0MtaTN4xnwOma1qxa4d5wQMQJtScwTZjTJeallFxhOgbNOgr48AMHkdounVg==}
engines: {node: '>=v12'}
dependencies:
'@commitlint/ensure': 16.2.1
@ -1238,14 +1259,14 @@ packages:
eslint-visitor-keys: 3.3.0
dev: true
/@unocss/cli/0.31.17:
resolution: {integrity: sha512-at/gAnZBrutoTuee7dujhN/TRSCWAq+1QYm2ekfNktt4dgA5xVzvFQo63GEUvnM4tE51SQkIbznf44BxNbuEUQ==}
/@unocss/cli/0.32.1:
resolution: {integrity: sha512-KrO0SCiyss9fYl+VM4yNdYUqqMGpNQdOjPXErr12eNLnY68WiM7yEPZrcQL3QZO2tza7CObkivMkuCC1PMITbQ==}
engines: {node: '>=14'}
hasBin: true
dependencies:
'@unocss/config': 0.31.17
'@unocss/core': 0.31.17
'@unocss/preset-uno': 0.31.17
'@unocss/config': 0.32.1
'@unocss/core': 0.32.1
'@unocss/preset-uno': 0.32.1
cac: 6.7.12
chokidar: 3.5.3
colorette: 2.0.16
@ -1255,107 +1276,112 @@ packages:
perfect-debounce: 0.1.3
dev: true
/@unocss/config/0.31.17:
resolution: {integrity: sha512-Ggj2yCOeLxRfXd2Qt4ajWXJXQilZc/ozBFZM0vU77iFFq/yBlCWH6rLlhkYqGvSQT+K5SfaKluncskSG2090YA==}
/@unocss/config/0.32.1:
resolution: {integrity: sha512-BuS22lneXnuC6KkZUOYLVPdWnYKUx5reYzFOayUp0FmMcG2uMuMWZGGBx10JV/hWSWq3FKkCT8bNM0QcNZXysw==}
engines: {node: '>=14'}
dependencies:
'@unocss/core': 0.31.17
'@unocss/core': 0.32.1
unconfig: 0.3.3
dev: true
/@unocss/core/0.31.17:
resolution: {integrity: sha512-DJ3Uk2ePVXvV1qQmgoLK44aqB6f0s+naOEvouI97nzVXDZgxDQPBxIPB/L4vvE4U+gQxEiHwwE3gJ75iPqVzXw==}
/@unocss/core/0.32.1:
resolution: {integrity: sha512-VlLF00eRvP8lsEspPWTju6kgl67R3POYl1HKZP0IPknbm9o6dyEwsKkG9VAHHvO4lDiQMI5O3ahI+DRvN0zmfg==}
dev: true
/@unocss/inspector/0.31.17:
resolution: {integrity: sha512-eBRSBtiSvIk5mVJnNyN6Ag9ykBmQi2xROvcNS5sa11SHMkwWEaj1/8kBxyYFuOvl6ysEtdC7eSzv0tMRjXuuTw==}
/@unocss/inspector/0.32.1:
resolution: {integrity: sha512-BaKKYg9llm1ZyPpvHfffBNJmJ2DqageFUQjd2uRFZCGjYzqiXF7wCSGFccYAwbS7vs+DhAqDuoAAS2F8n/Hbew==}
dependencies:
gzip-size: 6.0.0
sirv: 2.0.2
dev: true
/@unocss/preset-attributify/0.31.17:
resolution: {integrity: sha512-Kar6K6oF7Zp/qXbWq1g+RwphOKCHiU3kWhulgbwy/HbdhSXsR0EE8zAHIgEga25q72Mm0hxBlowPtbjvX107rQ==}
/@unocss/preset-attributify/0.32.1:
resolution: {integrity: sha512-rqjR/RDePVEoqEJMtnQ7uGE1qTHlzf07nQqVPBwebadOhbype4YguoC1Y7Dgiqc78tEiGj88OMoO1vBXMkw3SQ==}
dependencies:
'@unocss/core': 0.31.17
'@unocss/core': 0.32.1
dev: true
/@unocss/preset-icons/0.31.17:
resolution: {integrity: sha512-cdS/BuL15NOKWIBxTW8e3xnr26MmC1dOtOtPLljLyMhdnEWOwHQA2PB9YtUZIEvrr2zTyMv/9aPQlBQ78973kg==}
/@unocss/preset-icons/0.32.1:
resolution: {integrity: sha512-S31Qlqbr7NBduQR/jdirYHecyM8DNT9TpXjqvxX2ssKMB1Ie1zpAWrtwM5Y0JaprjKa0mmL1KZ0wWGTHJ+LypA==}
dependencies:
'@iconify/utils': 1.0.32
'@unocss/core': 0.31.17
'@unocss/core': 0.32.1
transitivePeerDependencies:
- supports-color
dev: true
/@unocss/preset-mini/0.31.17:
resolution: {integrity: sha512-gVgMTOKLt3O1ym348QIBmR5sS9W0Ozkk5xelhH6e0VXcpg0dXDPDrl4hFErMy4x6IB86yyJG6Dz5JhcwQB13Ig==}
/@unocss/preset-mini/0.32.1:
resolution: {integrity: sha512-9cq1yfJLKmgim8lr/CmfpGTEVOCdg5W1F5MbutRtRijYrsSsETCGLLCfdq4QhV4o84QE8kAM6iLoUm0j+Gn8Sg==}
dependencies:
'@unocss/core': 0.31.17
'@unocss/core': 0.32.1
dev: true
/@unocss/preset-typography/0.31.17:
resolution: {integrity: sha512-zFFZeGdcXxpjgLG1o1zUQNFCdBqyGoFfUa0Zj0SeIYs11a4Y3ra701jHr1F4X4mhYzIyCUEfGC9X852o0iPa+A==}
/@unocss/preset-typography/0.32.1:
resolution: {integrity: sha512-+bekG07fiOjSzzyaJ2LmaGbJJab9XNyyC18TOYPCtryChO3kr2AmJyqows2II2+uqcGlexe6rsjeNteHy58cNg==}
dependencies:
'@unocss/core': 0.31.17
'@unocss/core': 0.32.1
dev: true
/@unocss/preset-uno/0.31.17:
resolution: {integrity: sha512-zSajrrPQlPXBr+egbQ00Nvku9YrqFh3pWByVSx/4XPpZ1oSSjOqMAfGcdDPlmOWi++G6FLU28sglc3JB7jJEZA==}
/@unocss/preset-uno/0.32.1:
resolution: {integrity: sha512-SHLusZNl2d1mfqyu425xCUkShLOrqYANxXVvb/HOhDXtWDtf8dglE3afbYCcklTb1YDZ08M6k4AsSgZjsv23ng==}
dependencies:
'@unocss/core': 0.31.17
'@unocss/preset-mini': 0.31.17
'@unocss/preset-wind': 0.31.17
'@unocss/core': 0.32.1
'@unocss/preset-mini': 0.32.1
'@unocss/preset-wind': 0.32.1
dev: true
/@unocss/preset-web-fonts/0.31.17:
resolution: {integrity: sha512-4FVNYMBN70j8xNOTxnUG6XeEJ/1WoJ1shQ72UhXDMaH4ZgCORvmAYdjl4opjEEB4RoXg5yJ1N1W6B3O/bsupbQ==}
/@unocss/preset-web-fonts/0.32.1:
resolution: {integrity: sha512-cPIcrkRZKejGNwF/ZzrhGW8gLQpgAdr1EIhSNPsJG77kpWn7fnsA+VUqa//2shKYhx0hezS3Tbq47hDK5qc4gQ==}
dependencies:
'@unocss/core': 0.31.17
'@unocss/core': 0.32.1
axios: 0.26.1
transitivePeerDependencies:
- debug
dev: true
/@unocss/preset-wind/0.31.17:
resolution: {integrity: sha512-GYVxPA66BovfXO9IAbSlE5yuBTO3ko7ChJS1Oisy3Y0+JBNXJsqzKlyLRLeKOSK76o2b/D0wRO8xEqirh76GQA==}
/@unocss/preset-wind/0.32.1:
resolution: {integrity: sha512-StgSnYQ4w7sUYqW1GURCICQ42qL83SQ1H5KZbSIJVnv2VVgo77m6dt96TmTmvizWJWH4Ga597YFhjXP4WUv6mw==}
dependencies:
'@unocss/core': 0.31.17
'@unocss/preset-mini': 0.31.17
'@unocss/core': 0.32.1
'@unocss/preset-mini': 0.32.1
dev: true
/@unocss/reset/0.31.17:
resolution: {integrity: sha512-g3+bqtM6LetSEJ5NYhi2P4vdP8yVLUQLbNZUdMtggcmHXTY08ISWaJKWmnHptrO13rtRoQ+l9gFc4Y7kRpD7NA==}
dev: false
/@unocss/scope/0.31.17:
resolution: {integrity: sha512-X6V62OKexnhePLuVj9FtrpAJYUCpIedIieogvl6gHDZMnTnJPNaW9jJ7/e6r21F3u9IrqOzlikgCicFSm4J/TA==}
/@unocss/reset/0.32.1:
resolution: {integrity: sha512-tC2gCYY2isEDfBo1LWfcPAnxuM3my29fWtFUQRGvViZVTwYFjVIGD8BgIfiioifGumLunRW78qN7LT22fXoxgg==}
dev: true
/@unocss/transformer-directives/0.31.17:
resolution: {integrity: sha512-1FF6PQybr2eFVp1mlz+OeTDAIWTuJw61EJneFWlsnWk2PgqBlX25SIuQjTWhXfjWihL3n8F2wHrX8i0vcG39bg==}
/@unocss/scope/0.32.1:
resolution: {integrity: sha512-6Xsas4Fm797IIONNXP7Y7JLL7B4NTjk/BeFX7j++CS14SfGzF0wTTkyaHxE9ETecOiouUABwoiPQRzHNAkrNIA==}
dev: true
/@unocss/transformer-directives/0.32.1:
resolution: {integrity: sha512-F4rPaNGaKbRGKksHuzAfSrsIaMZLpvqRhlk1xpwN5AGHClhK+Ak0z9j+N9Yy4rUuRx5OeOCuOj9Kcvq8cL8JnA==}
dependencies:
'@unocss/core': 0.31.17
'@unocss/core': 0.32.1
css-tree: 2.1.0
dev: true
/@unocss/transformer-variant-group/0.31.17:
resolution: {integrity: sha512-q1L7jckHicv2GwdKp7KGhufHeH5sGhJeRv1EGVZkb7KFKt9AROH9X9LDzE6Xr0jWgywrCIyTUIBdZwb2aKrjeg==}
/@unocss/transformer-variant-group/0.32.1:
resolution: {integrity: sha512-SrT5nWvNuuGFlMSGYgP7+KemYaBSUlP7i6v5QqzbjX9bcMz8JicT5Rwvy1Z1GOdtRGCy7e5aB6LW3Mxpd/pQhw==}
dependencies:
'@unocss/core': 0.31.17
'@unocss/core': 0.32.1
dev: true
/@unocss/vite/0.31.17_vite@2.9.6:
resolution: {integrity: sha512-+NH/In8zqBXbTWfpiu8u/7jkwBJdaq2lM/ErXzd0q07w8Jv0FmKRWxBGml168uDA6dHHoJRcGO1AvzOYxsv9+A==}
/@unocss/vite/0.32.1_vite@2.9.6:
resolution: {integrity: sha512-XLbBodjSfgoyTRUGL5XY8Fw+pW7GOZ1WrT1C+QfVJt8+BgY6wIdVhaERbfgOdAw/trzM0PYwhhbMHZp0SyJE5Q==}
peerDependencies:
vite: ^2.9.0
dependencies:
'@rollup/pluginutils': 4.2.1
'@unocss/config': 0.31.17
'@unocss/core': 0.31.17
'@unocss/inspector': 0.31.17
'@unocss/scope': 0.31.17
'@unocss/transformer-directives': 0.31.17
'@unocss/config': 0.32.1
'@unocss/core': 0.32.1
'@unocss/inspector': 0.32.1
'@unocss/scope': 0.32.1
'@unocss/transformer-directives': 0.32.1
magic-string: 0.26.1
vite: 2.9.6_sass@1.51.0
dev: true
@ -2293,7 +2319,7 @@ packages:
longest: 2.0.1
word-wrap: 1.2.3
optionalDependencies:
'@commitlint/load': 16.2.3
'@commitlint/load': 16.2.4
transitivePeerDependencies:
- '@swc/core'
- '@swc/wasm'
@ -5177,14 +5203,6 @@ packages:
hasBin: true
dev: true
/semver/7.3.5:
resolution: {integrity: sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==}
engines: {node: '>=10'}
hasBin: true
dependencies:
lru-cache: 6.0.0
dev: true
/semver/7.3.7:
resolution: {integrity: sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==}
engines: {node: '>=10'}
@ -5793,23 +5811,23 @@ packages:
engines: {node: '>= 10.0.0'}
dev: true
/unocss/0.31.17_vite@2.9.6:
resolution: {integrity: sha512-JJsxXfHfRRDvimDSgTTIpDPpYsVcp/jMxj+I/WsDIFQjBKhB4dq0VyjKl5dXlicgMTJfy2wrj/zBGMPl9W6/qA==}
/unocss/0.32.1_vite@2.9.6:
resolution: {integrity: sha512-Flp6FHOLznE7nTOSTSNPiyL3dd9V8TvhXPnReEwRo8yZxXOIg/+9cVzvF1nwGCIbfDYbjNK+eNKmtwxVmB78og==}
engines: {node: '>=14'}
dependencies:
'@unocss/cli': 0.31.17
'@unocss/core': 0.31.17
'@unocss/preset-attributify': 0.31.17
'@unocss/preset-icons': 0.31.17
'@unocss/preset-mini': 0.31.17
'@unocss/preset-typography': 0.31.17
'@unocss/preset-uno': 0.31.17
'@unocss/preset-web-fonts': 0.31.17
'@unocss/preset-wind': 0.31.17
'@unocss/reset': 0.31.17
'@unocss/transformer-directives': 0.31.17
'@unocss/transformer-variant-group': 0.31.17
'@unocss/vite': 0.31.17_vite@2.9.6
'@unocss/cli': 0.32.1
'@unocss/core': 0.32.1
'@unocss/preset-attributify': 0.32.1
'@unocss/preset-icons': 0.32.1
'@unocss/preset-mini': 0.32.1
'@unocss/preset-typography': 0.32.1
'@unocss/preset-uno': 0.32.1
'@unocss/preset-web-fonts': 0.32.1
'@unocss/preset-wind': 0.32.1
'@unocss/reset': 0.32.1
'@unocss/transformer-directives': 0.32.1
'@unocss/transformer-variant-group': 0.32.1
'@unocss/vite': 0.32.1_vite@2.9.6
transitivePeerDependencies:
- debug
- supports-color