From eb4a6c99debd6f212b07b2260d90c7233e8e95a1 Mon Sep 17 00:00:00 2001 From: fxzer Date: Tue, 11 Jun 2024 10:12:17 +0800 Subject: [PATCH] style: update deps --- docs/.vitepress/config.ts | 13 +- ...56\350\270\251\345\235\221\344\270\200.md" | 13 +- package.json | 5 +- pnpm-lock.yaml | 171 +++--------------- scripts/generate-sidebar.cjs | 2 +- 5 files changed, 42 insertions(+), 162 deletions(-) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index fc63c7fe6..f08654aef 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -66,13 +66,13 @@ export default withPwa(defineConfig({ icons: [ { src: 'pwa-512x512.png', - types: 'img/png', + type: 'img/png', sizes: '512x512', purpose: 'any', }, { src: 'pwa-192x192.png', - types: 'img/png', + type: 'img/png', sizes: '192x192', purpose: 'maskable', }, @@ -85,14 +85,5 @@ export default withPwa(defineConfig({ }, sitemap: { hostname: 'https://fxzer.github.io/zerdocs', - transformItems: (items) => { - // add new items or modify/filter existing items - items.push({ - url: '/extra-page', - changefreq: 'monthly', - priority: 0.8 - }) - return items - } } })) diff --git "a/docs/Problem/VueProject/Vue\351\241\271\347\233\256\350\270\251\345\235\221\344\270\200.md" "b/docs/Problem/VueProject/Vue\351\241\271\347\233\256\350\270\251\345\235\221\344\270\200.md" index 6216c74ce..8136512a2 100644 --- "a/docs/Problem/VueProject/Vue\351\241\271\347\233\256\350\270\251\345\235\221\344\270\200.md" +++ "b/docs/Problem/VueProject/Vue\351\241\271\347\233\256\350\270\251\345\235\221\344\270\200.md" @@ -27,6 +27,7 @@ + ``` ## '确定'按钮点击失效问题 @@ -171,6 +172,7 @@ export default { white-space: nowrap; } } + ``` ## 路由组件切换,事件总线意外多次触发 @@ -182,25 +184,26 @@ this.$bus.$emit('searchDone') ```js {3} //B路由组件 -mounted(){ +{ + mounted(){ this.$bus.$off('searchDone') //在每次绑定事件前,先解绑该事件 this.$bus.$on('searchDone',this.handleCurrentChange) - }, - + } +} ``` ## 前端配合 Nginx 服务开启 gzip 页面加载不出来 ```js -//vue.config.js +// vue.config.js plugins: [ new CompressionWebpackPlugin({ exclude: /node_modules/, test: /\.(js|css)$/, threshold: 10240, // 超过10kb的文件就压缩 deleteOriginalAssets: true, // 不删除源文件 - algorithm: "gzip", + algorithm: 'gzip', minRatio: 0.8, }), ] diff --git a/package.json b/package.json index bed1441f3..9bb7fb0b4 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "vite-plugin-pwa": "^0.20.0" }, "devDependencies": { - "@antfu/eslint-config": "^2.20.0", + "@antfu/eslint-config": "^2.21.0", "@vite-pwa/vitepress": "^0.5.0", "eslint": "^9.4.0", "eslint-plugin-format": "^0.1.1", @@ -28,12 +28,11 @@ "unplugin-auto-import": "^0.17.6", "unplugin-icons": "^0.19.0", "unplugin-vue-components": "^0.27.0", - "vite": "^5.2.12", + "vite": "^5.2.13", "vitepress": "1.0.0-rc.24", "vue": "^3.4.27" }, "simple-git-hooks": { - "pre-commit": "lint-staged" }, "lint-staged": { "*.{js,ts,vue}": [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7eb9bd5b7..9b0d9e240 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,14 +13,14 @@ importers: version: 1.77.4 vite-plugin-pwa: specifier: ^0.20.0 - version: 0.20.0(vite@5.2.12(@types/node@20.9.1)(less@4.2.0)(sass@1.77.4)(terser@5.24.0))(workbox-build@7.0.0)(workbox-window@7.0.0) + version: 0.20.0(vite@5.2.13(@types/node@20.9.1)(less@4.2.0)(sass@1.77.4)(terser@5.24.0))(workbox-build@7.0.0)(workbox-window@7.0.0) devDependencies: '@antfu/eslint-config': - specifier: ^2.20.0 - version: 2.20.0(@vue/compiler-sfc@3.4.27)(eslint-plugin-format@0.1.1(eslint@9.4.0))(eslint@9.4.0)(typescript@5.3.3) + specifier: ^2.21.0 + version: 2.21.0(@vue/compiler-sfc@3.4.27)(eslint-plugin-format@0.1.1(eslint@9.4.0))(eslint@9.4.0)(typescript@5.3.3) '@vite-pwa/vitepress': specifier: ^0.5.0 - version: 0.5.0(vite-plugin-pwa@0.20.0(vite@5.2.12(@types/node@20.9.1)(less@4.2.0)(sass@1.77.4)(terser@5.24.0))(workbox-build@7.0.0)(workbox-window@7.0.0)) + version: 0.5.0(vite-plugin-pwa@0.20.0(vite@5.2.13(@types/node@20.9.1)(less@4.2.0)(sass@1.77.4)(terser@5.24.0))(workbox-build@7.0.0)(workbox-window@7.0.0)) eslint: specifier: ^9.4.0 version: 9.4.0 @@ -49,8 +49,8 @@ importers: specifier: ^0.27.0 version: 0.27.0(@babel/parser@7.24.7)(@nuxt/kit@3.8.1(rollup@2.79.1))(rollup@2.79.1)(vue@3.4.27(typescript@5.3.3)) vite: - specifier: ^5.2.12 - version: 5.2.12(@types/node@20.9.1)(less@4.2.0)(sass@1.77.4)(terser@5.24.0) + specifier: ^5.2.13 + version: 5.2.13(@types/node@20.9.1)(less@4.2.0)(sass@1.77.4)(terser@5.24.0) vitepress: specifier: 1.0.0-rc.24 version: 1.0.0-rc.24(@algolia/client-search@4.20.0)(@types/node@20.9.1)(axios@1.6.2)(less@4.2.0)(postcss@8.4.38)(sass@1.77.4)(search-insights@2.11.0)(terser@5.24.0)(typescript@5.3.3) @@ -130,8 +130,8 @@ packages: resolution: {integrity: sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==} engines: {node: '>=6.0.0'} - '@antfu/eslint-config@2.20.0': - resolution: {integrity: sha512-IFCEcrIrqgobv5/1dd7BGcNSeQ5Y5Fd+hiaB1o9YEITPpw9IrhBPxZT+n9UiRzWDWC7tMy9u7JRGX8ibLwWWtg==} + '@antfu/eslint-config@2.21.0': + resolution: {integrity: sha512-j/giI0Z8rTvfGYMWnisiy8RZHAqFe8SHPLOhWP/eU0Knvr7K7/tBsy14S3eY6NzTi40Kl6eyKpIxpebEBsWj1A==} hasBin: true peerDependencies: '@eslint-react/eslint-plugin': ^1.5.8 @@ -1374,9 +1374,6 @@ packages: '@types/resolve@1.17.1': resolution: {integrity: sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==} - '@types/semver@7.5.6': - resolution: {integrity: sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==} - '@types/trusted-types@2.0.6': resolution: {integrity: sha512-HYtNooPvUY9WAVRBr4u+4Qa9fYD1ze2IUlAD3HoA6oehn1taGwBx3Oa52U4mTslTS+GAExKpaFu39Y5xUEwfjg==} @@ -1410,10 +1407,6 @@ packages: typescript: optional: true - '@typescript-eslint/scope-manager@6.17.0': - resolution: {integrity: sha512-RX7a8lwgOi7am0k17NUO0+ZmMOX4PpjLtLRgLmT1d3lBYdWH4ssBUbwdmc5pdRX8rXon8v9x8vaoOSpkHfcXGA==} - engines: {node: ^16.0.0 || >=18.0.0} - '@typescript-eslint/scope-manager@7.12.0': resolution: {integrity: sha512-itF1pTnN6F3unPak+kutH9raIkL3lhH1YRPGgt7QQOh43DQKVJXmWkpb+vpc/TiDHs6RSd9CTbDsc/Y+Ygq7kg==} engines: {node: ^18.18.0 || >=20.0.0} @@ -1428,23 +1421,10 @@ packages: typescript: optional: true - '@typescript-eslint/types@6.17.0': - resolution: {integrity: sha512-qRKs9tvc3a4RBcL/9PXtKSehI/q8wuU9xYJxe97WFxnzH8NWWtcW3ffNS+EWg8uPvIerhjsEZ+rHtDqOCiH57A==} - engines: {node: ^16.0.0 || >=18.0.0} - '@typescript-eslint/types@7.12.0': resolution: {integrity: sha512-o+0Te6eWp2ppKY3mLCU+YA9pVJxhUJE15FV7kxuD9jgwIAa+w/ycGJBMrYDTpVGUM/tgpa9SeMOugSabWFq7bg==} engines: {node: ^18.18.0 || >=20.0.0} - '@typescript-eslint/typescript-estree@6.17.0': - resolution: {integrity: sha512-gVQe+SLdNPfjlJn5VNGhlOhrXz4cajwFd5kAgWtZ9dCZf4XJf8xmgCTLIqec7aha3JwgLI2CK6GY1043FRxZwg==} - engines: {node: ^16.0.0 || >=18.0.0} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - '@typescript-eslint/typescript-estree@7.12.0': resolution: {integrity: sha512-5bwqLsWBULv1h6pn7cMW5dXX/Y2amRqLaKqsASVwbBHMZSnHqE/HN4vT4fE0aFsiwxYvr98kqOWh1a8ZKXalCQ==} engines: {node: ^18.18.0 || >=20.0.0} @@ -1454,22 +1434,12 @@ packages: typescript: optional: true - '@typescript-eslint/utils@6.17.0': - resolution: {integrity: sha512-LofsSPjN/ITNkzV47hxas2JCsNCEnGhVvocfyOcLzT9c/tSZE7SfhS/iWtzP1lKNOEfLhRTZz6xqI8N2RzweSQ==} - engines: {node: ^16.0.0 || >=18.0.0} - peerDependencies: - eslint: ^7.0.0 || ^8.0.0 - '@typescript-eslint/utils@7.12.0': resolution: {integrity: sha512-Y6hhwxwDx41HNpjuYswYp6gDbkiZ8Hin9Bf5aJQn1bpTs3afYY4GX+MPYxma8jtoIV2GRwTM/UJm/2uGCVv+DQ==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: eslint: ^8.56.0 - '@typescript-eslint/visitor-keys@6.17.0': - resolution: {integrity: sha512-H6VwB/k3IuIeQOyYczyyKN8wH6ed8EwliaYHLxOIhyF0dYEIsN8+Bk3GE19qafeMKyZJJHP8+O1HiFhFLUNKSg==} - engines: {node: ^16.0.0 || >=18.0.0} - '@typescript-eslint/visitor-keys@7.12.0': resolution: {integrity: sha512-uZk7DevrQLL3vSnfFl5bj4sL75qC9D6EdjemIdbtkuUmIheWpuiiylSY01JxJE7+zGrOWDZrp1WxOuDntvKrHQ==} engines: {node: ^18.18.0 || >=20.0.0} @@ -2441,9 +2411,6 @@ packages: resolution: {integrity: sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==} engines: {node: '>= 0.4'} - get-tsconfig@4.7.2: - resolution: {integrity: sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A==} - get-tsconfig@4.7.5: resolution: {integrity: sha512-ZCuZCnlqNzjb4QprAzXKdpp/gh6KTxSJuw3IBsPnV/7fV4NxC9ckB+vPTt8w7fJA0TaSD7c55BR47JD6MEDyDw==} @@ -2985,10 +2952,6 @@ packages: resolution: {integrity: sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==} engines: {node: '>=10'} - minimatch@9.0.3: - resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==} - engines: {node: '>=16 || 14 >=14.17'} - minimatch@9.0.4: resolution: {integrity: sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==} engines: {node: '>=16 || 14 >=14.17'} @@ -3460,11 +3423,6 @@ packages: resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} hasBin: true - semver@7.5.4: - resolution: {integrity: sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==} - engines: {node: '>=10'} - hasBin: true - semver@7.6.0: resolution: {integrity: sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==} engines: {node: '>=10'} @@ -3723,12 +3681,6 @@ packages: tr46@1.0.1: resolution: {integrity: sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==} - ts-api-utils@1.0.3: - resolution: {integrity: sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==} - engines: {node: '>=16.13.0'} - peerDependencies: - typescript: '>=4.2.0' - ts-api-utils@1.3.0: resolution: {integrity: sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==} engines: {node: '>=16'} @@ -3956,8 +3908,8 @@ packages: terser: optional: true - vite@5.2.12: - resolution: {integrity: sha512-/gC8GxzxMK5ntBwb48pR32GGhENnjtY30G4A0jemunsBkiEZFw60s8InGpN8gkhHEkjnRK1aSAxeQgwvFhUHAA==} + vite@5.2.13: + resolution: {integrity: sha512-SSq1noJfY9pR3I1TUENL3rQYDQCFqgD+lM6fTRAM8Nv6Lsg5hDLaXkjETVeBt+7vZBCMoibD+6IWnT2mJ+Zb/A==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: @@ -4143,10 +4095,6 @@ packages: resolution: {integrity: sha512-4wZWvE398hCP7O8n3nXKu/vdq1HcH01ixYlCREaJL5NUMwQ0g3MaGFUBNSlmBtKmhbtVG/Cm6lyYmSVTEVil8A==} engines: {node: ^14.17.0 || >=16.0.0} - yaml@2.3.4: - resolution: {integrity: sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==} - engines: {node: '>= 14'} - yaml@2.4.3: resolution: {integrity: sha512-sntgmxj8o7DE7g/Qi60cqpLBA3HG3STcDA0kO+WfB05jEKhZMbY7umNm2rBpQvsmZ16/lPXCJGW2672dgOUkrg==} engines: {node: '>= 14'} @@ -4273,7 +4221,7 @@ snapshots: '@jridgewell/gen-mapping': 0.3.3 '@jridgewell/trace-mapping': 0.3.20 - '@antfu/eslint-config@2.20.0(@vue/compiler-sfc@3.4.27)(eslint-plugin-format@0.1.1(eslint@9.4.0))(eslint@9.4.0)(typescript@5.3.3)': + '@antfu/eslint-config@2.21.0(@vue/compiler-sfc@3.4.27)(eslint-plugin-format@0.1.1(eslint@9.4.0))(eslint@9.4.0)(typescript@5.3.3)': dependencies: '@antfu/install-pkg': 0.3.3 '@clack/prompts': 0.7.0 @@ -5558,8 +5506,6 @@ snapshots: dependencies: '@types/node': 20.9.1 - '@types/semver@7.5.6': {} - '@types/trusted-types@2.0.6': {} '@types/unist@2.0.10': {} @@ -5602,11 +5548,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/scope-manager@6.17.0': - dependencies: - '@typescript-eslint/types': 6.17.0 - '@typescript-eslint/visitor-keys': 6.17.0 - '@typescript-eslint/scope-manager@7.12.0': dependencies: '@typescript-eslint/types': 7.12.0 @@ -5624,25 +5565,8 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/types@6.17.0': {} - '@typescript-eslint/types@7.12.0': {} - '@typescript-eslint/typescript-estree@6.17.0(typescript@5.3.3)': - dependencies: - '@typescript-eslint/types': 6.17.0 - '@typescript-eslint/visitor-keys': 6.17.0 - debug: 4.3.4 - globby: 11.1.0 - is-glob: 4.0.3 - minimatch: 9.0.3 - semver: 7.5.4 - ts-api-utils: 1.0.3(typescript@5.3.3) - optionalDependencies: - typescript: 5.3.3 - transitivePeerDependencies: - - supports-color - '@typescript-eslint/typescript-estree@7.12.0(typescript@5.3.3)': dependencies: '@typescript-eslint/types': 7.12.0 @@ -5658,20 +5582,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@6.17.0(eslint@9.4.0)(typescript@5.3.3)': - dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@9.4.0) - '@types/json-schema': 7.0.15 - '@types/semver': 7.5.6 - '@typescript-eslint/scope-manager': 6.17.0 - '@typescript-eslint/types': 6.17.0 - '@typescript-eslint/typescript-estree': 6.17.0(typescript@5.3.3) - eslint: 9.4.0 - semver: 7.5.4 - transitivePeerDependencies: - - supports-color - - typescript - '@typescript-eslint/utils@7.12.0(eslint@9.4.0)(typescript@5.3.3)': dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@9.4.0) @@ -5683,19 +5593,14 @@ snapshots: - supports-color - typescript - '@typescript-eslint/visitor-keys@6.17.0': - dependencies: - '@typescript-eslint/types': 6.17.0 - eslint-visitor-keys: 3.4.3 - '@typescript-eslint/visitor-keys@7.12.0': dependencies: '@typescript-eslint/types': 7.12.0 eslint-visitor-keys: 3.4.3 - '@vite-pwa/vitepress@0.5.0(vite-plugin-pwa@0.20.0(vite@5.2.12(@types/node@20.9.1)(less@4.2.0)(sass@1.77.4)(terser@5.24.0))(workbox-build@7.0.0)(workbox-window@7.0.0))': + '@vite-pwa/vitepress@0.5.0(vite-plugin-pwa@0.20.0(vite@5.2.13(@types/node@20.9.1)(less@4.2.0)(sass@1.77.4)(terser@5.24.0))(workbox-build@7.0.0)(workbox-window@7.0.0))': dependencies: - vite-plugin-pwa: 0.20.0(vite@5.2.12(@types/node@20.9.1)(less@4.2.0)(sass@1.77.4)(terser@5.24.0))(workbox-build@7.0.0)(workbox-window@7.0.0) + vite-plugin-pwa: 0.20.0(vite@5.2.13(@types/node@20.9.1)(less@4.2.0)(sass@1.77.4)(terser@5.24.0))(workbox-build@7.0.0)(workbox-window@7.0.0) '@vitejs/plugin-vue@4.3.1(vite@4.5.0(@types/node@20.9.1)(less@4.2.0)(sass@1.77.4)(terser@5.24.0))(vue@3.4.27(typescript@5.3.3))': dependencies: @@ -6374,7 +6279,7 @@ snapshots: eslint-compat-utils@0.5.1(eslint@9.4.0): dependencies: eslint: 9.4.0 - semver: 7.5.4 + semver: 7.6.2 eslint-config-flat-gitignore@0.1.5: dependencies: @@ -6426,7 +6331,7 @@ snapshots: dependencies: escape-string-regexp: 1.0.5 eslint: 9.4.0 - ignore: 5.3.0 + ignore: 5.3.1 eslint-plugin-format@0.1.1(eslint@9.4.0): dependencies: @@ -6448,7 +6353,7 @@ snapshots: eslint-import-resolver-node: 0.3.9 get-tsconfig: 4.7.5 is-glob: 4.0.3 - minimatch: 9.0.3 + minimatch: 9.0.4 semver: 7.6.2 tslib: 2.6.2 transitivePeerDependencies: @@ -6493,19 +6398,19 @@ snapshots: enhanced-resolve: 5.17.0 eslint: 9.4.0 eslint-plugin-es-x: 7.5.0(eslint@9.4.0) - get-tsconfig: 4.7.2 + get-tsconfig: 4.7.5 globals: 15.4.0 - ignore: 5.3.0 - minimatch: 9.0.3 - semver: 7.5.4 + ignore: 5.3.1 + minimatch: 9.0.4 + semver: 7.6.2 eslint-plugin-no-only-tests@3.1.0: {} eslint-plugin-perfectionist@2.10.0(eslint@9.4.0)(typescript@5.3.3)(vue-eslint-parser@9.4.3(eslint@9.4.0)): dependencies: - '@typescript-eslint/utils': 6.17.0(eslint@9.4.0)(typescript@5.3.3) + '@typescript-eslint/utils': 7.12.0(eslint@9.4.0)(typescript@5.3.3) eslint: 9.4.0 - minimatch: 9.0.3 + minimatch: 9.0.4 natural-compare-lite: 1.4.0 optionalDependencies: vue-eslint-parser: 9.4.3(eslint@9.4.0) @@ -6876,10 +6781,6 @@ snapshots: call-bind: 1.0.5 get-intrinsic: 1.2.2 - get-tsconfig@4.7.2: - dependencies: - resolve-pkg-maps: 1.0.0 - get-tsconfig@4.7.5: dependencies: resolve-pkg-maps: 1.0.0 @@ -6942,7 +6843,7 @@ snapshots: array-union: 2.1.0 dir-glob: 3.0.1 fast-glob: 3.3.2 - ignore: 5.3.0 + ignore: 5.3.1 merge2: 1.4.1 slash: 3.0.0 @@ -7218,7 +7119,7 @@ snapshots: acorn: 8.11.3 eslint-visitor-keys: 3.4.3 espree: 9.6.1 - semver: 7.5.4 + semver: 7.6.2 jsonc-parser@3.2.0: {} @@ -7427,10 +7328,6 @@ snapshots: dependencies: brace-expansion: 2.0.1 - minimatch@9.0.3: - dependencies: - brace-expansion: 2.0.1 - minimatch@9.0.4: dependencies: brace-expansion: 2.0.1 @@ -7943,10 +7840,6 @@ snapshots: semver@6.3.1: {} - semver@7.5.4: - dependencies: - lru-cache: 6.0.0 - semver@7.6.0: dependencies: lru-cache: 6.0.0 @@ -8240,10 +8133,6 @@ snapshots: dependencies: punycode: 2.3.1 - ts-api-utils@1.0.3(typescript@5.3.3): - dependencies: - typescript: 5.3.3 - ts-api-utils@1.3.0(typescript@5.3.3): dependencies: typescript: 5.3.3 @@ -8455,12 +8344,12 @@ snapshots: spdx-correct: 3.2.0 spdx-expression-parse: 3.0.1 - vite-plugin-pwa@0.20.0(vite@5.2.12(@types/node@20.9.1)(less@4.2.0)(sass@1.77.4)(terser@5.24.0))(workbox-build@7.0.0)(workbox-window@7.0.0): + vite-plugin-pwa@0.20.0(vite@5.2.13(@types/node@20.9.1)(less@4.2.0)(sass@1.77.4)(terser@5.24.0))(workbox-build@7.0.0)(workbox-window@7.0.0): dependencies: debug: 4.3.4 fast-glob: 3.3.2 pretty-bytes: 6.1.1 - vite: 5.2.12(@types/node@20.9.1)(less@4.2.0)(sass@1.77.4)(terser@5.24.0) + vite: 5.2.13(@types/node@20.9.1)(less@4.2.0)(sass@1.77.4)(terser@5.24.0) workbox-build: 7.0.0 workbox-window: 7.0.0 transitivePeerDependencies: @@ -8478,7 +8367,7 @@ snapshots: sass: 1.77.4 terser: 5.24.0 - vite@5.2.12(@types/node@20.9.1)(less@4.2.0)(sass@1.77.4)(terser@5.24.0): + vite@5.2.13(@types/node@20.9.1)(less@4.2.0)(sass@1.77.4)(terser@5.24.0): dependencies: esbuild: 0.20.2 postcss: 8.4.38 @@ -8551,7 +8440,7 @@ snapshots: espree: 9.6.1 esquery: 1.5.0 lodash: 4.17.21 - semver: 7.5.4 + semver: 7.6.2 transitivePeerDependencies: - supports-color @@ -8738,9 +8627,7 @@ snapshots: dependencies: eslint-visitor-keys: 3.4.3 lodash: 4.17.21 - yaml: 2.3.4 - - yaml@2.3.4: {} + yaml: 2.4.3 yaml@2.4.3: {} diff --git a/scripts/generate-sidebar.cjs b/scripts/generate-sidebar.cjs index dffd9de76..fc216b64d 100644 --- a/scripts/generate-sidebar.cjs +++ b/scripts/generate-sidebar.cjs @@ -6,7 +6,7 @@ const sidebarPath = path.resolve(__dirname, '../docs/.vitepress/sidebar/index.ts // 判断是否是文章文件 function isArticleDir(dir) { - const isExclude = /^(public|index.md|.*\.ts|demo.*|\..*)$/.test(dir) + const isExclude = /^public|index.md|.*\.ts|demo.*|\..*$/.test(dir) return !isExclude }