From 944e3da74087cedd6052228660ac3affcdf050d5 Mon Sep 17 00:00:00 2001 From: arlo Date: Tue, 7 Jan 2025 21:36:11 +0800 Subject: [PATCH 1/7] chore: release extension --- packages/chrome-extension/manifest.json | 4 ++-- packages/chrome-extension/package.json | 2 +- packages/firefox-extension/manifest.json | 4 ++-- packages/firefox-extension/package.json | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/chrome-extension/manifest.json b/packages/chrome-extension/manifest.json index acd751bf..fe3e8b95 100644 --- a/packages/chrome-extension/manifest.json +++ b/packages/chrome-extension/manifest.json @@ -50,8 +50,8 @@ "permissions": [ "scripting" ], - "version": "7.6.8", - "version_name": "7.6.8", + "version": "7.7.0", + "version_name": "7.7.0", "web_accessible_resources": [ { "extension_ids": [], diff --git a/packages/chrome-extension/package.json b/packages/chrome-extension/package.json index 33637648..5491d439 100644 --- a/packages/chrome-extension/package.json +++ b/packages/chrome-extension/package.json @@ -1,7 +1,7 @@ { "name": "@vue/devtools-chrome-extension", "type": "module", - "version": "7.6.8", + "version": "7.7.0", "private": true, "author": "webfansplz", "license": "MIT", diff --git a/packages/firefox-extension/manifest.json b/packages/firefox-extension/manifest.json index 09bc0fc1..906cef03 100644 --- a/packages/firefox-extension/manifest.json +++ b/packages/firefox-extension/manifest.json @@ -47,8 +47,8 @@ "permissions": [ "" ], - "version": "7.6.8", - "version_name": "7.6.8", + "version": "7.7.0", + "version_name": "7.7.0", "web_accessible_resources": [ "dist/user-app.js", "client/devtools-panel.css", diff --git a/packages/firefox-extension/package.json b/packages/firefox-extension/package.json index ee74136b..28b050de 100644 --- a/packages/firefox-extension/package.json +++ b/packages/firefox-extension/package.json @@ -1,7 +1,7 @@ { "name": "@vue/devtools-firefox-extension", "type": "module", - "version": "7.6.8", + "version": "7.7.0", "private": true, "author": "webfansplz", "license": "MIT", From a600dbdb663880d16abd595d18c70cd994caa8cb Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 23 Jan 2025 10:05:56 +0800 Subject: [PATCH 2/7] chore(deps): update autofix-ci/action digest to 551dded (#769) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/autofix.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 40b2d2de..1f59afd7 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -35,4 +35,4 @@ jobs: - name: Lint run: nr lint --fix - - uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c + - uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef From 144cc3f7f392dbb2f67aeb4b98bfdb7ea4c61570 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 23 Jan 2025 10:06:25 +0800 Subject: [PATCH 3/7] chore(deps): update dependency pathe to v2 (#760) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/core/package.json | 2 +- packages/electron/package.json | 2 +- packages/vite/package.json | 2 +- pnpm-lock.yaml | 17 +++++++++++------ 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index 0aa41304..2b99b7bf 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -34,7 +34,7 @@ "@vue/devtools-shared": "workspace:^", "mitt": "^3.0.1", "nanoid": "^5.0.9", - "pathe": "^1.1.2", + "pathe": "^2.0.2", "vite-hot-client": "^0.2.4" }, "devDependencies": { diff --git a/packages/electron/package.json b/packages/electron/package.json index d2af34dd..e4cd6238 100644 --- a/packages/electron/package.json +++ b/packages/electron/package.json @@ -43,7 +43,7 @@ "execa": "^9.5.1", "h3": "^1.13.0", "ip": "^2.0.1", - "pathe": "^1.1.2", + "pathe": "^2.0.2", "socket.io": "^4.8.1", "socket.io-client": "^4.8.1" }, diff --git a/packages/vite/package.json b/packages/vite/package.json index 3449e876..ec1a6ef3 100644 --- a/packages/vite/package.json +++ b/packages/vite/package.json @@ -62,6 +62,6 @@ "@types/node": "^22.10.1", "fast-glob": "^3.3.2", "image-meta": "^0.2.1", - "pathe": "^1.1.2" + "pathe": "^2.0.2" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ef3db9fd..5050b1b0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -357,8 +357,8 @@ importers: specifier: ^5.0.9 version: 5.0.9 pathe: - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^2.0.2 + version: 2.0.2 vite-hot-client: specifier: ^0.2.4 version: 0.2.4(vite@6.0.7(@types/node@22.10.5)(jiti@2.4.2)(sass-embedded@1.83.1)(terser@5.37.0)(tsx@4.19.2)(yaml@2.7.0)) @@ -440,8 +440,8 @@ importers: specifier: ^2.0.1 version: 2.0.1 pathe: - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^2.0.2 + version: 2.0.2 socket.io: specifier: ^4.8.1 version: 4.8.1 @@ -875,8 +875,8 @@ importers: specifier: ^0.2.1 version: 0.2.1 pathe: - specifier: ^1.1.2 - version: 1.1.2 + specifier: ^2.0.2 + version: 2.0.2 packages: @@ -6865,6 +6865,9 @@ packages: pathe@1.1.2: resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==} + pathe@2.0.2: + resolution: {integrity: sha512-15Ztpk+nov8DR524R4BF7uEuzESgzUEAV4Ah7CUMNGXdE5ELuvxElxGXndBl32vMSsWa1jpNf22Z+Er3sKwq+w==} + pathval@2.0.0: resolution: {integrity: sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==} engines: {node: '>= 14.16'} @@ -16197,6 +16200,8 @@ snapshots: pathe@1.1.2: {} + pathe@2.0.2: {} + pathval@2.0.0: {} pend@1.2.0: {} From ebec9f23162e365b2d0680b04e113ceadf085f38 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 23 Jan 2025 10:06:44 +0800 Subject: [PATCH 4/7] chore(deps): update dependency @antfu/ni to v23 (#770) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index fc0cbefd..c31b1338 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ }, "devDependencies": { "@antfu/eslint-config": "^3.11.2", - "@antfu/ni": "^0.23.1", + "@antfu/ni": "^23.2.0", "@arethetypeswrong/cli": "^0.17.0", "@clack/prompts": "^0.8.2", "@types/chrome": "^0.0.287", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5050b1b0..37fe1d3a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,8 +12,8 @@ importers: specifier: ^3.11.2 version: 3.12.1(@typescript-eslint/utils@8.19.0(eslint@9.17.0(jiti@2.4.2))(typescript@5.7.2))(@unocss/eslint-plugin@0.64.1(eslint@9.17.0(jiti@2.4.2))(typescript@5.7.2))(@vue/compiler-sfc@3.5.13)(eslint-plugin-format@0.1.3(eslint@9.17.0(jiti@2.4.2)))(eslint@9.17.0(jiti@2.4.2))(typescript@5.7.2)(vitest@2.1.8(@types/node@22.10.5)(jsdom@25.0.1)(sass-embedded@1.83.1)(terser@5.37.0)) '@antfu/ni': - specifier: ^0.23.1 - version: 0.23.2 + specifier: ^23.2.0 + version: 23.2.0 '@arethetypeswrong/cli': specifier: ^0.17.0 version: 0.17.2 @@ -1026,6 +1026,10 @@ packages: resolution: {integrity: sha512-FSEVWXvwroExDXUu8qV6Wqp2X3D1nJ0Li4LFymCyvCVrm7I3lNfG0zZWSWvGU1RE7891eTnFTyh31L3igOwNKQ==} hasBin: true + '@antfu/ni@23.2.0': + resolution: {integrity: sha512-PsqWG9QcgTQ0eyEMxYaaJMxoCaCmy8InPkToC7MQuOHHUPQknMZtCrnzZSZDXk+X9Z93eGFh+v0mE2X6FWNtuw==} + hasBin: true + '@antfu/utils@0.7.10': resolution: {integrity: sha512-+562v9k4aI80m1+VuMHehNJWLOFjBnXn3tdOitzD0il5b7smkSBal4+a3oKiQTbrwMmN/TBUMDvbdoWDehgOww==} @@ -9465,6 +9469,8 @@ snapshots: '@antfu/ni@0.23.2': {} + '@antfu/ni@23.2.0': {} + '@antfu/utils@0.7.10': {} '@arethetypeswrong/cli@0.17.2': From 59996b91b66515f064cb588738aab32655a9e3e8 Mon Sep 17 00:00:00 2001 From: FliPPeDround <70848683+FliPPeDround@users.noreply.github.com> Date: Thu, 23 Jan 2025 13:46:23 +0800 Subject: [PATCH 5/7] feat(client): add vue SFC custom tab (#775) --- docs/plugins/api.md | 43 ++++ package.json | 1 + packages/client/package.json | 3 +- .../src/components/CustomTabComponent.vue | 3 + .../client/src/components/common/SFCView.vue | 29 +++ packages/devtools-kit/src/types/tab.ts | 13 +- packages/playground/plugin-sfc/index.html | 13 + packages/playground/plugin-sfc/package.json | 20 ++ .../playground/plugin-sfc/public/vite.svg | 1 + packages/playground/plugin-sfc/src/App.vue | 7 + packages/playground/plugin-sfc/src/count.vue | 27 +++ packages/playground/plugin-sfc/src/main.ts | 20 ++ packages/playground/plugin-sfc/vite.config.ts | 15 ++ pnpm-lock.yaml | 228 ++++++++++++++++-- 14 files changed, 405 insertions(+), 18 deletions(-) create mode 100644 packages/client/src/components/common/SFCView.vue create mode 100644 packages/playground/plugin-sfc/index.html create mode 100644 packages/playground/plugin-sfc/package.json create mode 100644 packages/playground/plugin-sfc/public/vite.svg create mode 100644 packages/playground/plugin-sfc/src/App.vue create mode 100644 packages/playground/plugin-sfc/src/count.vue create mode 100644 packages/playground/plugin-sfc/src/main.ts create mode 100644 packages/playground/plugin-sfc/vite.config.ts diff --git a/docs/plugins/api.md b/docs/plugins/api.md index 430e0c06..b9b31185 100644 --- a/docs/plugins/api.md +++ b/docs/plugins/api.md @@ -50,6 +50,49 @@ addCustomTab({ }, category: 'advanced', }) + + +const SFC = /* vue */ ` + + + + + +` + +addCustomTab({ + name: 'plugin-count', + title: 'Plugin Count', + icon: 'baseline-exposure-plus-1', + // SFC view + view: { + type: 'sfc', + sfc: SFC, + }, + category: 'app', +}) ``` ## `addCustomCommand` diff --git a/package.json b/package.json index c31b1338..cb62afb3 100644 --- a/package.json +++ b/package.json @@ -65,6 +65,7 @@ "play:multi-app": "turbo dev --filter=./packages/playground/multi-app", "play:webpack": "turbo dev --filter=./packages/playground/webpack", "play:options-api": "turbo dev --filter=./packages/playground/options-api", + "play:plugin-sfc": "turbo dev --filter=./packages/playground/plugin-sfc", "docs": "pnpm -C docs run docs:dev", "docs:build": "pnpm -C docs run docs:build", "zip": "tsx ./scripts/extension-zip.ts", diff --git a/packages/client/package.json b/packages/client/package.json index 2f737a2d..176a89f0 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -41,7 +41,8 @@ "vis-network": "^9.1.9", "vite-hot-client": "^0.2.4", "vue-router": "^4.5.0", - "vue-virtual-scroller": "2.0.0-beta.8" + "vue-virtual-scroller": "2.0.0-beta.8", + "vue3-sfc-loader": "^0.9.5" }, "devDependencies": { "@iconify/json": "^2.2.277", diff --git a/packages/client/src/components/CustomTabComponent.vue b/packages/client/src/components/CustomTabComponent.vue index 0aea1e9c..0c6f34b6 100644 --- a/packages/client/src/components/CustomTabComponent.vue +++ b/packages/client/src/components/CustomTabComponent.vue @@ -39,6 +39,9 @@ watch(() => tabName.value, () => { +