vite-plugin-vue-devtools 0.0.1-alpha.4 → 0.0.1-alpha.6
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/{VCard-5cacc216.js → VCard-d71a2589.js} +1 -1
- package/dist/client/assets/{VIcon.vue_vue_type_script_setup_true_lang-bb402b70.js → VIcon.vue_vue_type_script_setup_true_lang-c1dee1f2.js} +1 -1
- package/dist/client/assets/{VIconTitle.vue_vue_type_script_setup_true_lang-f38e65da.js → VIconTitle.vue_vue_type_script_setup_true_lang-2cc91dc7.js} +1 -1
- package/dist/client/assets/{VPanelGrids-2c88fbae.js → VPanelGrids-ca060aaf.js} +1 -1
- package/dist/client/assets/{VTextInput.vue_vue_type_script_setup_true_lang-011c66af.js → VTextInput.vue_vue_type_script_setup_true_lang-da58117b.js} +3 -3
- package/dist/client/assets/{__inspecting-27725356.js → __inspecting-48a670be.js} +3 -3
- package/dist/client/assets/{assets-b091ff9b.js → assets-a946e8ef.js} +7 -7
- package/dist/client/assets/{components-a308a88b.js → components-02ec0ac1.js} +3 -3
- package/dist/client/assets/{graph-5b43ea17.js → graph-208a5ea7.js} +2 -2
- package/dist/client/assets/{index-cca00dc7.js → index-fdc692cd.js} +314 -309
- package/dist/client/assets/{inspect-f8c7d598.js → inspect-66e3b160.js} +2 -2
- package/dist/client/assets/{overview-0c4b1322.js → overview-9c214b60.js} +4 -4
- package/dist/client/assets/{pages-66f0291d.js → pages-d84d0bc7.js} +5 -4
- package/dist/client/assets/{pinia-a072c6d6.js → pinia-f47dfe6b.js} +3 -3
- package/dist/client/assets/{routes-113533f3.js → routes-6115d7b5.js} +5 -7
- package/dist/client/assets/{rpc-52ce3835.js → rpc-83933350.js} +1 -1
- package/dist/client/assets/{settings-4adf4f39.js → settings-56d3d1a0.js} +3 -3
- package/dist/client/assets/{splitpanes.es-591cd9ad.js → splitpanes.es-8525e2d4.js} +2 -2
- package/dist/client/assets/{timeline-f6fe6462.js → timeline-df7f25e3.js} +5 -5
- package/dist/client/index.html +1 -1
- package/package.json +1 -1
- package/src/node/Container.vue +28 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ax as _export_sfc, o as openBlock, c as createElementBlock, v as renderSlot } from './index-fdc692cd.js';
|
|
2
2
|
|
|
3
3
|
/* unplugin-vue-components disabled */const _sfc_main = {};
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineComponent, o as openBlock, c as createElementBlock, n as normalizeClass } from './index-
|
|
1
|
+
import { d as defineComponent, o as openBlock, c as createElementBlock, n as normalizeClass } from './index-fdc692cd.js';
|
|
2
2
|
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "VIcon",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineComponent, o as openBlock, c as createElementBlock, n as normalizeClass, m as createCommentVNode, v as renderSlot, e as createBaseVNode, t as toDisplayString } from './index-
|
|
1
|
+
import { d as defineComponent, o as openBlock, c as createElementBlock, n as normalizeClass, m as createCommentVNode, v as renderSlot, e as createBaseVNode, t as toDisplayString } from './index-fdc692cd.js';
|
|
2
2
|
|
|
3
3
|
const _hoisted_1 = {
|
|
4
4
|
flex: "~ gap-3",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ax as _export_sfc, o as openBlock, c as createElementBlock, v as renderSlot } from './index-fdc692cd.js';
|
|
2
2
|
|
|
3
3
|
/* unplugin-vue-components disabled */const _sfc_main = {};
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as _sfc_main$2 } from './VIconTitle.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { d as defineComponent, s as useVModel, o as openBlock, c as createElementBlock, e as createBaseVNode, n as normalizeClass, b as createVNode, w as withCtx, v as renderSlot, m as createCommentVNode, a as createBlock, u as unref, x as withDirectives, F as Fragment,
|
|
1
|
+
import { _ as _sfc_main$2 } from './VIconTitle.vue_vue_type_script_setup_true_lang-2cc91dc7.js';
|
|
2
|
+
import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-c1dee1f2.js';
|
|
3
|
+
import { d as defineComponent, s as useVModel, o as openBlock, c as createElementBlock, e as createBaseVNode, n as normalizeClass, b as createVNode, w as withCtx, v as renderSlot, m as createCommentVNode, a as createBlock, u as unref, x as withDirectives, F as Fragment, ay as resolveDirective, E as createTextVNode, t as toDisplayString, az as pushScopeId, aA as popScopeId, ax as _export_sfc, aB as vModelDynamic, ao as mergeProps, z as isRef } from './index-fdc692cd.js';
|
|
4
4
|
|
|
5
5
|
const _withScopeId = (n) => (pushScopeId("data-v-cf2e46eb"), n = n(), popScopeId(), n);
|
|
6
6
|
const _hoisted_1$1 = ["open"];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _ as __unplugin_components_0 } from './VPanelGrids-
|
|
2
|
-
import { d as defineComponent,
|
|
1
|
+
import { _ as __unplugin_components_0 } from './VPanelGrids-ca060aaf.js';
|
|
2
|
+
import { d as defineComponent, aD as useEventListener, o as openBlock, a as createBlock, w as withCtx, e as createBaseVNode, aE as useDevtoolsClient } from './index-fdc692cd.js';
|
|
3
3
|
|
|
4
4
|
const _hoisted_1 = /* @__PURE__ */ createBaseVNode("div", null, " Inspecting Vue components ", -1);
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "__inspecting",
|
|
7
7
|
setup(__props) {
|
|
8
|
-
const client =
|
|
8
|
+
const client = useDevtoolsClient();
|
|
9
9
|
useEventListener("keydown", (e) => {
|
|
10
10
|
if (e.key === "Escape")
|
|
11
11
|
close();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _ as __unplugin_components_0 } from './VPanelGrids-
|
|
2
|
-
import { _ as __unplugin_components_7 } from './VCard-
|
|
3
|
-
import { _ as _sfc_main$a } from './VIcon.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { d as defineComponent, o as openBlock, a as createBlock, w as withCtx, b as createVNode,
|
|
5
|
-
import { r as rpc } from './rpc-
|
|
6
|
-
import { _ as _sfc_main$c, a as __unplugin_components_3 } from './VTextInput.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as __unplugin_components_0 } from './VPanelGrids-ca060aaf.js';
|
|
2
|
+
import { _ as __unplugin_components_7 } from './VCard-d71a2589.js';
|
|
3
|
+
import { _ as _sfc_main$a } from './VIcon.vue_vue_type_script_setup_true_lang-c1dee1f2.js';
|
|
4
|
+
import { d as defineComponent, o as openBlock, a as createBlock, w as withCtx, b as createVNode, ao as mergeProps, ap as resolveDynamicComponent, Q as ref, aq as useElementSize, ar as onClickOutside, c as createElementBlock, e as createBaseVNode, v as renderSlot, u as unref, m as createCommentVNode, as as Transition, R as computed, t as toDisplayString, n as normalizeClass, at as useStyleTag, O as normalizeStyle, au as computedAsync, av as useTimeAgo, F as Fragment, E as createTextVNode, _ as _sfc_main$b, aw as onKeyDown, z as isRef, r as renderList } from './index-fdc692cd.js';
|
|
5
|
+
import { r as rpc } from './rpc-83933350.js';
|
|
6
|
+
import { _ as _sfc_main$c, a as __unplugin_components_3 } from './VTextInput.vue_vue_type_script_setup_true_lang-da58117b.js';
|
|
7
7
|
import { F as Fuse } from './fuse.esm-c317b696.js';
|
|
8
|
-
import './VIconTitle.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import './VIconTitle.vue_vue_type_script_setup_true_lang-2cc91dc7.js';
|
|
9
9
|
|
|
10
10
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
11
11
|
__name: "VIconButton",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as _sfc_main$2, g, M, _ as _sfc_main$3 } from './splitpanes.es-
|
|
2
|
-
import {
|
|
3
|
-
import './VIcon.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { a as _sfc_main$2, g, M, _ as _sfc_main$3 } from './splitpanes.es-8525e2d4.js';
|
|
2
|
+
import { ab as getInstanceName, ac as classify, ad as kebabize, ae as isFragment, af as camelize, ag as returnError, ah as isBeingDestroyed, ai as getUniqueComponentId, aj as getRenderKey, Q as ref, ak as shallowRef, R as computed, d as defineComponent, X as resolveComponent, o as openBlock, c as createElementBlock, e as createBaseVNode, u as unref, a as createBlock, n as normalizeClass, t as toDisplayString, O as normalizeStyle, F as Fragment, r as renderList, m as createCommentVNode, f as onMounted, al as onVueInstanceUpdate, b as createVNode, w as withCtx, a3 as reactive, am as instance } from './index-fdc692cd.js';
|
|
3
|
+
import './VIcon.vue_vue_type_script_setup_true_lang-c1dee1f2.js';
|
|
4
4
|
|
|
5
5
|
class ComponentFilter {
|
|
6
6
|
filter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Q as ref,
|
|
1
|
+
import { Q as ref, a7 as useStorage, R as computed, d as defineComponent, o as openBlock, c as createElementBlock, x as withDirectives, a8 as vModelText, u as unref, e as createBaseVNode, z as isRef, A as vModelCheckbox, a9 as useDark, f as onMounted, aa as watch, b as createVNode } from './index-fdc692cd.js';
|
|
2
2
|
import { F as Fuse } from './fuse.esm-c317b696.js';
|
|
3
|
-
import { r as rpc } from './rpc-
|
|
3
|
+
import { r as rpc } from './rpc-83933350.js';
|
|
4
4
|
|
|
5
5
|
const list = ref(await rpc.componentGraph());
|
|
6
6
|
const searchText = useStorage("vite-inspect-search-text", "");
|
|
@@ -14102,17 +14102,17 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
14102
14102
|
|
|
14103
14103
|
/* Injected with object hook! */
|
|
14104
14104
|
|
|
14105
|
-
const __pages_import_0__ = () => __vitePreload(() => import('./timeline-
|
|
14106
|
-
const __pages_import_1__ = () => __vitePreload(() => import('./settings-
|
|
14107
|
-
const __pages_import_2__ = () => __vitePreload(() => import('./routes-
|
|
14108
|
-
const __pages_import_3__ = () => __vitePreload(() => import('./pinia-
|
|
14109
|
-
const __pages_import_4__ = () => __vitePreload(() => import('./pages-
|
|
14110
|
-
const __pages_import_5__ = () => __vitePreload(() => import('./overview-
|
|
14111
|
-
const __pages_import_6__ = () => __vitePreload(() => import('./inspect-
|
|
14112
|
-
const __pages_import_8__ = () => __vitePreload(() => import('./graph-
|
|
14113
|
-
const __pages_import_9__ = () => __vitePreload(() => import('./components-
|
|
14114
|
-
const __pages_import_10__ = () => __vitePreload(() => import('./assets-
|
|
14115
|
-
const __pages_import_11__ = () => __vitePreload(() => import('./__inspecting-
|
|
14105
|
+
const __pages_import_0__ = () => __vitePreload(() => import('./timeline-df7f25e3.js'),true?["./timeline-df7f25e3.js","./splitpanes.es-8525e2d4.js","./VIcon.vue_vue_type_script_setup_true_lang-c1dee1f2.js","./VPanelGrids-ca060aaf.js","./VCard-d71a2589.js"]:void 0,import.meta.url);
|
|
14106
|
+
const __pages_import_1__ = () => __vitePreload(() => import('./settings-56d3d1a0.js'),true?["./settings-56d3d1a0.js","./VIcon.vue_vue_type_script_setup_true_lang-c1dee1f2.js","./VIconTitle.vue_vue_type_script_setup_true_lang-2cc91dc7.js"]:void 0,import.meta.url);
|
|
14107
|
+
const __pages_import_2__ = () => __vitePreload(() => import('./routes-6115d7b5.js'),true?["./routes-6115d7b5.js","./VPanelGrids-ca060aaf.js","./VCard-d71a2589.js","./splitpanes.es-8525e2d4.js","./VIcon.vue_vue_type_script_setup_true_lang-c1dee1f2.js"]:void 0,import.meta.url);
|
|
14108
|
+
const __pages_import_3__ = () => __vitePreload(() => import('./pinia-f47dfe6b.js'),true?["./pinia-f47dfe6b.js","./splitpanes.es-8525e2d4.js","./VIcon.vue_vue_type_script_setup_true_lang-c1dee1f2.js"]:void 0,import.meta.url);
|
|
14109
|
+
const __pages_import_4__ = () => __vitePreload(() => import('./pages-d84d0bc7.js'),true?["./pages-d84d0bc7.js","./VTextInput.vue_vue_type_script_setup_true_lang-da58117b.js","./VIconTitle.vue_vue_type_script_setup_true_lang-2cc91dc7.js","./VIcon.vue_vue_type_script_setup_true_lang-c1dee1f2.js","./VTextInput-52804693.css"]:void 0,import.meta.url);
|
|
14110
|
+
const __pages_import_5__ = () => __vitePreload(() => import('./overview-9c214b60.js'),true?["./overview-9c214b60.js","./VPanelGrids-ca060aaf.js","./rpc-83933350.js"]:void 0,import.meta.url);
|
|
14111
|
+
const __pages_import_6__ = () => __vitePreload(() => import('./inspect-66e3b160.js'),true?["./inspect-66e3b160.js","./rpc-83933350.js"]:void 0,import.meta.url);
|
|
14112
|
+
const __pages_import_8__ = () => __vitePreload(() => import('./graph-208a5ea7.js'),true?["./graph-208a5ea7.js","./fuse.esm-c317b696.js","./rpc-83933350.js"]:void 0,import.meta.url);
|
|
14113
|
+
const __pages_import_9__ = () => __vitePreload(() => import('./components-02ec0ac1.js'),true?["./components-02ec0ac1.js","./splitpanes.es-8525e2d4.js","./VIcon.vue_vue_type_script_setup_true_lang-c1dee1f2.js"]:void 0,import.meta.url);
|
|
14114
|
+
const __pages_import_10__ = () => __vitePreload(() => import('./assets-a946e8ef.js'),true?["./assets-a946e8ef.js","./VPanelGrids-ca060aaf.js","./VCard-d71a2589.js","./VIcon.vue_vue_type_script_setup_true_lang-c1dee1f2.js","./rpc-83933350.js","./VTextInput.vue_vue_type_script_setup_true_lang-da58117b.js","./VIconTitle.vue_vue_type_script_setup_true_lang-2cc91dc7.js","./VTextInput-52804693.css","./fuse.esm-c317b696.js"]:void 0,import.meta.url);
|
|
14115
|
+
const __pages_import_11__ = () => __vitePreload(() => import('./__inspecting-48a670be.js'),true?["./__inspecting-48a670be.js","./VPanelGrids-ca060aaf.js"]:void 0,import.meta.url);
|
|
14116
14116
|
|
|
14117
14117
|
const routes$1 = [{"name":"timeline","path":"/timeline","component":__pages_import_0__,"props":true},{"name":"settings","path":"/settings","component":__pages_import_1__,"props":true},{"name":"routes","path":"/routes","component":__pages_import_2__,"props":true},{"name":"pinia","path":"/pinia","component":__pages_import_3__,"props":true},{"name":"pages","path":"/pages","component":__pages_import_4__,"props":true},{"name":"overview","path":"/overview","component":__pages_import_5__,"props":true},{"name":"inspect","path":"/inspect","component":__pages_import_6__,"props":true},{"name":"index","path":"/","component":_sfc_main$6,"props":true},{"name":"graph","path":"/graph","component":__pages_import_8__,"props":true},{"name":"components","path":"/components","component":__pages_import_9__,"props":true},{"name":"assets","path":"/assets","component":__pages_import_10__,"props":true},{"name":"__inspecting","path":"/__inspecting","component":__pages_import_11__,"props":true}];
|
|
14118
14118
|
/* Injected with object hook! */
|
|
@@ -14152,12 +14152,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
14152
14152
|
|
|
14153
14153
|
/* Injected with object hook! */
|
|
14154
14154
|
|
|
14155
|
-
const client = ref({
|
|
14155
|
+
const client$1 = ref({
|
|
14156
14156
|
hook: window.parent.__VUE_DEVTOOLS_GLOBAL_HOOKS__(),
|
|
14157
|
+
markClientLoaded: () => {
|
|
14158
|
+
},
|
|
14157
14159
|
hookBuffer: []
|
|
14158
14160
|
});
|
|
14159
|
-
function
|
|
14160
|
-
return client;
|
|
14161
|
+
function useDevtoolsClient() {
|
|
14162
|
+
return client$1;
|
|
14161
14163
|
}
|
|
14162
14164
|
|
|
14163
14165
|
/* Injected with object hook! */
|
|
@@ -14168,7 +14170,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
14168
14170
|
tab: null
|
|
14169
14171
|
},
|
|
14170
14172
|
setup(__props) {
|
|
14171
|
-
const client =
|
|
14173
|
+
const client = useDevtoolsClient();
|
|
14172
14174
|
const router = useRouter();
|
|
14173
14175
|
return (_ctx, _cache) => {
|
|
14174
14176
|
const _component_TabIcon = _sfc_main$5;
|
|
@@ -14281,7 +14283,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
14281
14283
|
const frameState = ref({
|
|
14282
14284
|
position: _position.value
|
|
14283
14285
|
});
|
|
14284
|
-
const client =
|
|
14286
|
+
const client = useDevtoolsClient();
|
|
14285
14287
|
const dockButton = [
|
|
14286
14288
|
{
|
|
14287
14289
|
position: "bottom",
|
|
@@ -14593,6 +14595,43 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
14593
14595
|
|
|
14594
14596
|
/* Injected with object hook! */
|
|
14595
14597
|
|
|
14598
|
+
/*!
|
|
14599
|
+
* pinia v2.0.35
|
|
14600
|
+
* (c) 2023 Eduardo San Martin Morote
|
|
14601
|
+
* @license MIT
|
|
14602
|
+
*/
|
|
14603
|
+
// type DeepReadonly<T> = { readonly [P in keyof T]: DeepReadonly<T[P]> }
|
|
14604
|
+
// TODO: can we change these to numbers?
|
|
14605
|
+
/**
|
|
14606
|
+
* Possible types for SubscriptionCallback
|
|
14607
|
+
*/
|
|
14608
|
+
var MutationType;
|
|
14609
|
+
(function (MutationType) {
|
|
14610
|
+
/**
|
|
14611
|
+
* Direct mutation of the state:
|
|
14612
|
+
*
|
|
14613
|
+
* - `store.name = 'new name'`
|
|
14614
|
+
* - `store.$state.name = 'new name'`
|
|
14615
|
+
* - `store.list.push('new item')`
|
|
14616
|
+
*/
|
|
14617
|
+
MutationType["direct"] = "direct";
|
|
14618
|
+
/**
|
|
14619
|
+
* Mutated the state with `$patch` and an object
|
|
14620
|
+
*
|
|
14621
|
+
* - `store.$patch({ name: 'newName' })`
|
|
14622
|
+
*/
|
|
14623
|
+
MutationType["patchObject"] = "patch object";
|
|
14624
|
+
/**
|
|
14625
|
+
* Mutated the state with `$patch` and a function
|
|
14626
|
+
*
|
|
14627
|
+
* - `store.$patch(state => state.name = 'newName')`
|
|
14628
|
+
*/
|
|
14629
|
+
MutationType["patchFunction"] = "patch function";
|
|
14630
|
+
// maybe reset? for $state = {} and $reset
|
|
14631
|
+
})(MutationType || (MutationType = {}));
|
|
14632
|
+
|
|
14633
|
+
/* Injected with object hook! */
|
|
14634
|
+
|
|
14596
14635
|
function isBeingDestroyed(instance) {
|
|
14597
14636
|
return instance._isBeingDestroyed || instance.isUnmounted;
|
|
14598
14637
|
}
|
|
@@ -14747,7 +14786,7 @@ function addTimelineEvent(event) {
|
|
|
14747
14786
|
}
|
|
14748
14787
|
});
|
|
14749
14788
|
}
|
|
14750
|
-
function
|
|
14789
|
+
function initPerfTimeline(events) {
|
|
14751
14790
|
const performTimelineSortKey = {
|
|
14752
14791
|
start: -1,
|
|
14753
14792
|
end: 1
|
|
@@ -14760,7 +14799,7 @@ function initTimeline(events) {
|
|
|
14760
14799
|
addTimelineEvent(event);
|
|
14761
14800
|
});
|
|
14762
14801
|
timelineEvent.value = timelineEvent.value.sort((a, b) => a.sortId - b.sortId).sort((a, b) => performTimelineSortKey[a.event.data.measure] - performTimelineSortKey[b.event.data.measure]);
|
|
14763
|
-
const client =
|
|
14802
|
+
const client = useDevtoolsClient();
|
|
14764
14803
|
let sortId = timelineEvent.value.length;
|
|
14765
14804
|
client.value?.hook?.on("perf:start", (app, uid, component, type, time) => {
|
|
14766
14805
|
if (component?.root.type?.devtools?.hide)
|
|
@@ -14792,241 +14831,7 @@ function initTimeline(events) {
|
|
|
14792
14831
|
|
|
14793
14832
|
/* Injected with object hook! */
|
|
14794
14833
|
|
|
14795
|
-
const
|
|
14796
|
-
const currentRoute = computed(() => unref(router$2.value?.currentRoute));
|
|
14797
|
-
const map = /* @__PURE__ */ new Map();
|
|
14798
|
-
const routes = computed(() => {
|
|
14799
|
-
return (router$2.value?.getRoutes() || []).map((i) => {
|
|
14800
|
-
return {
|
|
14801
|
-
...i
|
|
14802
|
-
};
|
|
14803
|
-
}).filter((i) => !map.has(i.path) && map.set(i.path, 1));
|
|
14804
|
-
});
|
|
14805
|
-
function initPages() {
|
|
14806
|
-
router$2.value = app$1.value?.config.globalProperties.$router;
|
|
14807
|
-
router$2.value?.afterEach(() => {
|
|
14808
|
-
triggerRef(router$2);
|
|
14809
|
-
});
|
|
14810
|
-
}
|
|
14811
|
-
|
|
14812
|
-
/* Injected with object hook! */
|
|
14813
|
-
|
|
14814
|
-
const app$1 = shallowRef();
|
|
14815
|
-
const vueVersion = computed(() => app$1.value?.version);
|
|
14816
|
-
const instance = shallowRef();
|
|
14817
|
-
function onVueInstanceUpdate(cb) {
|
|
14818
|
-
return watch(instance, () => {
|
|
14819
|
-
cb(instance.value);
|
|
14820
|
-
}, {
|
|
14821
|
-
immediate: true
|
|
14822
|
-
});
|
|
14823
|
-
}
|
|
14824
|
-
function initVueApp(_app, component) {
|
|
14825
|
-
if (_app) {
|
|
14826
|
-
app$1.value = _app;
|
|
14827
|
-
triggerRef(app$1);
|
|
14828
|
-
initPages();
|
|
14829
|
-
}
|
|
14830
|
-
if (component.root) {
|
|
14831
|
-
instance.value = component.root;
|
|
14832
|
-
instance.value && (instance.value.uid = 0);
|
|
14833
|
-
triggerRef(instance);
|
|
14834
|
-
}
|
|
14835
|
-
}
|
|
14836
|
-
|
|
14837
|
-
/* Injected with object hook! */
|
|
14838
|
-
|
|
14839
|
-
const CYAN_400 = 2282478;
|
|
14840
|
-
const ORANGE_400 = 16486972;
|
|
14841
|
-
const DARK = 6710886;
|
|
14842
|
-
const LAYER_ID$1 = "router";
|
|
14843
|
-
const router$1 = ref();
|
|
14844
|
-
const routeRecordMatcher = ref();
|
|
14845
|
-
const activeRouteRecordIndex = ref(0);
|
|
14846
|
-
const routeRecordMatcherState = computed(() => {
|
|
14847
|
-
return routeRecordMatcher.value?.map((route) => {
|
|
14848
|
-
const state = formatRouteRecordMatcherForStateInspector(route);
|
|
14849
|
-
const tags = formatRouteRecordForInspector(route);
|
|
14850
|
-
return {
|
|
14851
|
-
path: state.path,
|
|
14852
|
-
tags,
|
|
14853
|
-
state
|
|
14854
|
-
};
|
|
14855
|
-
}).sort((a, b) => a.path.length - b.path.length);
|
|
14856
|
-
});
|
|
14857
|
-
const activeRouteRecordMatcherState = computed(() => {
|
|
14858
|
-
const state = routeRecordMatcherState.value?.[activeRouteRecordIndex.value]?.state;
|
|
14859
|
-
return {
|
|
14860
|
-
key: "options",
|
|
14861
|
-
value: state
|
|
14862
|
-
};
|
|
14863
|
-
});
|
|
14864
|
-
function formatRouteRecordForInspector(route) {
|
|
14865
|
-
const tags = [];
|
|
14866
|
-
const { record } = route;
|
|
14867
|
-
if (record.name != null) {
|
|
14868
|
-
tags.push({
|
|
14869
|
-
label: String(record.name),
|
|
14870
|
-
bgColor: CYAN_400
|
|
14871
|
-
});
|
|
14872
|
-
}
|
|
14873
|
-
if (record.aliasOf) {
|
|
14874
|
-
tags.push({
|
|
14875
|
-
label: "alias",
|
|
14876
|
-
bgColor: ORANGE_400
|
|
14877
|
-
});
|
|
14878
|
-
}
|
|
14879
|
-
if (record.redirect) {
|
|
14880
|
-
tags.push({
|
|
14881
|
-
label: typeof record.redirect === "string" ? `redirect: ${record.redirect}` : "redirects",
|
|
14882
|
-
bgColor: DARK
|
|
14883
|
-
});
|
|
14884
|
-
}
|
|
14885
|
-
return tags;
|
|
14886
|
-
}
|
|
14887
|
-
function formatRouteRecordMatcherForStateInspector(route) {
|
|
14888
|
-
const { record } = route;
|
|
14889
|
-
const fields = {
|
|
14890
|
-
path: record.path
|
|
14891
|
-
};
|
|
14892
|
-
if (record.name != null)
|
|
14893
|
-
fields.name = record.name;
|
|
14894
|
-
fields.regexp = route.re;
|
|
14895
|
-
if (route.keys.length)
|
|
14896
|
-
fields.keys = toRaw(route.keys);
|
|
14897
|
-
if (record.redirect != null)
|
|
14898
|
-
fields.redirect = record.redirect;
|
|
14899
|
-
if (route.alias.length)
|
|
14900
|
-
fields.aliases = route.alias.map((alias) => alias.record.path);
|
|
14901
|
-
if (Object.keys(route.record.meta).length)
|
|
14902
|
-
fields.meta = route.record.meta;
|
|
14903
|
-
fields.score = toRaw(route.score);
|
|
14904
|
-
return fields;
|
|
14905
|
-
}
|
|
14906
|
-
function toggleRouteRecordMatcher(index) {
|
|
14907
|
-
activeRouteRecordIndex.value = index;
|
|
14908
|
-
}
|
|
14909
|
-
function formatRouteLocation(routeLocation) {
|
|
14910
|
-
const copy = Object.assign({}, routeLocation, {
|
|
14911
|
-
// remove variables that can contain vue instances
|
|
14912
|
-
matched: routeLocation.matched.map(
|
|
14913
|
-
(matched) => reactiveOmit(matched, ["instances", "children", "aliasOf"])
|
|
14914
|
-
)
|
|
14915
|
-
});
|
|
14916
|
-
return copy;
|
|
14917
|
-
}
|
|
14918
|
-
function subscribeRouterChanged(router2) {
|
|
14919
|
-
router2.onError((error, to) => {
|
|
14920
|
-
timelineApi.addTimelineEvent({
|
|
14921
|
-
layerId: LAYER_ID$1,
|
|
14922
|
-
event: {
|
|
14923
|
-
title: "Error during Navigation",
|
|
14924
|
-
subtitle: to.fullPath,
|
|
14925
|
-
time: Date.now(),
|
|
14926
|
-
now: Date.now(),
|
|
14927
|
-
data: { error: error.message }
|
|
14928
|
-
}
|
|
14929
|
-
});
|
|
14930
|
-
});
|
|
14931
|
-
router2.beforeEach((to, from) => {
|
|
14932
|
-
const data = {
|
|
14933
|
-
guard: "beforeEach",
|
|
14934
|
-
from: formatRouteLocation(
|
|
14935
|
-
from
|
|
14936
|
-
),
|
|
14937
|
-
to: formatRouteLocation(to)
|
|
14938
|
-
};
|
|
14939
|
-
timelineApi.addTimelineEvent({
|
|
14940
|
-
layerId: LAYER_ID$1,
|
|
14941
|
-
event: {
|
|
14942
|
-
time: Date.now(),
|
|
14943
|
-
now: Date.now(),
|
|
14944
|
-
title: "Start of navigation",
|
|
14945
|
-
subtitle: to.fullPath,
|
|
14946
|
-
data
|
|
14947
|
-
}
|
|
14948
|
-
});
|
|
14949
|
-
});
|
|
14950
|
-
router2.afterEach((to, from, failure) => {
|
|
14951
|
-
const data = {
|
|
14952
|
-
guard: "afterEach"
|
|
14953
|
-
};
|
|
14954
|
-
if (failure) {
|
|
14955
|
-
data.failure = failure ? failure.message : "";
|
|
14956
|
-
data.status = "❌";
|
|
14957
|
-
} else {
|
|
14958
|
-
data.status = "✅";
|
|
14959
|
-
}
|
|
14960
|
-
data.from = formatRouteLocation(from);
|
|
14961
|
-
data.to = formatRouteLocation(to);
|
|
14962
|
-
timelineApi.addTimelineEvent({
|
|
14963
|
-
layerId: LAYER_ID$1,
|
|
14964
|
-
event: {
|
|
14965
|
-
title: "End of navigation",
|
|
14966
|
-
subtitle: to.fullPath,
|
|
14967
|
-
time: Date.now(),
|
|
14968
|
-
now: Date.now(),
|
|
14969
|
-
data
|
|
14970
|
-
}
|
|
14971
|
-
});
|
|
14972
|
-
});
|
|
14973
|
-
}
|
|
14974
|
-
function initRoutes() {
|
|
14975
|
-
router$1.value = app$1.value?.config.globalProperties.$router;
|
|
14976
|
-
if (router$1.value) {
|
|
14977
|
-
const matcher = createRouterMatcher(router$1.value?.options.routes, router$1.value?.options);
|
|
14978
|
-
routeRecordMatcher.value = matcher.getRoutes();
|
|
14979
|
-
timelineApi.addTimelineLayer({
|
|
14980
|
-
id: LAYER_ID$1,
|
|
14981
|
-
label: "Router Navigations"
|
|
14982
|
-
});
|
|
14983
|
-
subscribeRouterChanged(router$1.value);
|
|
14984
|
-
router$1.value?.afterEach(() => {
|
|
14985
|
-
triggerRef(router$1);
|
|
14986
|
-
});
|
|
14987
|
-
}
|
|
14988
|
-
}
|
|
14989
|
-
|
|
14990
|
-
/* Injected with object hook! */
|
|
14991
|
-
|
|
14992
|
-
/*!
|
|
14993
|
-
* pinia v2.0.35
|
|
14994
|
-
* (c) 2023 Eduardo San Martin Morote
|
|
14995
|
-
* @license MIT
|
|
14996
|
-
*/
|
|
14997
|
-
// type DeepReadonly<T> = { readonly [P in keyof T]: DeepReadonly<T[P]> }
|
|
14998
|
-
// TODO: can we change these to numbers?
|
|
14999
|
-
/**
|
|
15000
|
-
* Possible types for SubscriptionCallback
|
|
15001
|
-
*/
|
|
15002
|
-
var MutationType;
|
|
15003
|
-
(function (MutationType) {
|
|
15004
|
-
/**
|
|
15005
|
-
* Direct mutation of the state:
|
|
15006
|
-
*
|
|
15007
|
-
* - `store.name = 'new name'`
|
|
15008
|
-
* - `store.$state.name = 'new name'`
|
|
15009
|
-
* - `store.list.push('new item')`
|
|
15010
|
-
*/
|
|
15011
|
-
MutationType["direct"] = "direct";
|
|
15012
|
-
/**
|
|
15013
|
-
* Mutated the state with `$patch` and an object
|
|
15014
|
-
*
|
|
15015
|
-
* - `store.$patch({ name: 'newName' })`
|
|
15016
|
-
*/
|
|
15017
|
-
MutationType["patchObject"] = "patch object";
|
|
15018
|
-
/**
|
|
15019
|
-
* Mutated the state with `$patch` and a function
|
|
15020
|
-
*
|
|
15021
|
-
* - `store.$patch(state => state.name = 'newName')`
|
|
15022
|
-
*/
|
|
15023
|
-
MutationType["patchFunction"] = "patch function";
|
|
15024
|
-
// maybe reset? for $state = {} and $reset
|
|
15025
|
-
})(MutationType || (MutationType = {}));
|
|
15026
|
-
|
|
15027
|
-
/* Injected with object hook! */
|
|
15028
|
-
|
|
15029
|
-
const LAYER_ID = "pinia";
|
|
14834
|
+
const LAYER_ID$1 = "pinia";
|
|
15030
14835
|
const piniaVisible = ref(false);
|
|
15031
14836
|
const stores = ref();
|
|
15032
14837
|
const subscribes = ref([]);
|
|
@@ -15076,7 +14881,7 @@ function formatMutationType(type) {
|
|
|
15076
14881
|
function subscribeStore(store) {
|
|
15077
14882
|
const action = store.$onAction(({ after, onError, name, args }) => {
|
|
15078
14883
|
timelineApi.addTimelineEvent({
|
|
15079
|
-
layerId: LAYER_ID,
|
|
14884
|
+
layerId: LAYER_ID$1,
|
|
15080
14885
|
event: {
|
|
15081
14886
|
time: Date.now(),
|
|
15082
14887
|
title: `🛫 ${name}`,
|
|
@@ -15091,7 +14896,7 @@ function subscribeStore(store) {
|
|
|
15091
14896
|
});
|
|
15092
14897
|
after((result) => {
|
|
15093
14898
|
timelineApi.addTimelineEvent({
|
|
15094
|
-
layerId: LAYER_ID,
|
|
14899
|
+
layerId: LAYER_ID$1,
|
|
15095
14900
|
event: {
|
|
15096
14901
|
time: Date.now(),
|
|
15097
14902
|
title: `🛬 ${name}`,
|
|
@@ -15108,7 +14913,7 @@ function subscribeStore(store) {
|
|
|
15108
14913
|
});
|
|
15109
14914
|
onError((error) => {
|
|
15110
14915
|
timelineApi.addTimelineEvent({
|
|
15111
|
-
layerId: LAYER_ID,
|
|
14916
|
+
layerId: LAYER_ID$1,
|
|
15112
14917
|
event: {
|
|
15113
14918
|
now: Date.now(),
|
|
15114
14919
|
time: Date.now(),
|
|
@@ -15131,7 +14936,7 @@ function subscribeStore(store) {
|
|
|
15131
14936
|
() => unref(store[name]),
|
|
15132
14937
|
(newValue, oldValue) => {
|
|
15133
14938
|
timelineApi.addTimelineEvent({
|
|
15134
|
-
layerId: LAYER_ID,
|
|
14939
|
+
layerId: LAYER_ID$1,
|
|
15135
14940
|
event: {
|
|
15136
14941
|
now: Date.now(),
|
|
15137
14942
|
time: Date.now(),
|
|
@@ -15166,7 +14971,7 @@ function subscribeStore(store) {
|
|
|
15166
14971
|
else if (events && !Array.isArray(events))
|
|
15167
14972
|
eventData.subtitle = events.type;
|
|
15168
14973
|
timelineApi.addTimelineEvent({
|
|
15169
|
-
layerId: LAYER_ID,
|
|
14974
|
+
layerId: LAYER_ID$1,
|
|
15170
14975
|
event: eventData
|
|
15171
14976
|
});
|
|
15172
14977
|
},
|
|
@@ -15175,7 +14980,7 @@ function subscribeStore(store) {
|
|
|
15175
14980
|
subscribes.value.push(subscribe);
|
|
15176
14981
|
store._hotUpdate = markRaw((newStore) => {
|
|
15177
14982
|
timeApi.addTimelineEvent({
|
|
15178
|
-
layerId: LAYER_ID,
|
|
14983
|
+
layerId: LAYER_ID$1,
|
|
15179
14984
|
event: {
|
|
15180
14985
|
time: Date.now(),
|
|
15181
14986
|
now: Date.now(),
|
|
@@ -15223,16 +15028,55 @@ function updatePinia(component) {
|
|
|
15223
15028
|
}
|
|
15224
15029
|
});
|
|
15225
15030
|
}
|
|
15226
|
-
function initPinia(
|
|
15227
|
-
|
|
15228
|
-
|
|
15229
|
-
|
|
15230
|
-
|
|
15231
|
-
|
|
15232
|
-
|
|
15233
|
-
|
|
15234
|
-
|
|
15235
|
-
|
|
15031
|
+
function initPinia() {
|
|
15032
|
+
timelineApi.addTimelineLayer({
|
|
15033
|
+
id: LAYER_ID$1,
|
|
15034
|
+
label: "Pinia 🍍"
|
|
15035
|
+
});
|
|
15036
|
+
}
|
|
15037
|
+
|
|
15038
|
+
/* Injected with object hook! */
|
|
15039
|
+
|
|
15040
|
+
const app$1 = shallowRef();
|
|
15041
|
+
const vueVersion = computed(() => app$1.value?.version);
|
|
15042
|
+
const instance = shallowRef();
|
|
15043
|
+
const router$1 = computed(() => app$1.value?.config?.globalProperties?.$router);
|
|
15044
|
+
const currentRoute = computed(() => unref(router$1.value?.currentRoute));
|
|
15045
|
+
const routes = computed(() => {
|
|
15046
|
+
const routesMap = /* @__PURE__ */ new Map();
|
|
15047
|
+
return (router$1.value?.getRoutes() || []).map((i) => {
|
|
15048
|
+
return {
|
|
15049
|
+
...i
|
|
15050
|
+
};
|
|
15051
|
+
}).filter((i) => !routesMap.has(i.path) && routesMap.set(i.path, 1));
|
|
15052
|
+
});
|
|
15053
|
+
function initApp(params) {
|
|
15054
|
+
const [_, { app: _app }] = params;
|
|
15055
|
+
if (_app) {
|
|
15056
|
+
app$1.value = _app;
|
|
15057
|
+
triggerRef(app$1);
|
|
15058
|
+
hookApi.hook?.emit("init:vue:app");
|
|
15059
|
+
}
|
|
15060
|
+
router$1.value?.afterEach(() => {
|
|
15061
|
+
triggerRef(router$1);
|
|
15062
|
+
});
|
|
15063
|
+
}
|
|
15064
|
+
function updateApp(_app, component) {
|
|
15065
|
+
if (_app) {
|
|
15066
|
+
app$1.value = _app;
|
|
15067
|
+
triggerRef(app$1);
|
|
15068
|
+
}
|
|
15069
|
+
if (component.root) {
|
|
15070
|
+
instance.value = component.root;
|
|
15071
|
+
instance.value && (instance.value.uid = 0);
|
|
15072
|
+
triggerRef(instance);
|
|
15073
|
+
}
|
|
15074
|
+
}
|
|
15075
|
+
function onVueInstanceUpdate(cb) {
|
|
15076
|
+
return watch(instance, () => {
|
|
15077
|
+
cb(instance.value);
|
|
15078
|
+
}, {
|
|
15079
|
+
immediate: true
|
|
15236
15080
|
});
|
|
15237
15081
|
}
|
|
15238
15082
|
|
|
@@ -15241,66 +15085,201 @@ function initPinia(component) {
|
|
|
15241
15085
|
function hideInDevtools(component) {
|
|
15242
15086
|
return component?.root?.type?.devtools?.hide;
|
|
15243
15087
|
}
|
|
15244
|
-
|
|
15245
|
-
|
|
15246
|
-
const
|
|
15247
|
-
hook
|
|
15088
|
+
const client = useDevtoolsClient();
|
|
15089
|
+
function produceHook() {
|
|
15090
|
+
const client2 = useDevtoolsClient();
|
|
15091
|
+
const hook = client2.value.hook;
|
|
15092
|
+
hook.on("app:init" /* APP_INIT */, (app) => {
|
|
15248
15093
|
if (app?._vueDevtools_hidden_)
|
|
15249
15094
|
return;
|
|
15250
15095
|
app$1.value = app;
|
|
15251
15096
|
instance.value = app._instance;
|
|
15252
15097
|
});
|
|
15098
|
+
function skipCollect(app, uid, component) {
|
|
15099
|
+
return !app || typeof uid !== "number" && !uid || !component || hideInDevtools(component);
|
|
15100
|
+
}
|
|
15253
15101
|
hook.on("component:updated" /* COMPONENT_UPDATED */, (app, uid, parentUid, component) => {
|
|
15254
|
-
if (
|
|
15102
|
+
if (skipCollect(app, uid, component))
|
|
15255
15103
|
return;
|
|
15256
|
-
|
|
15104
|
+
updateApp(app, component);
|
|
15257
15105
|
});
|
|
15258
15106
|
hook.on("component:added" /* COMPONENT_ADDED */, (app, uid, parentUid, component) => {
|
|
15259
|
-
|
|
15260
|
-
if (
|
|
15107
|
+
updatePinia(component);
|
|
15108
|
+
if (skipCollect(app, uid, component))
|
|
15261
15109
|
return;
|
|
15262
|
-
|
|
15110
|
+
updateApp(app, component);
|
|
15263
15111
|
});
|
|
15264
15112
|
hook.on("component:removed" /* COMPONENT_REMOVED */, (app, uid, parentUid, component) => {
|
|
15265
|
-
if (
|
|
15113
|
+
if (skipCollect(app, uid, component))
|
|
15266
15114
|
return;
|
|
15267
|
-
|
|
15115
|
+
updateApp(app, component);
|
|
15268
15116
|
});
|
|
15269
15117
|
hook.on("component:emit" /* COMPONENT_EMIT */, (app, uid, parentUid, component) => {
|
|
15270
|
-
if (
|
|
15118
|
+
if (skipCollect(app, uid, component))
|
|
15271
15119
|
return;
|
|
15272
|
-
|
|
15120
|
+
updateApp(app, component);
|
|
15273
15121
|
});
|
|
15274
15122
|
}
|
|
15275
|
-
function
|
|
15123
|
+
function ConsumeHook(buffer) {
|
|
15276
15124
|
buffer.forEach(([eventType, { app, component }]) => {
|
|
15277
15125
|
if (eventType === "component:added" /* COMPONENT_ADDED */)
|
|
15278
|
-
|
|
15279
|
-
|
|
15126
|
+
updatePinia(component);
|
|
15127
|
+
updateApp(app, component);
|
|
15280
15128
|
});
|
|
15281
15129
|
}
|
|
15130
|
+
const hookApi = {
|
|
15131
|
+
hook: client.value.hook,
|
|
15132
|
+
produce: produceHook,
|
|
15133
|
+
consume: ConsumeHook
|
|
15134
|
+
};
|
|
15282
15135
|
|
|
15283
15136
|
/* Injected with object hook! */
|
|
15284
15137
|
|
|
15285
|
-
|
|
15286
|
-
|
|
15287
|
-
|
|
15288
|
-
|
|
15289
|
-
|
|
15290
|
-
|
|
15291
|
-
|
|
15292
|
-
|
|
15138
|
+
const CYAN_400 = 2282478;
|
|
15139
|
+
const ORANGE_400 = 16486972;
|
|
15140
|
+
const DARK = 6710886;
|
|
15141
|
+
const LAYER_ID = "router";
|
|
15142
|
+
const routeRecordMatcher = ref();
|
|
15143
|
+
const activeRouteRecordIndex = ref(0);
|
|
15144
|
+
const map = /* @__PURE__ */ new Map();
|
|
15145
|
+
const routeRecordMatcherState = computed(() => {
|
|
15146
|
+
return routeRecordMatcher.value?.map((route) => {
|
|
15147
|
+
const state = formatRouteRecordMatcherForStateInspector(route);
|
|
15148
|
+
const tags = formatRouteRecordForInspector(route);
|
|
15149
|
+
return {
|
|
15150
|
+
path: state.path,
|
|
15151
|
+
tags,
|
|
15152
|
+
state
|
|
15153
|
+
};
|
|
15154
|
+
}).sort((a, b) => a.path.length - b.path.length).filter((i) => !map.has(i.path) && map.set(i.path, 1));
|
|
15155
|
+
});
|
|
15156
|
+
const activeRouteRecordMatcherState = computed(() => {
|
|
15157
|
+
const state = routeRecordMatcherState.value?.[activeRouteRecordIndex.value]?.state;
|
|
15158
|
+
return {
|
|
15159
|
+
key: "options",
|
|
15160
|
+
value: state
|
|
15293
15161
|
};
|
|
15162
|
+
});
|
|
15163
|
+
function formatRouteRecordForInspector(route) {
|
|
15164
|
+
const tags = [];
|
|
15165
|
+
const { record } = route;
|
|
15166
|
+
if (record.name != null) {
|
|
15167
|
+
tags.push({
|
|
15168
|
+
label: String(record.name),
|
|
15169
|
+
bgColor: CYAN_400
|
|
15170
|
+
});
|
|
15171
|
+
}
|
|
15172
|
+
if (record.aliasOf) {
|
|
15173
|
+
tags.push({
|
|
15174
|
+
label: "alias",
|
|
15175
|
+
bgColor: ORANGE_400
|
|
15176
|
+
});
|
|
15177
|
+
}
|
|
15178
|
+
if (record.redirect) {
|
|
15179
|
+
tags.push({
|
|
15180
|
+
label: typeof record.redirect === "string" ? `redirect: ${record.redirect}` : "redirects",
|
|
15181
|
+
bgColor: DARK
|
|
15182
|
+
});
|
|
15183
|
+
}
|
|
15184
|
+
return tags;
|
|
15294
15185
|
}
|
|
15295
|
-
function
|
|
15296
|
-
const
|
|
15297
|
-
const
|
|
15298
|
-
|
|
15299
|
-
|
|
15300
|
-
|
|
15301
|
-
|
|
15302
|
-
|
|
15186
|
+
function formatRouteRecordMatcherForStateInspector(route) {
|
|
15187
|
+
const { record } = route;
|
|
15188
|
+
const fields = {
|
|
15189
|
+
path: record.path
|
|
15190
|
+
};
|
|
15191
|
+
if (record.name != null)
|
|
15192
|
+
fields.name = record.name;
|
|
15193
|
+
fields.regexp = route.re;
|
|
15194
|
+
if (route.keys.length)
|
|
15195
|
+
fields.keys = toRaw(route.keys);
|
|
15196
|
+
if (record.redirect != null)
|
|
15197
|
+
fields.redirect = record.redirect;
|
|
15198
|
+
if (route.alias.length)
|
|
15199
|
+
fields.aliases = route.alias.map((alias) => alias.record.path);
|
|
15200
|
+
if (Object.keys(route.record.meta).length)
|
|
15201
|
+
fields.meta = route.record.meta;
|
|
15202
|
+
fields.score = toRaw(route.score);
|
|
15203
|
+
return fields;
|
|
15204
|
+
}
|
|
15205
|
+
function toggleRouteRecordMatcher(index) {
|
|
15206
|
+
activeRouteRecordIndex.value = index;
|
|
15207
|
+
}
|
|
15208
|
+
function formatRouteLocation(routeLocation) {
|
|
15209
|
+
const copy = Object.assign({}, routeLocation, {
|
|
15210
|
+
// remove variables that can contain vue instances
|
|
15211
|
+
matched: routeLocation.matched.map(
|
|
15212
|
+
(matched) => reactiveOmit(matched, ["instances", "children", "aliasOf"])
|
|
15213
|
+
)
|
|
15303
15214
|
});
|
|
15215
|
+
return copy;
|
|
15216
|
+
}
|
|
15217
|
+
function subscribeRouterChanged(router2) {
|
|
15218
|
+
router2.onError((error, to) => {
|
|
15219
|
+
timelineApi.addTimelineEvent({
|
|
15220
|
+
layerId: LAYER_ID,
|
|
15221
|
+
event: {
|
|
15222
|
+
title: "Error during Navigation",
|
|
15223
|
+
subtitle: to.fullPath,
|
|
15224
|
+
time: Date.now(),
|
|
15225
|
+
now: Date.now(),
|
|
15226
|
+
data: { error: error.message }
|
|
15227
|
+
}
|
|
15228
|
+
});
|
|
15229
|
+
});
|
|
15230
|
+
router2.beforeEach((to, from) => {
|
|
15231
|
+
const data = {
|
|
15232
|
+
guard: "beforeEach",
|
|
15233
|
+
from: formatRouteLocation(
|
|
15234
|
+
from
|
|
15235
|
+
),
|
|
15236
|
+
to: formatRouteLocation(to)
|
|
15237
|
+
};
|
|
15238
|
+
timelineApi.addTimelineEvent({
|
|
15239
|
+
layerId: LAYER_ID,
|
|
15240
|
+
event: {
|
|
15241
|
+
time: Date.now(),
|
|
15242
|
+
now: Date.now(),
|
|
15243
|
+
title: "Start of navigation",
|
|
15244
|
+
subtitle: to.fullPath,
|
|
15245
|
+
data
|
|
15246
|
+
}
|
|
15247
|
+
});
|
|
15248
|
+
});
|
|
15249
|
+
router2.afterEach((to, from, failure) => {
|
|
15250
|
+
const data = {
|
|
15251
|
+
guard: "afterEach"
|
|
15252
|
+
};
|
|
15253
|
+
if (failure) {
|
|
15254
|
+
data.failure = failure ? failure.message : "";
|
|
15255
|
+
data.status = "❌";
|
|
15256
|
+
} else {
|
|
15257
|
+
data.status = "✅";
|
|
15258
|
+
}
|
|
15259
|
+
data.from = formatRouteLocation(from);
|
|
15260
|
+
data.to = formatRouteLocation(to);
|
|
15261
|
+
timelineApi.addTimelineEvent({
|
|
15262
|
+
layerId: LAYER_ID,
|
|
15263
|
+
event: {
|
|
15264
|
+
title: "End of navigation",
|
|
15265
|
+
subtitle: to.fullPath,
|
|
15266
|
+
time: Date.now(),
|
|
15267
|
+
now: Date.now(),
|
|
15268
|
+
data
|
|
15269
|
+
}
|
|
15270
|
+
});
|
|
15271
|
+
});
|
|
15272
|
+
}
|
|
15273
|
+
function initRoutes() {
|
|
15274
|
+
if (router$1.value) {
|
|
15275
|
+
const matcher = createRouterMatcher(router$1.value?.options.routes, router$1.value?.options);
|
|
15276
|
+
routeRecordMatcher.value = matcher.getRoutes();
|
|
15277
|
+
timelineApi.addTimelineLayer({
|
|
15278
|
+
id: LAYER_ID,
|
|
15279
|
+
label: "Router Navigations"
|
|
15280
|
+
});
|
|
15281
|
+
subscribeRouterChanged(router$1.value);
|
|
15282
|
+
}
|
|
15304
15283
|
}
|
|
15305
15284
|
|
|
15306
15285
|
/* Injected with object hook! */
|
|
@@ -15322,12 +15301,26 @@ const _hoisted_2 = {
|
|
|
15322
15301
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15323
15302
|
__name: "App",
|
|
15324
15303
|
setup(__props) {
|
|
15325
|
-
const router = useRouter();
|
|
15326
15304
|
const route = useRoute();
|
|
15305
|
+
const router = useRouter();
|
|
15327
15306
|
const { scale } = useDevToolsSettings();
|
|
15328
15307
|
const { route: _route, isFirstVisit } = useFrameState();
|
|
15329
|
-
initGlobalHook();
|
|
15330
15308
|
useColorMode();
|
|
15309
|
+
hookApi.hook.on("init:vue:app", () => {
|
|
15310
|
+
const client = useDevtoolsClient();
|
|
15311
|
+
const frameState = useFrameState();
|
|
15312
|
+
const hookBuffer = client.value.hookBuffer;
|
|
15313
|
+
client.value.markClientLoaded();
|
|
15314
|
+
hookApi.produce();
|
|
15315
|
+
initPerfTimeline(hookBuffer.filter(([type]) => type.startsWith("perf:")));
|
|
15316
|
+
hookApi.consume(hookBuffer.filter(([type]) => type.startsWith("component:")));
|
|
15317
|
+
initRoutes();
|
|
15318
|
+
initPinia();
|
|
15319
|
+
hookApi.hook.on("host:inspector:close", () => {
|
|
15320
|
+
if (route.path === "/__inspecting")
|
|
15321
|
+
router.replace(frameState.route.value);
|
|
15322
|
+
});
|
|
15323
|
+
});
|
|
15331
15324
|
router.beforeEach((to, _, next) => {
|
|
15332
15325
|
if (to.path === "/" && !isFirstVisit.value) {
|
|
15333
15326
|
next("/overview");
|
|
@@ -15342,9 +15335,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15342
15335
|
_route.value = path;
|
|
15343
15336
|
});
|
|
15344
15337
|
onMounted(() => {
|
|
15345
|
-
setTimeout(() => {
|
|
15346
|
-
initRoutes();
|
|
15347
|
-
}, 200);
|
|
15348
15338
|
watchEffect(() => {
|
|
15349
15339
|
document.body.style.fontSize = `${scale.value * 15}px`;
|
|
15350
15340
|
});
|
|
@@ -15369,6 +15359,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15369
15359
|
|
|
15370
15360
|
/* Injected with object hook! */
|
|
15371
15361
|
|
|
15362
|
+
function initDevtoolsClient() {
|
|
15363
|
+
window.__VUE_DEVTOOLS_VIEW__ = {
|
|
15364
|
+
loaded: false,
|
|
15365
|
+
setClient(_client) {
|
|
15366
|
+
const client = useDevtoolsClient();
|
|
15367
|
+
client.value = _client;
|
|
15368
|
+
client.value.markClientLoaded = () => {
|
|
15369
|
+
this.loaded = true;
|
|
15370
|
+
};
|
|
15371
|
+
initApp(client.value.hookBuffer.find(([type]) => type === "app:init"));
|
|
15372
|
+
}
|
|
15373
|
+
};
|
|
15374
|
+
}
|
|
15375
|
+
|
|
15376
|
+
/* Injected with object hook! */
|
|
15377
|
+
|
|
15372
15378
|
const tailwind = '';
|
|
15373
15379
|
/* Injected with object hook! */
|
|
15374
15380
|
|
|
@@ -15379,8 +15385,7 @@ const __uno = '';
|
|
|
15379
15385
|
/* Injected with object hook! */
|
|
15380
15386
|
|
|
15381
15387
|
window.console.log = window.parent.print;
|
|
15382
|
-
|
|
15383
|
-
connect();
|
|
15388
|
+
initDevtoolsClient();
|
|
15384
15389
|
const app = createApp(_sfc_main);
|
|
15385
15390
|
const router = createRouter({
|
|
15386
15391
|
history: createMemoryHistory(),
|
|
@@ -15392,4 +15397,4 @@ app.mount("#app");
|
|
|
15392
15397
|
|
|
15393
15398
|
/* Injected with object hook! */
|
|
15394
15399
|
|
|
15395
|
-
export {
|
|
15400
|
+
export { routes as $, vModelCheckbox as A, withKeys as B, useTabs as C, useCategorizedTabs as D, createTextVNode as E, Fragment as F, useDevToolsSettings as G, _sfc_main$3 as H, _sfc_main$5 as I, router$1 as J, routeRecordMatcherState as K, activeRouteRecordMatcherState as L, activeRouteRecordIndex as M, toggleRouteRecordMatcher as N, normalizeStyle as O, __unplugin_components_1 as P, ref as Q, computed as R, piniaStoresId as S, reactivePick as T, toRaw as U, piniaState as V, piniaGetters as W, resolveComponent as X, withModifiers as Y, currentRoute as Z, _sfc_main$9 as _, createBlock as a, vueVersion as a0, __unplugin_components_0 as a1, useColorMode as a2, reactive as a3, useElementBounding as a4, nextTick as a5, watchEffect as a6, useStorage as a7, vModelText as a8, useDark as a9, popScopeId as aA, vModelDynamic as aB, __vitePreload as aC, useEventListener as aD, useDevtoolsClient as aE, watch as aa, getInstanceName as ab, classify as ac, kebabize as ad, isFragment as ae, camelize as af, returnError as ag, isBeingDestroyed as ah, getUniqueComponentId as ai, getRenderKey as aj, shallowRef as ak, onVueInstanceUpdate as al, instance as am, h as an, mergeProps as ao, resolveDynamicComponent as ap, useElementSize as aq, onClickOutside as ar, Transition as as, useStyleTag as at, computedAsync as au, useTimeAgo as av, onKeyDown as aw, _export_sfc as ax, resolveDirective as ay, pushScopeId as az, createVNode as b, createElementBlock as c, defineComponent as d, createBaseVNode as e, onMounted as f, onUnmounted as g, timelineLayer as h, activeTimelineEvents as i, activeTimelineEventIndex as j, toggleTimelineEventIndex as k, timelineEventDetails as l, createCommentVNode as m, normalizeClass as n, openBlock as o, activeLayerId as p, toggleTimelineLayer as q, renderList as r, useVModel as s, toDisplayString as t, unref as u, renderSlot as v, withCtx as w, withDirectives as x, vModelSelect as y, isRef as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as defineComponent,
|
|
2
|
-
import { i as inspectClientUrl } from './rpc-
|
|
1
|
+
import { d as defineComponent, a2 as useColorMode, Q as ref, R as computed, a3 as reactive, a4 as useElementBounding, f as onMounted, a5 as nextTick, a6 as watchEffect, g as onUnmounted, o as openBlock, c as createElementBlock, b as createVNode, u as unref } from './index-fdc692cd.js';
|
|
2
|
+
import { i as inspectClientUrl } from './rpc-83933350.js';
|
|
3
3
|
|
|
4
4
|
const iframeCacheMap = /* @__PURE__ */ new Map();
|
|
5
5
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as __unplugin_components_0$1 } from './VPanelGrids-
|
|
2
|
-
import { Q as ref, R as computed,
|
|
3
|
-
import { r as rpc } from './rpc-
|
|
1
|
+
import { _ as __unplugin_components_0$1 } from './VPanelGrids-ca060aaf.js';
|
|
2
|
+
import { Q as ref, R as computed, $ as routes, d as defineComponent, o as openBlock, a as createBlock, w as withCtx, e as createBaseVNode, b as createVNode, t as toDisplayString, u as unref, a0 as vueVersion, E as createTextVNode, c as createElementBlock, F as Fragment, a1 as __unplugin_components_0, P as __unplugin_components_1, X as resolveComponent, _ as _sfc_main$1 } from './index-fdc692cd.js';
|
|
3
|
+
import { r as rpc } from './rpc-83933350.js';
|
|
4
4
|
|
|
5
|
-
const version = "0.0.1-alpha.
|
|
5
|
+
const version = "0.0.1-alpha.6";
|
|
6
6
|
|
|
7
7
|
/* Injected with object hook! */
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as _sfc_main$3, a as __unplugin_components_3 } from './VTextInput.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { d as defineComponent, Q as ref, R as computed, X as resolveComponent, u as unref, o as openBlock, c as createElementBlock, e as createBaseVNode, t as toDisplayString, a as createBlock, w as withCtx, Y as withModifiers, F as Fragment, r as renderList, m as createCommentVNode, b as createVNode, E as createTextVNode, n as normalizeClass, _ as _sfc_main$4, P as __unplugin_components_1, f as onMounted, Z as currentRoute,
|
|
3
|
-
import './VIconTitle.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import './VIcon.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as _sfc_main$3, a as __unplugin_components_3 } from './VTextInput.vue_vue_type_script_setup_true_lang-da58117b.js';
|
|
2
|
+
import { d as defineComponent, Q as ref, R as computed, X as resolveComponent, u as unref, o as openBlock, c as createElementBlock, e as createBaseVNode, t as toDisplayString, a as createBlock, w as withCtx, Y as withModifiers, F as Fragment, r as renderList, m as createCommentVNode, b as createVNode, E as createTextVNode, n as normalizeClass, _ as _sfc_main$4, P as __unplugin_components_1, f as onMounted, Z as currentRoute, J as router, z as isRef, B as withKeys, $ as routes } from './index-fdc692cd.js';
|
|
3
|
+
import './VIconTitle.vue_vue_type_script_setup_true_lang-2cc91dc7.js';
|
|
4
|
+
import './VIcon.vue_vue_type_script_setup_true_lang-c1dee1f2.js';
|
|
5
5
|
|
|
6
6
|
const _hoisted_1$2 = {
|
|
7
7
|
block: "",
|
|
@@ -261,6 +261,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
261
261
|
}
|
|
262
262
|
function navigateToRoute(path) {
|
|
263
263
|
router.value?.push(path);
|
|
264
|
+
routeInput.value = path;
|
|
264
265
|
}
|
|
265
266
|
return (_ctx, _cache) => {
|
|
266
267
|
const _component_VTextInput = _sfc_main$3;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g, M, _ as _sfc_main$1 } from './splitpanes.es-
|
|
2
|
-
import { d as defineComponent, Q as ref, R as computed, S as piniaStoresId, T as reactivePick, U as toRaw, V as piniaState, W as piniaGetters, u as unref, o as openBlock, c as createElementBlock, b as createVNode, w as withCtx, e as createBaseVNode, F as Fragment, r as renderList, n as normalizeClass, t as toDisplayString, a as createBlock } from './index-
|
|
3
|
-
import './VIcon.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { g, M, _ as _sfc_main$1 } from './splitpanes.es-8525e2d4.js';
|
|
2
|
+
import { d as defineComponent, Q as ref, R as computed, S as piniaStoresId, T as reactivePick, U as toRaw, V as piniaState, W as piniaGetters, u as unref, o as openBlock, c as createElementBlock, b as createVNode, w as withCtx, e as createBaseVNode, F as Fragment, r as renderList, n as normalizeClass, t as toDisplayString, a as createBlock } from './index-fdc692cd.js';
|
|
3
|
+
import './VIcon.vue_vue_type_script_setup_true_lang-c1dee1f2.js';
|
|
4
4
|
|
|
5
5
|
const _hoisted_1 = {
|
|
6
6
|
"h-screen": "",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as __unplugin_components_0 } from './VPanelGrids-
|
|
2
|
-
import { _ as __unplugin_components_7 } from './VCard-
|
|
3
|
-
import { d as defineComponent,
|
|
4
|
-
import { g, M, _ as _sfc_main$1 } from './splitpanes.es-
|
|
5
|
-
import './VIcon.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as __unplugin_components_0 } from './VPanelGrids-ca060aaf.js';
|
|
2
|
+
import { _ as __unplugin_components_7 } from './VCard-d71a2589.js';
|
|
3
|
+
import { d as defineComponent, u as unref, J as router, o as openBlock, c as createElementBlock, b as createVNode, w as withCtx, e as createBaseVNode, F as Fragment, r as renderList, K as routeRecordMatcherState, L as activeRouteRecordMatcherState, a as createBlock, I as _sfc_main$2, n as normalizeClass, M as activeRouteRecordIndex, N as toggleRouteRecordMatcher, E as createTextVNode, t as toDisplayString, O as normalizeStyle, P as __unplugin_components_1 } from './index-fdc692cd.js';
|
|
4
|
+
import { g, M, _ as _sfc_main$1 } from './splitpanes.es-8525e2d4.js';
|
|
5
|
+
import './VIcon.vue_vue_type_script_setup_true_lang-c1dee1f2.js';
|
|
6
6
|
|
|
7
7
|
const _hoisted_1 = {
|
|
8
8
|
key: 0,
|
|
@@ -33,8 +33,6 @@ const _hoisted_7 = /* @__PURE__ */ createBaseVNode("p", {
|
|
|
33
33
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
34
34
|
__name: "routes",
|
|
35
35
|
setup(__props) {
|
|
36
|
-
onMounted(() => {
|
|
37
|
-
});
|
|
38
36
|
return (_ctx, _cache) => {
|
|
39
37
|
const _component_VBadge = __unplugin_components_1;
|
|
40
38
|
const _component_StateFields = _sfc_main$1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { d as defineComponent, s as useVModel, o as openBlock, c as createElementBlock, v as renderSlot, x as withDirectives, y as vModelSelect, u as unref, e as createBaseVNode, t as toDisplayString, m as createCommentVNode, z as isRef, a as createBlock, A as vModelCheckbox, B as withKeys, C as useTabs, D as useCategorizedTabs, b as createVNode, F as Fragment, r as renderList, w as withCtx, E as createTextVNode, G as useDevToolsSettings, _ as _sfc_main$5, H as _sfc_main$6, n as normalizeClass, I as _sfc_main$7 } from './index-
|
|
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-c1dee1f2.js';
|
|
2
|
+
import { d as defineComponent, s as useVModel, o as openBlock, c as createElementBlock, v as renderSlot, x as withDirectives, y as vModelSelect, u as unref, e as createBaseVNode, t as toDisplayString, m as createCommentVNode, z as isRef, a as createBlock, A as vModelCheckbox, B as withKeys, C as useTabs, D as useCategorizedTabs, b as createVNode, F as Fragment, r as renderList, w as withCtx, E as createTextVNode, G as useDevToolsSettings, _ as _sfc_main$5, H as _sfc_main$6, n as normalizeClass, I as _sfc_main$7 } from './index-fdc692cd.js';
|
|
3
|
+
import { _ as _sfc_main$4 } from './VIconTitle.vue_vue_type_script_setup_true_lang-2cc91dc7.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"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { d as defineComponent, o as openBlock, a as createBlock, n as normalizeClass, z as isRef, U as toRaw, R as computed, X as resolveComponent, c as createElementBlock, r as renderList, e as createBaseVNode, t as toDisplayString, m as createCommentVNode, u as unref, F as Fragment, Q as ref, b as createVNode,
|
|
1
|
+
import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-c1dee1f2.js';
|
|
2
|
+
import { d as defineComponent, o as openBlock, a as createBlock, n as normalizeClass, z as isRef, U as toRaw, R as computed, X as resolveComponent, c as createElementBlock, r as renderList, e as createBaseVNode, t as toDisplayString, m as createCommentVNode, u as unref, F as Fragment, Q as ref, b as createVNode, an as h, v as renderSlot, O as normalizeStyle } from './index-fdc692cd.js';
|
|
3
3
|
|
|
4
4
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "VExpandIcon",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g, M, _ as _sfc_main$2 } from './splitpanes.es-
|
|
2
|
-
import { _ as __unplugin_components_0 } from './VPanelGrids-
|
|
3
|
-
import { _ as __unplugin_components_7 } from './VCard-
|
|
4
|
-
import { d as defineComponent, o as openBlock, c as createElementBlock, F as Fragment, r as renderList, a as createBlock, w as withCtx, b as createVNode, e as createBaseVNode, n as normalizeClass, t as toDisplayString, u as unref, f as onMounted, g as onUnmounted, h as timelineLayer, i as activeTimelineEvents, j as activeTimelineEventIndex, k as toggleTimelineEventIndex, l as timelineEventDetails, m as createCommentVNode, p as activeLayerId, q as toggleTimelineLayer } from './index-
|
|
5
|
-
import './VIcon.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { g, M, _ as _sfc_main$2 } from './splitpanes.es-8525e2d4.js';
|
|
2
|
+
import { _ as __unplugin_components_0 } from './VPanelGrids-ca060aaf.js';
|
|
3
|
+
import { _ as __unplugin_components_7 } from './VCard-d71a2589.js';
|
|
4
|
+
import { d as defineComponent, o as openBlock, c as createElementBlock, F as Fragment, r as renderList, a as createBlock, w as withCtx, b as createVNode, e as createBaseVNode, n as normalizeClass, t as toDisplayString, u as unref, f as onMounted, g as onUnmounted, h as timelineLayer, i as activeTimelineEvents, j as activeTimelineEventIndex, k as toggleTimelineEventIndex, l as timelineEventDetails, m as createCommentVNode, p as activeLayerId, q as toggleTimelineLayer } from './index-fdc692cd.js';
|
|
5
|
+
import './VIcon.vue_vue_type_script_setup_true_lang-c1dee1f2.js';
|
|
6
6
|
|
|
7
7
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
8
8
|
|
package/dist/client/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
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-
|
|
8
|
+
<script type="module" crossorigin src="./assets/index-fdc692cd.js"></script>
|
|
9
9
|
<link rel="stylesheet" href="./assets/index-f0fa9f81.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/package.json
CHANGED
package/src/node/Container.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed, defineProps, ref } from 'vue'
|
|
2
|
+
import { computed, defineProps, onMounted, ref } from 'vue'
|
|
3
3
|
import vueDevtoolsOptions from 'virtual:vue-devtools-options'
|
|
4
4
|
|
|
5
5
|
const props = defineProps({
|
|
@@ -100,7 +100,7 @@ const toggleButtonPosition = computed(() => {
|
|
|
100
100
|
'--hover-translate': 'translate(0, -3px)',
|
|
101
101
|
}
|
|
102
102
|
})
|
|
103
|
-
const panelPosition = computed(() => panelVisible.value ? panelStyle.value : { zIndex: -100000 })
|
|
103
|
+
const panelPosition = computed(() => panelVisible.value ? panelStyle.value : { zIndex: -100000, left: '-9999px', top: '-9999px' })
|
|
104
104
|
|
|
105
105
|
function togglePanel() {
|
|
106
106
|
panelVisible.value = !panelVisible.value
|
|
@@ -118,7 +118,7 @@ function disableComponentInspector() {
|
|
|
118
118
|
panelState.value.viewMode = 'default'
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
function waitForClientInjection(retry =
|
|
121
|
+
function waitForClientInjection(retry = 30, timeout = 200) {
|
|
122
122
|
const test = () => !!iframe.value?.contentWindow?.__VUE_DEVTOOLS_VIEW__
|
|
123
123
|
|
|
124
124
|
if (test())
|
|
@@ -131,7 +131,6 @@ function waitForClientInjection(retry = 10, timeout = 200) {
|
|
|
131
131
|
resolve()
|
|
132
132
|
}
|
|
133
133
|
else if (retry-- <= 0) {
|
|
134
|
-
console.log(iframe.value.contentWindow.__VUE_DEVTOOLS_VIEW__)
|
|
135
134
|
clearInterval(interval)
|
|
136
135
|
// eslint-disable-next-line prefer-promise-reject-errors
|
|
137
136
|
reject('Vue Devtools client injection failed')
|
|
@@ -181,7 +180,7 @@ function initPanelPosition() {
|
|
|
181
180
|
function collectHookBuffer() {
|
|
182
181
|
let sortId = 0
|
|
183
182
|
const DevtoolsHooks = {
|
|
184
|
-
|
|
183
|
+
APP_INIT: 'app:init',
|
|
185
184
|
COMPONENT_UPDATED: 'component:updated',
|
|
186
185
|
COMPONENT_ADDED: 'component:added',
|
|
187
186
|
COMPONENT_REMOVED: 'component:removed',
|
|
@@ -190,11 +189,21 @@ function collectHookBuffer() {
|
|
|
190
189
|
PERF_END: 'perf:end',
|
|
191
190
|
}
|
|
192
191
|
|
|
193
|
-
function
|
|
194
|
-
return component?.root?.type?.devtools?.hide || iframe.value?.contentWindow?.__VUE_DEVTOOLS_VIEW__
|
|
192
|
+
function stopCollect(component) {
|
|
193
|
+
return component?.root?.type?.devtools?.hide || iframe.value?.contentWindow?.__VUE_DEVTOOLS_VIEW__?.loaded
|
|
195
194
|
}
|
|
195
|
+
|
|
196
|
+
props.hook.on(DevtoolsHooks.APP_INIT, (app) => {
|
|
197
|
+
if (!app || app._instance.type?.devtools?.hide)
|
|
198
|
+
return
|
|
199
|
+
|
|
200
|
+
hookBuffer.push([DevtoolsHooks.APP_INIT, {
|
|
201
|
+
app,
|
|
202
|
+
}])
|
|
203
|
+
})
|
|
204
|
+
|
|
196
205
|
props.hook.on(DevtoolsHooks.PERF_START, (app, uid, component, type, time) => {
|
|
197
|
-
if (
|
|
206
|
+
if (stopCollect(component))
|
|
198
207
|
return
|
|
199
208
|
|
|
200
209
|
hookBuffer.push([DevtoolsHooks.PERF_START, {
|
|
@@ -208,7 +217,7 @@ function collectHookBuffer() {
|
|
|
208
217
|
}])
|
|
209
218
|
})
|
|
210
219
|
props.hook.on(DevtoolsHooks.PERF_END, (app, uid, component, type, time) => {
|
|
211
|
-
if (
|
|
220
|
+
if (stopCollect(component))
|
|
212
221
|
return
|
|
213
222
|
|
|
214
223
|
hookBuffer.push([DevtoolsHooks.PERF_END, {
|
|
@@ -220,16 +229,16 @@ function collectHookBuffer() {
|
|
|
220
229
|
time,
|
|
221
230
|
sortId: sortId++,
|
|
222
231
|
}])
|
|
223
|
-
})
|
|
232
|
+
})
|
|
224
233
|
|
|
225
|
-
[
|
|
234
|
+
;[
|
|
226
235
|
DevtoolsHooks.COMPONENT_UPDATED,
|
|
227
236
|
DevtoolsHooks.COMPONENT_ADDED,
|
|
228
237
|
DevtoolsHooks.COMPONENT_REMOVED,
|
|
229
238
|
DevtoolsHooks.COMPONENT_EMIT,
|
|
230
239
|
].forEach((item) => {
|
|
231
240
|
props.hook.on(item, (app, uid, parentUid, component) => {
|
|
232
|
-
if (!app || (typeof uid !== 'number' && !uid) || !component ||
|
|
241
|
+
if (!app || (typeof uid !== 'number' && !uid) || !component || stopCollect(component))
|
|
233
242
|
return
|
|
234
243
|
hookBuffer.push([item, {
|
|
235
244
|
app, uid, parentUid, component,
|
|
@@ -238,6 +247,13 @@ function collectHookBuffer() {
|
|
|
238
247
|
})
|
|
239
248
|
}
|
|
240
249
|
|
|
250
|
+
onMounted(() => {
|
|
251
|
+
window.addEventListener('keydown', (e) => {
|
|
252
|
+
if (e.code === 'KeyD' && e.altKey && e.shiftKey)
|
|
253
|
+
togglePanel()
|
|
254
|
+
})
|
|
255
|
+
})
|
|
256
|
+
|
|
241
257
|
collectHookBuffer()
|
|
242
258
|
initPanelPosition()
|
|
243
259
|
</script>
|