From 384485f6994c6ac33abee506508ab9d35fe658a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=87=AF=E9=BE=99?= <502431556@qq.com> Date: Mon, 21 Feb 2022 15:05:58 +0800 Subject: [PATCH] build: Add conventional-changelog-cli plugin --- CHANGELOG.md | 0 log.md | 3 - package.json | 2 + pnpm-lock.yaml | 947 ++++++++++++++++++++++++++++++++++++++------ src/permission.ts | 6 +- src/router/index.ts | 11 +- 6 files changed, 841 insertions(+), 128 deletions(-) create mode 100644 CHANGELOG.md delete mode 100644 log.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..e69de29 diff --git a/log.md b/log.md deleted file mode 100644 index c5bb2f3..0000000 --- a/log.md +++ /dev/null @@ -1,3 +0,0 @@ -vscode 安装 WindiCSS IntelliSense - -自动导入太慢了。所以暂时不使用这种方案 diff --git a/package.json b/package.json index ad3fc0c..fa61b66 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "serve:dev": "vite preview --mode dev", "serve:test": "vite preview --mode test", "npm:check": "npx npm-check-updates", + "log": "conventional-changelog -p angular -i CHANGELOG.md -s", "clean": "npx rimraf node_modules", "clean:cache": "npx rimraf node_modules/.cache", "lint:eslint": "eslint --fix --ext .js,.ts,.vue ./src", @@ -68,6 +69,7 @@ "@vitejs/plugin-vue-jsx": "^1.3.7", "autoprefixer": "^10.4.2", "commitizen": "^4.2.4", + "conventional-changelog-cli": "^2.2.2", "eslint": "^8.9.0", "eslint-config-prettier": "^8.3.0", "eslint-define-config": "^1.2.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 118b376..8bcd278 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -25,6 +25,7 @@ specifiers: autoprefixer: ^10.4.2 axios: ^0.26.0 commitizen: ^4.2.4 + conventional-changelog-cli: ^2.2.2 echarts: ^5.3.0 echarts-wordcloud: ^2.0.0 element-plus: 2.0.2 @@ -119,6 +120,7 @@ devDependencies: '@vitejs/plugin-vue-jsx': registry.npmmirror.com/@vitejs/plugin-vue-jsx/1.3.7 autoprefixer: registry.npmmirror.com/autoprefixer/10.4.2_postcss@8.4.6 commitizen: registry.npmmirror.com/commitizen/4.2.4 + conventional-changelog-cli: registry.npmmirror.com/conventional-changelog-cli/2.2.2 eslint: registry.npmmirror.com/eslint/8.9.0 eslint-config-prettier: registry.nlark.com/eslint-config-prettier/8.3.0_eslint@8.9.0 eslint-define-config: registry.npmmirror.com/eslint-define-config/1.2.5 @@ -404,21 +406,6 @@ packages: version: 2.2.1 dev: true - registry.nlark.com/cliui/6.0.0: - resolution: - { - integrity: sha1-UR1wLAxOQcoVbX0OlgIfI+EyJbE=, - registry: https://registry.npm.taobao.org/, - tarball: https://registry.nlark.com/cliui/download/cliui-6.0.0.tgz - } - name: cliui - version: 6.0.0 - dependencies: - string-width: registry.npmmirror.com/string-width/4.2.3 - strip-ansi: registry.npmmirror.com/strip-ansi/6.0.1 - wrap-ansi: registry.npmmirror.com/wrap-ansi/6.2.0 - dev: false - registry.nlark.com/concat-map/0.0.1: resolution: { @@ -641,18 +628,6 @@ packages: engines: { node: '>=0.12' } dev: true - registry.nlark.com/escalade/3.1.1: - resolution: - { - integrity: sha1-2M/ccACWXFoBdLSoLqpcBVJ0LkA=, - registry: https://registry.npm.taobao.org/, - tarball: https://registry.nlark.com/escalade/download/escalade-3.1.1.tgz - } - name: escalade - version: 3.1.1 - engines: { node: '>=6' } - dev: true - registry.nlark.com/escape-html/1.0.3: resolution: { @@ -855,18 +830,6 @@ packages: version: 1.0.0 dev: true - registry.nlark.com/get-caller-file/2.0.5: - resolution: - { - integrity: sha1-T5RBKoLbMvNuOwuXQfipf+sDH34=, - registry: https://registry.npm.taobao.org/, - tarball: https://registry.nlark.com/get-caller-file/download/get-caller-file-2.0.5.tgz - } - name: get-caller-file - version: 2.0.5 - engines: { node: 6.* || 8.* || >= 10.* } - dev: false - registry.nlark.com/get-intrinsic/1.1.1: resolution: { @@ -924,17 +887,6 @@ packages: wrappy: registry.nlark.com/wrappy/1.0.2 dev: true - registry.nlark.com/inherits/2.0.4: - resolution: - { - integrity: sha1-D6LGT5MpF8NDOg3tVTY6rjdBa3w=, - registry: https://registry.npm.taobao.org/, - tarball: https://registry.nlark.com/inherits/download/inherits-2.0.4.tgz - } - name: inherits - version: 2.0.4 - dev: true - registry.nlark.com/is-binary-path/2.1.0: resolution: { @@ -972,17 +924,6 @@ packages: version: 0.2.1 dev: true - registry.nlark.com/isarray/1.0.0: - resolution: - { - integrity: sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=, - registry: https://registry.npm.taobao.org/, - tarball: https://registry.nlark.com/isarray/download/isarray-1.0.0.tgz - } - name: isarray - version: 1.0.0 - dev: true - registry.nlark.com/jstransformer/1.0.0: resolution: { @@ -1230,19 +1171,6 @@ packages: engines: { node: '>=0.10.0' } dev: true - registry.nlark.com/pify/4.0.1: - resolution: - { - integrity: sha1-SyzSXFDVmHNcUCkiJP2MbfQeMjE=, - registry: https://registry.npm.taobao.org/, - tarball: https://registry.nlark.com/pify/download/pify-4.0.1.tgz - } - name: pify - version: 4.0.1 - engines: { node: '>=6' } - dev: true - optional: true - registry.nlark.com/pngjs/5.0.0: resolution: { @@ -1517,17 +1445,6 @@ packages: traverse: registry.npmmirror.com/traverse/0.6.6 dev: true - registry.nlark.com/through/2.3.8: - resolution: - { - integrity: sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=, - registry: https://registry.npm.taobao.org/, - tarball: https://registry.nlark.com/through/download/through-2.3.8.tgz - } - name: through - version: 2.3.8 - dev: true - registry.nlark.com/tmp/0.0.33: resolution: { @@ -1678,17 +1595,6 @@ packages: version: 1.0.2 dev: true - registry.nlark.com/y18n/4.0.3: - resolution: - { - integrity: sha1-tfJZyCzW4zaSHv17/Yv1YN6e7t8=, - registry: https://registry.npm.taobao.org/, - tarball: https://registry.nlark.com/y18n/download/y18n-4.0.3.tgz - } - name: y18n - version: 4.0.3 - dev: false - registry.nlark.com/yn/3.1.1: resolution: { @@ -2737,6 +2643,18 @@ packages: version: 1.2.1 dev: true + registry.npmmirror.com/@hutson/parse-repository-url/3.0.2: + resolution: + { + integrity: sha512-H9XAx3hc0BQHY6l+IFSWHDySypcXsvsuLhgYLUGywmJ5pswRVQJUHpOsobnLYp2ZUaUlKiKDrgWWhosOwAEM8Q==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/@hutson/parse-repository-url/-/parse-repository-url-3.0.2.tgz + } + name: '@hutson/parse-repository-url' + version: 3.0.2 + engines: { node: '>=6.9.0' } + dev: true + registry.npmmirror.com/@iconify/iconify/2.0.0-rc.6: resolution: { @@ -3088,7 +3006,7 @@ packages: builtin-modules: registry.nlark.com/builtin-modules/3.2.0 deepmerge: registry.nlark.com/deepmerge/4.2.2 is-module: registry.npmmirror.com/is-module/1.0.0 - resolve: registry.npmmirror.com/resolve/1.20.0 + resolve: registry.npmmirror.com/resolve/1.22.0 dev: true registry.npmmirror.com/@rollup/pluginutils/3.1.0: @@ -4499,6 +4417,17 @@ packages: hasBin: true dev: true + registry.npmmirror.com/add-stream/1.0.0: + resolution: + { + integrity: sha512-qQLMr+8o0WC4FZGQTcJiKBVC59JylcPSrTtk6usvmIDFUOCKegapy1VHQwRbFMOFyb/inzUVqHs+eMYKDM1YeQ==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/add-stream/-/add-stream-1.0.0.tgz + } + name: add-stream + version: 1.0.0 + dev: true + registry.npmmirror.com/aggregate-error/3.1.0: resolution: { @@ -5087,7 +5016,7 @@ packages: dependencies: caniuse-lite: registry.npmmirror.com/caniuse-lite/1.0.30001298 electron-to-chromium: registry.npmmirror.com/electron-to-chromium/1.4.30 - escalade: registry.nlark.com/escalade/3.1.1 + escalade: registry.npmmirror.com/escalade/3.1.1 node-releases: registry.npmmirror.com/node-releases/2.0.1 picocolors: registry.npmmirror.com/picocolors/1.0.0 dev: true @@ -5463,6 +5392,21 @@ packages: string-width: registry.npmmirror.com/string-width/5.0.1 dev: true + registry.npmmirror.com/cliui/6.0.0: + resolution: + { + integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/cliui/-/cliui-6.0.0.tgz + } + name: cliui + version: 6.0.0 + dependencies: + string-width: registry.npmmirror.com/string-width/4.2.3 + strip-ansi: registry.npmmirror.com/strip-ansi/6.0.1 + wrap-ansi: registry.npmmirror.com/wrap-ansi/6.2.0 + dev: false + registry.npmmirror.com/cliui/7.0.4: resolution: { @@ -5756,6 +5700,53 @@ packages: q: registry.npmmirror.com/q/1.5.1 dev: true + registry.npmmirror.com/conventional-changelog-atom/2.0.8: + resolution: + { + integrity: sha512-xo6v46icsFTK3bb7dY/8m2qvc8sZemRgdqLb/bjpBsH2UyOS8rKNTgcb5025Hri6IpANPApbXMg15QLb1LJpBw==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/conventional-changelog-atom/-/conventional-changelog-atom-2.0.8.tgz + } + name: conventional-changelog-atom + version: 2.0.8 + engines: { node: '>=10' } + dependencies: + q: registry.npmmirror.com/q/1.5.1 + dev: true + + registry.npmmirror.com/conventional-changelog-cli/2.2.2: + resolution: + { + integrity: sha512-8grMV5Jo8S0kP3yoMeJxV2P5R6VJOqK72IiSV9t/4H5r/HiRqEBQ83bYGuz4Yzfdj4bjaAEhZN/FFbsFXr5bOA==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/conventional-changelog-cli/-/conventional-changelog-cli-2.2.2.tgz + } + name: conventional-changelog-cli + version: 2.2.2 + engines: { node: '>=10' } + hasBin: true + dependencies: + add-stream: registry.npmmirror.com/add-stream/1.0.0 + conventional-changelog: registry.npmmirror.com/conventional-changelog/3.1.25 + lodash: registry.npmmirror.com/lodash/4.17.21 + meow: registry.npmmirror.com/meow/8.1.2 + tempfile: registry.npmmirror.com/tempfile/3.0.0 + dev: true + + registry.npmmirror.com/conventional-changelog-codemirror/2.0.8: + resolution: + { + integrity: sha512-z5DAsn3uj1Vfp7po3gpt2Boc+Bdwmw2++ZHa5Ak9k0UKsYAO5mH1UBTN0qSCuJZREIhX6WU4E1p3IW2oRCNzQw==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/conventional-changelog-codemirror/-/conventional-changelog-codemirror-2.0.8.tgz + } + name: conventional-changelog-codemirror + version: 2.0.8 + engines: { node: '>=10' } + dependencies: + q: registry.npmmirror.com/q/1.5.1 + dev: true + registry.npmmirror.com/conventional-changelog-conventionalcommits/4.6.3: resolution: { @@ -5772,6 +5763,178 @@ packages: q: registry.npmmirror.com/q/1.5.1 dev: true + registry.npmmirror.com/conventional-changelog-core/4.2.4: + resolution: + { + integrity: sha512-gDVS+zVJHE2v4SLc6B0sLsPiloR0ygU7HaDW14aNJE1v4SlqJPILPl/aJC7YdtRE4CybBf8gDwObBvKha8Xlyg==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/conventional-changelog-core/-/conventional-changelog-core-4.2.4.tgz + } + name: conventional-changelog-core + version: 4.2.4 + engines: { node: '>=10' } + dependencies: + add-stream: registry.npmmirror.com/add-stream/1.0.0 + conventional-changelog-writer: registry.npmmirror.com/conventional-changelog-writer/5.0.1 + conventional-commits-parser: registry.npmmirror.com/conventional-commits-parser/3.2.4 + dateformat: registry.npmmirror.com/dateformat/3.0.3 + get-pkg-repo: registry.npmmirror.com/get-pkg-repo/4.2.1 + git-raw-commits: registry.npmmirror.com/git-raw-commits/2.0.11 + git-remote-origin-url: registry.npmmirror.com/git-remote-origin-url/2.0.0 + git-semver-tags: registry.npmmirror.com/git-semver-tags/4.1.1 + lodash: registry.npmmirror.com/lodash/4.17.21 + normalize-package-data: registry.npmmirror.com/normalize-package-data/3.0.3 + q: registry.npmmirror.com/q/1.5.1 + read-pkg: registry.npmmirror.com/read-pkg/3.0.0 + read-pkg-up: registry.npmmirror.com/read-pkg-up/3.0.0 + through2: registry.npmmirror.com/through2/4.0.2 + dev: true + + registry.npmmirror.com/conventional-changelog-ember/2.0.9: + resolution: + { + integrity: sha512-ulzIReoZEvZCBDhcNYfDIsLTHzYHc7awh+eI44ZtV5cx6LVxLlVtEmcO+2/kGIHGtw+qVabJYjdI5cJOQgXh1A==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/conventional-changelog-ember/-/conventional-changelog-ember-2.0.9.tgz + } + name: conventional-changelog-ember + version: 2.0.9 + engines: { node: '>=10' } + dependencies: + q: registry.npmmirror.com/q/1.5.1 + dev: true + + registry.npmmirror.com/conventional-changelog-eslint/3.0.9: + resolution: + { + integrity: sha512-6NpUCMgU8qmWmyAMSZO5NrRd7rTgErjrm4VASam2u5jrZS0n38V7Y9CzTtLT2qwz5xEChDR4BduoWIr8TfwvXA==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/conventional-changelog-eslint/-/conventional-changelog-eslint-3.0.9.tgz + } + name: conventional-changelog-eslint + version: 3.0.9 + engines: { node: '>=10' } + dependencies: + q: registry.npmmirror.com/q/1.5.1 + dev: true + + registry.npmmirror.com/conventional-changelog-express/2.0.6: + resolution: + { + integrity: sha512-SDez2f3iVJw6V563O3pRtNwXtQaSmEfTCaTBPCqn0oG0mfkq0rX4hHBq5P7De2MncoRixrALj3u3oQsNK+Q0pQ==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/conventional-changelog-express/-/conventional-changelog-express-2.0.6.tgz + } + name: conventional-changelog-express + version: 2.0.6 + engines: { node: '>=10' } + dependencies: + q: registry.npmmirror.com/q/1.5.1 + dev: true + + registry.npmmirror.com/conventional-changelog-jquery/3.0.11: + resolution: + { + integrity: sha512-x8AWz5/Td55F7+o/9LQ6cQIPwrCjfJQ5Zmfqi8thwUEKHstEn4kTIofXub7plf1xvFA2TqhZlq7fy5OmV6BOMw==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/conventional-changelog-jquery/-/conventional-changelog-jquery-3.0.11.tgz + } + name: conventional-changelog-jquery + version: 3.0.11 + engines: { node: '>=10' } + dependencies: + q: registry.npmmirror.com/q/1.5.1 + dev: true + + registry.npmmirror.com/conventional-changelog-jshint/2.0.9: + resolution: + { + integrity: sha512-wMLdaIzq6TNnMHMy31hql02OEQ8nCQfExw1SE0hYL5KvU+JCTuPaDO+7JiogGT2gJAxiUGATdtYYfh+nT+6riA==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/conventional-changelog-jshint/-/conventional-changelog-jshint-2.0.9.tgz + } + name: conventional-changelog-jshint + version: 2.0.9 + engines: { node: '>=10' } + dependencies: + compare-func: registry.npmmirror.com/compare-func/2.0.0 + q: registry.npmmirror.com/q/1.5.1 + dev: true + + registry.npmmirror.com/conventional-changelog-preset-loader/2.3.4: + resolution: + { + integrity: sha512-GEKRWkrSAZeTq5+YjUZOYxdHq+ci4dNwHvpaBC3+ENalzFWuCWa9EZXSuZBpkr72sMdKB+1fyDV4takK1Lf58g==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/conventional-changelog-preset-loader/-/conventional-changelog-preset-loader-2.3.4.tgz + } + name: conventional-changelog-preset-loader + version: 2.3.4 + engines: { node: '>=10' } + dev: true + + registry.npmmirror.com/conventional-changelog-writer/5.0.1: + resolution: + { + integrity: sha512-5WsuKUfxW7suLblAbFnxAcrvf6r+0b7GvNaWUwUIk0bXMnENP/PEieGKVUQrjPqwPT4o3EPAASBXiY6iHooLOQ==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/conventional-changelog-writer/-/conventional-changelog-writer-5.0.1.tgz + } + name: conventional-changelog-writer + version: 5.0.1 + engines: { node: '>=10' } + hasBin: true + dependencies: + conventional-commits-filter: registry.npmmirror.com/conventional-commits-filter/2.0.7 + dateformat: registry.npmmirror.com/dateformat/3.0.3 + handlebars: registry.npmmirror.com/handlebars/4.7.7 + json-stringify-safe: registry.npmmirror.com/json-stringify-safe/5.0.1 + lodash: registry.npmmirror.com/lodash/4.17.21 + meow: registry.npmmirror.com/meow/8.1.2 + semver: registry.npmmirror.com/semver/6.3.0 + split: registry.npmmirror.com/split/1.0.1 + through2: registry.npmmirror.com/through2/4.0.2 + dev: true + + registry.npmmirror.com/conventional-changelog/3.1.25: + resolution: + { + integrity: sha512-ryhi3fd1mKf3fSjbLXOfK2D06YwKNic1nC9mWqybBHdObPd8KJ2vjaXZfYj1U23t+V8T8n0d7gwnc9XbIdFbyQ==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/conventional-changelog/-/conventional-changelog-3.1.25.tgz + } + name: conventional-changelog + version: 3.1.25 + engines: { node: '>=10' } + dependencies: + conventional-changelog-angular: registry.npmmirror.com/conventional-changelog-angular/5.0.13 + conventional-changelog-atom: registry.npmmirror.com/conventional-changelog-atom/2.0.8 + conventional-changelog-codemirror: registry.npmmirror.com/conventional-changelog-codemirror/2.0.8 + conventional-changelog-conventionalcommits: registry.npmmirror.com/conventional-changelog-conventionalcommits/4.6.3 + conventional-changelog-core: registry.npmmirror.com/conventional-changelog-core/4.2.4 + conventional-changelog-ember: registry.npmmirror.com/conventional-changelog-ember/2.0.9 + conventional-changelog-eslint: registry.npmmirror.com/conventional-changelog-eslint/3.0.9 + conventional-changelog-express: registry.npmmirror.com/conventional-changelog-express/2.0.6 + conventional-changelog-jquery: registry.npmmirror.com/conventional-changelog-jquery/3.0.11 + conventional-changelog-jshint: registry.npmmirror.com/conventional-changelog-jshint/2.0.9 + conventional-changelog-preset-loader: registry.npmmirror.com/conventional-changelog-preset-loader/2.3.4 + dev: true + + registry.npmmirror.com/conventional-commits-filter/2.0.7: + resolution: + { + integrity: sha512-ASS9SamOP4TbCClsRHxIHXRfcGCnIoQqkvAzCSbZzTFLfcTqJVugB0agRgsEELsqaeWgsXv513eS116wnlSSPA==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/conventional-commits-filter/-/conventional-commits-filter-2.0.7.tgz + } + name: conventional-commits-filter + version: 2.0.7 + engines: { node: '>=10' } + dependencies: + lodash.ismatch: registry.npmmirror.com/lodash.ismatch/4.4.0 + modify-values: registry.npmmirror.com/modify-values/1.0.1 + dev: true + registry.npmmirror.com/conventional-commits-parser/3.2.4: resolution: { @@ -5817,6 +5980,17 @@ packages: engines: { node: '>=0.10.0' } dev: true + registry.npmmirror.com/core-util-is/1.0.3: + resolution: + { + integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/core-util-is/-/core-util-is-1.0.3.tgz + } + name: core-util-is + version: 1.0.3 + dev: true + registry.npmmirror.com/cors/2.8.5: resolution: { @@ -6035,6 +6209,17 @@ packages: engines: { node: '>=8' } dev: true + registry.npmmirror.com/dateformat/3.0.3: + resolution: + { + integrity: sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/dateformat/-/dateformat-3.0.3.tgz + } + name: dateformat + version: 3.0.3 + dev: true + registry.npmmirror.com/dayjs/1.10.7: resolution: { @@ -7801,6 +7986,20 @@ packages: to-regex-range: registry.npmmirror.com/to-regex-range/5.0.1 dev: true + registry.npmmirror.com/find-up/2.1.0: + resolution: + { + integrity: sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/find-up/-/find-up-2.1.0.tgz + } + name: find-up + version: 2.1.0 + engines: { node: '>=4' } + dependencies: + locate-path: registry.npmmirror.com/locate-path/2.0.0 + dev: true + registry.npmmirror.com/find-up/4.1.0: resolution: { @@ -8017,7 +8216,6 @@ packages: name: get-caller-file version: 2.0.5 engines: { node: 6.* || 8.* || >= 10.* } - dev: true registry.npmmirror.com/get-intrinsic/1.1.1: resolution: @@ -8033,6 +8231,24 @@ packages: has: registry.npmmirror.com/has/1.0.3 has-symbols: registry.npmmirror.com/has-symbols/1.0.2 + registry.npmmirror.com/get-pkg-repo/4.2.1: + resolution: + { + integrity: sha512-2+QbHjFRfGB74v/pYWjd5OhU3TDIC2Gv/YKUTk/tCvAz0pkn/Mz6P3uByuBimLOcPvN2jYdScl3xGFSrx0jEcA==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/get-pkg-repo/-/get-pkg-repo-4.2.1.tgz + } + name: get-pkg-repo + version: 4.2.1 + engines: { node: '>=6.9.0' } + hasBin: true + dependencies: + '@hutson/parse-repository-url': registry.npmmirror.com/@hutson/parse-repository-url/3.0.2 + hosted-git-info: registry.npmmirror.com/hosted-git-info/4.0.2 + through2: registry.npmmirror.com/through2/2.0.5 + yargs: registry.npmmirror.com/yargs/16.2.0 + dev: true + registry.npmmirror.com/get-stdin/8.0.0: resolution: { @@ -8102,6 +8318,50 @@ packages: through2: registry.npmmirror.com/through2/4.0.2 dev: true + registry.npmmirror.com/git-remote-origin-url/2.0.0: + resolution: + { + integrity: sha512-eU+GGrZgccNJcsDH5LkXR3PB9M958hxc7sbA8DFJjrv9j4L2P/eZfKhM+QD6wyzpiv+b1BpK0XrYCxkovtjSLw==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/git-remote-origin-url/-/git-remote-origin-url-2.0.0.tgz + } + name: git-remote-origin-url + version: 2.0.0 + engines: { node: '>=4' } + dependencies: + gitconfiglocal: registry.npmmirror.com/gitconfiglocal/1.0.0 + pify: registry.npmmirror.com/pify/2.3.0 + dev: true + + registry.npmmirror.com/git-semver-tags/4.1.1: + resolution: + { + integrity: sha512-OWyMt5zBe7xFs8vglMmhM9lRQzCWL3WjHtxNNfJTMngGym7pC1kh8sP6jevfydJ6LP3ZvGxfb6ABYgPUM0mtsA==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/git-semver-tags/-/git-semver-tags-4.1.1.tgz + } + name: git-semver-tags + version: 4.1.1 + engines: { node: '>=10' } + hasBin: true + dependencies: + meow: registry.npmmirror.com/meow/8.1.2 + semver: registry.npmmirror.com/semver/6.3.0 + dev: true + + registry.npmmirror.com/gitconfiglocal/1.0.0: + resolution: + { + integrity: sha512-spLUXeTAVHxDtKsJc8FkFVgFtMdEN9qPGpL23VfSHx4fP4+Ds097IXLvymbnDH8FnmxX5Nr9bPw3A+AQ6mWEaQ==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/gitconfiglocal/-/gitconfiglocal-1.0.0.tgz + } + name: gitconfiglocal + version: 1.0.0 + dependencies: + ini: registry.npmmirror.com/ini/1.3.8 + dev: true + registry.npmmirror.com/glob-parent/5.1.2: resolution: { @@ -8142,7 +8402,7 @@ packages: dependencies: fs.realpath: registry.nlark.com/fs.realpath/1.0.0 inflight: registry.nlark.com/inflight/1.0.6 - inherits: registry.nlark.com/inherits/2.0.4 + inherits: registry.npmmirror.com/inherits/2.0.4 minimatch: registry.nlark.com/minimatch/3.0.4 once: registry.nlark.com/once/1.4.0 path-is-absolute: registry.nlark.com/path-is-absolute/1.0.1 @@ -8160,7 +8420,7 @@ packages: dependencies: fs.realpath: registry.nlark.com/fs.realpath/1.0.0 inflight: registry.nlark.com/inflight/1.0.6 - inherits: registry.nlark.com/inherits/2.0.4 + inherits: registry.npmmirror.com/inherits/2.0.4 minimatch: registry.npmmirror.com/minimatch/3.0.4 once: registry.nlark.com/once/1.4.0 path-is-absolute: registry.nlark.com/path-is-absolute/1.0.1 @@ -8311,6 +8571,26 @@ packages: version: 4.2.8 dev: true + registry.npmmirror.com/handlebars/4.7.7: + resolution: + { + integrity: sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/handlebars/-/handlebars-4.7.7.tgz + } + name: handlebars + version: 4.7.7 + engines: { node: '>=0.4.7' } + hasBin: true + dependencies: + minimist: registry.npmmirror.com/minimist/1.2.5 + neo-async: registry.npmmirror.com/neo-async/2.6.2 + source-map: registry.npmmirror.com/source-map/0.6.1 + wordwrap: registry.npmmirror.com/wordwrap/1.0.0 + optionalDependencies: + uglify-js: registry.npmmirror.com/uglify-js/3.15.1 + dev: true + registry.npmmirror.com/hard-rejection/2.1.0: resolution: { @@ -8823,7 +9103,7 @@ packages: rxjs: registry.npmmirror.com/rxjs/6.6.7 string-width: registry.npmmirror.com/string-width/2.1.1 strip-ansi: registry.npmmirror.com/strip-ansi/5.2.0 - through: registry.nlark.com/through/2.3.8 + through: registry.npmmirror.com/through/2.3.8 dev: true registry.npmmirror.com/intro.js/5.0.0: @@ -9256,6 +9536,17 @@ packages: engines: { node: '>=0.10.0' } dev: true + registry.npmmirror.com/isarray/1.0.0: + resolution: + { + integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/isarray/-/isarray-1.0.0.tgz + } + name: isarray + version: 1.0.0 + dev: true + registry.npmmirror.com/isexe/2.0.0: resolution: { @@ -9278,7 +9569,7 @@ packages: version: 2.1.0 engines: { node: '>=0.10.0' } dependencies: - isarray: registry.nlark.com/isarray/1.0.0 + isarray: registry.npmmirror.com/isarray/1.0.0 dev: true registry.npmmirror.com/isobject/3.0.1: @@ -9397,6 +9688,17 @@ packages: hasBin: true dev: true + registry.npmmirror.com/json-parse-better-errors/1.0.2: + resolution: + { + integrity: sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz + } + name: json-parse-better-errors + version: 1.0.2 + dev: true + registry.npmmirror.com/json-parse-even-better-errors/2.3.1: resolution: { @@ -9441,6 +9743,17 @@ packages: version: 1.0.1 dev: true + registry.npmmirror.com/json-stringify-safe/5.0.1: + resolution: + { + integrity: sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz + } + name: json-stringify-safe + version: 5.0.1 + dev: true + registry.npmmirror.com/json5/1.0.1: resolution: { @@ -9742,6 +10055,23 @@ packages: wrap-ansi: registry.npmmirror.com/wrap-ansi/7.0.0 dev: true + registry.npmmirror.com/load-json-file/4.0.0: + resolution: + { + integrity: sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/load-json-file/-/load-json-file-4.0.0.tgz + } + name: load-json-file + version: 4.0.0 + engines: { node: '>=4' } + dependencies: + graceful-fs: registry.npmmirror.com/graceful-fs/4.2.8 + parse-json: registry.npmmirror.com/parse-json/4.0.0 + pify: registry.npmmirror.com/pify/3.0.0 + strip-bom: registry.npmmirror.com/strip-bom/3.0.0 + dev: true + registry.npmmirror.com/loader-utils/1.4.0: resolution: { @@ -9758,6 +10088,21 @@ packages: json5: registry.npmmirror.com/json5/1.0.1 dev: true + registry.npmmirror.com/locate-path/2.0.0: + resolution: + { + integrity: sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/locate-path/-/locate-path-2.0.0.tgz + } + name: locate-path + version: 2.0.0 + engines: { node: '>=4' } + dependencies: + p-locate: registry.npmmirror.com/p-locate/2.0.0 + path-exists: registry.npmmirror.com/path-exists/3.0.0 + dev: true + registry.npmmirror.com/locate-path/5.0.0: resolution: { @@ -9871,6 +10216,17 @@ packages: version: 4.5.0 dev: false + registry.npmmirror.com/lodash.ismatch/4.4.0: + resolution: + { + integrity: sha512-fPMfXjGQEV9Xsq/8MTSgUf255gawYRbjwMyDbcvDhXgV7enSZA0hynz6vMPnpAb5iONEzBHBPsT+0zes5Z301g==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz + } + name: lodash.ismatch + version: 4.4.0 + dev: true + registry.npmmirror.com/lodash.merge/4.6.2: resolution: { @@ -9993,7 +10349,7 @@ packages: engines: { node: '>=6' } requiresBuild: true dependencies: - pify: registry.nlark.com/pify/4.0.1 + pify: registry.npmmirror.com/pify/4.0.1 semver: registry.npmmirror.com/semver/5.7.1 dev: true optional: true @@ -10333,6 +10689,18 @@ packages: commander: registry.npmmirror.com/commander/8.3.0 dev: false + registry.npmmirror.com/modify-values/1.0.1: + resolution: + { + integrity: sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/modify-values/-/modify-values-1.0.1.tgz + } + name: modify-values + version: 1.0.1 + engines: { node: '>=0.10.0' } + dev: true + registry.npmmirror.com/mrmime/1.0.0: resolution: { @@ -10474,6 +10842,17 @@ packages: dev: true optional: true + registry.npmmirror.com/neo-async/2.6.2: + resolution: + { + integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/neo-async/-/neo-async-2.6.2.tgz + } + name: neo-async + version: 2.6.2 + dev: true + registry.npmmirror.com/next-tick/1.0.0: resolution: { @@ -10761,6 +11140,20 @@ packages: word-wrap: registry.npmmirror.com/word-wrap/1.2.3 dev: true + registry.npmmirror.com/p-limit/1.3.0: + resolution: + { + integrity: sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/p-limit/-/p-limit-1.3.0.tgz + } + name: p-limit + version: 1.3.0 + engines: { node: '>=4' } + dependencies: + p-try: registry.npmmirror.com/p-try/1.0.0 + dev: true + registry.npmmirror.com/p-limit/2.3.0: resolution: { @@ -10788,6 +11181,20 @@ packages: yocto-queue: registry.npmmirror.com/yocto-queue/0.1.0 dev: true + registry.npmmirror.com/p-locate/2.0.0: + resolution: + { + integrity: sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/p-locate/-/p-locate-2.0.0.tgz + } + name: p-locate + version: 2.0.0 + engines: { node: '>=4' } + dependencies: + p-limit: registry.npmmirror.com/p-limit/1.3.0 + dev: true + registry.npmmirror.com/p-locate/4.1.0: resolution: { @@ -10829,6 +11236,18 @@ packages: aggregate-error: registry.npmmirror.com/aggregate-error/3.1.0 dev: true + registry.npmmirror.com/p-try/1.0.0: + resolution: + { + integrity: sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/p-try/-/p-try-1.0.0.tgz + } + name: p-try + version: 1.0.0 + engines: { node: '>=4' } + dev: true + registry.npmmirror.com/p-try/2.2.0: resolution: { @@ -10868,6 +11287,21 @@ packages: callsites: registry.npmmirror.com/callsites/3.1.0 dev: true + registry.npmmirror.com/parse-json/4.0.0: + resolution: + { + integrity: sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/parse-json/-/parse-json-4.0.0.tgz + } + name: parse-json + version: 4.0.0 + engines: { node: '>=4' } + dependencies: + error-ex: registry.npmmirror.com/error-ex/1.3.2 + json-parse-better-errors: registry.npmmirror.com/json-parse-better-errors/1.0.2 + dev: true + registry.npmmirror.com/parse-json/5.2.0: resolution: { @@ -10937,6 +11371,18 @@ packages: tslib: registry.npmmirror.com/tslib/2.3.1 dev: true + registry.npmmirror.com/path-exists/3.0.0: + resolution: + { + integrity: sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/path-exists/-/path-exists-3.0.0.tgz + } + name: path-exists + version: 3.0.0 + engines: { node: '>=4' } + dev: true + registry.npmmirror.com/path-exists/4.0.0: resolution: { @@ -10982,6 +11428,20 @@ packages: version: 6.2.0 dev: true + registry.npmmirror.com/path-type/3.0.0: + resolution: + { + integrity: sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/path-type/-/path-type-3.0.0.tgz + } + name: path-type + version: 3.0.0 + engines: { node: '>=4' } + dependencies: + pify: registry.npmmirror.com/pify/3.0.0 + dev: true + registry.npmmirror.com/path-type/4.0.0: resolution: { @@ -11038,6 +11498,43 @@ packages: engines: { node: '>=8.6' } dev: true + registry.npmmirror.com/pify/2.3.0: + resolution: + { + integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/pify/-/pify-2.3.0.tgz + } + name: pify + version: 2.3.0 + engines: { node: '>=0.10.0' } + dev: true + + registry.npmmirror.com/pify/3.0.0: + resolution: + { + integrity: sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/pify/-/pify-3.0.0.tgz + } + name: pify + version: 3.0.0 + engines: { node: '>=4' } + dev: true + + registry.npmmirror.com/pify/4.0.1: + resolution: + { + integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/pify/-/pify-4.0.1.tgz + } + name: pify + version: 4.0.1 + engines: { node: '>=6' } + dev: true + optional: true + registry.npmmirror.com/pinia-plugin-persist/0.0.93_vue@3.2.31: resolution: { @@ -11401,6 +11898,17 @@ packages: engines: { node: '>=6' } dev: false + registry.npmmirror.com/process-nextick-args/2.0.1: + resolution: + { + integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz + } + name: process-nextick-args + version: 2.0.1 + dev: true + registry.npmmirror.com/progress/2.0.3: resolution: { @@ -11695,6 +12203,21 @@ packages: engines: { node: '>=8' } dev: true + registry.npmmirror.com/read-pkg-up/3.0.0: + resolution: + { + integrity: sha512-YFzFrVvpC6frF1sz8psoHDBGF7fLPc+llq/8NB43oagqWkx8ar5zYtsTORtOjw9W2RHLpWP+zTWwBvf1bCmcSw==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/read-pkg-up/-/read-pkg-up-3.0.0.tgz + } + name: read-pkg-up + version: 3.0.0 + engines: { node: '>=4' } + dependencies: + find-up: registry.npmmirror.com/find-up/2.1.0 + read-pkg: registry.npmmirror.com/read-pkg/3.0.0 + dev: true + registry.npmmirror.com/read-pkg-up/7.0.1: resolution: { @@ -11711,6 +12234,22 @@ packages: type-fest: registry.npmmirror.com/type-fest/0.8.1 dev: true + registry.npmmirror.com/read-pkg/3.0.0: + resolution: + { + integrity: sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/read-pkg/-/read-pkg-3.0.0.tgz + } + name: read-pkg + version: 3.0.0 + engines: { node: '>=4' } + dependencies: + load-json-file: registry.npmmirror.com/load-json-file/4.0.0 + normalize-package-data: registry.npmmirror.com/normalize-package-data/2.5.0 + path-type: registry.npmmirror.com/path-type/3.0.0 + dev: true + registry.npmmirror.com/read-pkg/5.2.0: resolution: { @@ -11728,6 +12267,25 @@ packages: type-fest: registry.npmmirror.com/type-fest/0.6.0 dev: true + registry.npmmirror.com/readable-stream/2.3.7: + resolution: + { + integrity: sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/readable-stream/-/readable-stream-2.3.7.tgz + } + name: readable-stream + version: 2.3.7 + dependencies: + core-util-is: registry.npmmirror.com/core-util-is/1.0.3 + inherits: registry.npmmirror.com/inherits/2.0.4 + isarray: registry.npmmirror.com/isarray/1.0.0 + process-nextick-args: registry.npmmirror.com/process-nextick-args/2.0.1 + safe-buffer: registry.npmmirror.com/safe-buffer/5.1.2 + string_decoder: registry.npmmirror.com/string_decoder/1.1.1 + util-deprecate: registry.npmmirror.com/util-deprecate/1.0.2 + dev: true + registry.npmmirror.com/readable-stream/3.6.0: resolution: { @@ -11906,20 +12464,6 @@ packages: deprecated: https://github.com/lydell/resolve-url#deprecated dev: true - registry.npmmirror.com/resolve/1.20.0: - resolution: - { - integrity: sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==, - registry: https://registry.npm.taobao.org/, - tarball: https://registry.npmmirror.com/resolve/-/resolve-1.20.0.tgz - } - name: resolve - version: 1.20.0 - dependencies: - is-core-module: registry.npmmirror.com/is-core-module/2.8.1 - path-parse: registry.npmmirror.com/path-parse/1.0.7 - dev: true - registry.npmmirror.com/resolve/1.22.0: resolution: { @@ -12597,6 +13141,19 @@ packages: extend-shallow: registry.npmmirror.com/extend-shallow/3.0.2 dev: true + registry.npmmirror.com/split/1.0.1: + resolution: + { + integrity: sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/split/-/split-1.0.1.tgz + } + name: split + version: 1.0.1 + dependencies: + through: registry.npmmirror.com/through/2.3.8 + dev: true + registry.npmmirror.com/split2/3.2.2: resolution: { @@ -12717,6 +13274,19 @@ packages: strip-ansi: registry.npmmirror.com/strip-ansi/7.0.1 dev: true + registry.npmmirror.com/string_decoder/1.1.1: + resolution: + { + integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/string_decoder/-/string_decoder-1.1.1.tgz + } + name: string_decoder + version: 1.1.1 + dependencies: + safe-buffer: registry.npmmirror.com/safe-buffer/5.1.2 + dev: true + registry.npmmirror.com/string_decoder/1.3.0: resolution: { @@ -12799,6 +13369,18 @@ packages: ansi-regex: registry.npmmirror.com/ansi-regex/6.0.1 dev: true + registry.npmmirror.com/strip-bom/3.0.0: + resolution: + { + integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/strip-bom/-/strip-bom-3.0.0.tgz + } + name: strip-bom + version: 3.0.0 + engines: { node: '>=4' } + dev: true + registry.npmmirror.com/strip-final-newline/2.0.0: resolution: { @@ -13136,6 +13718,33 @@ packages: strip-ansi: registry.npmmirror.com/strip-ansi/6.0.1 dev: true + registry.npmmirror.com/temp-dir/2.0.0: + resolution: + { + integrity: sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/temp-dir/-/temp-dir-2.0.0.tgz + } + name: temp-dir + version: 2.0.0 + engines: { node: '>=8' } + dev: true + + registry.npmmirror.com/tempfile/3.0.0: + resolution: + { + integrity: sha512-uNFCg478XovRi85iD42egu+eSFUmmka750Jy7L5tfHI5hQKKtbPnxaSaXAbBqCDYrw3wx4tXjKwci4/QmsZJxw==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/tempfile/-/tempfile-3.0.0.tgz + } + name: tempfile + version: 3.0.0 + engines: { node: '>=8' } + dependencies: + temp-dir: registry.npmmirror.com/temp-dir/2.0.0 + uuid: registry.npmmirror.com/uuid/3.4.0 + dev: true + registry.npmmirror.com/terser/5.10.0: resolution: { @@ -13192,6 +13801,20 @@ packages: version: 2.3.8 dev: true + registry.npmmirror.com/through2/2.0.5: + resolution: + { + integrity: sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz + } + name: through2 + version: 2.0.5 + dependencies: + readable-stream: registry.npmmirror.com/readable-stream/2.3.7 + xtend: registry.npmmirror.com/xtend/4.0.2 + dev: true + registry.npmmirror.com/through2/4.0.2: resolution: { @@ -13519,6 +14142,21 @@ packages: hasBin: true dev: true + registry.npmmirror.com/uglify-js/3.15.1: + resolution: + { + integrity: sha512-FAGKF12fWdkpvNJZENacOH0e/83eG6JyVQyanIJaBXCN1J11TUQv1T1/z8S+Z0CG0ZPk1nPcreF/c7lrTd0TEQ==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/uglify-js/-/uglify-js-3.15.1.tgz + } + name: uglify-js + version: 3.15.1 + engines: { node: '>=0.8.0' } + hasBin: true + requiresBuild: true + dev: true + optional: true + registry.npmmirror.com/union-value/1.0.1: resolution: { @@ -13713,6 +14351,19 @@ packages: version: 1.0.2 dev: true + registry.npmmirror.com/uuid/3.4.0: + resolution: + { + integrity: sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/uuid/-/uuid-3.4.0.tgz + } + name: uuid + version: 3.4.0 + deprecated: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. + hasBin: true + dev: true + registry.npmmirror.com/v8-compile-cache/2.3.0: resolution: { @@ -14449,6 +15100,17 @@ packages: engines: { node: '>=0.10.0' } dev: true + registry.npmmirror.com/wordwrap/1.0.0: + resolution: + { + integrity: sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/wordwrap/-/wordwrap-1.0.0.tgz + } + name: wordwrap + version: 1.0.0 + dev: true + registry.npmmirror.com/wrap-ansi/6.2.0: resolution: { @@ -14495,6 +15157,29 @@ packages: signal-exit: registry.npmmirror.com/signal-exit/3.0.7 dev: true + registry.npmmirror.com/xtend/4.0.2: + resolution: + { + integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/xtend/-/xtend-4.0.2.tgz + } + name: xtend + version: 4.0.2 + engines: { node: '>=0.4' } + dev: true + + registry.npmmirror.com/y18n/4.0.3: + resolution: + { + integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/y18n/-/y18n-4.0.3.tgz + } + name: y18n + version: 4.0.3 + dev: false + registry.npmmirror.com/y18n/5.0.8: resolution: { @@ -14595,19 +15280,39 @@ packages: version: 15.4.1 engines: { node: '>=8' } dependencies: - cliui: registry.nlark.com/cliui/6.0.0 + cliui: registry.npmmirror.com/cliui/6.0.0 decamelize: registry.npmmirror.com/decamelize/1.2.0 find-up: registry.npmmirror.com/find-up/4.1.0 - get-caller-file: registry.nlark.com/get-caller-file/2.0.5 + get-caller-file: registry.npmmirror.com/get-caller-file/2.0.5 require-directory: registry.npmmirror.com/require-directory/2.1.1 require-main-filename: registry.nlark.com/require-main-filename/2.0.0 set-blocking: registry.nlark.com/set-blocking/2.0.0 string-width: registry.npmmirror.com/string-width/4.2.3 which-module: registry.nlark.com/which-module/2.0.0 - y18n: registry.nlark.com/y18n/4.0.3 + y18n: registry.npmmirror.com/y18n/4.0.3 yargs-parser: registry.npmmirror.com/yargs-parser/18.1.3 dev: false + registry.npmmirror.com/yargs/16.2.0: + resolution: + { + integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==, + registry: https://registry.npm.taobao.org/, + tarball: https://registry.npmmirror.com/yargs/-/yargs-16.2.0.tgz + } + name: yargs + version: 16.2.0 + engines: { node: '>=10' } + dependencies: + cliui: registry.npmmirror.com/cliui/7.0.4 + escalade: registry.npmmirror.com/escalade/3.1.1 + get-caller-file: registry.npmmirror.com/get-caller-file/2.0.5 + require-directory: registry.npmmirror.com/require-directory/2.1.1 + string-width: registry.npmmirror.com/string-width/4.2.3 + y18n: registry.npmmirror.com/y18n/5.0.8 + yargs-parser: registry.npmmirror.com/yargs-parser/20.2.9 + dev: true + registry.npmmirror.com/yargs/17.3.1: resolution: { diff --git a/src/permission.ts b/src/permission.ts index a770869..d688813 100644 --- a/src/permission.ts +++ b/src/permission.ts @@ -27,7 +27,7 @@ router.beforeEach(async (to, from, next) => { next({ path: '/' }) } else { if (permissionStore.getIsAddRouters) { - to.path === '/' ? next({ path: permissionStore.addRouters[0]?.path as string }) : next() + next() return } @@ -46,11 +46,11 @@ router.beforeEach(async (to, from, next) => { const redirect = decodeURIComponent(redirectPath as string) const nextData = to.path === redirect ? { ...to, replace: true } : { path: redirect } permissionStore.setIsAddRouters(true) - next(to.path === '/' ? { path: permissionStore.addRouters[0]?.path as string } : nextData) + next(nextData) } } else { if (whiteList.indexOf(to.path) !== -1) { - to.path === '/' ? next({ path: permissionStore.addRouters[0]?.path as string }) : next() + next() } else { next(`/login?redirect=${to.path}`) // 否则全部重定向到登录页 } diff --git a/src/router/index.ts b/src/router/index.ts index c1463f2..d31d575 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -7,6 +7,15 @@ import { useI18n } from '@/hooks/web/useI18n' const { t } = useI18n() export const constantRouterMap: AppRouteRecordRaw[] = [ + { + path: '/', + component: Layout, + redirect: '/dashboard/analysis', + name: 'Root', + meta: { + hidden: true + } + }, { path: '/redirect', component: Layout, @@ -488,7 +497,7 @@ const router = createRouter({ }) export const resetRouter = (): void => { - const resetWhiteNameList = ['Redirect', 'Login', 'NoFind'] + const resetWhiteNameList = ['Redirect', 'Login', 'NoFind', 'Root'] router.getRoutes().forEach((route) => { const { name } = route if (name && !resetWhiteNameList.includes(name as string)) {