vite-plugin-vue-devtools 0.2.1 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{IframeView.vue_vue_type_script_setup_true_lang-3a43e6ae.js → IframeView.vue_vue_type_script_setup_true_lang-fad49b28.js} +1 -1
- package/dist/client/assets/{StateFields.vue_vue_type_script_setup_true_lang-f9c67da8.js → StateFields.vue_vue_type_script_setup_true_lang-766dc2da.js} +4 -4
- package/dist/client/assets/{VIcon.vue_vue_type_script_setup_true_lang-b5034521.js → VIcon.vue_vue_type_script_setup_true_lang-8e1bce76.js} +1 -1
- package/dist/client/assets/{VIconButton.vue_vue_type_script_setup_true_lang-66a83f1a.js → VIconButton.vue_vue_type_script_setup_true_lang-1dfaade2.js} +3 -14
- package/dist/client/assets/{VIconTitle.vue_vue_type_script_setup_true_lang-276880a3.js → VIconTitle.vue_vue_type_script_setup_true_lang-3891436f.js} +1 -1
- package/dist/client/assets/{VPanelGrids-08531872.js → VPanelGrids-5c36b027.js} +1 -1
- package/dist/client/assets/{VSectionBlock-c9cecc8a.js → VSectionBlock-de05a5a5.js} +3 -3
- package/dist/client/assets/{VTextInput.vue_vue_type_script_setup_true_lang-96ef132c.js → VTextInput.vue_vue_type_script_setup_true_lang-1c3b455d.js} +2 -2
- package/dist/client/assets/{__eyedropper-dbdd9188.js → __eyedropper-8918265a.js} +2 -2
- package/dist/client/assets/{__inspecting-c3942849.js → __inspecting-9ed1189b.js} +2 -2
- package/dist/client/assets/{assets-dc890f94.js → assets-6e057331.js} +8 -9
- package/dist/client/assets/{component-docs-0d4eec65.js → component-docs-52802cb1.js} +5 -6
- package/dist/client/assets/{components-4bbb4d42.js → components-0083a223.js} +7 -8
- package/dist/client/assets/{documentations-0772e28d.js → documentations-1d60f0ff.js} +6 -7
- package/dist/client/assets/{graph-f04f0659.js → graph-97eb4fb0.js} +2 -2
- package/dist/client/assets/{index-f743edb2.js → index-0158f749.js} +1988 -403
- package/dist/client/assets/{index-4ea8507d.js → index-32549096.js} +1 -1
- package/dist/client/assets/index-5b7de771.css +472 -0
- package/dist/client/assets/{inspect-ef16c665.js → inspect-d5e39a6a.js} +3 -3
- package/dist/client/assets/{npm-8aa51398.js → npm-8ea47586.js} +6 -6
- package/dist/client/assets/{overview-d04e0943.js → overview-3bc4fc18.js} +5 -5
- package/dist/client/assets/{pages-c8759169.js → pages-e0bd078d.js} +5 -5
- package/dist/client/assets/{pinia-a1d3abba.js → pinia-0490bdb1.js} +6 -6
- package/dist/client/assets/{routes-b6e1361f.js → routes-b5c90320.js} +7 -8
- package/dist/client/assets/{rpc-901b9577.js → rpc-6610a4d4.js} +3 -3
- package/dist/client/assets/{settings-7dc3a0fa.js → settings-68a6aaae.js} +8 -7
- package/dist/client/assets/{splitpanes.es-cb929c19.js → splitpanes.es-398427c7.js} +1 -1
- package/dist/client/assets/{timeline-01c3c8d8.js → timeline-f8284402.js} +7 -8
- package/dist/client/index.html +2 -2
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +3 -2
- package/src/node/Container.vue +78 -18
- package/dist/client/assets/VCard-8f584a44.js +0 -15
- package/dist/client/assets/index-76a3c684.css +0 -466
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as _sfc_main$1 } from './IframeView.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { i as inspectClientUrl } from './rpc-
|
|
3
|
-
import { v as defineComponent, o as openBlock, e as createElementBlock, u as createVNode, z as unref } from './index-
|
|
1
|
+
import { _ as _sfc_main$1 } from './IframeView.vue_vue_type_script_setup_true_lang-fad49b28.js';
|
|
2
|
+
import { i as inspectClientUrl } from './rpc-6610a4d4.js';
|
|
3
|
+
import { v as defineComponent, o as openBlock, e as createElementBlock, u as createVNode, z as unref } from './index-0158f749.js';
|
|
4
4
|
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "inspect",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { v as defineComponent,
|
|
2
|
-
import { _ as __unplugin_components_3 } from './VSectionBlock-
|
|
3
|
-
import { _ as _sfc_main$2 } from './VTextInput.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { v as defineComponent, a1 as ref, a8 as onMounted, ad as useEventListener, ae as hookApi, o as openBlock, e as createElementBlock, af as useScrollLock, ag as watch, ah as useInfiniteScroll, r as resolveComponent, b as resolveDirective, x as createBaseVNode, u as createVNode, z as unref, K as isRef, h as withCtx, F as Fragment, i as renderList, c as createBlock, g as createCommentVNode, y as toDisplayString, d as withDirectives, P as createTextVNode, q as normalizeClass, T as _sfc_main$3 } from './index-0158f749.js';
|
|
2
|
+
import { _ as __unplugin_components_3 } from './VSectionBlock-de05a5a5.js';
|
|
3
|
+
import { _ as _sfc_main$2 } from './VTextInput.vue_vue_type_script_setup_true_lang-1c3b455d.js';
|
|
4
4
|
import { g as getDefaultExportFromCjs, c as commonjsGlobal } from './_commonjsHelpers-c0d8ada0.js';
|
|
5
|
-
import { r as rpc } from './rpc-
|
|
6
|
-
import './VIconTitle.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import './VIcon.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { r as rpc } from './rpc-6610a4d4.js';
|
|
6
|
+
import './VIconTitle.vue_vue_type_script_setup_true_lang-3891436f.js';
|
|
7
|
+
import './VIcon.vue_vue_type_script_setup_true_lang-8e1bce76.js';
|
|
8
8
|
|
|
9
9
|
var xterm$1 = {exports: {}};/* Injected with object hook! */
|
|
10
10
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as __unplugin_components_0$1 } from './VPanelGrids-
|
|
2
|
-
import {
|
|
3
|
-
import { r as rpc } from './rpc-
|
|
4
|
-
import { i as isMacOS } from './index-
|
|
1
|
+
import { _ as __unplugin_components_0$1 } from './VPanelGrids-5c36b027.js';
|
|
2
|
+
import { a1 as ref, a2 as computed, aa as routes, v as defineComponent, r as resolveComponent, o as openBlock, c as createBlock, h as withCtx, x as createBaseVNode, u as createVNode, y as toDisplayString, z as unref, ab as vueVersion, P as createTextVNode, e as createElementBlock, F as Fragment, ac as __unplugin_components_0, a0 as __unplugin_components_1, T as _sfc_main$1 } from './index-0158f749.js';
|
|
3
|
+
import { r as rpc } from './rpc-6610a4d4.js';
|
|
4
|
+
import { i as isMacOS } from './index-32549096.js';
|
|
5
5
|
|
|
6
|
-
const version = "0.
|
|
6
|
+
const version = "0.3.1";
|
|
7
7
|
|
|
8
8
|
/* Injected with object hook! */
|
|
9
9
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as __unplugin_components_3 } from './VSectionBlock-
|
|
2
|
-
import { v as defineComponent,
|
|
3
|
-
import { _ as _sfc_main$3 } from './VTextInput.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import './VIconTitle.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import './VIcon.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as __unplugin_components_3 } from './VSectionBlock-de05a5a5.js';
|
|
2
|
+
import { v as defineComponent, a1 as ref, a2 as computed, r as resolveComponent, z as unref, o as openBlock, e as createElementBlock, x as createBaseVNode, y as toDisplayString, c as createBlock, h as withCtx, a7 as withModifiers, F as Fragment, i as renderList, g as createCommentVNode, u as createVNode, P as createTextVNode, q as normalizeClass, T as _sfc_main$4, a0 as __unplugin_components_1, a8 as onMounted, a9 as currentRoute, W as router, K as isRef, M as withKeys, aa as routes } from './index-0158f749.js';
|
|
3
|
+
import { _ as _sfc_main$3 } from './VTextInput.vue_vue_type_script_setup_true_lang-1c3b455d.js';
|
|
4
|
+
import './VIconTitle.vue_vue_type_script_setup_true_lang-3891436f.js';
|
|
5
|
+
import './VIcon.vue_vue_type_script_setup_true_lang-8e1bce76.js';
|
|
6
6
|
|
|
7
7
|
const _hoisted_1$2 = {
|
|
8
8
|
block: "",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as _sfc_main$1 } from './StateFields.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { g, M } from './splitpanes.es-
|
|
3
|
-
import { v as defineComponent,
|
|
4
|
-
import { p as pick } from './index-
|
|
5
|
-
import './VIcon.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import './VIconButton.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as _sfc_main$1 } from './StateFields.vue_vue_type_script_setup_true_lang-766dc2da.js';
|
|
2
|
+
import { g, M } from './splitpanes.es-398427c7.js';
|
|
3
|
+
import { v as defineComponent, a1 as ref, a2 as computed, a3 as piniaStoresCategory, a4 as toRaw, a5 as piniaState, a6 as piniaGetters, z as unref, o as openBlock, e as createElementBlock, u as createVNode, h as withCtx, x as createBaseVNode, F as Fragment, i as renderList, q as normalizeClass, y as toDisplayString, c as createBlock } from './index-0158f749.js';
|
|
4
|
+
import { p as pick } from './index-32549096.js';
|
|
5
|
+
import './VIcon.vue_vue_type_script_setup_true_lang-8e1bce76.js';
|
|
6
|
+
import './VIconButton.vue_vue_type_script_setup_true_lang-1dfaade2.js';
|
|
7
7
|
|
|
8
8
|
const _hoisted_1 = {
|
|
9
9
|
"h-screen": "",
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { _ as __unplugin_components_0 } from './VPanelGrids-
|
|
2
|
-
import { _ as __unplugin_components_7 } from './
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './VIconButton.vue_vue_type_script_setup_true_lang-66a83f1a.js';
|
|
1
|
+
import { _ as __unplugin_components_0 } from './VPanelGrids-5c36b027.js';
|
|
2
|
+
import { v as defineComponent, z as unref, W as router, o as openBlock, e as createElementBlock, u as createVNode, h as withCtx, x as createBaseVNode, F as Fragment, i as renderList, X as routeRecordMatcherState, Y as activeRouteRecordMatcherState, c as createBlock, V as _sfc_main$2, _ as __unplugin_components_7, q as normalizeClass, Z as activeRouteRecordIndex, $ as toggleRouteRecordMatcher, P as createTextVNode, y as toDisplayString, l as normalizeStyle, g as createCommentVNode, a0 as __unplugin_components_1 } from './index-0158f749.js';
|
|
3
|
+
import { _ as _sfc_main$1 } from './StateFields.vue_vue_type_script_setup_true_lang-766dc2da.js';
|
|
4
|
+
import { g, M } from './splitpanes.es-398427c7.js';
|
|
5
|
+
import './VIcon.vue_vue_type_script_setup_true_lang-8e1bce76.js';
|
|
6
|
+
import './index-32549096.js';
|
|
7
|
+
import './VIconButton.vue_vue_type_script_setup_true_lang-1dfaade2.js';
|
|
9
8
|
|
|
10
9
|
const _hoisted_1 = {
|
|
11
10
|
key: 0,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aI as __vitePreload, ae as hookApi } from './index-0158f749.js';
|
|
2
2
|
|
|
3
3
|
async function getViteClient(base = "/", warning = true) {
|
|
4
4
|
try {
|
|
5
5
|
return await __vitePreload(() => import(
|
|
6
6
|
/* @vite-ignore */
|
|
7
7
|
`${base}@vite/client`
|
|
8
|
-
),true?[]:void 0
|
|
8
|
+
),true?[]:void 0);
|
|
9
9
|
} catch {
|
|
10
10
|
if (warning)
|
|
11
11
|
console.error(`[vite-plugin-hot] Failed to import "${base}@vite/client"`);
|
|
@@ -130,7 +130,7 @@ function createRPCClient(name, hot, functions = {}) {
|
|
|
130
130
|
|
|
131
131
|
/* Injected with object hook! */
|
|
132
132
|
|
|
133
|
-
const rpc = createRPCClient("vite-plugin-vue-devtools", await createHotContext("/___", `${location.pathname.split("/
|
|
133
|
+
const rpc = createRPCClient("vite-plugin-vue-devtools", await createHotContext("/___", `${location.pathname.split("/__devtools__")[0] || ""}/`.replace(/\/\//g, "/")), {
|
|
134
134
|
onTerminalData({ data }) {
|
|
135
135
|
hookApi.hook.emit("__vue-devtools:terminal:data__", data);
|
|
136
136
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { v as defineComponent, I as useVModel, o as openBlock, e as createElementBlock, f as renderSlot, d as withDirectives, J as vModelSelect, z as unref, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, K as isRef, c as createBlock, L as vModelCheckbox, M as withKeys, N as useCategorizedTabs, u as createVNode, F as Fragment, i as renderList, h as withCtx,
|
|
3
|
-
import { _ as _sfc_main$4 } from './VIconTitle.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-8e1bce76.js';
|
|
2
|
+
import { v as defineComponent, I as useVModel, o as openBlock, e as createElementBlock, f as renderSlot, d as withDirectives, J as vModelSelect, z as unref, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, K as isRef, c as createBlock, L as vModelCheckbox, M as withKeys, N as useCategorizedTabs, u as createVNode, F as Fragment, i as renderList, O as isInPopup, h as withCtx, P as createTextVNode, Q as useDevToolsSettings, R as useFrameState, S as _sfc_main$5, T as _sfc_main$6, U as _sfc_main$7, q as normalizeClass, V as _sfc_main$8 } from './index-0158f749.js';
|
|
3
|
+
import { _ as _sfc_main$4 } from './VIconTitle.vue_vue_type_script_setup_true_lang-3891436f.js';
|
|
4
4
|
|
|
5
5
|
const _hoisted_1$2 = { class: "n-text-input flex flex items-center border n-border-base rounded px-2 py-1 focus-within:n-focus-base focus-within:border-context n-bg-base" };
|
|
6
6
|
const _hoisted_2$2 = ["disabled"];
|
|
@@ -121,6 +121,7 @@ const _hoisted_7 = {
|
|
|
121
121
|
pr2: ""
|
|
122
122
|
};
|
|
123
123
|
const _hoisted_8 = {
|
|
124
|
+
key: 0,
|
|
124
125
|
py3: "",
|
|
125
126
|
flex: "~ col gap-1",
|
|
126
127
|
border: "b base"
|
|
@@ -196,7 +197,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
196
197
|
const _component_VIconTitle = _sfc_main$4;
|
|
197
198
|
const _component_VSwitch = _sfc_main$1;
|
|
198
199
|
const _component_TabIcon = _sfc_main$8;
|
|
199
|
-
const
|
|
200
|
+
const _component_PanelPosition = _sfc_main$5;
|
|
200
201
|
const _component_VButton = _sfc_main$6;
|
|
201
202
|
const _component_VDarkToggle = _sfc_main$7;
|
|
202
203
|
const _component_VSelect = _sfc_main$2;
|
|
@@ -268,12 +269,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
268
269
|
}), 128))
|
|
269
270
|
]),
|
|
270
271
|
createBaseVNode("div", null, [
|
|
271
|
-
|
|
272
|
+
!unref(isInPopup) ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
272
273
|
_hoisted_9,
|
|
273
274
|
createBaseVNode("div", null, [
|
|
274
|
-
createVNode(
|
|
275
|
+
createVNode(_component_PanelPosition)
|
|
275
276
|
])
|
|
276
|
-
]),
|
|
277
|
+
])) : createCommentVNode("", true),
|
|
277
278
|
createBaseVNode("div", _hoisted_10, [
|
|
278
279
|
_hoisted_11,
|
|
279
280
|
createBaseVNode("div", null, [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ay as h, o as openBlock, e as createElementBlock, f as renderSlot, l as normalizeStyle } from './index-0158f749.js';
|
|
2
2
|
|
|
3
3
|
const M = {
|
|
4
4
|
name: "splitpanes",
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { _ as _sfc_main$2 } from './StateFields.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { _ as __unplugin_components_0 } from './VPanelGrids-
|
|
3
|
-
import { _ as __unplugin_components_7 } from './
|
|
1
|
+
import { _ as _sfc_main$2 } from './StateFields.vue_vue_type_script_setup_true_lang-766dc2da.js';
|
|
2
|
+
import { _ as __unplugin_components_0 } from './VPanelGrids-5c36b027.js';
|
|
3
|
+
import { p as pushScopeId, a as popScopeId, n as nextTick, o as openBlock, c as createBlock, w as withScopeId, m as markRaw, s as shallowReactive, r as resolveComponent, b as resolveDirective, d as withDirectives, e as createElementBlock, f as renderSlot, g as createCommentVNode, h as withCtx, F as Fragment, i as renderList, j as resolveDynamicComponent, k as mergeProps, t as toHandlers, l as normalizeStyle, q as normalizeClass, u as createVNode, v as defineComponent, x as createBaseVNode, y as toDisplayString, z as unref, _ as __unplugin_components_7, A as timelineLayer, B as activeTimelineEvents, C as activeTimelineEventIndex, D as toggleTimelineEventIndex, E as timelineEventDetails, G as activeLayerId, H as toggleTimelineLayer } from './index-0158f749.js';
|
|
4
4
|
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-c0d8ada0.js';
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
9
|
-
import './VIconButton.vue_vue_type_script_setup_true_lang-66a83f1a.js';
|
|
5
|
+
import { g, M } from './splitpanes.es-398427c7.js';
|
|
6
|
+
import './VIcon.vue_vue_type_script_setup_true_lang-8e1bce76.js';
|
|
7
|
+
import './index-32549096.js';
|
|
8
|
+
import './VIconButton.vue_vue_type_script_setup_true_lang-1dfaade2.js';
|
|
10
9
|
|
|
11
10
|
var dayjs_min = {exports: {}};/* Injected with object hook! */
|
|
12
11
|
|
package/dist/client/index.html
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
|
7
7
|
<title>Vue DevTools</title>
|
|
8
|
-
<script type="module" crossorigin src="
|
|
9
|
-
<link rel="stylesheet" href="
|
|
8
|
+
<script type="module" crossorigin src="/__devtools__/assets/index-0158f749.js"></script>
|
|
9
|
+
<link rel="stylesheet" href="/__devtools__/assets/index-5b7de771.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="app"></div>
|
package/dist/index.cjs
CHANGED
|
@@ -7526,7 +7526,7 @@ async function getStaticAssets(config) {
|
|
|
7526
7526
|
const baseURL = config.base;
|
|
7527
7527
|
const files = await fg([
|
|
7528
7528
|
// image
|
|
7529
|
-
"**/*.(
|
|
7529
|
+
"**/*.(png|jpg|jpeg|gif|svg|webp|avif|ico|bmp|tiff)",
|
|
7530
7530
|
// video
|
|
7531
7531
|
"**/*.(mp4|webm|ogv|mov|avi|flv|wmv|mpg|mpeg|mkv|3gp|3g2|m2ts|vob|ogm|ogx|rm|rmvb|asf|amv|divx|m4v|svi|viv|f4v|f4p|f4a|f4b)",
|
|
7532
7532
|
// audio
|
|
@@ -7534,7 +7534,7 @@ async function getStaticAssets(config) {
|
|
|
7534
7534
|
// font
|
|
7535
7535
|
"**/*.(woff2?|eot|ttf|otf|ttc|pfa|pfb|pfm|afm)",
|
|
7536
7536
|
// text
|
|
7537
|
-
"**/*.(json
|
|
7537
|
+
"**/*.(json|json5|jsonc|txt|text|tsx|jsx|md|mdx|mdc|markdown)"
|
|
7538
7538
|
], {
|
|
7539
7539
|
cwd: dir,
|
|
7540
7540
|
onlyFiles: true,
|
|
@@ -13715,7 +13715,7 @@ function VitePluginVueDevTools(options = { appendTo: "" }) {
|
|
|
13715
13715
|
let config;
|
|
13716
13716
|
function configureServer(server) {
|
|
13717
13717
|
const base = server.config.base || "/";
|
|
13718
|
-
server.middlewares.use(`${base}
|
|
13718
|
+
server.middlewares.use(`${base}__devtools__`, sirv__default(DIR_CLIENT, {
|
|
13719
13719
|
single: true,
|
|
13720
13720
|
dev: true
|
|
13721
13721
|
}));
|
package/dist/index.mjs
CHANGED
|
@@ -7500,7 +7500,7 @@ async function getStaticAssets(config) {
|
|
|
7500
7500
|
const baseURL = config.base;
|
|
7501
7501
|
const files = await fg([
|
|
7502
7502
|
// image
|
|
7503
|
-
"**/*.(
|
|
7503
|
+
"**/*.(png|jpg|jpeg|gif|svg|webp|avif|ico|bmp|tiff)",
|
|
7504
7504
|
// video
|
|
7505
7505
|
"**/*.(mp4|webm|ogv|mov|avi|flv|wmv|mpg|mpeg|mkv|3gp|3g2|m2ts|vob|ogm|ogx|rm|rmvb|asf|amv|divx|m4v|svi|viv|f4v|f4p|f4a|f4b)",
|
|
7506
7506
|
// audio
|
|
@@ -7508,7 +7508,7 @@ async function getStaticAssets(config) {
|
|
|
7508
7508
|
// font
|
|
7509
7509
|
"**/*.(woff2?|eot|ttf|otf|ttc|pfa|pfb|pfm|afm)",
|
|
7510
7510
|
// text
|
|
7511
|
-
"**/*.(json
|
|
7511
|
+
"**/*.(json|json5|jsonc|txt|text|tsx|jsx|md|mdx|mdc|markdown)"
|
|
7512
7512
|
], {
|
|
7513
7513
|
cwd: dir,
|
|
7514
7514
|
onlyFiles: true,
|
|
@@ -13689,7 +13689,7 @@ function VitePluginVueDevTools(options = { appendTo: "" }) {
|
|
|
13689
13689
|
let config;
|
|
13690
13690
|
function configureServer(server) {
|
|
13691
13691
|
const base = server.config.base || "/";
|
|
13692
|
-
server.middlewares.use(`${base}
|
|
13692
|
+
server.middlewares.use(`${base}__devtools__`, sirv(DIR_CLIENT, {
|
|
13693
13693
|
single: true,
|
|
13694
13694
|
dev: true
|
|
13695
13695
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-vue-devtools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"packageManager": "pnpm@8.4.0",
|
|
5
5
|
"description": "A vite plugin for Vue Devtools",
|
|
6
6
|
"author": "webfansplz",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"build": "rimraf dist && run-s build:*",
|
|
44
44
|
"build:client": "vite build src/client",
|
|
45
45
|
"build:js": "unbuild",
|
|
46
|
-
"dev": "nr stub &&
|
|
46
|
+
"dev": "nr stub && pnpm dev:client",
|
|
47
47
|
"dev:client": "vite build src/client --watch",
|
|
48
48
|
"play": "nr -C playground dev",
|
|
49
49
|
"stub": "unbuild --stub",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@vueuse/core": "^10.1.2",
|
|
59
|
+
"@vueuse/integrations": "^10.2.0",
|
|
59
60
|
"@webfansplz/vuedoc-parser": "^0.0.3",
|
|
60
61
|
"algoliasearch": "^4.17.1",
|
|
61
62
|
"birpc": "^0.2.12",
|
package/src/node/Container.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed, onMounted, ref } from 'vue'
|
|
2
|
+
import { computed, onMounted, ref, watchEffect } from 'vue'
|
|
3
3
|
import vueDevToolsOptions from 'virtual:vue-devtools-options'
|
|
4
4
|
|
|
5
5
|
// Reuse @vuejs/devtools instance first
|
|
@@ -28,11 +28,15 @@ const PANEL_MIN = 15
|
|
|
28
28
|
const PANEL_MAX = 100
|
|
29
29
|
const PANEL_PADDING = 10
|
|
30
30
|
|
|
31
|
-
const clientUrl = `${vueDevToolsOptions.base || '/'}
|
|
31
|
+
const clientUrl = `${vueDevToolsOptions.base || '/'}__devtools__/`
|
|
32
32
|
const iframe = ref()
|
|
33
|
+
const isDragging = ref(false)
|
|
34
|
+
const modalRef = ref(null)
|
|
35
|
+
const isInPopup = ref(false)
|
|
33
36
|
|
|
34
37
|
const hookBuffer = []
|
|
35
38
|
let isAppCreated = false
|
|
39
|
+
let innerIframe = null
|
|
36
40
|
|
|
37
41
|
/** -----panel start-----**/
|
|
38
42
|
const panelVisible = ref(false)
|
|
@@ -150,8 +154,69 @@ function initPanelPosition() {
|
|
|
150
154
|
}
|
|
151
155
|
}
|
|
152
156
|
|
|
157
|
+
function getIframe() {
|
|
158
|
+
iframe.value = document.createElement('iframe')
|
|
159
|
+
iframe.value.id = 'vue-devtools-iframe'
|
|
160
|
+
iframe.value.src = clientUrl
|
|
161
|
+
iframe.value.setAttribute('data-v-inspector-ignore', 'true')
|
|
162
|
+
iframe.value.onload = async () => {
|
|
163
|
+
await waitForClientInjection()
|
|
164
|
+
setupClient()
|
|
165
|
+
}
|
|
166
|
+
return iframe.value
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
watchEffect(() => {
|
|
170
|
+
if (!modalRef.value || isInPopup.value)
|
|
171
|
+
return
|
|
172
|
+
|
|
173
|
+
if (panelVisible.value) {
|
|
174
|
+
const iframe = getIframe()
|
|
175
|
+
iframe.style.pointerEvents = isDragging.value ? 'none' : 'auto'
|
|
176
|
+
|
|
177
|
+
if (!innerIframe && Array.from(modalRef.value.children).every(el => el !== iframe))
|
|
178
|
+
modalRef.value.appendChild(iframe)
|
|
179
|
+
|
|
180
|
+
innerIframe = iframe
|
|
181
|
+
}
|
|
182
|
+
})
|
|
183
|
+
|
|
184
|
+
// Experimental: Picture-in-Picture mode
|
|
185
|
+
// https://developer.chrome.com/docs/web-platform/document-picture-in-picture/
|
|
186
|
+
const documentPictureInPicture = window.documentPictureInPicture
|
|
187
|
+
async function popup() {
|
|
188
|
+
const iframe = getIframe()
|
|
189
|
+
const pip = await documentPictureInPicture.requestWindow({
|
|
190
|
+
width: Math.round(window.innerWidth * 80 / 100),
|
|
191
|
+
height: Math.round(window.innerHeight * 60 / 100),
|
|
192
|
+
})
|
|
193
|
+
const style = pip.document.createElement('style')
|
|
194
|
+
style.innerHTML = `
|
|
195
|
+
body {
|
|
196
|
+
margin: 0;
|
|
197
|
+
padding: 0;
|
|
198
|
+
}
|
|
199
|
+
iframe {
|
|
200
|
+
width: 100vw;
|
|
201
|
+
height: 100vh;
|
|
202
|
+
border: none;
|
|
203
|
+
outline: none;
|
|
204
|
+
}
|
|
205
|
+
`
|
|
206
|
+
pip.__VUE_DEVTOOLS_GLOBAL_HOOK__ = props.hook
|
|
207
|
+
pip.__VUE_DEVTOOLS_IS_POPUP__ = true
|
|
208
|
+
pip.document.title = 'Vue DevTools'
|
|
209
|
+
pip.document.head.appendChild(style)
|
|
210
|
+
pip.document.body.appendChild(iframe)
|
|
211
|
+
pip.addEventListener('resize', () => {
|
|
212
|
+
})
|
|
213
|
+
pip.addEventListener('pagehide', () => {
|
|
214
|
+
pip.close()
|
|
215
|
+
isInPopup.value = false
|
|
216
|
+
})
|
|
217
|
+
}
|
|
218
|
+
|
|
153
219
|
/** -----resize start-----**/
|
|
154
|
-
const isDragging = ref(false)
|
|
155
220
|
const resizeBaseClassName = 'vue-devtools-resize-handle'
|
|
156
221
|
const resizeVerticalClassName = [resizeBaseClassName, `${resizeBaseClassName}-vertical`]
|
|
157
222
|
const resizeHorizontalClassName = [resizeBaseClassName, `${resizeBaseClassName}-horizontal`]
|
|
@@ -266,6 +331,11 @@ function setupClient() {
|
|
|
266
331
|
toggleViewMode,
|
|
267
332
|
toggle: togglePanel,
|
|
268
333
|
togglePosition(position) {
|
|
334
|
+
if (position === 'popup') {
|
|
335
|
+
isInPopup.value = true
|
|
336
|
+
popup()
|
|
337
|
+
return
|
|
338
|
+
}
|
|
269
339
|
panelState.value.position = position
|
|
270
340
|
},
|
|
271
341
|
},
|
|
@@ -380,11 +450,6 @@ function collectHookBuffer() {
|
|
|
380
450
|
collectHookBuffer()
|
|
381
451
|
initPanelPosition()
|
|
382
452
|
|
|
383
|
-
async function onLoad() {
|
|
384
|
-
await waitForClientInjection()
|
|
385
|
-
setupClient()
|
|
386
|
-
}
|
|
387
|
-
|
|
388
453
|
onMounted(() => {
|
|
389
454
|
window.addEventListener('keydown', (e) => {
|
|
390
455
|
if (e.code === 'KeyD' && e.altKey && e.shiftKey)
|
|
@@ -393,9 +458,10 @@ onMounted(() => {
|
|
|
393
458
|
})
|
|
394
459
|
|
|
395
460
|
const toggleButtonRef = ref(null)
|
|
396
|
-
const modalRef = ref(null)
|
|
397
461
|
|
|
398
462
|
window.addEventListener('click', (event) => {
|
|
463
|
+
if (isInPopup.value)
|
|
464
|
+
return
|
|
399
465
|
const modalEl = modalRef.value
|
|
400
466
|
const toggleButtonEl = toggleButtonRef.value
|
|
401
467
|
if (!modalEl || !toggleButtonEl || event.composedPath().includes(modalEl) || event.composedPath().includes(toggleButtonEl))
|
|
@@ -410,13 +476,7 @@ window.addEventListener('click', (event) => {
|
|
|
410
476
|
</script>
|
|
411
477
|
|
|
412
478
|
<template>
|
|
413
|
-
<div ref="modalRef" class="vue-devtools-panel" :style="panelPosition">
|
|
414
|
-
<!-- client -->
|
|
415
|
-
<iframe
|
|
416
|
-
ref="iframe" :src="clientUrl" :style="{
|
|
417
|
-
'pointer-events': isDragging ? 'none' : 'auto',
|
|
418
|
-
}" @load="onLoad"
|
|
419
|
-
/>
|
|
479
|
+
<div v-show="!isInPopup" ref="modalRef" class="vue-devtools-panel" :style="panelPosition">
|
|
420
480
|
<!-- resize -->
|
|
421
481
|
<template v-if="panelState.viewMode === 'default'">
|
|
422
482
|
<template v-if="panelState.position !== 'top'">
|
|
@@ -458,7 +518,7 @@ window.addEventListener('click', (event) => {
|
|
|
458
518
|
</div>
|
|
459
519
|
<!-- toggle button -->
|
|
460
520
|
<button
|
|
461
|
-
ref="toggleButtonRef" class="vue-devtools-toggle" aria-label="Toggle devtools panel"
|
|
521
|
+
v-show="!isInPopup" ref="toggleButtonRef" class="vue-devtools-toggle" aria-label="Toggle devtools panel"
|
|
462
522
|
:style="toggleButtonPosition" @click.prevent="togglePanel"
|
|
463
523
|
>
|
|
464
524
|
<svg viewBox="0 0 256 198" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -477,7 +537,7 @@ window.addEventListener('click', (event) => {
|
|
|
477
537
|
height: calc(60vh - 20px);
|
|
478
538
|
}
|
|
479
539
|
|
|
480
|
-
.vue-devtools-panel iframe {
|
|
540
|
+
.vue-devtools-panel :deep(iframe) {
|
|
481
541
|
width: 100%;
|
|
482
542
|
height: 100%;
|
|
483
543
|
outline: 0;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { aD as _export_sfc, o as openBlock, e as createElementBlock, f as renderSlot } from './index-f743edb2.js';
|
|
2
|
-
|
|
3
|
-
/* unplugin-vue-components disabled */const _sfc_main = {};
|
|
4
|
-
|
|
5
|
-
const _hoisted_1 = { class: "n-card n-card-base" };
|
|
6
|
-
|
|
7
|
-
function _sfc_render(_ctx, _cache) {
|
|
8
|
-
return (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
9
|
-
renderSlot(_ctx.$slots, "default")
|
|
10
|
-
]))
|
|
11
|
-
}
|
|
12
|
-
const __unplugin_components_7 = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render]]);
|
|
13
|
-
/* Injected with object hook! */
|
|
14
|
-
|
|
15
|
-
export { __unplugin_components_7 as _ };
|