From 0e36bde39dbcad2c7b92dec73982296847ea5c75 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Sat, 30 Dec 2023 23:13:55 +0800 Subject: [PATCH 1/2] chore: add vue dev tools Signed-off-by: Ryan Wang --- console/package.json | 1 + console/pnpm-lock.yaml | 285 +++++++++++++++++++++++++++++ console/src/vite/config-builder.ts | 2 + 3 files changed, 288 insertions(+) diff --git a/console/package.json b/console/package.json index d43dab7d9a..28ba238e83 100644 --- a/console/package.json +++ b/console/package.json @@ -150,6 +150,7 @@ "vite-plugin-html": "^3.2.0", "vite-plugin-pwa": "^0.16.4", "vite-plugin-static-copy": "^0.17.0", + "vite-plugin-vue-devtools": "^7.0.2", "vitest": "^0.34.1", "vue-tsc": "^1.8.8" } diff --git a/console/pnpm-lock.yaml b/console/pnpm-lock.yaml index b518a10fa8..f3e62ed579 100644 --- a/console/pnpm-lock.yaml +++ b/console/pnpm-lock.yaml @@ -342,6 +342,9 @@ importers: vite-plugin-static-copy: specifier: ^0.17.0 version: 0.17.0(vite@4.2.3) + vite-plugin-vue-devtools: + specifier: ^7.0.2 + version: 7.0.2(rollup@3.28.0)(vite@4.2.3) vitest: specifier: ^0.34.1 version: 0.34.1(@vitest/ui@0.34.1)(jsdom@20.0.3)(sass@1.60.0) @@ -822,6 +825,24 @@ packages: semver: 6.3.1 dev: true + /@babel/helper-create-class-features-plugin@7.23.7(@babel/core@7.23.5): + resolution: {integrity: sha512-xCoqR/8+BoNnXOY7RVSgv6X+o7pmT5q1d+gGcRlXYkI+9B31glE4jeejhKVpA04O1AtzOt7OSQ6VYKP5FcRl9g==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.23.5 + '@babel/helper-annotate-as-pure': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-function-name': 7.23.0 + '@babel/helper-member-expression-to-functions': 7.23.0 + '@babel/helper-optimise-call-expression': 7.22.5 + '@babel/helper-replace-supers': 7.22.20(@babel/core@7.23.5) + '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + semver: 6.3.1 + dev: true + /@babel/helper-create-regexp-features-plugin@7.22.15(@babel/core@7.23.5): resolution: {integrity: sha512-29FkPLFjn4TPEa3RE7GpW+qbE8tlsu3jntNYNfcGsc49LphF1PQIiD+vMZ1z1xVOKt+93khA9tc2JBs3kBjA7w==} engines: {node: '>=6.9.0'} @@ -1150,6 +1171,18 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true + /@babel/plugin-proposal-decorators@7.23.7(@babel/core@7.23.5): + resolution: {integrity: sha512-b1s5JyeMvqj7d9m9KhJNHKc18gEJiSyVzVX3bwbiPalQBQpuvfPh6lA9F7Kk/dWH0TIiXRpB9yicwijY6buPng==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.5 + '@babel/helper-create-class-features-plugin': 7.23.7(@babel/core@7.23.5) + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-decorators': 7.23.3(@babel/core@7.23.5) + dev: true + /@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2(@babel/core@7.23.5): resolution: {integrity: sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==} engines: {node: '>=6.9.0'} @@ -1187,6 +1220,16 @@ packages: '@babel/helper-plugin-utils': 7.22.5 dev: true + /@babel/plugin-syntax-decorators@7.23.3(@babel/core@7.23.5): + resolution: {integrity: sha512-cf7Niq4/+/juY67E0PbgH0TDhLQ5J7zS8C/Q5FFx+DWyrRa9sUQdTXkjqKu8zGvuqr7vw1muKiukseihU+PJDA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.5 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + /@babel/plugin-syntax-dynamic-import@7.8.3(@babel/core@7.23.5): resolution: {integrity: sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==} peerDependencies: @@ -4085,6 +4128,10 @@ packages: resolution: {integrity: sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==} dev: true + /@polka/url@1.0.0-next.24: + resolution: {integrity: sha512-2LuNTFBIO0m7kKIQvvPHN6UE63VjpmL9rnEEaOOaiSPbZK+zUOYIzBAWcED+3XYzhYsd/0mD57VdxAEqqV52CQ==} + dev: true + /@popperjs/core@2.11.6: resolution: {integrity: sha512-50/17A98tWUfQ176raKiOGXuYpLyyVMkxxG6oylzL3BPOlA6ADGdK7EYunSa4I064xerltq9TGXs8HmOk5E+vw==} dev: false @@ -6960,6 +7007,10 @@ packages: resolution: {integrity: sha512-hz4R8tS5jMn8lDq6iD+yWL6XNB699pGIVLk7WSJnn1dbpjaazsjZQkieJoRX6gW5zpYSCFqQ7jUquPNY65tQYA==} dev: true + /@vue/babel-helper-vue-transform-on@1.1.5: + resolution: {integrity: sha512-SgUymFpMoAyWeYWLAY+MkCK3QEROsiUnfaw5zxOVD/M64KQs8D/4oK6Q5omVA2hnvEOE0SCkH2TZxs/jnnUj7w==} + dev: true + /@vue/babel-plugin-jsx@1.1.1(@babel/core@7.20.12): resolution: {integrity: sha512-j2uVfZjnB5+zkcbc/zsOc0fSNGCMMjaEXP52wdwdIfn0qjFfEYpYZBFKFg+HHnQeJCVrjOeO0YxgaL7DMrym9w==} dependencies: @@ -6977,6 +7028,25 @@ packages: - supports-color dev: true + /@vue/babel-plugin-jsx@1.1.5(@babel/core@7.23.5): + resolution: {integrity: sha512-nKs1/Bg9U1n3qSWnsHhCVQtAzI6aQXqua8j/bZrau8ywT1ilXQbK4FwEJGmU8fV7tcpuFvWmmN7TMmV1OBma1g==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.5 + '@babel/helper-module-imports': 7.22.15 + '@babel/plugin-syntax-jsx': 7.23.3(@babel/core@7.23.5) + '@babel/template': 7.22.15 + '@babel/traverse': 7.23.5 + '@babel/types': 7.23.5 + '@vue/babel-helper-vue-transform-on': 1.1.5 + camelcase: 6.3.0 + html-tags: 3.3.1 + svg-tags: 1.0.0 + transitivePeerDependencies: + - supports-color + dev: true + /@vue/compiler-core@3.3.4: resolution: {integrity: sha512-cquyDNvZ6jTbf/+x+AgM2Arrp6G4Dzbb0R64jiG804HRMfRiFXWI6kqUVqZ6ZR0bQhIoQjB4+2bhNtVwndW15g==} dependencies: @@ -7014,6 +7084,48 @@ packages: /@vue/devtools-api@6.5.0: resolution: {integrity: sha512-o9KfBeaBmCKl10usN4crU53fYtC1r7jJwdGKjPT24t348rHxgfpZ0xL3Xm/gLUYnc0oTp8LAmrxOeLyu6tbk2Q==} + /@vue/devtools-core@7.0.2(rollup@3.28.0)(vite@4.2.3): + resolution: {integrity: sha512-tyGuDlKmRVyR+7Pb8ImrOzRVKHGt+mT17k8qxjov1D1vcEsnz7VkjZRYhfckscAkFIoLqTTotPAh6oVEsD6U1w==} + dependencies: + '@vue/devtools-kit': 7.0.2 + '@vue/devtools-schema': 7.0.2 + '@vue/devtools-shared': 7.0.2 + birpc: 0.2.14 + fast-glob: 3.3.2 + image-meta: 0.2.0 + mitt: 3.0.1 + pathe: 1.1.1 + vite-dev-rpc: 0.1.4(vite@4.2.3) + vite-hot-client: 0.2.3(vite@4.2.3) + vite-plugin-inspect: 0.8.1(rollup@3.28.0)(vite@4.2.3) + transitivePeerDependencies: + - '@nuxt/kit' + - rollup + - supports-color + - vite + dev: true + + /@vue/devtools-kit@7.0.2: + resolution: {integrity: sha512-bE9z6WkfGCP3OmRmitGNiXGMIHBq4QNt1F5HfqREtrR3AiEqcO0ohoJRKHz9YPJ9nvoC/sosTOE4vxmYJERMBA==} + dependencies: + '@vue/devtools-schema': 7.0.2 + '@vue/devtools-shared': 7.0.2 + hookable: 5.5.3 + mitt: 3.0.1 + perfect-debounce: 1.0.0 + speakingurl: 14.0.1 + dev: true + + /@vue/devtools-schema@7.0.2: + resolution: {integrity: sha512-qr1RwZnwOadAlrOEz+efLh/NX5XTCn6CU73pnougTZSvCi6bL24rgWAy1Y3q1j30818vWRNg72TJVYY77Fv9Sw==} + dev: true + + /@vue/devtools-shared@7.0.2: + resolution: {integrity: sha512-2CRQFqzIEh9HCCcGE1j8e8tF2lWb8al0YAdfym3c+Liy+OyLAugBrmEoMlFTsWFiRtli+X2eicmvisiTlrbQJQ==} + dependencies: + rfdc: 1.3.0 + dev: true + /@vue/eslint-config-prettier@7.1.0(eslint@8.43.0)(prettier@2.8.8): resolution: {integrity: sha512-Pv/lVr0bAzSIHLd9iz0KnvAr4GKyCEl+h52bc4e5yWuDVtLgFwycF7nrbWTAQAS+FU6q1geVd07lc6EWfJiWKQ==} peerDependencies: @@ -7875,6 +7987,10 @@ packages: resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==} engines: {node: '>=8'} + /birpc@0.2.14: + resolution: {integrity: sha512-37FHE8rqsYM5JEKCnXFyHpBCzvgHEExwVVTq+nUmloInU7l8ezD1TpOhKpS8oe1DTYFqEK27rFZVKG43oTqXRA==} + dev: true + /bl@4.1.0: resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} dependencies: @@ -9402,6 +9518,10 @@ packages: is-arrayish: 0.2.1 dev: true + /error-stack-parser-es@0.1.1: + resolution: {integrity: sha512-g/9rfnvnagiNf+DRMHEVGuGuIBlCIMDFoTA616HaP2l9PlCjGjVhD98PNbVSJvmK4TttqT5mV5tInMhoFgi+aA==} + dev: true + /es-abstract@1.22.3: resolution: {integrity: sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA==} engines: {node: '>= 0.4'} @@ -10325,6 +10445,21 @@ packages: strip-final-newline: 3.0.0 dev: true + /execa@8.0.1: + resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==} + engines: {node: '>=16.17'} + dependencies: + cross-spawn: 7.0.3 + get-stream: 8.0.1 + human-signals: 5.0.0 + is-stream: 3.0.0 + merge-stream: 2.0.0 + npm-run-path: 5.1.0 + onetime: 6.0.0 + signal-exit: 4.1.0 + strip-final-newline: 3.0.0 + dev: true + /executable@4.1.1: resolution: {integrity: sha512-8iA79xD3uAch729dUG8xaaBBFGaEa0wdD2VkYLFHwlqosEj/jT66AzcreRDSgV7ehnNLBW2WR5jIXwGKjVdTLg==} engines: {node: '>=4'} @@ -10451,6 +10586,17 @@ packages: micromatch: 4.0.5 dev: true + /fast-glob@3.3.2: + resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} + engines: {node: '>=8.6.0'} + dependencies: + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.5 + dev: true + /fast-json-stable-stringify@2.1.0: resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} dev: true @@ -10882,6 +11028,11 @@ packages: engines: {node: '>=10'} dev: true + /get-stream@8.0.1: + resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==} + engines: {node: '>=16'} + dev: true + /get-symbol-description@1.0.0: resolution: {integrity: sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==} engines: {node: '>= 0.4'} @@ -11211,6 +11362,10 @@ packages: resolution: {integrity: sha512-6rOvaUiNKy9lET1X0ECnyZ5O5kSV0PJbtA5yZUgdEF7fGJEVwSLSislltyt7nFwVVALYHQJtfGeAR2Y0A0uJkg==} dev: true + /hookable@5.5.3: + resolution: {integrity: sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==} + dev: true + /hosted-git-info@2.8.9: resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==} dev: true @@ -11245,6 +11400,11 @@ packages: engines: {node: '>=8'} dev: true + /html-tags@3.3.1: + resolution: {integrity: sha512-ztqyC3kLto0e9WbNp0aeP+M3kTt+nbaIveGmUxAtZa+8iFgKLUOD4YKM5j+f3QD89bra7UeumolZHKuOXnTmeQ==} + engines: {node: '>=8'} + dev: true + /http-cache-semantics@4.1.1: resolution: {integrity: sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==} dev: true @@ -11347,6 +11507,11 @@ packages: engines: {node: '>=14.18.0'} dev: true + /human-signals@5.0.0: + resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==} + engines: {node: '>=16.17.0'} + dev: true + /husky@8.0.3: resolution: {integrity: sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==} engines: {node: '>=14'} @@ -11393,6 +11558,10 @@ packages: engines: {node: '>= 4'} dev: true + /image-meta@0.2.0: + resolution: {integrity: sha512-ZBGjl0ZMEMeOC3Ns0wUF/5UdUmr3qQhBSCniT0LxOgGGIRHiNFOkMtIHB7EOznRU47V2AxPgiVP+s+0/UCU0Hg==} + dev: true + /image-size@0.5.5: resolution: {integrity: sha512-6TDAlDPZxUFCv+fuOkIoXT/V/f3Qbq8e37p+YOiYrUv3v9cc3/6x78VdfPgFVaB9dZYeLUfKgHRebpkm/oP2VQ==} engines: {node: '>=0.10.0'} @@ -12752,6 +12921,13 @@ packages: dependencies: '@jridgewell/sourcemap-codec': 1.4.15 + /magic-string@0.30.5: + resolution: {integrity: sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA==} + engines: {node: '>=12'} + dependencies: + '@jridgewell/sourcemap-codec': 1.4.15 + dev: true + /make-dir@2.1.0: resolution: {integrity: sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==} engines: {node: '>=6'} @@ -13025,6 +13201,10 @@ packages: resolution: {integrity: sha512-ILj2TpLiysu2wkBbWjAmww7TkZb65aiQO+DkVdUTBpBXq+MHYiETENkKFMtsJZX1Lf4pe4QOrTSjIfUwN5lRdg==} dev: false + /mitt@3.0.1: + resolution: {integrity: sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==} + dev: true + /mixme@0.5.4: resolution: {integrity: sha512-3KYa4m4Vlqx98GPdOHghxSdNtTvcP8E0kkaJ5Dlh+h2DRzF7zpuVVcA8B0QpKd11YJeP9QQ7ASkKzOeu195Wzw==} engines: {node: '>= 8.0.0'} @@ -13109,6 +13289,11 @@ packages: engines: {node: '>=10'} dev: true + /mrmime@2.0.0: + resolution: {integrity: sha512-eu38+hdgojoyq63s+yTpN4XMBdt5l8HhMhc4VKLO9KM5caLIBvUm4thi7fFaxyTmCKeNnXZ5pAlBwCUnhA09uw==} + engines: {node: '>=10'} + dev: true + /ms@2.0.0: resolution: {integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==} dev: true @@ -13820,6 +14005,10 @@ packages: resolution: {integrity: sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==} dev: true + /perfect-debounce@1.0.0: + resolution: {integrity: sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==} + dev: true + /performance-now@2.1.0: resolution: {integrity: sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==} dev: true @@ -15510,6 +15699,15 @@ packages: totalist: 3.0.0 dev: true + /sirv@2.0.4: + resolution: {integrity: sha512-94Bdh3cC2PKrbgSOUqTiGPWVZeSiXfKOVZNJniWoqrWrRkB1CJzBU3NEbiTsPcYy1lDsANA/THzS+9WBiy5nfQ==} + engines: {node: '>= 10'} + dependencies: + '@polka/url': 1.0.0-next.24 + mrmime: 2.0.0 + totalist: 3.0.0 + dev: true + /sisteransi@1.0.5: resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} dev: true @@ -15655,6 +15853,11 @@ packages: resolution: {integrity: sha512-rr+VVSXtRhO4OHbXUiAF7xW3Bo9DuuF6C5jH+q/x15j2jniycgKbxU09Hr0WqlSLUs4i4ltHGXqTe7VHclYWyA==} dev: true + /speakingurl@14.0.1: + resolution: {integrity: sha512-1POYv7uv2gXoyGFpBCmpDVSNV74IfsWlDW216UPjbWufNf+bSU6GdbDsxdcxtfwb4xlI3yxzOTKClUosxARYrQ==} + engines: {node: '>=0.10.0'} + dev: true + /split@0.3.3: resolution: {integrity: sha512-wD2AeVmxXRBoX44wAycgjVpMhvbwdI2aZjCkvfNcH1YqHQvJVa1duWc73OyVGJUc05fhFaTZeQ/PYsrmyH0JVA==} dependencies: @@ -16896,6 +17099,24 @@ packages: extsprintf: 1.3.0 dev: true + /vite-dev-rpc@0.1.4(vite@4.2.3): + resolution: {integrity: sha512-6I/qF7EDGLQfm3DGdcbkZ7JRl3FIbaVgD1TqDWBaCosJ1QljLzNzDBmMEa7cYkEyAMxHDBqT7zJrOiuYlFYcAA==} + peerDependencies: + vite: ^2.9.0 || ^3.0.0-0 || ^4.0.0-0 || ^5.0.0-0 + dependencies: + birpc: 0.2.14 + vite: 4.2.3(@types/node@18.13.0)(less@4.2.0)(sass@1.60.0) + vite-hot-client: 0.2.3(vite@4.2.3) + dev: true + + /vite-hot-client@0.2.3(vite@4.2.3): + resolution: {integrity: sha512-rOGAV7rUlUHX89fP2p2v0A2WWvV3QMX2UYq0fRqsWSvFvev4atHWqjwGoKaZT1VTKyLGk533ecu3eyd0o59CAg==} + peerDependencies: + vite: ^2.6.0 || ^3.0.0 || ^4.0.0 || ^5.0.0-0 + dependencies: + vite: 4.2.3(@types/node@18.13.0)(less@4.2.0)(sass@1.60.0) + dev: true + /vite-node@0.34.1(@types/node@18.13.0)(sass@1.60.0): resolution: {integrity: sha512-odAZAL9xFMuAg8aWd7nSPT+hU8u2r9gU3LRm9QKjxBEF2rRdWpMuqkrkjvyVQEdNFiBctqr2Gg4uJYizm5Le6w==} engines: {node: '>=v14.18.0'} @@ -16997,6 +17218,30 @@ packages: vite: 4.2.3(@types/node@18.13.0)(less@4.2.0)(sass@1.60.0) dev: true + /vite-plugin-inspect@0.8.1(rollup@3.28.0)(vite@4.2.3): + resolution: {integrity: sha512-oPBPVGp6tBd5KdY/qY6lrbLXqrbHRG0hZLvEaJfiZ/GQfDB+szRuLHblQh1oi1Hhh8GeLit/50l4xfs2SA+TCA==} + engines: {node: '>=14'} + peerDependencies: + '@nuxt/kit': '*' + vite: ^3.1.0 || ^4.0.0 || ^5.0.0-0 + peerDependenciesMeta: + '@nuxt/kit': + optional: true + dependencies: + '@antfu/utils': 0.7.6 + '@rollup/pluginutils': 5.0.5(rollup@3.28.0) + debug: 4.3.4(supports-color@8.1.1) + error-stack-parser-es: 0.1.1 + fs-extra: 11.1.1 + open: 9.1.0 + picocolors: 1.0.0 + sirv: 2.0.4 + vite: 4.2.3(@types/node@18.13.0)(less@4.2.0)(sass@1.60.0) + transitivePeerDependencies: + - rollup + - supports-color + dev: true + /vite-plugin-pwa@0.16.4(vite@4.2.3)(workbox-build@7.0.0)(workbox-window@7.0.0): resolution: {integrity: sha512-lmwHFIs9zI2H9bXJld/zVTbCqCQHZ9WrpyDMqosICDV0FVnCJwniX1NMDB79HGTIZzOQkY4gSZaVTJTw6maz/Q==} engines: {node: '>=16.0.0'} @@ -17028,6 +17273,46 @@ packages: vite: 4.2.3(@types/node@18.13.0)(less@4.2.0)(sass@1.60.0) dev: true + /vite-plugin-vue-devtools@7.0.2(rollup@3.28.0)(vite@4.2.3): + resolution: {integrity: sha512-Hf0u0HVajzE3op1Ij+PgtbN+6SipGJJbKnsw4GClDENrauDzROIHAWrkRslIjLP0X+bf+esjDOkU0cGgHWzdEw==} + engines: {node: '>=v14.21.3'} + peerDependencies: + vite: ^3.1.0 || ^4.0.0-0 || ^5.0.0-0 + dependencies: + '@vue/devtools-core': 7.0.2(rollup@3.28.0)(vite@4.2.3) + '@vue/devtools-kit': 7.0.2 + '@vue/devtools-shared': 7.0.2 + birpc: 0.2.14 + execa: 8.0.1 + sirv: 2.0.4 + vite: 4.2.3(@types/node@18.13.0)(less@4.2.0)(sass@1.60.0) + vite-plugin-inspect: 0.8.1(rollup@3.28.0)(vite@4.2.3) + vite-plugin-vue-inspector: 4.0.2(vite@4.2.3) + transitivePeerDependencies: + - '@nuxt/kit' + - rollup + - supports-color + dev: true + + /vite-plugin-vue-inspector@4.0.2(vite@4.2.3): + resolution: {integrity: sha512-KPvLEuafPG13T7JJuQbSm5PwSxKFnVS965+MP1we2xGw9BPkkc/+LPix5MMWenpKWqtjr0ws8THrR+KuoDC8hg==} + peerDependencies: + vite: ^3.0.0-0 || ^4.0.0-0 || ^5.0.0-0 + dependencies: + '@babel/core': 7.23.5 + '@babel/plugin-proposal-decorators': 7.23.7(@babel/core@7.23.5) + '@babel/plugin-syntax-import-attributes': 7.23.3(@babel/core@7.23.5) + '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.23.5) + '@babel/plugin-transform-typescript': 7.23.5(@babel/core@7.23.5) + '@vue/babel-plugin-jsx': 1.1.5(@babel/core@7.23.5) + '@vue/compiler-dom': 3.3.4 + kolorist: 1.8.0 + magic-string: 0.30.5 + vite: 4.2.3(@types/node@18.13.0)(less@4.2.0)(sass@1.60.0) + transitivePeerDependencies: + - supports-color + dev: true + /vite@3.2.4(@types/node@18.13.0)(sass@1.60.0): resolution: {integrity: sha512-Z2X6SRAffOUYTa+sLy3NQ7nlHFU100xwanq1WDwqaiFiCe+25zdxP1TfCS5ojPV2oDDcXudHIoPnI1Z/66B7Yw==} engines: {node: ^14.18.0 || >=16.0.0} diff --git a/console/src/vite/config-builder.ts b/console/src/vite/config-builder.ts index ee238d9b1c..ae70b5c081 100644 --- a/console/src/vite/config-builder.ts +++ b/console/src/vite/config-builder.ts @@ -8,6 +8,7 @@ import Icons from "unplugin-icons/vite"; import { setupLibraryExternal } from "./library-external"; import GzipPlugin from "rollup-plugin-gzip"; import path from "path"; +import VueDevTools from "vite-plugin-vue-devtools"; interface Options { base: string; @@ -43,6 +44,7 @@ export const sharedPlugins = [ }, disable: true, }), + VueDevTools(), ]; export function createViteConfig(options: Options) { From d49663a9782ff7d680aedae553fa340bf9ae9c4a Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Mon, 29 Jan 2024 15:27:55 +0800 Subject: [PATCH 2/2] Bump devtool to 7.0.13 Signed-off-by: Ryan Wang --- console/package.json | 2 +- console/pnpm-lock.yaml | 140 ++++++++++++++++++++++++++++++++--------- 2 files changed, 111 insertions(+), 31 deletions(-) diff --git a/console/package.json b/console/package.json index 28ba238e83..4dd270b06c 100644 --- a/console/package.json +++ b/console/package.json @@ -150,7 +150,7 @@ "vite-plugin-html": "^3.2.0", "vite-plugin-pwa": "^0.16.4", "vite-plugin-static-copy": "^0.17.0", - "vite-plugin-vue-devtools": "^7.0.2", + "vite-plugin-vue-devtools": "^7.0.13", "vitest": "^0.34.1", "vue-tsc": "^1.8.8" } diff --git a/console/pnpm-lock.yaml b/console/pnpm-lock.yaml index f3e62ed579..1ceb569864 100644 --- a/console/pnpm-lock.yaml +++ b/console/pnpm-lock.yaml @@ -343,8 +343,8 @@ importers: specifier: ^0.17.0 version: 0.17.0(vite@4.2.3) vite-plugin-vue-devtools: - specifier: ^7.0.2 - version: 7.0.2(rollup@3.28.0)(vite@4.2.3) + specifier: ^7.0.13 + version: 7.0.13(rollup@3.28.0)(vite@4.2.3) vitest: specifier: ^0.34.1 version: 0.34.1(@vitest/ui@0.34.1)(jsdom@20.0.3)(sass@1.60.0) @@ -638,6 +638,10 @@ packages: resolution: {integrity: sha512-pvFiLP2BeOKA/ZOS6jxx4XhKzdVLHDhGlFEaZ2flWWYf2xOqVniqpk38I04DFRyz+L0ASggl7SkItTc+ZLju4w==} dev: true + /@antfu/utils@0.7.7: + resolution: {integrity: sha512-gFPqTG7otEJ8uP6wrhDv6mqwGWYZKNvAcCq6u9hOj0c+IKCEsY4L1oC9trPq2SaWIzAfHvqfBDxF591JkMf+kg==} + dev: true + /@apideck/better-ajv-errors@0.3.6(ajv@8.11.0): resolution: {integrity: sha512-P+ZygBLZtkp0qqOAJJVX4oX/sFo5JR3eBWwwuqHHhK0GIgQOKWrAfiAaWX0aArHkRWHMuggFEgAZNxVPwPZYaA==} engines: {node: '>=10'} @@ -4839,6 +4843,21 @@ packages: rollup: 3.28.0 dev: true + /@rollup/pluginutils@5.1.0(rollup@3.28.0): + resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + dependencies: + '@types/estree': 1.0.0 + estree-walker: 2.0.2 + picomatch: 2.3.1 + rollup: 3.28.0 + dev: true + /@rushstack/eslint-patch@1.3.2: resolution: {integrity: sha512-V+MvGwaHH03hYhY+k6Ef/xKd6RYlc4q8WBx+2ANmipHJcKuktNcI/NgEsJgdSUF6Lw32njT6OnrRsKYCdgHjYw==} dev: true @@ -7084,20 +7103,21 @@ packages: /@vue/devtools-api@6.5.0: resolution: {integrity: sha512-o9KfBeaBmCKl10usN4crU53fYtC1r7jJwdGKjPT24t348rHxgfpZ0xL3Xm/gLUYnc0oTp8LAmrxOeLyu6tbk2Q==} - /@vue/devtools-core@7.0.2(rollup@3.28.0)(vite@4.2.3): - resolution: {integrity: sha512-tyGuDlKmRVyR+7Pb8ImrOzRVKHGt+mT17k8qxjov1D1vcEsnz7VkjZRYhfckscAkFIoLqTTotPAh6oVEsD6U1w==} + /@vue/devtools-core@7.0.13(rollup@3.28.0)(vite@4.2.3): + resolution: {integrity: sha512-cSnzDqR5TUyZ08XKHRFadLUHt+SJudU5W43+ImUKhes1BfQ/I6/SVjA9hepXxsMsHFDs7OgV8loopjsnZEojaA==} dependencies: - '@vue/devtools-kit': 7.0.2 - '@vue/devtools-schema': 7.0.2 - '@vue/devtools-shared': 7.0.2 + '@vue/devtools-kit': 7.0.13 + '@vue/devtools-schema': 7.0.13 + '@vue/devtools-shared': 7.0.13 birpc: 0.2.14 fast-glob: 3.3.2 image-meta: 0.2.0 mitt: 3.0.1 - pathe: 1.1.1 + pathe: 1.1.2 + perfect-debounce: 1.0.0 vite-dev-rpc: 0.1.4(vite@4.2.3) vite-hot-client: 0.2.3(vite@4.2.3) - vite-plugin-inspect: 0.8.1(rollup@3.28.0)(vite@4.2.3) + vite-plugin-inspect: 0.8.3(rollup@3.28.0)(vite@4.2.3) transitivePeerDependencies: - '@nuxt/kit' - rollup @@ -7105,25 +7125,25 @@ packages: - vite dev: true - /@vue/devtools-kit@7.0.2: - resolution: {integrity: sha512-bE9z6WkfGCP3OmRmitGNiXGMIHBq4QNt1F5HfqREtrR3AiEqcO0ohoJRKHz9YPJ9nvoC/sosTOE4vxmYJERMBA==} + /@vue/devtools-kit@7.0.13: + resolution: {integrity: sha512-u1Ocu+epsQR67iwKF/eiPrmTDdh7DWnt11VjAw0/61wBDuhKrC9tipw33KCl4tTVrCXg0PJp4b38koGiNCn2dQ==} dependencies: - '@vue/devtools-schema': 7.0.2 - '@vue/devtools-shared': 7.0.2 + '@vue/devtools-schema': 7.0.13 + '@vue/devtools-shared': 7.0.13 hookable: 5.5.3 mitt: 3.0.1 perfect-debounce: 1.0.0 speakingurl: 14.0.1 dev: true - /@vue/devtools-schema@7.0.2: - resolution: {integrity: sha512-qr1RwZnwOadAlrOEz+efLh/NX5XTCn6CU73pnougTZSvCi6bL24rgWAy1Y3q1j30818vWRNg72TJVYY77Fv9Sw==} + /@vue/devtools-schema@7.0.13: + resolution: {integrity: sha512-sDGPPPbi8OZHJMifWl+BQaAlpnkDfsSqcd8s3Uk9dYzHceO63BQjvi/qi1Ru4F+U/eJSuNWv4l/VhiqUNQ5ndw==} dev: true - /@vue/devtools-shared@7.0.2: - resolution: {integrity: sha512-2CRQFqzIEh9HCCcGE1j8e8tF2lWb8al0YAdfym3c+Liy+OyLAugBrmEoMlFTsWFiRtli+X2eicmvisiTlrbQJQ==} + /@vue/devtools-shared@7.0.13: + resolution: {integrity: sha512-nSkUV4czv2UyloDXZwhpDoZic2/lcf3x2VRhK6xiCJY3cmO0+fL7qRDYDZYn11KwyLZngc7uiWF1f3AD0jyxVQ==} dependencies: - rfdc: 1.3.0 + rfdc: 1.3.1 dev: true /@vue/eslint-config-prettier@7.1.0(eslint@8.43.0)(prettier@2.8.8): @@ -8169,6 +8189,13 @@ packages: run-applescript: 5.0.0 dev: true + /bundle-name@4.1.0: + resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==} + engines: {node: '>=18'} + dependencies: + run-applescript: 7.0.0 + dev: true + /bytes@3.0.0: resolution: {integrity: sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==} engines: {node: '>= 0.8'} @@ -9141,6 +9168,11 @@ packages: untildify: 4.0.0 dev: true + /default-browser-id@5.0.0: + resolution: {integrity: sha512-A6p/pu/6fyBcA1TRz/GqWYPViplrftcW2gZC9q79ngNCKAeR/X3gcEdXQHl4KNXV+3wgIJ1CPkJQ3IHM6lcsyA==} + engines: {node: '>=18'} + dev: true + /default-browser@4.0.0: resolution: {integrity: sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA==} engines: {node: '>=14.16'} @@ -9151,6 +9183,14 @@ packages: titleize: 3.0.0 dev: true + /default-browser@5.2.1: + resolution: {integrity: sha512-WY/3TUME0x3KPYdRRxEJJvXRHV4PyPoUsxtZa78lwItwRQRHhd2U9xOscaT/YTf8uCXIAjeJOFBVEh/7FtD8Xg==} + engines: {node: '>=18'} + dependencies: + bundle-name: 4.1.0 + default-browser-id: 5.0.0 + dev: true + /defaults@1.0.3: resolution: {integrity: sha512-s82itHOnYrN0Ib8r+z7laQz3sdE+4FP3d9Q7VLO7U+KRT+CR0GsWuyHxzdAY82I7cXv0G/twrqomTJLOssO5HA==} dependencies: @@ -10892,6 +10932,15 @@ packages: universalify: 2.0.0 dev: true + /fs-extra@11.2.0: + resolution: {integrity: sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==} + engines: {node: '>=14.14'} + dependencies: + graceful-fs: 4.2.10 + jsonfile: 6.1.0 + universalify: 2.0.0 + dev: true + /fs-extra@7.0.1: resolution: {integrity: sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==} engines: {node: '>=6 <7 || >=8'} @@ -12064,6 +12113,13 @@ packages: is-docker: 2.2.1 dev: true + /is-wsl@3.1.0: + resolution: {integrity: sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==} + engines: {node: '>=16'} + dependencies: + is-inside-container: 1.0.0 + dev: true + /is-yarn-global@0.4.1: resolution: {integrity: sha512-/kppl+R+LO5VmhYSEWARUFjodS25D68gvj8W7z0I7OWhUla5xWu8KL6CtB2V0R6yqhnRgbcaREMr4EEM6htLPQ==} engines: {node: '>=12'} @@ -13607,6 +13663,16 @@ packages: mimic-fn: 4.0.0 dev: true + /open@10.0.3: + resolution: {integrity: sha512-dtbI5oW7987hwC9qjJTyABldTaa19SuyJse1QboWv3b0qCcrrLNVDqBx1XgELAjh9QTVQaP/C5b1nhQebd1H2A==} + engines: {node: '>=18'} + dependencies: + default-browser: 5.2.1 + define-lazy-prop: 3.0.0 + is-inside-container: 1.0.0 + is-wsl: 3.1.0 + dev: true + /open@8.4.2: resolution: {integrity: sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==} engines: {node: '>=12'} @@ -13983,6 +14049,10 @@ packages: resolution: {integrity: sha512-d+RQGp0MAYTIaDBIMmOfMwz3E+LOZnxx1HZd5R18mmCZY0QBlK0LDZfPc8FW8Ed2DlvsuE6PRjroDY+wg4+j/Q==} dev: true + /pathe@1.1.2: + resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==} + dev: true + /pathval@1.1.1: resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==} dev: true @@ -15242,6 +15312,10 @@ packages: resolution: {integrity: sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==} dev: true + /rfdc@1.3.1: + resolution: {integrity: sha512-r5a3l5HzYlIC68TpmYKlxWjmOP6wiPJ1vWv2HeLhNsRZMrCkxeqxiHlQ21oXmQ4F3SiryXBHhAD7JZqvOJjFmg==} + dev: true + /rimraf@2.6.3: resolution: {integrity: sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==} hasBin: true @@ -15343,6 +15417,11 @@ packages: execa: 5.1.1 dev: true + /run-applescript@7.0.0: + resolution: {integrity: sha512-9by4Ij99JUr/MCFBUkDKLWK3G9HVXmabKz9U5MlIAIuvuzkiOicRYs8XJLxX+xahD+mLiiCYDqF9dKAgtzKP1A==} + engines: {node: '>=18'} + dev: true + /run-async@2.4.1: resolution: {integrity: sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==} engines: {node: '>=0.12.0'} @@ -17218,8 +17297,8 @@ packages: vite: 4.2.3(@types/node@18.13.0)(less@4.2.0)(sass@1.60.0) dev: true - /vite-plugin-inspect@0.8.1(rollup@3.28.0)(vite@4.2.3): - resolution: {integrity: sha512-oPBPVGp6tBd5KdY/qY6lrbLXqrbHRG0hZLvEaJfiZ/GQfDB+szRuLHblQh1oi1Hhh8GeLit/50l4xfs2SA+TCA==} + /vite-plugin-inspect@0.8.3(rollup@3.28.0)(vite@4.2.3): + resolution: {integrity: sha512-SBVzOIdP/kwe6hjkt7LSW4D0+REqqe58AumcnCfRNw4Kt3mbS9pEBkch+nupu2PBxv2tQi69EQHQ1ZA1vgB/Og==} engines: {node: '>=14'} peerDependencies: '@nuxt/kit': '*' @@ -17228,12 +17307,13 @@ packages: '@nuxt/kit': optional: true dependencies: - '@antfu/utils': 0.7.6 - '@rollup/pluginutils': 5.0.5(rollup@3.28.0) + '@antfu/utils': 0.7.7 + '@rollup/pluginutils': 5.1.0(rollup@3.28.0) debug: 4.3.4(supports-color@8.1.1) error-stack-parser-es: 0.1.1 - fs-extra: 11.1.1 - open: 9.1.0 + fs-extra: 11.2.0 + open: 10.0.3 + perfect-debounce: 1.0.0 picocolors: 1.0.0 sirv: 2.0.4 vite: 4.2.3(@types/node@18.13.0)(less@4.2.0)(sass@1.60.0) @@ -17273,20 +17353,20 @@ packages: vite: 4.2.3(@types/node@18.13.0)(less@4.2.0)(sass@1.60.0) dev: true - /vite-plugin-vue-devtools@7.0.2(rollup@3.28.0)(vite@4.2.3): - resolution: {integrity: sha512-Hf0u0HVajzE3op1Ij+PgtbN+6SipGJJbKnsw4GClDENrauDzROIHAWrkRslIjLP0X+bf+esjDOkU0cGgHWzdEw==} + /vite-plugin-vue-devtools@7.0.13(rollup@3.28.0)(vite@4.2.3): + resolution: {integrity: sha512-mV+lonRg7C+PA1cIAeSuGM+VUeqhZWRGNuXc+SZ7R+S2GzK40V0hNn/7K7GmZ6w4tlIIEVyLrKEDbilsPX85pw==} engines: {node: '>=v14.21.3'} peerDependencies: vite: ^3.1.0 || ^4.0.0-0 || ^5.0.0-0 dependencies: - '@vue/devtools-core': 7.0.2(rollup@3.28.0)(vite@4.2.3) - '@vue/devtools-kit': 7.0.2 - '@vue/devtools-shared': 7.0.2 + '@vue/devtools-core': 7.0.13(rollup@3.28.0)(vite@4.2.3) + '@vue/devtools-kit': 7.0.13 + '@vue/devtools-shared': 7.0.13 birpc: 0.2.14 execa: 8.0.1 sirv: 2.0.4 vite: 4.2.3(@types/node@18.13.0)(less@4.2.0)(sass@1.60.0) - vite-plugin-inspect: 0.8.1(rollup@3.28.0)(vite@4.2.3) + vite-plugin-inspect: 0.8.3(rollup@3.28.0)(vite@4.2.3) vite-plugin-vue-inspector: 4.0.2(vite@4.2.3) transitivePeerDependencies: - '@nuxt/kit'