Commit 1b71db73bc25d10bb759a7fa11e6947a2fb09154
1 parent
4909a4cb
chore: update deps #228
Showing
5 changed files
with
62 additions
and
47 deletions
build/config/themeConfig.ts
... | ... | @@ -36,22 +36,22 @@ export function generateColors({ |
36 | 36 | mixDarken, |
37 | 37 | tinycolor, |
38 | 38 | }: GenerateColorsParams) { |
39 | - const lightens = new Array(19).fill(0).map((t, i) => { | |
39 | + const arr = new Array(19).fill(0); | |
40 | + const lightens = arr.map((t, i) => { | |
40 | 41 | return mixLighten(color, i / 5); |
41 | 42 | }); |
42 | 43 | |
43 | - const darkens = new Array(19).fill(0).map((t, i) => { | |
44 | + const darkens = arr.map((t, i) => { | |
44 | 45 | return mixDarken(color, i / 5); |
45 | 46 | }); |
46 | 47 | |
47 | - const alphaColors = new Array(19).fill(0).map((t, i) => { | |
48 | + const alphaColors = arr.map((t, i) => { | |
48 | 49 | return tinycolor(color) |
49 | 50 | .setAlpha(i / 20) |
50 | 51 | .toRgbString(); |
51 | 52 | }); |
52 | 53 | |
53 | - const tinycolorLightens = new Array(19) | |
54 | - .fill(0) | |
54 | + const tinycolorLightens = arr | |
55 | 55 | .map((t, i) => { |
56 | 56 | return tinycolor(color) |
57 | 57 | .lighten(i * 5) |
... | ... | @@ -59,8 +59,7 @@ export function generateColors({ |
59 | 59 | }) |
60 | 60 | .filter((item) => item !== '#ffffff'); |
61 | 61 | |
62 | - const tinycolorDarkens = new Array(19) | |
63 | - .fill(0) | |
62 | + const tinycolorDarkens = arr | |
64 | 63 | .map((t, i) => { |
65 | 64 | return tinycolor(color) |
66 | 65 | .darken(i * 5) | ... | ... |
package.json
... | ... | @@ -46,7 +46,7 @@ |
46 | 46 | "devDependencies": { |
47 | 47 | "@commitlint/cli": "^11.0.0", |
48 | 48 | "@commitlint/config-conventional": "^11.0.0", |
49 | - "@iconify/json": "^1.1.296", | |
49 | + "@iconify/json": "^1.1.297", | |
50 | 50 | "@ls-lint/ls-lint": "^1.9.2", |
51 | 51 | "@purge-icons/generated": "^0.6.0", |
52 | 52 | "@types/echarts": "^4.9.3", |
... | ... | @@ -93,13 +93,13 @@ |
93 | 93 | "stylelint-order": "^4.1.0", |
94 | 94 | "ts-node": "^9.1.1", |
95 | 95 | "typescript": "^4.1.3", |
96 | - "vite": "2.0.0-beta.62", | |
97 | - "vite-plugin-html": "^2.0.0-rc.3", | |
98 | - "vite-plugin-mock": "^2.0.0-rc.2", | |
96 | + "vite": "2.0.0-beta.64", | |
97 | + "vite-plugin-html": "^2.0.0", | |
98 | + "vite-plugin-mock": "^2.0.1", | |
99 | 99 | "vite-plugin-purge-icons": "^0.6.0", |
100 | 100 | "vite-plugin-pwa": "^0.4.2", |
101 | 101 | "vite-plugin-style-import": "^0.5.5", |
102 | - "vite-plugin-theme": "0.3.2", | |
102 | + "vite-plugin-theme": "0.3.3", | |
103 | 103 | "vue-eslint-parser": "^7.4.1", |
104 | 104 | "yargs": "^16.2.0" |
105 | 105 | }, | ... | ... |
src/components/Description/src/types.ts
... | ... | @@ -16,8 +16,8 @@ export interface DescItem { |
16 | 16 | show?: (...arg: any) => boolean; |
17 | 17 | // render |
18 | 18 | render?: ( |
19 | - val: string, | |
20 | - data: Record<string, any> | |
19 | + val: any, | |
20 | + data: Recordable | |
21 | 21 | ) => VNode | undefined | JSX.Element | Element | string | number; |
22 | 22 | } |
23 | 23 | ... | ... |
vite.config.ts
... | ... | @@ -44,6 +44,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => { |
44 | 44 | overlay: true, |
45 | 45 | }, |
46 | 46 | }, |
47 | + | |
47 | 48 | build: { |
48 | 49 | polyfillDynamicImport: VITE_LEGACY, |
49 | 50 | terserOptions: { |
... | ... | @@ -52,6 +53,8 @@ export default ({ command, mode }: ConfigEnv): UserConfig => { |
52 | 53 | drop_console: VITE_DROP_CONSOLE, |
53 | 54 | }, |
54 | 55 | }, |
56 | + brotliSize: false, | |
57 | + chunkSizeWarningLimit: 1000, | |
55 | 58 | }, |
56 | 59 | define: { |
57 | 60 | __VERSION__: pkg.version, | ... | ... |
yarn.lock
... | ... | @@ -1112,10 +1112,10 @@ |
1112 | 1112 | dependencies: |
1113 | 1113 | cross-fetch "^3.0.6" |
1114 | 1114 | |
1115 | -"@iconify/json@^1.1.296": | |
1116 | - version "1.1.296" | |
1117 | - resolved "https://registry.npmjs.org/@iconify/json/-/json-1.1.296.tgz#470ec5ecae6467abc68c20ebf6d20e47e9f87e9b" | |
1118 | - integrity sha512-xvvph36NsOmKgoZCQcLfzImTBuUJyyzIsDJUMEdP6TpD6UnI2/kaSj8/C4epq060xxMLeL0SG64yFEnR1HZdxw== | |
1115 | +"@iconify/json@^1.1.297": | |
1116 | + version "1.1.297" | |
1117 | + resolved "https://registry.npmjs.org/@iconify/json/-/json-1.1.297.tgz#ae3409fc92df3c16f5a24b3fa6e2d32ab8a912d2" | |
1118 | + integrity sha512-mq2qFnxabHoB4eak/FUUHGHGM/U8KaSp+GzwEF9YJaIsztzym5OUzSQLFyUG8V/zHrnQhnNWTbtnHNZtU9Zg1w== | |
1119 | 1119 | |
1120 | 1120 | "@intlify/core-base@9.0.0-beta.16": |
1121 | 1121 | version "9.0.0-beta.16" |
... | ... | @@ -1252,10 +1252,10 @@ |
1252 | 1252 | "@babel/helper-module-imports" "^7.10.4" |
1253 | 1253 | "@rollup/pluginutils" "^3.1.0" |
1254 | 1254 | |
1255 | -"@rollup/plugin-node-resolve@^11.0.1": | |
1256 | - version "11.1.0" | |
1257 | - resolved "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.1.0.tgz#fa0f888297b3aebcd6534e8aba4e6fe01997649a" | |
1258 | - integrity sha512-ouBBppRdWJKCllDXGzJ7ZIkYbaq+5TmyP0smt1vdJCFfoZhLi31vhpmjLhyo8lreHf4RoeSNllaWrvSqHpHRog== | |
1255 | +"@rollup/plugin-node-resolve@^11.1.1": | |
1256 | + version "11.1.1" | |
1257 | + resolved "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.1.1.tgz#47bc34252914794a1b06fb50371d7520a03f91f3" | |
1258 | + integrity sha512-zlBXR4eRS+2m79TsUZWhsd0slrHUYdRx4JF+aVQm+MI0wsKdlpC2vlDVjmlGvtZY1vsefOT9w3JxvmWSBei+Lg== | |
1259 | 1259 | dependencies: |
1260 | 1260 | "@rollup/pluginutils" "^3.1.0" |
1261 | 1261 | "@types/resolve" "1.17.1" |
... | ... | @@ -2589,7 +2589,7 @@ chardet@^0.7.0: |
2589 | 2589 | resolved "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" |
2590 | 2590 | integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== |
2591 | 2591 | |
2592 | -chokidar@^3.4.3: | |
2592 | +chokidar@^3.5.1: | |
2593 | 2593 | version "3.5.1" |
2594 | 2594 | resolved "https://registry.npmjs.org/chokidar/-/chokidar-3.5.1.tgz#ee9ce7bbebd2b79f49f304799d5468e31e14e68a" |
2595 | 2595 | integrity sha512-9+s+Od+W0VJJzawDma/gvBNQqkTiqYTWLuZoyAsivsI4AaWTCzHG06/TMjsf1cYe9Cb97UCEhjz7HvnPk2p/tw== |
... | ... | @@ -3166,7 +3166,7 @@ dateformat@^3.0.0: |
3166 | 3166 | resolved "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz#a6e37499a4d9a9cf85ef5872044d62901c9889ae" |
3167 | 3167 | integrity sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q== |
3168 | 3168 | |
3169 | -dayjs@^1.10.3: | |
3169 | +dayjs@^1.10.4: | |
3170 | 3170 | version "1.10.4" |
3171 | 3171 | resolved "https://registry.npmjs.org/dayjs/-/dayjs-1.10.4.tgz#8e544a9b8683f61783f570980a8a80eaf54ab1e2" |
3172 | 3172 | integrity sha512-RI/Hh4kqRc1UKLOAf/T5zdMMX5DQIlDxwUe3wSyMMnEbGunnpENCdbUgM+dW7kXidZqCttBrmw7BhN4TMddkCw== |
... | ... | @@ -3475,7 +3475,7 @@ esbuild-register@^2.0.0: |
3475 | 3475 | source-map-support "^0.5.19" |
3476 | 3476 | strip-json-comments "^3.1.1" |
3477 | 3477 | |
3478 | -esbuild@^0.8.29, esbuild@^0.8.34: | |
3478 | +esbuild@^0.8.34: | |
3479 | 3479 | version "0.8.34" |
3480 | 3480 | resolved "https://registry.npmjs.org/esbuild/-/esbuild-0.8.34.tgz#16b4ac58f74c821d2c5a8c2f0585ca96a38ab4e6" |
3481 | 3481 | integrity sha512-tnr0V1ooakYr1aRLXQLzCn2GVG1kBTW3FWpRyC+NgrR3ntsouVpJOlTOV0BS4YLATx3/c+x3h/uBq9lWJlUAtQ== |
... | ... | @@ -3485,6 +3485,11 @@ esbuild@^0.8.37: |
3485 | 3485 | resolved "https://registry.npmjs.org/esbuild/-/esbuild-0.8.38.tgz#04dc395e15c77bbc9d6798e9b31275546bcf7b9a" |
3486 | 3486 | integrity sha512-wSunJl8ujgBs9eVGubc8Y6fn/DkDjNyfQBVOFTY1E7sRxr8KTjmqyLIiE0M3Z4CjMnCu/rttCugwnOzY+HiwIw== |
3487 | 3487 | |
3488 | +esbuild@^0.8.39: | |
3489 | + version "0.8.39" | |
3490 | + resolved "https://registry.npmjs.org/esbuild/-/esbuild-0.8.39.tgz#18b84a3d56173c55ee8f45bc6c7b5374b0a98ecb" | |
3491 | + integrity sha512-/do5H74a5ChyeKRWfkDh3EpICXpsz6dWTtFFbotb7BlIHvWqnRrZYDb8IBubOHdEtKzuiksilRO19aBtp3/HHQ== | |
3492 | + | |
3488 | 3493 | escalade@^3.1.1: |
3489 | 3494 | version "3.1.1" |
3490 | 3495 | resolved "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" |
... | ... | @@ -6607,6 +6612,13 @@ rollup@^2.25.0, rollup@^2.35.1: |
6607 | 6612 | optionalDependencies: |
6608 | 6613 | fsevents "~2.1.2" |
6609 | 6614 | |
6615 | +rollup@^2.38.4: | |
6616 | + version "2.38.4" | |
6617 | + resolved "https://registry.npmjs.org/rollup/-/rollup-2.38.4.tgz#1b84ea8728c73b1a00a6a6e9c630ec8c3fe48cea" | |
6618 | + integrity sha512-B0LcJhjiwKkTl79aGVF/u5KdzsH8IylVfV56Ut6c9ouWLJcUK17T83aZBetNYSnZtXf2OHD4+2PbmRW+Fp5ulg== | |
6619 | + optionalDependencies: | |
6620 | + fsevents "~2.3.1" | |
6621 | + | |
6610 | 6622 | run-async@^2.2.0: |
6611 | 6623 | version "2.4.1" |
6612 | 6624 | resolved "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" |
... | ... | @@ -7713,30 +7725,31 @@ vfile@^4.0.0: |
7713 | 7725 | unist-util-stringify-position "^2.0.0" |
7714 | 7726 | vfile-message "^2.0.0" |
7715 | 7727 | |
7716 | -vite-plugin-html@^2.0.0-rc.3: | |
7717 | - version "2.0.0-rc.3" | |
7718 | - resolved "https://registry.npmjs.org/vite-plugin-html/-/vite-plugin-html-2.0.0-rc.3.tgz#7e0ef3227e4f55583cabeba20f3525e87666c25e" | |
7719 | - integrity sha512-D3SMz1Rxg+x5UFf1bDV7EYpCjc5HRlVSE5qoZYiriGVVDlG7RpoJe18hF37CxxfHOy/4Ote5tAJuY+zVW/N01A== | |
7728 | +vite-plugin-html@^2.0.0: | |
7729 | + version "2.0.0" | |
7730 | + resolved "https://registry.npmjs.org/vite-plugin-html/-/vite-plugin-html-2.0.0.tgz#de39b99ce7df4d0e1234bfae5c23215647d71a28" | |
7731 | + integrity sha512-6nfzAcMp345FRI5WTHOq11O585nlJ2ELwFarhZEi/yvrR1FauhDcFOGGL67/IKiTruYZaatZ3xnFg5BIxK6/7w== | |
7720 | 7732 | dependencies: |
7721 | 7733 | ejs "^3.1.5" |
7722 | 7734 | fs-extra "^9.1.0" |
7723 | 7735 | html-minifier-terser "^5.1.1" |
7724 | 7736 | |
7725 | -vite-plugin-mock@^2.0.0-rc.2: | |
7726 | - version "2.0.0-rc.2" | |
7727 | - resolved "https://registry.npmjs.org/vite-plugin-mock/-/vite-plugin-mock-2.0.0-rc.2.tgz#02aacfd90617c4584df54b6c457832ba9b9f90fa" | |
7728 | - integrity sha512-MfQJc5eGqBmZ8mudT5+Y55wfISBgFebBjrUe4fDAKSFxKTIZ6Dz8KRAQJl82GQRENjoWhcF6kt70azrdZGwM9w== | |
7737 | +vite-plugin-mock@^2.0.1: | |
7738 | + version "2.0.1" | |
7739 | + resolved "https://registry.npmjs.org/vite-plugin-mock/-/vite-plugin-mock-2.0.1.tgz#46b69ebeea3c13072a764b11974a4fb65bd06925" | |
7740 | + integrity sha512-1avHTs2B21uiMxa6zWI99G5X2MtUJ2vnGuBN2TS8jGGYCgUXZ/arMTcSeAo4RPpr6CPZmXYr/Q8ej5tJmGvhhA== | |
7729 | 7741 | dependencies: |
7730 | - "@rollup/plugin-node-resolve" "^11.0.1" | |
7742 | + "@rollup/plugin-node-resolve" "^11.1.1" | |
7743 | + "@types/mockjs" "^1.0.3" | |
7731 | 7744 | body-parser "^1.19.0" |
7732 | 7745 | chalk "^4.1.0" |
7733 | - chokidar "^3.4.3" | |
7746 | + chokidar "^3.5.1" | |
7734 | 7747 | connect "^3.7.0" |
7735 | - dayjs "^1.10.3" | |
7736 | - debug "^4.3.1" | |
7737 | - esbuild "^0.8.29" | |
7748 | + dayjs "^1.10.4" | |
7749 | + debug "^4.3.2" | |
7750 | + esbuild "^0.8.39" | |
7738 | 7751 | fast-glob "^3.2.5" |
7739 | - rollup "^2.35.1" | |
7752 | + rollup "^2.38.4" | |
7740 | 7753 | rollup-plugin-esbuild "^2.6.1" |
7741 | 7754 | |
7742 | 7755 | vite-plugin-purge-icons@^0.6.0: |
... | ... | @@ -7768,20 +7781,20 @@ vite-plugin-style-import@^0.5.5: |
7768 | 7781 | es-module-lexer "^0.3.26" |
7769 | 7782 | magic-string "^0.25.7" |
7770 | 7783 | |
7771 | -vite-plugin-theme@0.3.2: | |
7772 | - version "0.3.2" | |
7773 | - resolved "https://registry.npmjs.org/vite-plugin-theme/-/vite-plugin-theme-0.3.2.tgz#6f101c0a5342aa29804b2b4c85a01b051b6b319b" | |
7774 | - integrity sha512-twEGKyddnsqRQVHHdvfc2AJVO+CZK3rmuqHIyzdJS5tEd1n8JxXlpGL4sH4hYwkwZVY8e+rN1ycUctEkG0Srqw== | |
7784 | +vite-plugin-theme@0.3.3: | |
7785 | + version "0.3.3" | |
7786 | + resolved "https://registry.npmjs.org/vite-plugin-theme/-/vite-plugin-theme-0.3.3.tgz#2f0bd6ae6cc7d018c70e02a6ac277f9d15b64d4a" | |
7787 | + integrity sha512-tsA4fdnRw+6gBQ3Y17JvGRh/LFOKm9V7cYiV8+E5s06+U1g6XCS9GznEF3Hij+u2Dq3v9HudhwqwXKRO9ep4dw== | |
7775 | 7788 | dependencies: |
7776 | 7789 | "@types/tinycolor2" "^1.4.2" |
7777 | 7790 | clean-css "^4.2.3" |
7778 | 7791 | es-module-lexer "^0.3.26" |
7779 | 7792 | tinycolor2 "^1.4.2" |
7780 | 7793 | |
7781 | -vite@2.0.0-beta.62: | |
7782 | - version "2.0.0-beta.62" | |
7783 | - resolved "https://registry.npmjs.org/vite/-/vite-2.0.0-beta.62.tgz#3227fc63ecd3d6fc67b1b95add68cdcde09844b2" | |
7784 | - integrity sha512-75RF5H/8Ta2UvTSjiK5EslyTkUTgRMgkeVRDHqlfDNAJUI8+gvXzhEdTpq2bsASjvnlSytBk+odtCxikEoibbg== | |
7794 | +vite@2.0.0-beta.64: | |
7795 | + version "2.0.0-beta.64" | |
7796 | + resolved "https://registry.npmjs.org/vite/-/vite-2.0.0-beta.64.tgz#245cabc72335911d4cb704545f713d47e880d84f" | |
7797 | + integrity sha512-/dR5rOXohhdXfkAIBAjmwX7JmoMWhQc7+VI6/EjyqXQCQzREmfBztLgTk/rPkmsNY87Cd71u9b+nlbcYK4TDCA== | |
7785 | 7798 | dependencies: |
7786 | 7799 | esbuild "^0.8.34" |
7787 | 7800 | postcss "^8.2.1" | ... | ... |