From bb8609ecc635e38b841773355c4ce13e12b9bcb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90?= Date: Tue, 22 Mar 2022 17:16:46 +0800 Subject: [PATCH] refactor(docs): switch to unocss (#6728) --- .vscode/settings.json | 3 +- docs/.vitepress/theme/index.ts | 9 +- docs/package.json | 2 +- docs/unocss.config.ts | 15 ++ docs/vite.config.ts | 13 +- docs/windi.config.ts | 28 --- pnpm-lock.yaml | 363 ++++++++++++++++++++++----------- 7 files changed, 265 insertions(+), 168 deletions(-) create mode 100644 docs/unocss.config.ts delete mode 100644 docs/windi.config.ts diff --git a/.vscode/settings.json b/.vscode/settings.json index c05b50fb0b..79b43c476d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -30,5 +30,6 @@ "i18n-ally.enabledParsers": ["ts"], "i18n-ally.enabledFrameworks": ["vue", "vue-sfc"], "i18n-ally.keystyle": "nested", - "iconify.includes": ["ep"] + "iconify.includes": ["ep"], + "unocss.root": "./docs" } diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index e82c1cbea6..28f183c34f 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -1,17 +1,10 @@ import ElementPlus from 'element-plus' -// windicss layers -import 'virtual:windi-base.css' -import 'virtual:windi-components.css' +import 'uno.css' import VPApp, { globals, NotFound } from '../vitepress' import { define } from '../utils/types' -// windicss utilities should be the last style import -import 'virtual:windi-utilities.css' -// windicss devtools support (dev only) -import 'virtual:windi-devtools' - import type { Theme } from 'vitepress' export default define({ diff --git a/docs/package.json b/docs/package.json index 5a1d950e34..62fd77d0a1 100644 --- a/docs/package.json +++ b/docs/package.json @@ -28,11 +28,11 @@ "escape-html": "^1.0.3", "markdown-it": "^12.3.2", "markdown-it-container": "^3.0.0", + "unocss": "^0.29.5", "unplugin-icons": "^0.14.0", "unplugin-vue-components": "^0.18.3", "vite": "^2.8.6", "vite-plugin-inspect": "^0.4.3", - "vite-plugin-windicss": "^1.8.3", "vitepress": "^0.22.3" } } diff --git a/docs/unocss.config.ts b/docs/unocss.config.ts new file mode 100644 index 0000000000..233ed113ef --- /dev/null +++ b/docs/unocss.config.ts @@ -0,0 +1,15 @@ +import { defineConfig, presetUno, presetAttributify, presetIcons } from 'unocss' + +export default defineConfig({ + presets: [presetUno(), presetAttributify(), presetIcons()], + include: [`${__dirname}/**/*`], + exclude: [`${__dirname}/node_modules/**/*`], + theme: { + colors: { + primary: { + DEFAULT: '#2563eb', + deep: '#1d4ed8', + }, + }, + }, +}) diff --git a/docs/vite.config.ts b/docs/vite.config.ts index 741e1f6243..8c3512ffd2 100644 --- a/docs/vite.config.ts +++ b/docs/vite.config.ts @@ -2,7 +2,7 @@ import path from 'path' import Inspect from 'vite-plugin-inspect' import { defineConfig, loadEnv } from 'vite' import DefineOptions from 'unplugin-vue-define-options/vite' -import WindiCSS from 'vite-plugin-windicss' +import UnoCSS from 'unocss/vite' import mkcert from 'vite-plugin-mkcert' import glob from 'fast-glob' import vueJsx from '@vitejs/plugin-vue-jsx' @@ -62,15 +62,6 @@ export default defineConfig(async ({ mode }) => { resolve: { alias, }, - build: { - rollupOptions: { - output: { - manualChunks: { - windicss: ['windicss'], - }, - }, - }, - }, plugins: [ vueJsx(), DefineOptions(), @@ -89,7 +80,7 @@ export default defineConfig(async ({ mode }) => { Icons({ autoInstall: true, }), - WindiCSS(), + UnoCSS(), Inspect(), mkcert(), ], diff --git a/docs/windi.config.ts b/docs/windi.config.ts deleted file mode 100644 index adcac5b31b..0000000000 --- a/docs/windi.config.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defineConfig } from 'windicss/helpers' - -import colors from 'windicss/colors' - -export default defineConfig({ - // https://windicss.org/guide/extractions.html - extract: { - include: [ - '**/*.md', - '.vitepress/vitepress/**/*.{md,vue}', - 'examples/**/*.{md,vue}', - ], - }, - darkMode: 'class', - // https://windicss.org/posts/v30.html#attributify-mode - attributify: true, - - theme: { - extend: { - colors: { - primary: { - DEFAULT: colors.blue[600], - deep: colors.blue[700], - }, - }, - }, - }, -}) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 96c8784af6..0c6e9b2eee 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -122,7 +122,7 @@ importers: '@types/sass': 1.43.1 '@vitejs/plugin-vue': 2.2.4_vue@3.2.31 '@vitejs/plugin-vue-jsx': 1.3.8 - '@vitest/ui': 0.7.6 + '@vitest/ui': 0.7.7 '@vue/babel-plugin-jsx': 1.1.1_@babel+core@7.17.8 '@vue/test-utils': 2.0.0-rc.16_vue@3.2.31 '@vue/tsconfig': 0.1.3_@types+node@17.0.18 @@ -152,7 +152,7 @@ importers: typescript: 4.6.2 unplugin-element-plus: 0.3.2 unplugin-vue-define-options: 0.5.0_vue@3.2.31 - vitest: 0.7.6_0bc1e6b208b9bc54158c15e3fb96983d + vitest: 0.7.7_7d3cbbd90436233af0f8bf29cc0decd0 vue: 3.2.31 vue-jest: 5.0.0-alpha.10_0f4a305c99603ebd6cccb544e383fef5 vue-router: 4.0.14_vue@3.2.31 @@ -177,11 +177,11 @@ importers: normalize.css: ^8.0.1 nprogress: ^0.2.0 prism-theme-vars: ^0.2.2 + unocss: ^0.29.5 unplugin-icons: ^0.14.0 unplugin-vue-components: ^0.18.3 vite: ^2.8.6 vite-plugin-inspect: ^0.4.3 - vite-plugin-windicss: ^1.8.3 vitepress: ^0.22.3 dependencies: '@docsearch/js': 3.0.0 @@ -202,11 +202,11 @@ importers: escape-html: 1.0.3 markdown-it: 12.3.2 markdown-it-container: 3.0.0 + unocss: 0.29.5 unplugin-icons: 0.14.0_vite@2.8.6 unplugin-vue-components: 0.18.3_vite@2.8.6+vue@3.2.31 vite: 2.8.6_sass@1.49.9 vite-plugin-inspect: 0.4.3_vite@2.8.6 - vite-plugin-windicss: 1.8.3_vite@2.8.6 vitepress: 0.22.3_sass@1.49.9 internal/build: @@ -513,11 +513,11 @@ packages: /@babel/compat-data/7.17.0: resolution: {integrity: sha512-392byTlpGWXMv4FbyWw3sAZ/FrW/DrwqLGXpy0mbyNe9Taqv1mg9yON5/o0cnr8XYCkFTZbC1eV+c+LAROgrng==} engines: {node: '>=6.9.0'} - dev: true /@babel/compat-data/7.17.7: resolution: {integrity: sha512-p8pdE6j0a29TNGebNm7NzYZWB3xVZJBZ7XGs42uAKzQo8VQ3F0By/cQCtUEABwIqw5zo6WA4NbmxsfzADzMKnQ==} engines: {node: '>=6.9.0'} + dev: true /@babel/core/7.17.5: resolution: {integrity: sha512-/BBMw4EvjmyquN5O+t5eh0+YqB3XXJkYD2cjKpYtWOfFy4lQ4UozNSmxAcWT8r2XtZs0ewG+zrfsqeR15i1ajA==} @@ -556,7 +556,7 @@ packages: '@babel/traverse': 7.17.3 '@babel/types': 7.17.0 convert-source-map: 1.8.0 - debug: 4.3.3 + debug: 4.3.4 gensync: 1.0.0-beta.2 json5: 2.2.0 semver: 6.3.0 @@ -579,6 +579,7 @@ packages: '@babel/types': 7.17.0 jsesc: 2.5.2 source-map: 0.5.7 + dev: true /@babel/helper-annotate-as-pure/7.16.7: resolution: {integrity: sha512-s6t2w/IPQVTAET1HitoowRGXooX8mCgtuP5195wD/QJPV6wYjpujCGF7JuMODVX2ZAJOf1GT6DT9MHEZvLOFSw==} @@ -600,7 +601,7 @@ packages: peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/compat-data': 7.17.7 + '@babel/compat-data': 7.17.0 '@babel/core': 7.17.5 '@babel/helper-validator-option': 7.16.7 browserslist: 4.19.3 @@ -612,7 +613,7 @@ packages: peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/compat-data': 7.17.7 + '@babel/compat-data': 7.17.0 '@babel/core': 7.17.8 '@babel/helper-validator-option': 7.16.7 browserslist: 4.19.3 @@ -684,11 +685,11 @@ packages: '@babel/core': ^7.4.0-0 dependencies: '@babel/core': 7.17.8 - '@babel/helper-compilation-targets': 7.17.7_@babel+core@7.17.8 + '@babel/helper-compilation-targets': 7.16.7_@babel+core@7.17.8 '@babel/helper-module-imports': 7.16.7 '@babel/helper-plugin-utils': 7.16.7 '@babel/traverse': 7.17.3 - debug: 4.3.4 + debug: 4.3.3 lodash.debounce: 4.0.8 resolve: 1.22.0 semver: 6.3.0 @@ -889,6 +890,7 @@ packages: resolution: {integrity: sha512-BoHhDJrJXqcg+ZL16Xv39H9n+AqJ4pcDrQBGZN+wHxIysrLZ3/ECwCBUch/1zUNhnsXULcONU3Ei5Hmkfk6kiQ==} engines: {node: '>=6.0.0'} hasBin: true + dev: true /@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/7.16.7_@babel+core@7.17.8: resolution: {integrity: sha512-anv/DObl7waiGEnC24O9zqL0pSuI9hljihqiDuFHC8d7/bjr/4RLGPWuc8rYOff/QPzbEPSkzG8wGG9aDuhHRg==} @@ -1025,9 +1027,9 @@ packages: peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/compat-data': 7.17.7 + '@babel/compat-data': 7.17.0 '@babel/core': 7.17.8 - '@babel/helper-compilation-targets': 7.17.7_@babel+core@7.17.8 + '@babel/helper-compilation-targets': 7.16.7_@babel+core@7.17.8 '@babel/helper-plugin-utils': 7.16.7 '@babel/plugin-syntax-object-rest-spread': 7.8.3_@babel+core@7.17.8 '@babel/plugin-transform-parameters': 7.16.7_@babel+core@7.17.8 @@ -1420,7 +1422,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.17.8 - '@babel/helper-compilation-targets': 7.17.7_@babel+core@7.17.8 + '@babel/helper-compilation-targets': 7.16.7_@babel+core@7.17.8 '@babel/helper-function-name': 7.16.7 '@babel/helper-plugin-utils': 7.16.7 dev: true @@ -1452,7 +1454,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.17.8 - '@babel/helper-module-transforms': 7.17.7 + '@babel/helper-module-transforms': 7.16.7 '@babel/helper-plugin-utils': 7.16.7 babel-plugin-dynamic-import-node: 2.3.3 transitivePeerDependencies: @@ -1482,7 +1484,7 @@ packages: dependencies: '@babel/core': 7.17.8 '@babel/helper-hoist-variables': 7.16.7 - '@babel/helper-module-transforms': 7.17.7 + '@babel/helper-module-transforms': 7.16.7 '@babel/helper-plugin-utils': 7.16.7 '@babel/helper-validator-identifier': 7.16.7 babel-plugin-dynamic-import-node: 2.3.3 @@ -1497,7 +1499,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.17.8 - '@babel/helper-module-transforms': 7.17.7 + '@babel/helper-module-transforms': 7.16.7 '@babel/helper-plugin-utils': 7.16.7 transitivePeerDependencies: - supports-color @@ -1799,7 +1801,7 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/code-frame': 7.16.7 - '@babel/parser': 7.17.8 + '@babel/parser': 7.17.3 '@babel/types': 7.17.0 /@babel/traverse/7.17.3: @@ -1807,14 +1809,14 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/code-frame': 7.16.7 - '@babel/generator': 7.17.7 + '@babel/generator': 7.17.3 '@babel/helper-environment-visitor': 7.16.7 '@babel/helper-function-name': 7.16.7 '@babel/helper-hoist-variables': 7.16.7 '@babel/helper-split-export-declaration': 7.16.7 - '@babel/parser': 7.17.8 + '@babel/parser': 7.17.3 '@babel/types': 7.17.0 - debug: 4.3.4 + debug: 4.3.3 globals: 11.12.0 transitivePeerDependencies: - supports-color @@ -1912,28 +1914,6 @@ packages: '@commitlint/types': 16.2.1 dev: true - /@commitlint/load/16.2.1: - resolution: {integrity: sha512-oSpz0jTyVI/A1AIImxJINTLDOMB8YF7lWGm+Jg5wVWM0r7ucpuhyViVvpSRTgvL0z09oIxlctyFGWUQQpI42uw==} - engines: {node: '>=v12'} - requiresBuild: true - 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.18 - chalk: 4.1.2 - cosmiconfig: 7.0.1 - cosmiconfig-typescript-loader: 1.0.5_b3bffd23b91051c5fffa541a5822dff1 - lodash: 4.17.21 - resolve-from: 5.0.0 - typescript: 4.6.2 - transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' - dev: true - optional: true - /@commitlint/load/16.2.3: resolution: {integrity: sha512-Hb4OUlMnBUK6UxJEZ/VJ5k0LocIS7PtEMbRXEAA7eSpOgORIFexC4K/RaRpVd5UTtu3M0ST3ddPPijF9rdW6nw==} engines: {node: '>=v12'} @@ -2092,7 +2072,7 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: ajv: 6.12.6 - debug: 4.3.4 + debug: 4.3.3 espree: 9.3.1 globals: 13.12.1 ignore: 5.2.0 @@ -2109,7 +2089,7 @@ packages: engines: {node: '>=10.10.0'} dependencies: '@humanwhocodes/object-schema': 1.2.1 - debug: 4.3.4 + debug: 4.3.3 minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -3168,7 +3148,7 @@ packages: optional: true dependencies: '@typescript-eslint/utils': 5.15.0_eslint@8.11.0+typescript@4.6.2 - debug: 4.3.3 + debug: 4.3.4 eslint: 8.11.0 tsutils: 3.21.0_typescript@4.6.2 typescript: 4.6.2 @@ -3192,7 +3172,7 @@ packages: dependencies: '@typescript-eslint/types': 5.15.0 '@typescript-eslint/visitor-keys': 5.15.0 - debug: 4.3.3 + debug: 4.3.4 globby: 11.1.0 is-glob: 4.0.3 semver: 7.3.5 @@ -3228,6 +3208,126 @@ packages: eslint-visitor-keys: 3.3.0 dev: false + /@unocss/cli/0.29.5: + resolution: {integrity: sha512-g8Yfq9oQ6FwhXSMPaTy2WbhWZGGHYOvEs3M4EPD5QjHebez1AUmOctBrl4GzEEwDP5IB6cbiGo5jCu9gOPB/bQ==} + engines: {node: '>=14'} + hasBin: true + dependencies: + '@unocss/config': 0.29.5 + '@unocss/core': 0.29.5 + '@unocss/preset-uno': 0.29.5 + cac: 6.7.12 + chokidar: 3.5.3 + colorette: 2.0.16 + consola: 2.15.3 + fast-glob: 3.2.11 + pathe: 0.2.0 + dev: true + + /@unocss/config/0.29.5: + resolution: {integrity: sha512-P41ycdnz7rugNT/4angGTuPSgMaJt/c24bKc5VW2liDz6WhxzN5zzJOAlWSWWtxZoagHZ5X1iwmSlYipkQ/Nmw==} + engines: {node: '>=14'} + dependencies: + '@unocss/core': 0.29.5 + unconfig: 0.3.2 + dev: true + + /@unocss/core/0.29.5: + resolution: {integrity: sha512-bS+Y/k4GkMJY4yZPSZFKozlZF+9s36Y8gx0NLma2hBam2NbBui7Qisg7ZXOC0pw+pkRC9OgFBsPnegp09ZUayA==} + dev: true + + /@unocss/inspector/0.29.5: + resolution: {integrity: sha512-Xl60HeTlpBTJBrvucN7q13uaJ3shHfotJbfTdAKDqEhCnWDtoJW5f4bh6ZvBaGlRdwnOJG/bivfK+pPSbjXKBw==} + dependencies: + gzip-size: 6.0.0 + sirv: 2.0.2 + dev: true + + /@unocss/preset-attributify/0.29.5: + resolution: {integrity: sha512-rrwzoZsgtjrFUZ2XRhK1teKXl3JXOItp53YNjzadESwQGeI9lxrXkuLZ5QtTTaOgwqv6nt8RNMKE0XmsWjqppw==} + dependencies: + '@unocss/core': 0.29.5 + dev: true + + /@unocss/preset-icons/0.29.5: + resolution: {integrity: sha512-ukaTuvY0CkwpsY/DOj1MBZcjNb/Rv55OuRoxwR4nKLEc0NAWB6uHogomoCYZIkKsPx+xeLSxOtrivBFjxuy1XQ==} + dependencies: + '@iconify/utils': 1.0.26 + '@unocss/core': 0.29.5 + local-pkg: 0.4.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@unocss/preset-mini/0.29.5: + resolution: {integrity: sha512-2btjWbKIp1nFHWQufI5XbiNpG1I+8IB4NIyckXx2D0i1I4TEbLDyItOf5UBtsDJLVHgNyVqfUSzf/6Hf1+/vNw==} + dependencies: + '@unocss/core': 0.29.5 + dev: true + + /@unocss/preset-typography/0.29.5: + resolution: {integrity: sha512-CO0TQQ/tkwTAUt6pLkZAoKT+lm9EgbGJtcamClKzpjzyOgHad6jQ1iTGXbz4W4a1xN+8//UgXQCXzjgXVJZoxA==} + dependencies: + '@unocss/core': 0.29.5 + dev: true + + /@unocss/preset-uno/0.29.5: + resolution: {integrity: sha512-ZPIAjWONxWWf0Aq3I/L3PkURiYBXgQoJ7Tf9/W6dPotGpMFI7p10K/MMh+2Ha5Q7I52uWON32XkTJr6KkI221g==} + dependencies: + '@unocss/core': 0.29.5 + '@unocss/preset-mini': 0.29.5 + '@unocss/preset-wind': 0.29.5 + dev: true + + /@unocss/preset-web-fonts/0.29.5: + resolution: {integrity: sha512-pJc8q3Yrt8d0qPc5RyeL1hGIJSYEkc1UQbYg5VAdtdN2+kzWorhE5x8MpYRlQxXcqTwtTloxRVMg+bzUbvC2xQ==} + dependencies: + '@unocss/core': 0.29.5 + axios: 0.26.1 + transitivePeerDependencies: + - debug + dev: true + + /@unocss/preset-wind/0.29.5: + resolution: {integrity: sha512-vVMsjRJWtoQhsQbCl3x8H2Sg5xbw7RM4LsgRdlLiwvC7mAlMzo2i3KZ0lUwxmq/8X8cNSQq/Do+FG34YDP3zmA==} + dependencies: + '@unocss/core': 0.29.5 + '@unocss/preset-mini': 0.29.5 + dev: true + + /@unocss/reset/0.29.5: + resolution: {integrity: sha512-vdqQC/bK6IaAC/awM5YgcTLDnSXrKsYUJdQp5VDgO+zFz3xFIzAo7bZecDivDppBEOZx+TMD9sHZG+GBfX917Q==} + dev: true + + /@unocss/scope/0.29.5: + resolution: {integrity: sha512-a7bBZIyphGl/8JMkQgwJPYs3pqaonYW0uxzw1RD51d9nhXe1TqBH43v0aSvT/pYWrNYkoBLabZ33WO1bdBGBWw==} + dev: true + + /@unocss/transformer-directives/0.29.5: + resolution: {integrity: sha512-iwypgS7o1gK95f0zs+C4k6eyIkxcj+UVoGk1dnzhVg2SSYl9RUslh750XLRXj2YDaZ2jCNmTD8HmFKKQXJPUbQ==} + dependencies: + '@unocss/core': 0.29.5 + css-tree: 2.1.0 + dev: true + + /@unocss/transformer-variant-group/0.29.5: + resolution: {integrity: sha512-DWUVQ1RCK6a3/zoDI+cvfKL33udW9JBxfUqCLAOG9c3coy2s464zhMkgH8g199J/GKbn9MdzEecxg79KUAKlIg==} + dependencies: + '@unocss/core': 0.29.5 + dev: true + + /@unocss/vite/0.29.5: + resolution: {integrity: sha512-njilg6ooNi+CB1Vde5zh9Ys146CoCN9D+FlgiKIjNUmSvNGVtsfmkR1OoGWUtRolpMH4aUfVjZTYBo73FX9Ysg==} + dependencies: + '@rollup/pluginutils': 4.2.0 + '@unocss/config': 0.29.5 + '@unocss/core': 0.29.5 + '@unocss/inspector': 0.29.5 + '@unocss/scope': 0.29.5 + '@unocss/transformer-directives': 0.29.5 + magic-string: 0.26.1 + dev: true + /@vitejs/plugin-vue-jsx/1.3.8: resolution: {integrity: sha512-gPtie8IM7G5OI2O2/Xwk/oYjnw2gKBzayVuEOM5Jx65KmpVcW444F+H7IsIMduvAgwLQPEYMGiO1V8dBgk7qog==} engines: {node: '>=12.0.0'} @@ -3272,8 +3372,8 @@ packages: dependencies: vue: 3.2.31 - /@vitest/ui/0.7.6: - resolution: {integrity: sha512-UX99oH1XM9XXi6Py26CbzlqLhG8kOXVB2n7nneoj1uU+C9mKCaVKX8eN4reRU49ntby9FAMAVq4uIkVcAMHIAA==} + /@vitest/ui/0.7.7: + resolution: {integrity: sha512-r+8w1AlUUWcHmAbNbm2wuhhtLqAL5EPtgE2MYCF3/7fjLJUkxRdox8fn/bwqAQGoPTRDOyhLdOZWlJUpk5VKcw==} dependencies: sirv: 2.0.2 dev: true @@ -3505,30 +3605,6 @@ packages: vue-demi: 0.12.1_vue@3.2.31 dev: false - /@windicss/config/1.8.3: - resolution: {integrity: sha512-1fvfZhRD7WfV/Xh6uIAYKIdbQWrwEgSdkFlHiLPzMDS44KjwNZILDzLAz9Y2W5H2K4MLGgGMnzGS89ECyjc0Ww==} - dependencies: - debug: 4.3.4 - jiti: 1.13.0 - windicss: 3.5.1 - transitivePeerDependencies: - - supports-color - dev: true - - /@windicss/plugin-utils/1.8.3: - resolution: {integrity: sha512-emlMeDt73uNV1ZofLTDogcxqL9aZ5uIRYkjeHlrWiaDozFbX6Jc+a6eRo9Ieaar3JUryl6AnecTPHAiFDl4IXg==} - dependencies: - '@antfu/utils': 0.5.0 - '@windicss/config': 1.8.3 - debug: 4.3.4 - fast-glob: 3.2.11 - magic-string: 0.25.7 - micromatch: 4.0.4 - windicss: 3.5.1 - transitivePeerDependencies: - - supports-color - dev: true - /@zkochan/npm-conf/2.0.2: resolution: {integrity: sha512-nF6cxXu/3x0gbIGZdiajpL6diySPoU5T5Mh0TXSjHp2shZoqtZgRj3zdIc/pkd6kKAWaktFvOFFo5kTqwne/tg==} engines: {node: '>=10'} @@ -3593,7 +3669,7 @@ packages: resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==} engines: {node: '>= 6.0.0'} dependencies: - debug: 4.3.4 + debug: 4.3.3 transitivePeerDependencies: - supports-color dev: true @@ -3952,7 +4028,7 @@ packages: /axios/0.21.4_debug@4.3.3: resolution: {integrity: sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==} dependencies: - follow-redirects: 1.14.9 + follow-redirects: 1.14.9_debug@4.3.3 transitivePeerDependencies: - debug dev: true @@ -3963,7 +4039,6 @@ packages: follow-redirects: 1.14.9 transitivePeerDependencies: - debug - dev: false /babel-jest/26.6.3_@babel+core@7.17.8: resolution: {integrity: sha512-pl4Q+GAVOHwvjrck6jKjvmGhnO3jHX/xuB9d27f+EJZ/6k+6nMuPjorrYp7s++bKKdANwzElBWnLWaObvTnaZA==} @@ -4018,7 +4093,7 @@ packages: peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/compat-data': 7.17.7 + '@babel/compat-data': 7.17.0 '@babel/core': 7.17.8 '@babel/helper-define-polyfill-provider': 0.3.1_@babel+core@7.17.8 semver: 6.3.0 @@ -4277,6 +4352,11 @@ packages: yargs-parser: 20.2.9 dev: true + /cac/6.7.12: + resolution: {integrity: sha512-rM7E2ygtMkJqD9c7WnFU6fruFcN3xe4FM5yUmgxhZzIKJk4uHl9U/fhwdajGFQbQuv43FAUo1Fe8gX/oIKDeSA==} + engines: {node: '>=8'} + dev: true + /cache-base/1.0.1: resolution: {integrity: sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==} engines: {node: '>=0.10.0'} @@ -4876,6 +4956,14 @@ packages: resolution: {integrity: sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==} engines: {node: '>=8'} + /css-tree/2.1.0: + resolution: {integrity: sha512-PcysZRzToBbrpoUrZ9qfblRIRf8zbEAkU0AIpQFtgkFK0vSbzOmBCvdSAx2Zg7Xx5wiYJKUKk0NMP7kxevie/A==} + engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0, npm: '>=7.0.0'} + dependencies: + mdn-data: 2.0.27 + source-map-js: 1.0.2 + dev: true + /css/2.2.4: resolution: {integrity: sha512-oUnjmWpy0niI3x/mPL8dVEI1l7MnG3+HHyRPHf+YFSbK+svOhXpmSOcDURUh2aOCgl2grzrOPt1nHLuCVFULLw==} dependencies: @@ -4931,7 +5019,7 @@ packages: longest: 2.0.1 word-wrap: 1.2.3 optionalDependencies: - '@commitlint/load': 16.2.1 + '@commitlint/load': 16.2.3 transitivePeerDependencies: - '@swc/core' - '@swc/wasm' @@ -4994,19 +5082,6 @@ packages: dependencies: ms: 2.1.2 - /debug/4.3.3_supports-color@9.2.1: - resolution: {integrity: sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==} - engines: {node: '>=6.0'} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true - dependencies: - ms: 2.1.2 - supports-color: 9.2.1 - dev: true - /debug/4.3.4: resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} engines: {node: '>=6.0'} @@ -5018,6 +5093,19 @@ packages: dependencies: ms: 2.1.2 + /debug/4.3.4_supports-color@9.2.1: + resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: 2.1.2 + supports-color: 9.2.1 + dev: true + /decamelize-keys/1.1.0: resolution: {integrity: sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=} engines: {node: '>=0.10.0'} @@ -5173,6 +5261,10 @@ packages: is-obj: 2.0.0 dev: true + /duplexer/0.1.2: + resolution: {integrity: sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==} + dev: true + /duplexify/3.7.1: resolution: {integrity: sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==} dependencies: @@ -6306,7 +6398,7 @@ packages: engines: {node: '>= 10.17.0'} hasBin: true dependencies: - debug: 4.3.4 + debug: 4.3.3 get-stream: 5.2.0 yauzl: 2.10.0 optionalDependencies: @@ -6538,6 +6630,18 @@ packages: debug: optional: true + /follow-redirects/1.14.9_debug@4.3.3: + resolution: {integrity: sha512-MQDfihBQYMcyy5dhRDJUHcw7lb2Pv/TuE6xP1vyraLukNDHKbDxDNaOE3NbCAdKQApno+GPRyo1YAp89yCjK4w==} + engines: {node: '>=4.0'} + peerDependencies: + debug: '*' + peerDependenciesMeta: + debug: + optional: true + dependencies: + debug: 4.3.3 + dev: true + /for-in/1.0.2: resolution: {integrity: sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=} engines: {node: '>=0.10.0'} @@ -6955,6 +7059,13 @@ packages: glogg: 1.0.2 dev: false + /gzip-size/6.0.0: + resolution: {integrity: sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==} + engines: {node: '>=10'} + dependencies: + duplexer: 0.1.2 + dev: true + /har-schema/2.0.0: resolution: {integrity: sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=} engines: {node: '>=4'} @@ -7081,7 +7192,7 @@ packages: engines: {node: '>= 6'} dependencies: agent-base: 6.0.2 - debug: 4.3.4 + debug: 4.3.3 transitivePeerDependencies: - supports-color dev: true @@ -7601,7 +7712,7 @@ packages: engines: {node: '>=8'} dependencies: '@babel/core': 7.17.8 - '@babel/parser': 7.17.8 + '@babel/parser': 7.17.3 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.0 semver: 6.3.0 @@ -8336,7 +8447,7 @@ packages: cli-truncate: 3.1.0 colorette: 2.0.16 commander: 8.3.0 - debug: 4.3.3_supports-color@9.2.1 + debug: 4.3.4_supports-color@9.2.1 execa: 5.1.1 lilconfig: 2.0.4 listr2: 4.0.4 @@ -8581,6 +8692,10 @@ packages: resolution: {integrity: sha512-AW4DRS3QbBayY/jJmD8437V1Gombjf8RSOUCMFBuo5iHi58AGEgVCKQ+ezHkZZDpAQS75hcBMpLqjpJTjtUL7w==} dev: false + /mdn-data/2.0.27: + resolution: {integrity: sha512-kwqO0I0jtWr25KcfLm9pia8vLZ8qoAKhWZuZMbneJq3jjBD3gl5nZs8l8Tu3ZBlBAHVQtDur9rdDGyvtfVraHQ==} + dev: true + /mdurl/1.0.1: resolution: {integrity: sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4=} dev: true @@ -11119,6 +11234,14 @@ packages: engines: {node: '>=0.10.0'} dev: false + /unconfig/0.3.2: + resolution: {integrity: sha512-wkvnZCGGGaIhlggzjA1J7UyuLxWgWroSNNlCXQQ+Y5eq1S2dHgA3LXoDIxnexpo6+Kdjzh+mK7CntU5t3i84Ag==} + dependencies: + '@antfu/utils': 0.5.0 + defu: 5.0.1 + jiti: 1.13.0 + dev: true + /undertaker-registry/1.0.1: resolution: {integrity: sha1-XkvaMI5KiirlhPm5pDWaSZglzFA=} engines: {node: '>= 0.10'} @@ -11204,6 +11327,28 @@ packages: resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==} engines: {node: '>= 10.0.0'} + /unocss/0.29.5: + resolution: {integrity: sha512-iCqmHaOq7z6eilqOrYv81Fp5R7G5DaEuejzfqwNnMyBcP/vz3IKSiFPCM0SLS8tTOWJ+8jb9c7lM+U8cDlKOtg==} + engines: {node: '>=14'} + dependencies: + '@unocss/cli': 0.29.5 + '@unocss/core': 0.29.5 + '@unocss/preset-attributify': 0.29.5 + '@unocss/preset-icons': 0.29.5 + '@unocss/preset-mini': 0.29.5 + '@unocss/preset-typography': 0.29.5 + '@unocss/preset-uno': 0.29.5 + '@unocss/preset-web-fonts': 0.29.5 + '@unocss/preset-wind': 0.29.5 + '@unocss/reset': 0.29.5 + '@unocss/transformer-directives': 0.29.5 + '@unocss/transformer-variant-group': 0.29.5 + '@unocss/vite': 0.29.5 + transitivePeerDependencies: + - debug + - supports-color + dev: true + /unplugin-element-plus/0.3.2: resolution: {integrity: sha512-/oPbLA1ByrZ3VvN3jrVtVZcGJ147+ccyrL1w9d8wNLTTMH+buxdtiMQQv9R7Muz22ocJvebXZzlRVlA/JeeVPA==} engines: {node: '>=12.20.0'} @@ -11267,7 +11412,7 @@ packages: '@antfu/utils': 0.5.0 '@rollup/pluginutils': 4.2.0 chokidar: 3.5.3 - debug: 4.3.3 + debug: 4.3.4 fast-glob: 3.2.11 local-pkg: 0.4.1 magic-string: 0.26.1 @@ -11611,20 +11756,6 @@ packages: - supports-color dev: true - /vite-plugin-windicss/1.8.3_vite@2.8.6: - resolution: {integrity: sha512-RIw2GD6H6cKNE8wZXVOBs4L1uTicVS0FaAkeqXvy1oyuXLC4SXmvnzEuoK0+qFuWJjW0ECNwE8eU+ZZhzNQKUg==} - peerDependencies: - vite: ^2.0.1 - dependencies: - '@windicss/plugin-utils': 1.8.3 - debug: 4.3.3 - kolorist: 1.5.1 - vite: 2.8.6_sass@1.49.9 - windicss: 3.5.1 - transitivePeerDependencies: - - supports-color - dev: true - /vite/2.8.6_sass@1.49.9: resolution: {integrity: sha512-e4H0QpludOVKkmOsRyqQ7LTcMUDF3mcgyNU4lmi0B5JUbe0ZxeBBl8VoZ8Y6Rfn9eFKYtdXNPcYK97ZwH+K2ug==} engines: {node: '>=12.2.0'} @@ -11671,9 +11802,9 @@ packages: - stylus dev: true - /vitest/0.7.6_0bc1e6b208b9bc54158c15e3fb96983d: - resolution: {integrity: sha512-fqk0cn0I2BUpzwLfeZ725JeXJ7WGwDtVcVBksQ6SdyjrBi6aex8t3w70TWgyLOXgylS7FJ8C9DRap4MMgpkqYw==} - engines: {node: '>=14.14.0'} + /vitest/0.7.7_7d3cbbd90436233af0f8bf29cc0decd0: + resolution: {integrity: sha512-xU7BTB7T7GbcjFBdbZAAp/dIQUwn8bygI+cbw6Yq1oXj60oGRJ+nJ7AXvSOJyaHMTmglEoaqazyDGnCHJBXftw==} + engines: {node: '>=v14.19.1'} hasBin: true peerDependencies: '@vitest/ui': '*' @@ -11692,7 +11823,7 @@ packages: dependencies: '@types/chai': 4.3.0 '@types/chai-subset': 1.3.3 - '@vitest/ui': 0.7.6 + '@vitest/ui': 0.7.7 c8: 7.11.0 chai: 4.3.6 local-pkg: 0.4.1 @@ -11918,12 +12049,6 @@ packages: dependencies: string-width: 4.2.3 - /windicss/3.5.1: - resolution: {integrity: sha512-E1hYZATcZFci/XhGS0sJAMRxULjnK+glNukE78Ku7xeb3jxgMY55fFOdIrav+GjQCsgR+IZxPq9/DwmO6eyc4Q==} - engines: {node: '>= 12'} - hasBin: true - dev: true - /word-wrap/1.2.3: resolution: {integrity: sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==} engines: {node: '>=0.10.0'}