chore: upgrade to vite3

This commit is contained in:
张传龙 2022-08-27 14:22:09 +08:00
parent 220a7800f7
commit 51b47ea722
10 changed files with 297 additions and 62 deletions

View File

@ -4,7 +4,6 @@ export function createViteProxy(isUseProxy = true, proxyType) {
if (!isUseProxy) return undefined
const proxyConfig = getProxyConfig(proxyType)
console.log(proxyConfig)
const proxy = {
[proxyConfig.prefix]: {
target: proxyConfig.target,

View File

@ -2,7 +2,7 @@ import { viteMockServe } from 'vite-plugin-mock'
export function configMockPlugin(isBuild) {
return viteMockServe({
mockPath: 'mock/modules',
mockPath: 'mock/api',
localEnabled: !isBuild,
prodEnabled: isBuild,
injectCode: `

5
mock/api/index.js Normal file
View File

@ -0,0 +1,5 @@
import auth from './auth'
import user from './user'
import post from './post'
export default [...auth, ...user, ...post]

View File

@ -1,11 +1,6 @@
import { createProdMockServer } from 'vite-plugin-mock/es/createProdMockServer'
const modules = import.meta.globEager('./modules/*.js')
const mockModules = []
Object.keys(modules).forEach((key) => {
mockModules.push(...modules[key].default)
})
import api from './api'
export function setupProdMockServer() {
createProdMockServer(mockModules)
createProdMockServer(api)
}

View File

@ -52,7 +52,7 @@
"unplugin-auto-import": "^0.9.2",
"unplugin-icons": "^0.14.1",
"unplugin-vue-components": "^0.17.21",
"vite": "^2.9.9",
"vite": "^3.0.9",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-html": "^3.2.0",
"vite-plugin-mock": "^2.9.6",

338
pnpm-lock.yaml generated
View File

@ -35,7 +35,7 @@ specifiers:
unplugin-auto-import: ^0.9.2
unplugin-icons: ^0.14.1
unplugin-vue-components: ^0.17.21
vite: ^2.9.9
vite: ^3.0.9
vite-plugin-compression: ^0.5.1
vite-plugin-html: ^3.2.0
vite-plugin-mock: ^2.9.6
@ -60,7 +60,7 @@ devDependencies:
'@commitlint/config-conventional': 17.0.3
'@iconify/json': 2.1.99
'@iconify/vue': 3.2.1_vue@3.2.31
'@vitejs/plugin-vue': 1.10.2_vite@2.9.9
'@vitejs/plugin-vue': 1.10.2_vite@3.0.9
'@vue/compiler-sfc': 3.2.31
chalk: 5.0.1
commitizen: 4.2.4
@ -79,15 +79,15 @@ devDependencies:
prettier: 2.6.1
rollup-plugin-visualizer: 5.6.0
sass: 1.49.10
unocss: 0.43.2_vite@2.9.9
unplugin-auto-import: 0.9.2_y44jlmyuqbnkfkqeyjo67naj6e
unplugin-icons: 0.14.1_jyihscimozjyoh3ugo77i7phoi
unplugin-vue-components: 0.17.21_vite@2.9.9+vue@3.2.31
vite: 2.9.9_sass@1.49.10
vite-plugin-compression: 0.5.1_vite@2.9.9
vite-plugin-html: 3.2.0_vite@2.9.9
vite-plugin-mock: 2.9.6_mockjs@1.1.0+vite@2.9.9
vite-plugin-svg-icons: 2.0.1_vite@2.9.9
unocss: 0.43.2_vite@3.0.9
unplugin-auto-import: 0.9.2_w5m6vlow2rpxta3gfwfgj3us4a
unplugin-icons: 0.14.1_kxanskcjos2practu6ljrgseeq
unplugin-vue-components: 0.17.21_vite@3.0.9+vue@3.2.31
vite: 3.0.9_sass@1.49.10
vite-plugin-compression: 0.5.1_vite@3.0.9
vite-plugin-html: 3.2.0_vite@3.0.9
vite-plugin-mock: 2.9.6_mockjs@1.1.0+vite@3.0.9
vite-plugin-svg-icons: 2.0.1_vite@3.0.9
vite-plugin-vue-setup-extend-plus: 0.1.0
packages:
@ -334,6 +334,15 @@ packages:
resolution: {integrity: sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==}
dev: true
/@esbuild/linux-loong64/0.14.54:
resolution: {integrity: sha512-bZBrLAIX1kpWelV0XemxBZllyRmM6vgFQQG2GdNb+r3Fkp0FOh1NJSvekXDs7jq70k4euu1cryLMfU+mTXlEpw==}
engines: {node: '>=12'}
cpu: [loong64]
os: [linux]
requiresBuild: true
dev: true
optional: true
/@eslint/eslintrc/1.2.1:
resolution: {integrity: sha512-bxvbYnBPN1Gibwyp6NrpnFzA3YtRL3BBAyEAFVIpNTm2Rn4Vy87GA5M4aSn3InRrlsbX5N0GW7XIx+U4SAEKdQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@ -687,7 +696,7 @@ packages:
'@unocss/core': 0.43.2
dev: true
/@unocss/vite/0.43.2_vite@2.9.9:
/@unocss/vite/0.43.2_vite@3.0.9:
resolution: {integrity: sha512-/WpL+iGoyR+hypp78RXtFqzjT/DxR3u6aOsMwE0cPLSB8ZcqOrJn8pJQbLBrybtx8IpSlt+UpaQ67zkvwLv5BA==}
peerDependencies:
vite: ^2.9.0 || ^3.0.0-0
@ -699,16 +708,16 @@ packages:
'@unocss/scope': 0.43.2
'@unocss/transformer-directives': 0.43.2
magic-string: 0.26.2
vite: 2.9.9_sass@1.49.10
vite: 3.0.9_sass@1.49.10
dev: true
/@vitejs/plugin-vue/1.10.2_vite@2.9.9:
/@vitejs/plugin-vue/1.10.2_vite@3.0.9:
resolution: {integrity: sha512-/QJ0Z9qfhAFtKRY+r57ziY4BSbGUTGsPRMpB/Ron3QPwBZM4OZAZHdTa4a8PafCwU5DTatXG8TMDoP8z+oDqJw==}
engines: {node: '>=12.0.0'}
peerDependencies:
vite: ^2.5.10
dependencies:
vite: 2.9.9_sass@1.49.10
vite: 3.0.9_sass@1.49.10
dev: true
/@vue/compiler-core/3.2.31:
@ -1856,6 +1865,15 @@ packages:
dev: true
optional: true
/esbuild-android-64/0.14.54:
resolution: {integrity: sha512-Tz2++Aqqz0rJ7kYBfz+iqyE3QMycD4vk7LBRyWaAVFgFtQ/O8EJOnVmTOiDWYZ/uYzB4kvP+bqejYdVKzE5lAQ==}
engines: {node: '>=12'}
cpu: [x64]
os: [android]
requiresBuild: true
dev: true
optional: true
/esbuild-android-arm64/0.14.29:
resolution: {integrity: sha512-D74dCv6yYnMTlofVy1JKiLM5JdVSQd60/rQfJSDP9qvRAI0laPXIG/IXY1RG6jobmFMUfL38PbFnCqyI/6fPXg==}
engines: {node: '>=12'}
@ -1865,6 +1883,15 @@ packages:
dev: true
optional: true
/esbuild-android-arm64/0.14.54:
resolution: {integrity: sha512-F9E+/QDi9sSkLaClO8SOV6etqPd+5DgJje1F9lOWoNncDdOBL2YF59IhsWATSt0TLZbYCf3pNlTHvVV5VfHdvg==}
engines: {node: '>=12'}
cpu: [arm64]
os: [android]
requiresBuild: true
dev: true
optional: true
/esbuild-darwin-64/0.14.29:
resolution: {integrity: sha512-+CJaRvfTkzs9t+CjGa0Oa28WoXa7EeLutQhxus+fFcu0MHhsBhlmeWHac3Cc/Sf/xPi1b2ccDFfzGYJCfV0RrA==}
engines: {node: '>=12'}
@ -1874,6 +1901,15 @@ packages:
dev: true
optional: true
/esbuild-darwin-64/0.14.54:
resolution: {integrity: sha512-jtdKWV3nBviOd5v4hOpkVmpxsBy90CGzebpbO9beiqUYVMBtSc0AL9zGftFuBon7PNDcdvNCEuQqw2x0wP9yug==}
engines: {node: '>=12'}
cpu: [x64]
os: [darwin]
requiresBuild: true
dev: true
optional: true
/esbuild-darwin-arm64/0.14.29:
resolution: {integrity: sha512-5Wgz/+zK+8X2ZW7vIbwoZ613Vfr4A8HmIs1XdzRmdC1kG0n5EG5fvKk/jUxhNlrYPx1gSY7XadQ3l4xAManPSw==}
engines: {node: '>=12'}
@ -1883,6 +1919,15 @@ packages:
dev: true
optional: true
/esbuild-darwin-arm64/0.14.54:
resolution: {integrity: sha512-OPafJHD2oUPyvJMrsCvDGkRrVCar5aVyHfWGQzY1dWnzErjrDuSETxwA2HSsyg2jORLY8yBfzc1MIpUkXlctmw==}
engines: {node: '>=12'}
cpu: [arm64]
os: [darwin]
requiresBuild: true
dev: true
optional: true
/esbuild-freebsd-64/0.14.29:
resolution: {integrity: sha512-VTfS7Bm9QA12JK1YXF8+WyYOfvD7WMpbArtDj6bGJ5Sy5xp01c/q70Arkn596aGcGj0TvQRplaaCIrfBG1Wdtg==}
engines: {node: '>=12'}
@ -1892,6 +1937,15 @@ packages:
dev: true
optional: true
/esbuild-freebsd-64/0.14.54:
resolution: {integrity: sha512-OKwd4gmwHqOTp4mOGZKe/XUlbDJ4Q9TjX0hMPIDBUWWu/kwhBAudJdBoxnjNf9ocIB6GN6CPowYpR/hRCbSYAg==}
engines: {node: '>=12'}
cpu: [x64]
os: [freebsd]
requiresBuild: true
dev: true
optional: true
/esbuild-freebsd-arm64/0.14.29:
resolution: {integrity: sha512-WP5L4ejwLWWvd3Fo2J5mlXvG3zQHaw5N1KxFGnUc4+2ZFZknP0ST63i0IQhpJLgEJwnQpXv2uZlU1iWZjFqEIg==}
engines: {node: '>=12'}
@ -1901,6 +1955,15 @@ packages:
dev: true
optional: true
/esbuild-freebsd-arm64/0.14.54:
resolution: {integrity: sha512-sFwueGr7OvIFiQT6WeG0jRLjkjdqWWSrfbVwZp8iMP+8UHEHRBvlaxL6IuKNDwAozNUmbb8nIMXa7oAOARGs1Q==}
engines: {node: '>=12'}
cpu: [arm64]
os: [freebsd]
requiresBuild: true
dev: true
optional: true
/esbuild-linux-32/0.14.29:
resolution: {integrity: sha512-4myeOvFmQBWdI2U1dEBe2DCSpaZyjdQtmjUY11Zu2eQg4ynqLb8Y5mNjNU9UN063aVsCYYfbs8jbken/PjyidA==}
engines: {node: '>=12'}
@ -1910,6 +1973,15 @@ packages:
dev: true
optional: true
/esbuild-linux-32/0.14.54:
resolution: {integrity: sha512-1ZuY+JDI//WmklKlBgJnglpUL1owm2OX+8E1syCD6UAxcMM/XoWd76OHSjl/0MR0LisSAXDqgjT3uJqT67O3qw==}
engines: {node: '>=12'}
cpu: [ia32]
os: [linux]
requiresBuild: true
dev: true
optional: true
/esbuild-linux-64/0.14.29:
resolution: {integrity: sha512-iaEuLhssReAKE7HMwxwFJFn7D/EXEs43fFy5CJeA4DGmU6JHh0qVJD2p/UP46DvUXLRKXsXw0i+kv5TdJ1w5pg==}
engines: {node: '>=12'}
@ -1919,6 +1991,15 @@ packages:
dev: true
optional: true
/esbuild-linux-64/0.14.54:
resolution: {integrity: sha512-EgjAgH5HwTbtNsTqQOXWApBaPVdDn7XcK+/PtJwZLT1UmpLoznPd8c5CxqsH2dQK3j05YsB3L17T8vE7cp4cCg==}
engines: {node: '>=12'}
cpu: [x64]
os: [linux]
requiresBuild: true
dev: true
optional: true
/esbuild-linux-arm/0.14.29:
resolution: {integrity: sha512-OXa9D9QL1hwrAnYYAHt/cXAuSCmoSqYfTW/0CEY0LgJNyTxJKtqc5mlwjAZAvgyjmha0auS/sQ0bXfGf2wAokQ==}
engines: {node: '>=12'}
@ -1928,6 +2009,15 @@ packages:
dev: true
optional: true
/esbuild-linux-arm/0.14.54:
resolution: {integrity: sha512-qqz/SjemQhVMTnvcLGoLOdFpCYbz4v4fUo+TfsWG+1aOu70/80RV6bgNpR2JCrppV2moUQkww+6bWxXRL9YMGw==}
engines: {node: '>=12'}
cpu: [arm]
os: [linux]
requiresBuild: true
dev: true
optional: true
/esbuild-linux-arm64/0.14.29:
resolution: {integrity: sha512-KYf7s8wDfUy+kjKymW3twyGT14OABjGHRkm9gPJ0z4BuvqljfOOUbq9qT3JYFnZJHOgkr29atT//hcdD0Pi7Mw==}
engines: {node: '>=12'}
@ -1937,6 +2027,15 @@ packages:
dev: true
optional: true
/esbuild-linux-arm64/0.14.54:
resolution: {integrity: sha512-WL71L+0Rwv+Gv/HTmxTEmpv0UgmxYa5ftZILVi2QmZBgX3q7+tDeOQNqGtdXSdsL8TQi1vIaVFHUPDe0O0kdig==}
engines: {node: '>=12'}
cpu: [arm64]
os: [linux]
requiresBuild: true
dev: true
optional: true
/esbuild-linux-mips64le/0.14.29:
resolution: {integrity: sha512-05jPtWQMsZ1aMGfHOvnR5KrTvigPbU35BtuItSSWLI2sJu5VrM8Pr9Owym4wPvA4153DFcOJ1EPN/2ujcDt54g==}
engines: {node: '>=12'}
@ -1946,6 +2045,15 @@ packages:
dev: true
optional: true
/esbuild-linux-mips64le/0.14.54:
resolution: {integrity: sha512-qTHGQB8D1etd0u1+sB6p0ikLKRVuCWhYQhAHRPkO+OF3I/iSlTKNNS0Lh2Oc0g0UFGguaFZZiPJdJey3AGpAlw==}
engines: {node: '>=12'}
cpu: [mips64el]
os: [linux]
requiresBuild: true
dev: true
optional: true
/esbuild-linux-ppc64le/0.14.29:
resolution: {integrity: sha512-FYhBqn4Ir9xG+f6B5VIQVbRuM4S6qwy29dDNYFPoxLRnwTEKToIYIUESN1qHyUmIbfO0YB4phG2JDV2JDN9Kgw==}
engines: {node: '>=12'}
@ -1955,6 +2063,15 @@ packages:
dev: true
optional: true
/esbuild-linux-ppc64le/0.14.54:
resolution: {integrity: sha512-j3OMlzHiqwZBDPRCDFKcx595XVfOfOnv68Ax3U4UKZ3MTYQB5Yz3X1mn5GnodEVYzhtZgxEBidLWeIs8FDSfrQ==}
engines: {node: '>=12'}
cpu: [ppc64]
os: [linux]
requiresBuild: true
dev: true
optional: true
/esbuild-linux-riscv64/0.14.29:
resolution: {integrity: sha512-eqZMqPehkb4nZcffnuOpXJQdGURGd6GXQ4ZsDHSWyIUaA+V4FpMBe+5zMPtXRD2N4BtyzVvnBko6K8IWWr36ew==}
engines: {node: '>=12'}
@ -1964,6 +2081,15 @@ packages:
dev: true
optional: true
/esbuild-linux-riscv64/0.14.54:
resolution: {integrity: sha512-y7Vt7Wl9dkOGZjxQZnDAqqn+XOqFD7IMWiewY5SPlNlzMX39ocPQlOaoxvT4FllA5viyV26/QzHtvTjVNOxHZg==}
engines: {node: '>=12'}
cpu: [riscv64]
os: [linux]
requiresBuild: true
dev: true
optional: true
/esbuild-linux-s390x/0.14.29:
resolution: {integrity: sha512-o7EYajF1rC/4ho7kpSG3gENVx0o2SsHm7cJ5fvewWB/TEczWU7teDgusGSujxCYcMottE3zqa423VTglNTYhjg==}
engines: {node: '>=12'}
@ -1973,6 +2099,15 @@ packages:
dev: true
optional: true
/esbuild-linux-s390x/0.14.54:
resolution: {integrity: sha512-zaHpW9dziAsi7lRcyV4r8dhfG1qBidQWUXweUjnw+lliChJqQr+6XD71K41oEIC3Mx1KStovEmlzm+MkGZHnHA==}
engines: {node: '>=12'}
cpu: [s390x]
os: [linux]
requiresBuild: true
dev: true
optional: true
/esbuild-netbsd-64/0.14.29:
resolution: {integrity: sha512-/esN6tb6OBSot6+JxgeOZeBk6P8V/WdR3GKBFeFpSqhgw4wx7xWUqPrdx4XNpBVO7X4Ipw9SAqgBrWHlXfddww==}
engines: {node: '>=12'}
@ -1982,6 +2117,15 @@ packages:
dev: true
optional: true
/esbuild-netbsd-64/0.14.54:
resolution: {integrity: sha512-PR01lmIMnfJTgeU9VJTDY9ZerDWVFIUzAtJuDHwwceppW7cQWjBBqP48NdeRtoP04/AtO9a7w3viI+PIDr6d+w==}
engines: {node: '>=12'}
cpu: [x64]
os: [netbsd]
requiresBuild: true
dev: true
optional: true
/esbuild-node-loader/0.6.5:
resolution: {integrity: sha512-uPP+dllWm38cFvDysdocutN3lfe5pTIbddAHp1ENyLzpHYqE2r+3Wo+pfg9X3p8DFWwzIisft5YkeBIthIcixw==}
dependencies:
@ -1997,6 +2141,15 @@ packages:
dev: true
optional: true
/esbuild-openbsd-64/0.14.54:
resolution: {integrity: sha512-Qyk7ikT2o7Wu76UsvvDS5q0amJvmRzDyVlL0qf5VLsLchjCa1+IAvd8kTBgUxD7VBUUVgItLkk609ZHUc1oCaw==}
engines: {node: '>=12'}
cpu: [x64]
os: [openbsd]
requiresBuild: true
dev: true
optional: true
/esbuild-register/3.3.2_esbuild@0.14.29:
resolution: {integrity: sha512-jceAtTO6zxPmCfSD5cBb3rgIK1vmuqCKYwgylHiS1BF4pq0jJiJb4K2QMuqF4BEw7XDBRatYzip0upyTzfkgsQ==}
peerDependencies:
@ -2014,6 +2167,15 @@ packages:
dev: true
optional: true
/esbuild-sunos-64/0.14.54:
resolution: {integrity: sha512-28GZ24KmMSeKi5ueWzMcco6EBHStL3B6ubM7M51RmPwXQGLe0teBGJocmWhgwccA1GeFXqxzILIxXpHbl9Q/Kw==}
engines: {node: '>=12'}
cpu: [x64]
os: [sunos]
requiresBuild: true
dev: true
optional: true
/esbuild-windows-32/0.14.29:
resolution: {integrity: sha512-uoyb0YAJ6uWH4PYuYjfGNjvgLlb5t6b3zIaGmpWPOjgpr1Nb3SJtQiK4YCPGhONgfg2v6DcJgSbOteuKXhwqAw==}
engines: {node: '>=12'}
@ -2023,6 +2185,15 @@ packages:
dev: true
optional: true
/esbuild-windows-32/0.14.54:
resolution: {integrity: sha512-T+rdZW19ql9MjS7pixmZYVObd9G7kcaZo+sETqNH4RCkuuYSuv9AGHUVnPoP9hhuE1WM1ZimHz1CIBHBboLU7w==}
engines: {node: '>=12'}
cpu: [ia32]
os: [win32]
requiresBuild: true
dev: true
optional: true
/esbuild-windows-64/0.14.29:
resolution: {integrity: sha512-X9cW/Wl95QjsH8WUyr3NqbmfdU72jCp71cH3pwPvI4CgBM2IeOUDdbt6oIGljPu2bf5eGDIo8K3Y3vvXCCTd8A==}
engines: {node: '>=12'}
@ -2032,6 +2203,15 @@ packages:
dev: true
optional: true
/esbuild-windows-64/0.14.54:
resolution: {integrity: sha512-AoHTRBUuYwXtZhjXZbA1pGfTo8cJo3vZIcWGLiUcTNgHpJJMC1rVA44ZereBHMJtotyN71S8Qw0npiCIkW96cQ==}
engines: {node: '>=12'}
cpu: [x64]
os: [win32]
requiresBuild: true
dev: true
optional: true
/esbuild-windows-arm64/0.14.29:
resolution: {integrity: sha512-+O/PI+68fbUZPpl3eXhqGHTGK7DjLcexNnyJqtLZXOFwoAjaXlS5UBCvVcR3o2va+AqZTj8o6URaz8D2K+yfQQ==}
engines: {node: '>=12'}
@ -2041,6 +2221,15 @@ packages:
dev: true
optional: true
/esbuild-windows-arm64/0.14.54:
resolution: {integrity: sha512-M0kuUvXhot1zOISQGXwWn6YtS+Y/1RT9WrVIOywZnJHo3jCDyewAc79aKNQWFCQm+xNHVTq9h8dZKvygoXQQRg==}
engines: {node: '>=12'}
cpu: [arm64]
os: [win32]
requiresBuild: true
dev: true
optional: true
/esbuild/0.11.3:
resolution: {integrity: sha512-BzVRHcCtFepjS9WcqRjqoIxLqgpK21a8J4Zi4msSGxDxiXVO1IbcqT1KjhdDDnJxKfe7bvzZrvMEX+bVO0Elcw==}
hasBin: true
@ -2075,6 +2264,35 @@ packages:
esbuild-windows-arm64: 0.14.29
dev: true
/esbuild/0.14.54:
resolution: {integrity: sha512-Cy9llcy8DvET5uznocPyqL3BFRrFXSVqbgpMJ9Wz8oVjZlh/zUSNbPRbov0VX7VxN2JH1Oa0uNxZ7eLRb62pJA==}
engines: {node: '>=12'}
hasBin: true
requiresBuild: true
optionalDependencies:
'@esbuild/linux-loong64': 0.14.54
esbuild-android-64: 0.14.54
esbuild-android-arm64: 0.14.54
esbuild-darwin-64: 0.14.54
esbuild-darwin-arm64: 0.14.54
esbuild-freebsd-64: 0.14.54
esbuild-freebsd-arm64: 0.14.54
esbuild-linux-32: 0.14.54
esbuild-linux-64: 0.14.54
esbuild-linux-arm: 0.14.54
esbuild-linux-arm64: 0.14.54
esbuild-linux-mips64le: 0.14.54
esbuild-linux-ppc64le: 0.14.54
esbuild-linux-riscv64: 0.14.54
esbuild-linux-s390x: 0.14.54
esbuild-netbsd-64: 0.14.54
esbuild-openbsd-64: 0.14.54
esbuild-sunos-64: 0.14.54
esbuild-windows-32: 0.14.54
esbuild-windows-64: 0.14.54
esbuild-windows-arm64: 0.14.54
dev: true
/escalade/3.1.1:
resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==}
engines: {node: '>=6'}
@ -2923,6 +3141,12 @@ packages:
builtin-modules: 3.3.0
dev: true
/is-core-module/2.10.0:
resolution: {integrity: sha512-Erxj2n/LDAZ7H8WNJXd9tw38GYM3dv8rk8Zcs+jJuxYTW7sozH+SS8NtrSjVL1/vpLvWi1hxy96IzjJ3EHTJJg==}
dependencies:
has: 1.0.3
dev: true
/is-core-module/2.8.1:
resolution: {integrity: sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA==}
dependencies:
@ -3975,8 +4199,8 @@ packages:
picocolors: 1.0.0
source-map-js: 1.0.2
/postcss/8.4.13:
resolution: {integrity: sha512-jtL6eTBrza5MPzy8oJLFuUscHDXTV5KcLlqAWHl5q5WYRfnNRGSmOZmOZ1T6Gy7A99mOZfqungmZMpMmCVJ8ZA==}
/postcss/8.4.16:
resolution: {integrity: sha512-ipHE1XBvKzm5xI7hiHCZJCSugxvsdq2mPnsq5+UF+VHCjiBvtDrlxJfMBToWaP9D5XlgNmcFGqoHmUn0EYEaRQ==}
engines: {node: ^10 || ^12 || >=14}
dependencies:
nanoid: 3.3.4
@ -4184,6 +4408,15 @@ packages:
supports-preserve-symlinks-flag: 1.0.0
dev: true
/resolve/1.22.1:
resolution: {integrity: sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==}
hasBin: true
dependencies:
is-core-module: 2.10.0
path-parse: 1.0.7
supports-preserve-symlinks-flag: 1.0.0
dev: true
/restore-cursor/2.0.0:
resolution: {integrity: sha512-6IzJLuGi4+R14vwagDHX+JrXmPVtPpn4mffDJ1UdR7/Edm87fl6yi8mMBIVvFtJaNTUvjughmW4hwLhRG7gC1Q==}
engines: {node: '>=4'}
@ -4241,8 +4474,8 @@ packages:
yargs: 17.4.1
dev: true
/rollup/2.73.0:
resolution: {integrity: sha512-h/UngC3S4Zt28mB3g0+2YCMegT5yoftnQplwzPqGZcKvlld5e+kT/QRmJiL+qxGyZKOYpgirWGdLyEO1b0dpLQ==}
/rollup/2.77.3:
resolution: {integrity: sha512-/qxNTG7FbmefJWoeeYJFbHehJ2HNWnjkAFRKzWN/45eNBBF/r8lo992CwcJXEzyVxs5FmfId+vTSTQDb+bxA+g==}
engines: {node: '>=10.0.0'}
hasBin: true
optionalDependencies:
@ -4902,7 +5135,7 @@ packages:
engines: {node: '>=12.18'}
dev: true
/unimport/0.4.4_vite@2.9.9:
/unimport/0.4.4_vite@3.0.9:
resolution: {integrity: sha512-gYWGl4LUIasAbV7PXCaByuB6NcerrHRIRICooXtAFI7JCGY74CYGVq080P/yg7C4AYs+RYuJQdYsaRAJvG7bsQ==}
dependencies:
'@rollup/pluginutils': 4.2.1
@ -4914,7 +5147,7 @@ packages:
pathe: 0.3.2
scule: 0.2.1
strip-literal: 0.4.0
unplugin: 0.7.1_vite@2.9.9
unplugin: 0.7.1_vite@3.0.9
transitivePeerDependencies:
- esbuild
- rollup
@ -4942,7 +5175,7 @@ packages:
engines: {node: '>= 10.0.0'}
dev: true
/unocss/0.43.2_vite@2.9.9:
/unocss/0.43.2_vite@3.0.9:
resolution: {integrity: sha512-HGBV/ulLwmMSA7b5Vv//bv47S6EeYAyWQ+yuZAVPIs7nhrxNQfXQxPk+gehFneWn+gfgmrR3WBA2s6+50ydhtw==}
engines: {node: '>=14'}
peerDependencies:
@ -4965,7 +5198,7 @@ packages:
'@unocss/transformer-compile-class': 0.43.2
'@unocss/transformer-directives': 0.43.2
'@unocss/transformer-variant-group': 0.43.2
'@unocss/vite': 0.43.2_vite@2.9.9
'@unocss/vite': 0.43.2_vite@3.0.9
transitivePeerDependencies:
- supports-color
- vite
@ -4976,7 +5209,7 @@ packages:
engines: {node: '>= 0.8'}
dev: true
/unplugin-auto-import/0.9.2_y44jlmyuqbnkfkqeyjo67naj6e:
/unplugin-auto-import/0.9.2_w5m6vlow2rpxta3gfwfgj3us4a:
resolution: {integrity: sha512-cihfSyWtDyOvpD+bKQ77XSJF2Ix3N3ueatd59slBKgl995fbfExf2qXk/KialZE4/pPNjdGNEJl5ZwAhYj+e1g==}
engines: {node: '>=14'}
peerDependencies:
@ -4990,8 +5223,8 @@ packages:
'@vueuse/core': 8.4.2_vue@3.2.31
local-pkg: 0.4.1
magic-string: 0.26.2
unimport: 0.4.4_vite@2.9.9
unplugin: 0.7.1_vite@2.9.9
unimport: 0.4.4_vite@3.0.9
unplugin: 0.7.1_vite@3.0.9
transitivePeerDependencies:
- esbuild
- rollup
@ -4999,7 +5232,7 @@ packages:
- webpack
dev: true
/unplugin-icons/0.14.1_jyihscimozjyoh3ugo77i7phoi:
/unplugin-icons/0.14.1_kxanskcjos2practu6ljrgseeq:
resolution: {integrity: sha512-drZFbMctvT3ZJPfdCgBv5+LKO8hGbZApRCoBRAUhQFRJQVNGUhGThrOKs+CvWq3XDBPptGNBmst8WyObbr4xiQ==}
peerDependencies:
'@svgr/core': '>=5.5.0'
@ -5023,7 +5256,7 @@ packages:
debug: 4.3.4
kolorist: 1.5.1
local-pkg: 0.4.1
unplugin: 0.5.2_vite@2.9.9
unplugin: 0.5.2_vite@3.0.9
transitivePeerDependencies:
- esbuild
- rollup
@ -5032,7 +5265,7 @@ packages:
- webpack
dev: true
/unplugin-vue-components/0.17.21_vite@2.9.9+vue@3.2.31:
/unplugin-vue-components/0.17.21_vite@3.0.9+vue@3.2.31:
resolution: {integrity: sha512-jkXksUF6zkNbzHQbw1DdrsQyVoMZGESRZDIGd9x7nUP+65nHdpBCY/JmlxSjKbuTrOwfMsk6FQFa0RpRueOCKg==}
engines: {node: '>=14'}
peerDependencies:
@ -5054,7 +5287,7 @@ packages:
magic-string: 0.25.9
minimatch: 3.1.2
resolve: 1.22.0
unplugin: 0.3.3_vite@2.9.9
unplugin: 0.3.3_vite@3.0.9
vue: 3.2.31
transitivePeerDependencies:
- esbuild
@ -5064,7 +5297,7 @@ packages:
- webpack
dev: true
/unplugin/0.3.3_vite@2.9.9:
/unplugin/0.3.3_vite@3.0.9:
resolution: {integrity: sha512-WjZWpUqqcYPQ/efR00Zm2m1+J1LitwoZ4uhHV4VdZ+IpW0Nh/qnDYtVf+nLhozXdGxslMPecOshVR7NiWFl4gA==}
peerDependencies:
esbuild: '>=0.13'
@ -5081,11 +5314,11 @@ packages:
webpack:
optional: true
dependencies:
vite: 2.9.9_sass@1.49.10
vite: 3.0.9_sass@1.49.10
webpack-virtual-modules: 0.4.3
dev: true
/unplugin/0.5.2_vite@2.9.9:
/unplugin/0.5.2_vite@3.0.9:
resolution: {integrity: sha512-3SPYtus/56cxyD4jfjrnqCvb6jPxvdqJNaRXnEaG2BhNEMaoygu/39AG+LwKmiIUzj4XHyitcfZ7scGlWfEigA==}
peerDependencies:
esbuild: '>=0.13'
@ -5103,12 +5336,12 @@ packages:
optional: true
dependencies:
chokidar: 3.5.3
vite: 2.9.9_sass@1.49.10
vite: 3.0.9_sass@1.49.10
webpack-sources: 3.2.3
webpack-virtual-modules: 0.4.3
dev: true
/unplugin/0.7.1_vite@2.9.9:
/unplugin/0.7.1_vite@3.0.9:
resolution: {integrity: sha512-Z6hNDXDNh9aimMkPU1mEjtk+2ova8gh0y7rJeJdGH1vWZOHwF2lLQiQ/R97rv9ymmzEQXsR2fyMet72T8jy6ew==}
peerDependencies:
esbuild: '>=0.13'
@ -5127,7 +5360,7 @@ packages:
dependencies:
acorn: 8.7.1
chokidar: 3.5.3
vite: 2.9.9_sass@1.49.10
vite: 3.0.9_sass@1.49.10
webpack-sources: 3.2.3
webpack-virtual-modules: 0.4.4
dev: true
@ -5201,7 +5434,7 @@ packages:
vue: 3.2.31
dev: true
/vite-plugin-compression/0.5.1_vite@2.9.9:
/vite-plugin-compression/0.5.1_vite@3.0.9:
resolution: {integrity: sha512-5QJKBDc+gNYVqL/skgFAP81Yuzo9R+EAf19d+EtsMF/i8kFUpNi3J/H01QD3Oo8zBQn+NzoCIFkpPLynoOzaJg==}
peerDependencies:
vite: '>=2.0.0'
@ -5209,12 +5442,12 @@ packages:
chalk: 4.1.2
debug: 4.3.4
fs-extra: 10.0.1
vite: 2.9.9_sass@1.49.10
vite: 3.0.9_sass@1.49.10
transitivePeerDependencies:
- supports-color
dev: true
/vite-plugin-html/3.2.0_vite@2.9.9:
/vite-plugin-html/3.2.0_vite@3.0.9:
resolution: {integrity: sha512-2VLCeDiHmV/BqqNn5h2V+4280KRgQzCFN47cst3WiNK848klESPQnzuC3okH5XHtgwHH/6s1Ho/YV6yIO0pgoQ==}
peerDependencies:
vite: '>=2.0.0'
@ -5231,10 +5464,10 @@ packages:
html-minifier-terser: 6.1.0
node-html-parser: 5.3.3
pathe: 0.2.0
vite: 2.9.9_sass@1.49.10
vite: 3.0.9_sass@1.49.10
dev: true
/vite-plugin-mock/2.9.6_mockjs@1.1.0+vite@2.9.9:
/vite-plugin-mock/2.9.6_mockjs@1.1.0+vite@3.0.9:
resolution: {integrity: sha512-/Rm59oPppe/ncbkSrUuAxIQihlI2YcBmnbR4ST1RA2VzM1C0tEQc1KlbQvnUGhXECAGTaQN2JyasiwXP6EtKgg==}
engines: {node: '>=12.0.0'}
peerDependencies:
@ -5251,13 +5484,13 @@ packages:
fast-glob: 3.2.11
mockjs: 1.1.0
path-to-regexp: 6.2.1
vite: 2.9.9_sass@1.49.10
vite: 3.0.9_sass@1.49.10
transitivePeerDependencies:
- rollup
- supports-color
dev: true
/vite-plugin-svg-icons/2.0.1_vite@2.9.9:
/vite-plugin-svg-icons/2.0.1_vite@3.0.9:
resolution: {integrity: sha512-6ktD+DhV6Rz3VtedYvBKKVA2eXF+sAQVaKkKLDSqGUfnhqXl3bj5PPkVTl3VexfTuZy66PmINi8Q6eFnVfRUmA==}
peerDependencies:
vite: '>=2.0.0'
@ -5270,7 +5503,7 @@ packages:
pathe: 0.2.0
svg-baker: 1.7.0
svgo: 2.8.0
vite: 2.9.9_sass@1.49.10
vite: 3.0.9_sass@1.49.10
transitivePeerDependencies:
- supports-color
dev: true
@ -5279,14 +5512,15 @@ packages:
resolution: {integrity: sha512-pa27KIsHIBvBMv4xz9uB3UCfAuP2tr7PLlFhCS9vw+aXd326LEHsvhqd3hCQDOR5MjlQVyQH6vwuGr3u+KRiiw==}
dev: true
/vite/2.9.9_sass@1.49.10:
resolution: {integrity: sha512-ffaam+NgHfbEmfw/Vuh6BHKKlI/XIAhxE5QSS7gFLIngxg171mg1P3a4LSRME0z2ZU1ScxoKzphkipcYwSD5Ew==}
engines: {node: '>=12.2.0'}
/vite/3.0.9_sass@1.49.10:
resolution: {integrity: sha512-waYABTM+G6DBTCpYAxvevpG50UOlZuynR0ckTK5PawNVt7ebX6X7wNXHaGIO6wYYFXSM7/WcuFuO2QzhBB6aMw==}
engines: {node: ^14.18.0 || >=16.0.0}
hasBin: true
peerDependencies:
less: '*'
sass: '*'
stylus: '*'
terser: ^5.4.0
peerDependenciesMeta:
less:
optional: true
@ -5294,11 +5528,13 @@ packages:
optional: true
stylus:
optional: true
terser:
optional: true
dependencies:
esbuild: 0.14.29
postcss: 8.4.13
resolve: 1.22.0
rollup: 2.73.0
esbuild: 0.14.54
postcss: 8.4.16
resolve: 1.22.1
rollup: 2.77.3
sass: 1.49.10
optionalDependencies:
fsevents: 2.3.2

View File

@ -63,7 +63,7 @@ export const NOT_FOUND_ROUTE = {
isHidden: true,
}
const modules = import.meta.globEager('@/views/**/route.js')
const modules = import.meta.glob('@/views/**/route.js', { eager: true })
const asyncRoutes = []
Object.keys(modules).forEach((key) => {
asyncRoutes.push(modules[key].default)