vite-plugin-vue-devtools 0.4.12 → 0.5.0
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-97a0e754.js → IframeView.vue_vue_type_script_setup_true_lang-c6f176d1.js} +1 -1
- package/dist/client/assets/{StateFields.vue_vue_type_script_setup_true_lang-dd6974e1.js → StateFields.vue_vue_type_script_setup_true_lang-617e4d70.js} +20 -5
- package/dist/client/assets/{VIcon.vue_vue_type_script_setup_true_lang-4dcb121c.js → VIcon.vue_vue_type_script_setup_true_lang-6cd486d4.js} +1 -1
- package/dist/client/assets/{VIconButton.vue_vue_type_script_setup_true_lang-4054707d.js → VIconButton.vue_vue_type_script_setup_true_lang-63abce3f.js} +2 -2
- package/dist/client/assets/{VIconTitle.vue_vue_type_script_setup_true_lang-4531a0e4.js → VIconTitle.vue_vue_type_script_setup_true_lang-1ad26587.js} +1 -1
- package/dist/client/assets/{VPanelGrids-ea9ac4bd.js → VPanelGrids-4b915e62.js} +1 -1
- package/dist/client/assets/{VSectionBlock-0d870ae2.js → VSectionBlock-8dcfb48d.js} +3 -3
- package/dist/client/assets/{VSwitch.vue_vue_type_script_setup_true_lang-dc4a336f.js → VSwitch.vue_vue_type_script_setup_true_lang-ed954339.js} +2 -2
- package/dist/client/assets/{VTextInput.vue_vue_type_script_setup_true_lang-cd591fdb.js → VTextInput.vue_vue_type_script_setup_true_lang-5edeb245.js} +2 -2
- package/dist/client/assets/{__eyedropper-41422dc8.js → __eyedropper-67c21231.js} +23 -9
- package/dist/client/assets/{assets-fc847d7b.js → assets-bf6dd9e4.js} +9 -9
- package/dist/client/assets/{component-docs-b0456b1b.js → component-docs-b2752be1.js} +5 -5
- package/dist/client/assets/{components-41827ea5.js → components-c9aae4bc.js} +115 -11
- package/dist/client/assets/{documentations-e948ad25.js → documentations-e0b483de.js} +3 -3
- package/dist/client/assets/{graph-ed9ec08f.js → graph-f081d3a5.js} +4 -4
- package/dist/client/assets/{index-d268ce4d.js → index-197edebf.js} +2832 -2625
- package/dist/client/assets/{index-fb7e673c.js → index-f977bcde.js} +1 -1
- package/dist/client/assets/index-fb18df65.css +474 -0
- package/dist/client/assets/{inspect-4e046378.js → inspect-8d04bb08.js} +3 -3
- package/dist/client/assets/{npm-81f351e2.js → npm-73c6479f.js} +9 -9
- package/dist/client/assets/{overview-9d7f0c3c.js → overview-edc8c0a8.js} +5 -5
- package/dist/client/assets/{pages-7d46ae82.js → pages-562d1ae5.js} +8 -8
- package/dist/client/assets/{pinia-c576b594.js → pinia-89f6b4c0.js} +12 -9
- package/dist/client/assets/{routes-56017e0a.js → routes-ddddc2d7.js} +14 -11
- package/dist/client/assets/{rpc-6c4cc8d5.js → rpc-b9c94a3a.js} +1 -1
- package/dist/client/assets/{settings-4e36485a.js → settings-7722ba4d.js} +24 -41
- package/dist/client/assets/{splitpanes.es-db7e975b.js → splitpanes.es-2f5182b4.js} +1 -1
- package/dist/client/assets/{timeline-0fd22aff.js → timeline-bc5ea36f.js} +8 -8
- package/dist/client/index.html +2 -2
- package/package.json +19 -18
- package/src/node/views/ComponentInspector.vue +67 -0
- package/src/node/views/Main.vue +10 -5
- package/src/node/views/composables.ts +40 -0
- package/dist/client/assets/index-8135098e.css +0 -474
|
@@ -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-c6f176d1.js';
|
|
2
|
+
import { i as inspectClientUrl } from './rpc-b9c94a3a.js';
|
|
3
|
+
import { v as defineComponent, o as openBlock, e as createElementBlock, u as createVNode, z as unref } from './index-197edebf.js';
|
|
4
4
|
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "inspect",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { v as defineComponent, a$ as ref, aP as onMounted,
|
|
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, a$ as ref, aP as onMounted, cb as useEventListener, cc as hookApi, o as openBlock, e as createElementBlock, cd as useScrollLock, by as watch, ce as useInfiniteScroll, r as resolveComponent, b as resolveDirective, x as createBaseVNode, u as createVNode, z as unref, aC as isRef, h as withCtx, F as Fragment, i as renderList, c as createBlock, g as createCommentVNode, y as toDisplayString, d as withDirectives, a9 as createTextVNode, q as normalizeClass, bL as _sfc_main$3 } from './index-197edebf.js';
|
|
2
|
+
import { _ as __unplugin_components_3 } from './VSectionBlock-8dcfb48d.js';
|
|
3
|
+
import { _ as _sfc_main$2 } from './VTextInput.vue_vue_type_script_setup_true_lang-5edeb245.js';
|
|
4
4
|
import { g as getDefaultExportFromCjs, c as commonjsGlobal } from './_commonjsHelpers-65004790.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-b9c94a3a.js';
|
|
6
|
+
import './VIconTitle.vue_vue_type_script_setup_true_lang-1ad26587.js';
|
|
7
|
+
import './VIcon.vue_vue_type_script_setup_true_lang-6cd486d4.js';
|
|
8
8
|
|
|
9
9
|
var xterm$1 = {exports: {}};/* Injected with object hook! */
|
|
10
10
|
|
|
@@ -162,9 +162,9 @@ const _hoisted_17 = {
|
|
|
162
162
|
"ws-nowrap": "",
|
|
163
163
|
"pr-1": "",
|
|
164
164
|
"text-left": "",
|
|
165
|
-
"font-mono": "",
|
|
166
165
|
"text-sm": "",
|
|
167
166
|
"lh-7": "",
|
|
167
|
+
"font-mono": "",
|
|
168
168
|
underline: "",
|
|
169
169
|
op70: ""
|
|
170
170
|
};
|
|
@@ -179,8 +179,8 @@ const _hoisted_20 = {
|
|
|
179
179
|
"ws-nowrap": "",
|
|
180
180
|
"pr-1": "",
|
|
181
181
|
"text-left": "",
|
|
182
|
-
"font-mono": "",
|
|
183
182
|
"text-sm": "",
|
|
183
|
+
"font-mono": "",
|
|
184
184
|
underline: "",
|
|
185
185
|
op70: "",
|
|
186
186
|
hover: "text-primary"
|
|
@@ -191,8 +191,8 @@ const _hoisted_22 = {
|
|
|
191
191
|
"ws-nowrap": "",
|
|
192
192
|
"pr-1": "",
|
|
193
193
|
"text-left": "",
|
|
194
|
-
"font-mono": "",
|
|
195
194
|
"text-sm": "",
|
|
195
|
+
"font-mono": "",
|
|
196
196
|
op70: ""
|
|
197
197
|
};
|
|
198
198
|
const _hoisted_23 = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as __unplugin_components_0$1 } from './VPanelGrids-
|
|
2
|
-
import { a$ as ref, a1 as computed,
|
|
3
|
-
import { r as rpc } from './rpc-
|
|
4
|
-
import { i as isMacOS } from './index-
|
|
1
|
+
import { _ as __unplugin_components_0$1 } from './VPanelGrids-4b915e62.js';
|
|
2
|
+
import { a$ as ref, a1 as computed, c8 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, c9 as vueVersion, a9 as createTextVNode, e as createElementBlock, F as Fragment, ca as __unplugin_components_0, c3 as __unplugin_components_1, bL as _sfc_main$1 } from './index-197edebf.js';
|
|
3
|
+
import { r as rpc } from './rpc-b9c94a3a.js';
|
|
4
|
+
import { i as isMacOS } from './index-f977bcde.js';
|
|
5
5
|
|
|
6
|
-
const version = "0.
|
|
6
|
+
const version = "0.5.0";
|
|
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, a$ as ref, a1 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, bG as withModifiers, F as Fragment, i as renderList, g as createCommentVNode, u as createVNode, a9 as createTextVNode, q as normalizeClass, bL as _sfc_main$4,
|
|
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-8dcfb48d.js';
|
|
2
|
+
import { v as defineComponent, a$ as ref, a1 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, bG as withModifiers, F as Fragment, i as renderList, g as createCommentVNode, u as createVNode, a9 as createTextVNode, q as normalizeClass, bL as _sfc_main$4, c3 as __unplugin_components_1, aP as onMounted, c7 as currentRoute, b_ as router, aC as isRef, bE as withKeys, c8 as routes } from './index-197edebf.js';
|
|
3
|
+
import { _ as _sfc_main$3 } from './VTextInput.vue_vue_type_script_setup_true_lang-5edeb245.js';
|
|
4
|
+
import './VIconTitle.vue_vue_type_script_setup_true_lang-1ad26587.js';
|
|
5
|
+
import './VIcon.vue_vue_type_script_setup_true_lang-6cd486d4.js';
|
|
6
6
|
|
|
7
7
|
const _hoisted_1$2 = {
|
|
8
8
|
block: "",
|
|
@@ -19,8 +19,8 @@ const _hoisted_5$2 = {
|
|
|
19
19
|
flex: "~",
|
|
20
20
|
"items-center": "",
|
|
21
21
|
p2: "",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
22
|
+
"text-sm": "",
|
|
23
|
+
"font-mono": ""
|
|
24
24
|
};
|
|
25
25
|
const _hoisted_6$2 = { key: 1 };
|
|
26
26
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
@@ -138,8 +138,8 @@ const _hoisted_7$1 = {
|
|
|
138
138
|
"ws-nowrap": "",
|
|
139
139
|
"pr-1": "",
|
|
140
140
|
"text-left": "",
|
|
141
|
-
"font-mono": "",
|
|
142
141
|
"text-sm": "",
|
|
142
|
+
"font-mono": "",
|
|
143
143
|
op50: ""
|
|
144
144
|
};
|
|
145
145
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
@@ -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, a$ as ref, a1 as computed,
|
|
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-617e4d70.js';
|
|
2
|
+
import { g, M } from './splitpanes.es-2f5182b4.js';
|
|
3
|
+
import { v as defineComponent, a$ as ref, a1 as computed, c4 as piniaStoresCategory, bd as toRaw, c5 as piniaState, c6 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-197edebf.js';
|
|
4
|
+
import { p as pick } from './index-f977bcde.js';
|
|
5
|
+
import './VIcon.vue_vue_type_script_setup_true_lang-6cd486d4.js';
|
|
6
|
+
import './VIconButton.vue_vue_type_script_setup_true_lang-63abce3f.js';
|
|
7
7
|
|
|
8
8
|
const _hoisted_1 = {
|
|
9
9
|
"h-screen": "",
|
|
@@ -56,7 +56,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
56
56
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
57
57
|
createVNode(unref(M), null, {
|
|
58
58
|
default: withCtx(() => [
|
|
59
|
-
createVNode(unref(g), {
|
|
59
|
+
createVNode(unref(g), {
|
|
60
|
+
border: "r base",
|
|
61
|
+
size: 40
|
|
62
|
+
}, {
|
|
60
63
|
default: withCtx(() => [
|
|
61
64
|
createBaseVNode("div", _hoisted_2, [
|
|
62
65
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(piniaStoresCategory), (item, index) => {
|
|
@@ -68,7 +71,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
68
71
|
}, [
|
|
69
72
|
createBaseVNode("h3", _hoisted_4, [
|
|
70
73
|
createBaseVNode("span", {
|
|
71
|
-
class: normalizeClass([unref(activeIndex) === index
|
|
74
|
+
class: normalizeClass([unref(activeIndex) === index && "text-white"])
|
|
72
75
|
}, toDisplayString(item), 3)
|
|
73
76
|
])
|
|
74
77
|
], 10, _hoisted_3);
|
|
@@ -77,7 +80,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
77
80
|
]),
|
|
78
81
|
_: 1
|
|
79
82
|
}),
|
|
80
|
-
createVNode(unref(g),
|
|
83
|
+
createVNode(unref(g), { size: 60 }, {
|
|
81
84
|
default: withCtx(() => [
|
|
82
85
|
createBaseVNode("div", _hoisted_5, [
|
|
83
86
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(data), (item, index) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { _ as __unplugin_components_0 } from './VPanelGrids-
|
|
2
|
-
import { v as defineComponent, z as unref,
|
|
3
|
-
import { _ as _sfc_main$1 } from './StateFields.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { g, M } from './splitpanes.es-
|
|
5
|
-
import './VIcon.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import './index-
|
|
7
|
-
import './VIconButton.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as __unplugin_components_0 } from './VPanelGrids-4b915e62.js';
|
|
2
|
+
import { v as defineComponent, z as unref, b_ as router, o as openBlock, e as createElementBlock, u as createVNode, h as withCtx, x as createBaseVNode, F as Fragment, i as renderList, b$ as routeRecordMatcherState, c0 as activeRouteRecordMatcherState, c as createBlock, bZ as _sfc_main$2, _ as __unplugin_components_7, q as normalizeClass, c1 as activeRouteRecordIndex, c2 as toggleRouteRecordMatcher, a9 as createTextVNode, y as toDisplayString, l as normalizeStyle, g as createCommentVNode, c3 as __unplugin_components_1 } from './index-197edebf.js';
|
|
3
|
+
import { _ as _sfc_main$1 } from './StateFields.vue_vue_type_script_setup_true_lang-617e4d70.js';
|
|
4
|
+
import { g, M } from './splitpanes.es-2f5182b4.js';
|
|
5
|
+
import './VIcon.vue_vue_type_script_setup_true_lang-6cd486d4.js';
|
|
6
|
+
import './index-f977bcde.js';
|
|
7
|
+
import './VIconButton.vue_vue_type_script_setup_true_lang-63abce3f.js';
|
|
8
8
|
|
|
9
9
|
const _hoisted_1 = {
|
|
10
10
|
key: 0,
|
|
@@ -44,7 +44,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
44
44
|
return unref(router) ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
45
45
|
createVNode(unref(M), null, {
|
|
46
46
|
default: withCtx(() => [
|
|
47
|
-
createVNode(unref(g), {
|
|
47
|
+
createVNode(unref(g), {
|
|
48
|
+
border: "r base",
|
|
49
|
+
size: "40"
|
|
50
|
+
}, {
|
|
48
51
|
default: withCtx(() => [
|
|
49
52
|
createBaseVNode("div", _hoisted_2, [
|
|
50
53
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(routeRecordMatcherState), (item, index) => {
|
|
@@ -56,14 +59,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
56
59
|
}, [
|
|
57
60
|
createBaseVNode("h3", _hoisted_4, [
|
|
58
61
|
createBaseVNode("span", {
|
|
59
|
-
class: normalizeClass([unref(activeRouteRecordIndex) === index
|
|
62
|
+
class: normalizeClass([unref(activeRouteRecordIndex) === index && "text-white"])
|
|
60
63
|
}, [
|
|
61
64
|
createTextVNode(toDisplayString(item.path) + " ", 1),
|
|
62
65
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.tags, (tag, childIndex) => {
|
|
63
66
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
64
67
|
tag.label ? (openBlock(), createBlock(_component_VBadge, {
|
|
65
68
|
key: childIndex,
|
|
66
|
-
|
|
69
|
+
color: "white/90 dark:black/90",
|
|
67
70
|
style: normalizeStyle({
|
|
68
71
|
backgroundColor: `#${tag.bgColor.toString(16)}`
|
|
69
72
|
})
|
|
@@ -83,7 +86,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
83
86
|
]),
|
|
84
87
|
_: 1
|
|
85
88
|
}),
|
|
86
|
-
createVNode(unref(g),
|
|
89
|
+
createVNode(unref(g), { size: "60" }, {
|
|
87
90
|
default: withCtx(() => [
|
|
88
91
|
createBaseVNode("div", _hoisted_5, [
|
|
89
92
|
createVNode(_component_StateFields, { data: unref(activeRouteRecordMatcherState) }, null, 8, ["data"])
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { _ as _sfc_main$a, a as _sfc_main$
|
|
2
|
-
import { I as BaseTransition, J as BaseTransitionPropsValidators, K as Comment, L as EffectScope, F as Fragment, M as KeepAlive, R as ReactiveEffect, S as Static, N as Suspense, T as Teleport, O as Text, P as Transition, Q as TransitionGroup, V as VueElement, U as assertNumber, W as callWithAsyncErrorHandling, X as callWithErrorHandling, Y as camelize, Z as capitalize, $ as cloneVNode, a0 as compatUtils, a1 as computed, a2 as createApp, c as createBlock, g as createCommentVNode, e as createElementBlock, x as createBaseVNode, a3 as createHydrationRenderer, a4 as createPropsRestProxy, a5 as createRenderer, a6 as createSSRApp, a7 as createSlots, a8 as createStaticVNode, a9 as createTextVNode, u as createVNode, aa as customRef, ab as defineAsyncComponent, v as defineComponent, ac as defineCustomElement, ad as defineEmits, ae as defineExpose, af as defineModel, ag as defineOptions, ah as defineProps, ai as defineSSRCustomElement, aj as defineSlots, ak as devtools, al as effect, am as effectScope, an as getCurrentInstance, ao as getCurrentScope, ap as getTransitionRawChildren, aq as guardReactiveProps, ar as h, as as handleError, at as hasInjectionContext, au as hydrate, av as initCustomFormatter, aw as initDirectivesForSSR, ax as inject, ay as isMemoSame, az as isProxy, aA as isReactive, aB as isReadonly, aC as isRef, aD as isRuntimeOnly, aE as isShallow, aF as isVNode, m as markRaw, aG as mergeDefaults, aH as mergeModels, k as mergeProps, n as nextTick, q as normalizeClass, aI as normalizeProps, l as normalizeStyle, aJ as onActivated, aK as onBeforeMount, aL as onBeforeUnmount, aM as onBeforeUpdate, aN as onDeactivated, aO as onErrorCaptured, aP as onMounted, aQ as onRenderTracked, aR as onRenderTriggered, aS as onScopeDispose, aT as onServerPrefetch, aU as onUnmounted, aV as onUpdated, o as openBlock, a as popScopeId, aW as provide, aX as proxyRefs, p as pushScopeId, aY as queuePostFlushCb, aZ as reactive, a_ as readonly, a$ as ref, b0 as registerRuntimeCompiler, b1 as render, i as renderList, f as renderSlot, r as resolveComponent, b as resolveDirective, j as resolveDynamicComponent, b2 as resolveFilter, b3 as resolveTransitionHooks, b4 as setBlockTracking, b5 as setDevtoolsHook, b6 as setTransitionHooks, s as shallowReactive, b7 as shallowReadonly, b8 as shallowRef, b9 as ssrContextKey, ba as ssrUtils, bb as stop, y as toDisplayString, bc as toHandlerKey, t as toHandlers, bd as toRaw, be as toRef, bf as toRefs, bg as toValue, bh as transformVNodeArgs, bi as triggerRef, z as unref, bj as useAttrs, bk as useCssModule, bl as useCssVars, bm as useModel, bn as useSSRContext, bo as useSlots, bp as useTransitionState, bq as vModelCheckbox, br as vModelDynamic, bs as vModelRadio, bt as vModelSelect, bu as vModelText, bv as vShow, bw as version$1, bx as warn, by as watch, bz as watchEffect, bA as watchPostEffect, bB as watchSyncEffect, bC as withAsyncContext, h as withCtx, bD as withDefaults, d as withDirectives, bE as withKeys, bF as withMemo, bG as withModifiers, w as withScopeId, bH as getSortedTabs, bI as updateTabsPosition, bJ as _export_sfc, bK as useVModel, bL as _sfc_main$5, bM as _sfc_main$6, bN as useToggle, bO as shouldHideTabGroup, bP as DEFAULT_TAB_GROUP, bQ as useGroupedTabs, bR as ungroupAllTabs, bS as resetAllTabs, bT as removeTabGroup, bU as checkGroupExist, bV as createGroup, bW as
|
|
3
|
-
import { _ as _sfc_main$4 } from './VIcon.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as _sfc_main$a, a as _sfc_main$c } from './VSwitch.vue_vue_type_script_setup_true_lang-ed954339.js';
|
|
2
|
+
import { I as BaseTransition, J as BaseTransitionPropsValidators, K as Comment, L as EffectScope, F as Fragment, M as KeepAlive, R as ReactiveEffect, S as Static, N as Suspense, T as Teleport, O as Text, P as Transition, Q as TransitionGroup, V as VueElement, U as assertNumber, W as callWithAsyncErrorHandling, X as callWithErrorHandling, Y as camelize, Z as capitalize, $ as cloneVNode, a0 as compatUtils, a1 as computed, a2 as createApp, c as createBlock, g as createCommentVNode, e as createElementBlock, x as createBaseVNode, a3 as createHydrationRenderer, a4 as createPropsRestProxy, a5 as createRenderer, a6 as createSSRApp, a7 as createSlots, a8 as createStaticVNode, a9 as createTextVNode, u as createVNode, aa as customRef, ab as defineAsyncComponent, v as defineComponent, ac as defineCustomElement, ad as defineEmits, ae as defineExpose, af as defineModel, ag as defineOptions, ah as defineProps, ai as defineSSRCustomElement, aj as defineSlots, ak as devtools, al as effect, am as effectScope, an as getCurrentInstance, ao as getCurrentScope, ap as getTransitionRawChildren, aq as guardReactiveProps, ar as h, as as handleError, at as hasInjectionContext, au as hydrate, av as initCustomFormatter, aw as initDirectivesForSSR, ax as inject, ay as isMemoSame, az as isProxy, aA as isReactive, aB as isReadonly, aC as isRef, aD as isRuntimeOnly, aE as isShallow, aF as isVNode, m as markRaw, aG as mergeDefaults, aH as mergeModels, k as mergeProps, n as nextTick, q as normalizeClass, aI as normalizeProps, l as normalizeStyle, aJ as onActivated, aK as onBeforeMount, aL as onBeforeUnmount, aM as onBeforeUpdate, aN as onDeactivated, aO as onErrorCaptured, aP as onMounted, aQ as onRenderTracked, aR as onRenderTriggered, aS as onScopeDispose, aT as onServerPrefetch, aU as onUnmounted, aV as onUpdated, o as openBlock, a as popScopeId, aW as provide, aX as proxyRefs, p as pushScopeId, aY as queuePostFlushCb, aZ as reactive, a_ as readonly, a$ as ref, b0 as registerRuntimeCompiler, b1 as render, i as renderList, f as renderSlot, r as resolveComponent, b as resolveDirective, j as resolveDynamicComponent, b2 as resolveFilter, b3 as resolveTransitionHooks, b4 as setBlockTracking, b5 as setDevtoolsHook, b6 as setTransitionHooks, s as shallowReactive, b7 as shallowReadonly, b8 as shallowRef, b9 as ssrContextKey, ba as ssrUtils, bb as stop, y as toDisplayString, bc as toHandlerKey, t as toHandlers, bd as toRaw, be as toRef, bf as toRefs, bg as toValue, bh as transformVNodeArgs, bi as triggerRef, z as unref, bj as useAttrs, bk as useCssModule, bl as useCssVars, bm as useModel, bn as useSSRContext, bo as useSlots, bp as useTransitionState, bq as vModelCheckbox, br as vModelDynamic, bs as vModelRadio, bt as vModelSelect, bu as vModelText, bv as vShow, bw as version$1, bx as warn, by as watch, bz as watchEffect, bA as watchPostEffect, bB as watchSyncEffect, bC as withAsyncContext, h as withCtx, bD as withDefaults, d as withDirectives, bE as withKeys, bF as withMemo, bG as withModifiers, w as withScopeId, bH as getSortedTabs, bI as updateTabsPosition, bJ as _export_sfc, bK as useVModel, bL as _sfc_main$5, bM as _sfc_main$6, bN as useToggle, bO as shouldHideTabGroup, bP as DEFAULT_TAB_GROUP, bQ as useGroupedTabs, bR as ungroupAllTabs, bS as resetAllTabs, bT as removeTabGroup, bU as checkGroupExist, bV as createGroup, bW as useDevToolsSettings, bX as useFrameState, bY as _sfc_main$b, bZ as _sfc_main$d } from './index-197edebf.js';
|
|
3
|
+
import { _ as _sfc_main$4 } from './VIcon.vue_vue_type_script_setup_true_lang-6cd486d4.js';
|
|
4
4
|
import { a as getAugmentedNamespace, c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-65004790.js';
|
|
5
|
-
import { _ as _sfc_main$8 } from './VIconButton.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as _sfc_main$7 } from './VTextInput.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { _ as _sfc_main$9 } from './VIconTitle.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as _sfc_main$8 } from './VIconButton.vue_vue_type_script_setup_true_lang-63abce3f.js';
|
|
6
|
+
import { _ as _sfc_main$7 } from './VTextInput.vue_vue_type_script_setup_true_lang-5edeb245.js';
|
|
7
|
+
import { _ as _sfc_main$9 } from './VIconTitle.vue_vue_type_script_setup_true_lang-1ad26587.js';
|
|
8
8
|
|
|
9
9
|
const compile = () => {
|
|
10
10
|
};
|
|
@@ -9374,7 +9374,6 @@ const _hoisted_10 = {
|
|
|
9374
9374
|
pr2: ""
|
|
9375
9375
|
};
|
|
9376
9376
|
const _hoisted_11 = {
|
|
9377
|
-
key: 0,
|
|
9378
9377
|
py3: "",
|
|
9379
9378
|
flex: "~ col gap-1",
|
|
9380
9379
|
border: "b base"
|
|
@@ -9382,35 +9381,26 @@ const _hoisted_11 = {
|
|
|
9382
9381
|
const _hoisted_12 = /* @__PURE__ */ createBaseVNode("h3", {
|
|
9383
9382
|
mb1: "",
|
|
9384
9383
|
"text-lg": ""
|
|
9385
|
-
}, " Position ", -1);
|
|
9386
|
-
const _hoisted_13 = {
|
|
9387
|
-
py3: "",
|
|
9388
|
-
flex: "~ col gap-1",
|
|
9389
|
-
border: "b base"
|
|
9390
|
-
};
|
|
9391
|
-
const _hoisted_14 = /* @__PURE__ */ createBaseVNode("h3", {
|
|
9392
|
-
mb1: "",
|
|
9393
|
-
"text-lg": ""
|
|
9394
9384
|
}, " Appearance ", -1);
|
|
9395
|
-
const
|
|
9385
|
+
const _hoisted_13 = /* @__PURE__ */ createBaseVNode("div", {
|
|
9396
9386
|
"carbon-sun": "",
|
|
9397
|
-
"
|
|
9398
|
-
"
|
|
9387
|
+
"translate-y--1px": "",
|
|
9388
|
+
"dark:carbon-moon": ""
|
|
9399
9389
|
}, null, -1);
|
|
9400
|
-
const
|
|
9390
|
+
const _hoisted_14 = {
|
|
9401
9391
|
py3: "",
|
|
9402
9392
|
flex: "~ col gap-1"
|
|
9403
9393
|
};
|
|
9404
|
-
const
|
|
9394
|
+
const _hoisted_15 = /* @__PURE__ */ createBaseVNode("h3", {
|
|
9405
9395
|
mb1: "",
|
|
9406
9396
|
"text-lg": ""
|
|
9407
9397
|
}, " UI Scale ", -1);
|
|
9408
|
-
const
|
|
9409
|
-
const
|
|
9398
|
+
const _hoisted_16 = ["value"];
|
|
9399
|
+
const _hoisted_17 = {
|
|
9410
9400
|
py3: "",
|
|
9411
9401
|
flex: "~ justify-between gap-1"
|
|
9412
9402
|
};
|
|
9413
|
-
const
|
|
9403
|
+
const _hoisted_18 = /* @__PURE__ */ createBaseVNode("h3", {
|
|
9414
9404
|
mb1: "",
|
|
9415
9405
|
"text-lg": ""
|
|
9416
9406
|
}, " Close DevTools when clicking outside ", -1);
|
|
@@ -9451,12 +9441,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9451
9441
|
const _component_VIconTitle = _sfc_main$9;
|
|
9452
9442
|
const _component_VTooltip = resolveComponent("VTooltip");
|
|
9453
9443
|
const _component_VSwitch = _sfc_main$a;
|
|
9454
|
-
const _component_TabIcon = _sfc_main$
|
|
9444
|
+
const _component_TabIcon = _sfc_main$d;
|
|
9455
9445
|
const _component_TabGroup = _sfc_main$1;
|
|
9456
|
-
const _component_PanelPosition = _sfc_main$b;
|
|
9457
9446
|
const _component_VButton = _sfc_main$5;
|
|
9458
|
-
const _component_VDarkToggle = _sfc_main$
|
|
9459
|
-
const _component_VSelect = _sfc_main$
|
|
9447
|
+
const _component_VDarkToggle = _sfc_main$b;
|
|
9448
|
+
const _component_VSelect = _sfc_main$c;
|
|
9460
9449
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
9461
9450
|
createVNode(_component_VIconTitle, {
|
|
9462
9451
|
class: "mb-5 text-xl op75",
|
|
@@ -9548,14 +9537,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9548
9537
|
])) : (openBlock(), createBlock(_component_TabGroup, { key: 1 }))
|
|
9549
9538
|
]),
|
|
9550
9539
|
createBaseVNode("div", null, [
|
|
9551
|
-
|
|
9540
|
+
createBaseVNode("div", _hoisted_11, [
|
|
9552
9541
|
_hoisted_12,
|
|
9553
|
-
createBaseVNode("div", null, [
|
|
9554
|
-
createVNode(_component_PanelPosition)
|
|
9555
|
-
])
|
|
9556
|
-
])) : createCommentVNode("", true),
|
|
9557
|
-
createBaseVNode("div", _hoisted_13, [
|
|
9558
|
-
_hoisted_14,
|
|
9559
9542
|
createBaseVNode("div", null, [
|
|
9560
9543
|
createVNode(_component_VDarkToggle, null, {
|
|
9561
9544
|
default: withCtx(({ toggle, isDark }) => [
|
|
@@ -9564,7 +9547,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9564
9547
|
onClick: toggle
|
|
9565
9548
|
}, {
|
|
9566
9549
|
default: withCtx(() => [
|
|
9567
|
-
|
|
9550
|
+
_hoisted_13,
|
|
9568
9551
|
createTextVNode(" " + toDisplayString(isDark.value ? "Dark" : "Light"), 1)
|
|
9569
9552
|
]),
|
|
9570
9553
|
_: 2
|
|
@@ -9574,8 +9557,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9574
9557
|
})
|
|
9575
9558
|
])
|
|
9576
9559
|
]),
|
|
9577
|
-
createBaseVNode("div",
|
|
9578
|
-
|
|
9560
|
+
createBaseVNode("div", _hoisted_14, [
|
|
9561
|
+
_hoisted_15,
|
|
9579
9562
|
createVNode(_component_VSelect, {
|
|
9580
9563
|
modelValue: unref(scale),
|
|
9581
9564
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(scale) ? scale.value = $event : null),
|
|
@@ -9586,14 +9569,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9586
9569
|
return createBaseVNode("option", {
|
|
9587
9570
|
key: i[0],
|
|
9588
9571
|
value: i[1]
|
|
9589
|
-
}, toDisplayString(i[0]), 9,
|
|
9572
|
+
}, toDisplayString(i[0]), 9, _hoisted_16);
|
|
9590
9573
|
}), 64))
|
|
9591
9574
|
]),
|
|
9592
9575
|
_: 1
|
|
9593
9576
|
}, 8, ["modelValue"])
|
|
9594
9577
|
]),
|
|
9595
|
-
createBaseVNode("div",
|
|
9596
|
-
|
|
9578
|
+
createBaseVNode("div", _hoisted_17, [
|
|
9579
|
+
_hoisted_18,
|
|
9597
9580
|
createVNode(_component_VSwitch, {
|
|
9598
9581
|
flex: "~ row-reverse",
|
|
9599
9582
|
py1: "",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ar as h, o as openBlock, e as createElementBlock, f as renderSlot, l as normalizeStyle } from './index-
|
|
1
|
+
import { ar as h, o as openBlock, e as createElementBlock, f as renderSlot, l as normalizeStyle } from './index-197edebf.js';
|
|
2
2
|
|
|
3
3
|
const M = {
|
|
4
4
|
name: "splitpanes",
|
|
@@ -1,11 +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 { 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-
|
|
1
|
+
import { _ as _sfc_main$2 } from './StateFields.vue_vue_type_script_setup_true_lang-617e4d70.js';
|
|
2
|
+
import { _ as __unplugin_components_0 } from './VPanelGrids-4b915e62.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-197edebf.js';
|
|
4
4
|
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-65004790.js';
|
|
5
|
-
import { g, M } from './splitpanes.es-
|
|
6
|
-
import './VIcon.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import './index-
|
|
8
|
-
import './VIconButton.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { g, M } from './splitpanes.es-2f5182b4.js';
|
|
6
|
+
import './VIcon.vue_vue_type_script_setup_true_lang-6cd486d4.js';
|
|
7
|
+
import './index-f977bcde.js';
|
|
8
|
+
import './VIconButton.vue_vue_type_script_setup_true_lang-63abce3f.js';
|
|
9
9
|
|
|
10
10
|
var dayjs_min = {exports: {}};/* Injected with object hook! */
|
|
11
11
|
|
|
@@ -1441,7 +1441,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1441
1441
|
createBaseVNode("h3", _hoisted_4, [
|
|
1442
1442
|
createBaseVNode("span", {
|
|
1443
1443
|
truncate: "",
|
|
1444
|
-
class: normalizeClass([unref(activeLayerId) === item.id
|
|
1444
|
+
class: normalizeClass([unref(activeLayerId) === item.id && "text-white"])
|
|
1445
1445
|
}, toDisplayString(item.label), 3)
|
|
1446
1446
|
])
|
|
1447
1447
|
], 10, _hoisted_3);
|
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="./assets/index-
|
|
9
|
-
<link rel="stylesheet" href="./assets/index-
|
|
8
|
+
<script type="module" crossorigin src="./assets/index-197edebf.js"></script>
|
|
9
|
+
<link rel="stylesheet" href="./assets/index-fb18df65.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="app"></div>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-vue-devtools",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"packageManager": "pnpm@8.6.
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"packageManager": "pnpm@8.6.7",
|
|
5
5
|
"description": "A vite plugin for Vue Devtools",
|
|
6
6
|
"author": "webfansplz",
|
|
7
7
|
"license": "MIT",
|
|
@@ -34,11 +34,10 @@
|
|
|
34
34
|
"dist",
|
|
35
35
|
"src/node/views/*",
|
|
36
36
|
"src/node/app.js",
|
|
37
|
-
"src/node/Container.vue",
|
|
38
37
|
"*.d.ts"
|
|
39
38
|
],
|
|
40
39
|
"engines": {
|
|
41
|
-
"node": ">=
|
|
40
|
+
"node": ">=v14"
|
|
42
41
|
},
|
|
43
42
|
"scripts": {
|
|
44
43
|
"build": "rimraf dist && run-s build:*",
|
|
@@ -49,12 +48,13 @@
|
|
|
49
48
|
"play": "nr -C playground dev",
|
|
50
49
|
"stub": "unbuild --stub",
|
|
51
50
|
"lint": "eslint .",
|
|
51
|
+
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
|
52
52
|
"prepublishOnly": "npm run build",
|
|
53
|
-
"release": "bumpp && npm publish",
|
|
53
|
+
"release": "bumpp && nr changelog && npm publish",
|
|
54
54
|
"dep:up": "taze -I major"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"vite": "^3.
|
|
57
|
+
"vite": "^3.1.0 || ^4.0.0-0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@vueuse/core": "^10.2.1",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"birpc": "^0.2.12",
|
|
65
65
|
"execa": "^7.1.1",
|
|
66
66
|
"json-editor-vue": "^0.10.6",
|
|
67
|
-
"minimatch": "^9.0.
|
|
67
|
+
"minimatch": "^9.0.3",
|
|
68
68
|
"nanoid": "^4.0.2",
|
|
69
69
|
"sirv": "^2.0.3",
|
|
70
70
|
"splitpanes": "^3.1.5",
|
|
@@ -72,27 +72,28 @@
|
|
|
72
72
|
"vite-hot-client": "^0.2.1",
|
|
73
73
|
"vite-plugin-inspect": "^0.7.32",
|
|
74
74
|
"vite-plugin-vue-inspector": "^3.4.2",
|
|
75
|
-
"vue-router": "^4.2.
|
|
75
|
+
"vue-router": "^4.2.4",
|
|
76
76
|
"vuedraggable": "^4.1.0",
|
|
77
77
|
"xterm": "^5.2.1",
|
|
78
78
|
"xterm-addon-fit": "^0.7.0"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@algolia/client-search": "^4.18.0",
|
|
82
|
-
"@antfu/eslint-config": "^0.39.
|
|
82
|
+
"@antfu/eslint-config": "^0.39.7",
|
|
83
83
|
"@antfu/ni": "^0.21.4",
|
|
84
|
-
"@iconify/json": "^2.2.
|
|
85
|
-
"@nuxt/devtools-ui-kit": "^0.6.
|
|
84
|
+
"@iconify/json": "^2.2.88",
|
|
85
|
+
"@nuxt/devtools-ui-kit": "^0.6.7",
|
|
86
86
|
"@types/codemirror": "^5.60.8",
|
|
87
|
-
"@types/node": "^20.
|
|
87
|
+
"@types/node": "^20.4.1",
|
|
88
88
|
"@types/splitpanes": "^2.2.1",
|
|
89
|
-
"@unocss/eslint-config": "^0.53.
|
|
90
|
-
"@unocss/reset": "^0.53.
|
|
89
|
+
"@unocss/eslint-config": "^0.53.5",
|
|
90
|
+
"@unocss/reset": "^0.53.5",
|
|
91
91
|
"@vitejs/plugin-vue": "^4.2.3",
|
|
92
92
|
"@vitejs/plugin-vue-jsx": "^3.0.1",
|
|
93
93
|
"bumpp": "^9.1.1",
|
|
94
94
|
"codemirror": "^6.0.1",
|
|
95
95
|
"codemirror-theme-vars": "^0.1.2",
|
|
96
|
+
"conventional-changelog-cli": "^3.0.0",
|
|
96
97
|
"dayjs": "^1.11.9",
|
|
97
98
|
"eslint": "8.44.0",
|
|
98
99
|
"fast-glob": "^3.3.0",
|
|
@@ -104,18 +105,18 @@
|
|
|
104
105
|
"ohash": "^1.1.2",
|
|
105
106
|
"pathe": "^1.1.1",
|
|
106
107
|
"pinia": "^2.1.4",
|
|
107
|
-
"pnpm": "^8.6.
|
|
108
|
+
"pnpm": "^8.6.7",
|
|
108
109
|
"rimraf": "^5.0.1",
|
|
109
110
|
"simple-git-hooks": "^2.8.1",
|
|
110
111
|
"taze": "^0.11.2",
|
|
111
112
|
"typescript": "^5.1.6",
|
|
112
113
|
"unbuild": "^1.2.1",
|
|
113
|
-
"unocss": "^0.53.
|
|
114
|
-
"unplugin-auto-import": "^0.16.
|
|
114
|
+
"unocss": "^0.53.5",
|
|
115
|
+
"unplugin-auto-import": "^0.16.6",
|
|
115
116
|
"unplugin-vue-components": "^0.25.1",
|
|
116
117
|
"vis-data": "^7.1.6",
|
|
117
118
|
"vis-network": "^9.1.6",
|
|
118
|
-
"vite": "^4.
|
|
119
|
+
"vite": "^4.4.2",
|
|
119
120
|
"vite-dev-rpc": "^0.1.2",
|
|
120
121
|
"vite-plugin-pages": "^0.31.0",
|
|
121
122
|
"vue": "^3.3.4",
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed } from 'vue'
|
|
3
|
+
|
|
4
|
+
const props = defineProps<{
|
|
5
|
+
bounds: {
|
|
6
|
+
width: number
|
|
7
|
+
height: number
|
|
8
|
+
top: number
|
|
9
|
+
left: number
|
|
10
|
+
}
|
|
11
|
+
name: string
|
|
12
|
+
}>()
|
|
13
|
+
|
|
14
|
+
const inspectorStyle = computed(() => {
|
|
15
|
+
const { width, height, top, left } = props.bounds
|
|
16
|
+
return {
|
|
17
|
+
width: `${width}px`,
|
|
18
|
+
height: `${height}px`,
|
|
19
|
+
top: `${top}px`,
|
|
20
|
+
left: `${left}px`,
|
|
21
|
+
}
|
|
22
|
+
})
|
|
23
|
+
const inspectorCardStyle = computed(() => ({ top: props.bounds.top < 35 ? 0 : '-35px' }))
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<template>
|
|
27
|
+
<div class="vue-devtools-component-inspector" :style="inspectorStyle">
|
|
28
|
+
<span class="vue-devtools-component-inspector-card" :style="inspectorCardStyle">
|
|
29
|
+
<{{ name }}>
|
|
30
|
+
<i>{{ bounds.width }} x {{ bounds.height }}</i>
|
|
31
|
+
</span>
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
34
|
+
|
|
35
|
+
<style scoped>
|
|
36
|
+
.vue-devtools-component-inspector {
|
|
37
|
+
z-index: 2147483646;
|
|
38
|
+
position: fixed;
|
|
39
|
+
background-color:#42b88325;
|
|
40
|
+
border: 1px solid #42b88350;
|
|
41
|
+
border-radius: 5px;
|
|
42
|
+
transition: all 0.1s ease-in;
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.vue-devtools-component-inspector-card {
|
|
47
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
48
|
+
padding: 5px 8px;
|
|
49
|
+
border-radius: 4px;
|
|
50
|
+
text-align: left;
|
|
51
|
+
position: absolute;
|
|
52
|
+
left: 0;
|
|
53
|
+
color:#e9e9e9;
|
|
54
|
+
font-size: 14px;
|
|
55
|
+
font-weight: 600;
|
|
56
|
+
line-height: 24px;
|
|
57
|
+
background-color:#42b883;
|
|
58
|
+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.vue-devtools-component-inspector-card i {
|
|
62
|
+
font-weight: 400;
|
|
63
|
+
font-style: normal;
|
|
64
|
+
font-size: 12px;
|
|
65
|
+
opacity: 0.7;
|
|
66
|
+
}
|
|
67
|
+
</style>
|