vite-plugin-vue-devtools 1.0.0-rc.8 → 7.0.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/README.md +8 -172
- package/dist/client/assets/css-a-KJtBLB.js +505 -0
- package/dist/client/assets/diff--l9-nN5b.js +1 -0
- package/dist/client/assets/html-5-AIf93y.js +74 -0
- package/dist/client/assets/index-NNrCE7Vx.css +1 -0
- package/dist/client/assets/index-U-H6nGkn.js +1080 -0
- package/dist/client/assets/javascript-Of8SnKfU.js +699 -0
- package/dist/client/assets/json-t1qiHl76.js +25 -0
- package/dist/client/assets/onig-mBJmD8D5.js +1 -0
- package/dist/client/assets/shellscript-h1L64xId.js +4 -0
- package/dist/client/assets/typescript-b1Nw_bQe.js +666 -0
- package/dist/client/assets/unocss-runtime-kftsoZPE.js +2 -0
- package/dist/client/assets/vitesse-dark-5VceXvs6.js +1 -0
- package/dist/client/assets/vitesse-light-HOMMxGxw.js +1 -0
- package/dist/client/assets/vue-apis-Nh9IahXf.js +1 -0
- package/dist/client/assets/vue-html-eJ6eRCYJ.js +1 -0
- package/dist/client/assets/vue-nOwTje1i.js +2002 -0
- package/dist/client/assets/yaml-FtfhlYqU.js +200 -0
- package/dist/client/color-scheme.js +6 -0
- package/dist/client/css-hXHVOlj5.js +511 -0
- package/dist/client/devtools-panel.css +1 -0
- package/dist/client/devtools-panel.js +77722 -0
- package/dist/client/diff-nydZCsp5.js +7 -0
- package/dist/client/html-r4dic7N6.js +84 -0
- package/dist/client/index.html +13 -21
- package/dist/client/javascript-iu2g-HpL.js +705 -0
- package/dist/client/json-6ED1Ntns.js +31 -0
- package/dist/client/onig-NuJRzyUz.js +4 -0
- package/dist/client/shellscript-lFevXvOp.js +10 -0
- package/dist/client/typescript-SzFP_hYV.js +672 -0
- package/dist/client/unocss-runtime-c8-Zzj4C.js +1974 -0
- package/dist/client/vitesse-dark-Q3b2Vb5y.js +683 -0
- package/dist/client/vitesse-light-T_UJmsth.js +681 -0
- package/dist/client/vue-apis-j7ljdRbm.js +1127 -0
- package/dist/client/vue-html-IdJrwrVJ.js +16 -0
- package/dist/client/vue-vFbCUJfs.js +2118 -0
- package/dist/client/yaml-n_HyS7lr.js +206 -0
- package/dist/vite.cjs +116 -13794
- package/dist/vite.d.cts +6 -9
- package/dist/vite.d.mts +6 -9
- package/dist/vite.d.ts +6 -9
- package/dist/vite.mjs +113 -13774
- package/package.json +18 -19
- package/src/overlay/devtools-overlay.css +1 -0
- package/src/overlay/devtools-overlay.js +4 -0
- package/src/overlay.js +77 -0
- package/README.zh-CN.md +0 -186
- package/client.d.ts +0 -63
- package/dist/client/assets/DrawerRight.vue_vue_type_script_setup_true_lang-99688d1e.js +0 -81
- package/dist/client/assets/IconButton.vue_vue_type_script_setup_true_lang-48a6bea2.js +0 -26
- package/dist/client/assets/IconTitle.vue_vue_type_script_setup_true_lang-adb17252.js +0 -30
- package/dist/client/assets/IframeView.vue_vue_type_script_setup_true_lang-4ccdbf42.js +0 -96
- package/dist/client/assets/PanelGrids-664603ce.js +0 -15
- package/dist/client/assets/SectionBlock-0024395a.css +0 -18
- package/dist/client/assets/SectionBlock-04b7ab1e.js +0 -109
- package/dist/client/assets/StateFields.vue_vue_type_script_setup_true_lang-48cf50ad.js +0 -381
- package/dist/client/assets/Switch.vue_vue_type_script_setup_true_lang-d74bf986.js +0 -87
- package/dist/client/assets/TextInput.vue_vue_type_script_setup_true_lang-65c09c69.js +0 -38
- package/dist/client/assets/__eyedropper-7bbec9b2.js +0 -149
- package/dist/client/assets/_commonjsHelpers-7e83dbf2.js +0 -34
- package/dist/client/assets/assets-641818bf.js +0 -1597
- package/dist/client/assets/component-docs-7bd37475.js +0 -195
- package/dist/client/assets/components-b0181ea4.js +0 -790
- package/dist/client/assets/data-8729d21a.js +0 -399
- package/dist/client/assets/dayjs.min-f03ccd82.js +0 -13
- package/dist/client/assets/documentations-7cba8670.js +0 -276
- package/dist/client/assets/fuse.esm-c317b696.js +0 -1782
- package/dist/client/assets/graph-edf83976.js +0 -52092
- package/dist/client/assets/index-77d53487.js +0 -18551
- package/dist/client/assets/index-b5475fe0.css +0 -482
- package/dist/client/assets/inspect-d17224a9.js +0 -20
- package/dist/client/assets/jse-theme-dark-333a4654.js +0 -1565
- package/dist/client/assets/jse-theme-dark-351d62d5.css +0 -114
- package/dist/client/assets/npm-076ecb7c.js +0 -550
- package/dist/client/assets/npm-832f3f2c.css +0 -209
- package/dist/client/assets/overview-d99e7f18.js +0 -303
- package/dist/client/assets/pages-fca7d8d3.js +0 -561
- package/dist/client/assets/pinia-3f5b6c57.js +0 -108
- package/dist/client/assets/pinia-7ed2c830.svg +0 -1
- package/dist/client/assets/rerender-trace-3afd48a1.css +0 -14
- package/dist/client/assets/rerender-trace-5fc6fb22.js +0 -436
- package/dist/client/assets/routes-9567a43f.js +0 -132
- package/dist/client/assets/settings-5a2e184c.js +0 -9652
- package/dist/client/assets/settings-7bce89ae.css +0 -11
- package/dist/client/assets/splitpanes.es-26cdc434.js +0 -343
- package/dist/client/assets/timeline-20d79e43.js +0 -1480
- package/dist/client/assets/timeline-b315b2e0.css +0 -1
- package/dist/client/assets/vue-5d4e674c.svg +0 -1
- package/dist/client/assets/vueuse-995374f6.svg +0 -1
- package/src/app.js +0 -4
- package/src/views/ComponentInspector.vue +0 -68
- package/src/views/FrameBox.vue +0 -231
- package/src/views/Main.vue +0 -435
- package/src/views/RerenderIndicator.vue +0 -37
- package/src/views/composables.ts +0 -630
- package/src/views/utils.ts +0 -241
|
@@ -1,436 +0,0 @@
|
|
|
1
|
-
import { v as defineComponent, a$ as ref, c5 as DevToolsHooks, r as resolveComponent, o as openBlock, e as createElementBlock, x as createBaseVNode, u as createVNode, h as withCtx, z as unref, c as createBlock, a9 as createTextVNode, g as createCommentVNode, F as Fragment, i as renderList, c6 as useDevToolsClient, c7 as rootPath, _ as __unplugin_components_7, c4 as __unplugin_components_1, p as pushScopeId, a as popScopeId, y as toDisplayString, bK as _export_sfc } from './index-77d53487.js';
|
|
2
|
-
import { d as dayjs } from './dayjs.min-f03ccd82.js';
|
|
3
|
-
import { g as getInstanceName, a as getSetupStateInfo, t as toRaw } from './data-8729d21a.js';
|
|
4
|
-
import './_commonjsHelpers-7e83dbf2.js';
|
|
5
|
-
|
|
6
|
-
const _withScopeId = (n) => (pushScopeId("data-v-61b9e26e"), n = n(), popScopeId(), n);
|
|
7
|
-
const _hoisted_1 = {
|
|
8
|
-
"h-full": "",
|
|
9
|
-
"w-full": "",
|
|
10
|
-
"of-auto": "",
|
|
11
|
-
"n-panel-grids": ""
|
|
12
|
-
};
|
|
13
|
-
const _hoisted_2 = { "w-full": "" };
|
|
14
|
-
const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("p", {
|
|
15
|
-
"text-xs": "",
|
|
16
|
-
"op-50": ""
|
|
17
|
-
}, " Start Tracing ", -1));
|
|
18
|
-
const _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("p", {
|
|
19
|
-
"text-xs": "",
|
|
20
|
-
"op-50": ""
|
|
21
|
-
}, " Clear ", -1));
|
|
22
|
-
const _hoisted_5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("p", {
|
|
23
|
-
"text-xs": "",
|
|
24
|
-
"op-50": ""
|
|
25
|
-
}, " Capture rerender elements ", -1));
|
|
26
|
-
const _hoisted_6 = {
|
|
27
|
-
key: 0,
|
|
28
|
-
flex: "~ items-center justify-center",
|
|
29
|
-
"h-screen": ""
|
|
30
|
-
};
|
|
31
|
-
const _hoisted_7 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("i", {
|
|
32
|
-
class: "i-fluent:record-12-regular",
|
|
33
|
-
text: "4.7",
|
|
34
|
-
"cursor-pointer": "",
|
|
35
|
-
"text-secondary": "",
|
|
36
|
-
hover: "text-black dark:text-white"
|
|
37
|
-
}, null, -1));
|
|
38
|
-
const _hoisted_8 = [
|
|
39
|
-
_hoisted_7
|
|
40
|
-
];
|
|
41
|
-
const _hoisted_9 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("p", { flex: "~ items-center" }, [
|
|
42
|
-
/* @__PURE__ */ createTextVNode(" Click the clear button "),
|
|
43
|
-
/* @__PURE__ */ createBaseVNode("span", {
|
|
44
|
-
border: "~ base",
|
|
45
|
-
"mx-1": "",
|
|
46
|
-
"inline-flex": "",
|
|
47
|
-
"items-center": "",
|
|
48
|
-
"justify-center": "",
|
|
49
|
-
p1: ""
|
|
50
|
-
}, [
|
|
51
|
-
/* @__PURE__ */ createBaseVNode("i", {
|
|
52
|
-
class: "i-grommet-icons:clear",
|
|
53
|
-
text: "3.8",
|
|
54
|
-
"text-secondary": ""
|
|
55
|
-
})
|
|
56
|
-
]),
|
|
57
|
-
/* @__PURE__ */ createTextVNode(" to clear the results. ")
|
|
58
|
-
], -1));
|
|
59
|
-
const _hoisted_10 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("p", { flex: "~ items-center" }, [
|
|
60
|
-
/* @__PURE__ */ createTextVNode(" Click the capture button "),
|
|
61
|
-
/* @__PURE__ */ createBaseVNode("span", {
|
|
62
|
-
border: "~ base",
|
|
63
|
-
"mx-1": "",
|
|
64
|
-
"inline-flex": "",
|
|
65
|
-
"items-center": "",
|
|
66
|
-
"justify-center": "",
|
|
67
|
-
p1: ""
|
|
68
|
-
}, [
|
|
69
|
-
/* @__PURE__ */ createBaseVNode("i", {
|
|
70
|
-
class: "i-tabler:capture",
|
|
71
|
-
text: "3.8",
|
|
72
|
-
"text-secondary": ""
|
|
73
|
-
})
|
|
74
|
-
]),
|
|
75
|
-
/* @__PURE__ */ createTextVNode(" to capture the rerender effect element. ")
|
|
76
|
-
], -1));
|
|
77
|
-
const _hoisted_11 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("p", { "lh-5": "" }, [
|
|
78
|
-
/* @__PURE__ */ createTextVNode(" Start tracing, do something in the page. Then,"),
|
|
79
|
-
/* @__PURE__ */ createBaseVNode("br"),
|
|
80
|
-
/* @__PURE__ */ createTextVNode(" press the stop button to show the resulting triggers for page rerenders. ")
|
|
81
|
-
], -1));
|
|
82
|
-
const _hoisted_12 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("p", { class: "loading-animation" }, " Tracing... ", -1));
|
|
83
|
-
const _hoisted_13 = { key: 1 };
|
|
84
|
-
const _hoisted_14 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("thead", {
|
|
85
|
-
border: "b r base",
|
|
86
|
-
sticky: "",
|
|
87
|
-
display: "table-header-group",
|
|
88
|
-
"top-0": "",
|
|
89
|
-
"z-10": ""
|
|
90
|
-
}, [
|
|
91
|
-
/* @__PURE__ */ createBaseVNode("tr", { "bg-base": "" }, [
|
|
92
|
-
/* @__PURE__ */ createBaseVNode("th", {
|
|
93
|
-
"p-2": "",
|
|
94
|
-
"text-center": ""
|
|
95
|
-
}, " Component File "),
|
|
96
|
-
/* @__PURE__ */ createBaseVNode("th", {
|
|
97
|
-
"p-2": "",
|
|
98
|
-
"text-center": ""
|
|
99
|
-
}, " Key "),
|
|
100
|
-
/* @__PURE__ */ createBaseVNode("th", {
|
|
101
|
-
"p-2": "",
|
|
102
|
-
"text-center": ""
|
|
103
|
-
}, " Value "),
|
|
104
|
-
/* @__PURE__ */ createBaseVNode("th", {
|
|
105
|
-
"p-2": "",
|
|
106
|
-
"text-center": ""
|
|
107
|
-
}, " Data Type "),
|
|
108
|
-
/* @__PURE__ */ createBaseVNode("th", {
|
|
109
|
-
"p-2": "",
|
|
110
|
-
"text-center": ""
|
|
111
|
-
}, " Update Type "),
|
|
112
|
-
/* @__PURE__ */ createBaseVNode("th", {
|
|
113
|
-
"p-2": "",
|
|
114
|
-
"text-center": ""
|
|
115
|
-
}, " Update Time ")
|
|
116
|
-
])
|
|
117
|
-
], -1));
|
|
118
|
-
const _hoisted_15 = { border: "b r base" };
|
|
119
|
-
const _hoisted_16 = ["onClick"];
|
|
120
|
-
const _hoisted_17 = {
|
|
121
|
-
"max-w-30": "",
|
|
122
|
-
"w-30": "",
|
|
123
|
-
"of-hidden": "",
|
|
124
|
-
"text-ellipsis": "",
|
|
125
|
-
"ws-nowrap": "",
|
|
126
|
-
"px-2": "",
|
|
127
|
-
"text-center": "",
|
|
128
|
-
"text-sm": "",
|
|
129
|
-
"font-mono": "",
|
|
130
|
-
op70: ""
|
|
131
|
-
};
|
|
132
|
-
const _hoisted_18 = {
|
|
133
|
-
"max-w-30": "",
|
|
134
|
-
"w-30": "",
|
|
135
|
-
"of-hidden": "",
|
|
136
|
-
"text-ellipsis": "",
|
|
137
|
-
"ws-nowrap": "",
|
|
138
|
-
"px-2": "",
|
|
139
|
-
"text-center": "",
|
|
140
|
-
"text-sm": "",
|
|
141
|
-
"font-mono": "",
|
|
142
|
-
op70: ""
|
|
143
|
-
};
|
|
144
|
-
const _hoisted_19 = {
|
|
145
|
-
"max-w-30": "",
|
|
146
|
-
"w-30": "",
|
|
147
|
-
"of-hidden": "",
|
|
148
|
-
"text-ellipsis": "",
|
|
149
|
-
"ws-nowrap": "",
|
|
150
|
-
"px-2": "",
|
|
151
|
-
"text-center": "",
|
|
152
|
-
"text-sm": "",
|
|
153
|
-
"font-mono": "",
|
|
154
|
-
op70: ""
|
|
155
|
-
};
|
|
156
|
-
const _hoisted_20 = {
|
|
157
|
-
"max-w-30": "",
|
|
158
|
-
"w-30": "",
|
|
159
|
-
"of-hidden": "",
|
|
160
|
-
"text-ellipsis": "",
|
|
161
|
-
"ws-nowrap": "",
|
|
162
|
-
"px-2": "",
|
|
163
|
-
"text-center": "",
|
|
164
|
-
"text-sm": "",
|
|
165
|
-
"font-mono": "",
|
|
166
|
-
op70: ""
|
|
167
|
-
};
|
|
168
|
-
const _hoisted_21 = {
|
|
169
|
-
"max-w-30": "",
|
|
170
|
-
"w-30": "",
|
|
171
|
-
"of-hidden": "",
|
|
172
|
-
"text-ellipsis": "",
|
|
173
|
-
"ws-nowrap": "",
|
|
174
|
-
"px-2": "",
|
|
175
|
-
"text-center": "",
|
|
176
|
-
"text-sm": "",
|
|
177
|
-
"font-mono": "",
|
|
178
|
-
op70: ""
|
|
179
|
-
};
|
|
180
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
181
|
-
__name: "rerender-trace",
|
|
182
|
-
setup(__props) {
|
|
183
|
-
const client = useDevToolsClient();
|
|
184
|
-
const hook = client.value.hook;
|
|
185
|
-
const isTracing = ref(false);
|
|
186
|
-
const result = ref([]);
|
|
187
|
-
const traceBuffer = ref([]);
|
|
188
|
-
const highlightEnabled = ref(true);
|
|
189
|
-
function normalizeEventInfo(e, instance) {
|
|
190
|
-
const info = getSetupStateInfo(e.target);
|
|
191
|
-
const file = instance.type.__file?.replace?.(rootPath, "") ?? "-";
|
|
192
|
-
const dataType = info.computed ? "Computed" : info.ref ? "Ref" : info.reactive ? "Reactive" : null;
|
|
193
|
-
const index = Object.values(instance.devtoolsRawSetupState).map((i) => toRaw(i)).indexOf(toRaw(e.target));
|
|
194
|
-
const key = index === -1 ? e.key ?? "unknown" : Object.keys(instance.devtoolsRawSetupState)[index];
|
|
195
|
-
const value = !dataType || info.reactive ? e.target[e.key] : e.target.value;
|
|
196
|
-
return {
|
|
197
|
-
componentFile: file,
|
|
198
|
-
fullFilePath: instance.type.__file ?? "",
|
|
199
|
-
key,
|
|
200
|
-
value,
|
|
201
|
-
dataType: dataType ?? "unknown",
|
|
202
|
-
updateType: e.type ?? "-",
|
|
203
|
-
updateTime: Date.now()
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
hook.on(DevToolsHooks.RENDER_TRACKED, (e, instance) => {
|
|
207
|
-
isTracing.value && traceBuffer.value.push(normalizeEventInfo(e, instance));
|
|
208
|
-
});
|
|
209
|
-
hook.on(DevToolsHooks.RENDER_TRIGGERED, (e, instance) => {
|
|
210
|
-
if (isTracing.value) {
|
|
211
|
-
traceBuffer.value.push(normalizeEventInfo(e, instance));
|
|
212
|
-
if (highlightEnabled.value) {
|
|
213
|
-
let el = null;
|
|
214
|
-
const instanceEl = instance.vnode.el;
|
|
215
|
-
if (instanceEl?.nodeType === Node.TEXT_NODE)
|
|
216
|
-
el = instanceEl?.parentElement;
|
|
217
|
-
else if (instanceEl?.nodeType === Node.ELEMENT_NODE)
|
|
218
|
-
el = instanceEl;
|
|
219
|
-
if (el)
|
|
220
|
-
client.value.rerenderHighlight.updateInfo(instance.uid.toString(), getInstanceName(instance), el.getBoundingClientRect());
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
});
|
|
224
|
-
function start() {
|
|
225
|
-
result.value = [];
|
|
226
|
-
traceBuffer.value = [];
|
|
227
|
-
isTracing.value = true;
|
|
228
|
-
}
|
|
229
|
-
function stop() {
|
|
230
|
-
isTracing.value = false;
|
|
231
|
-
const typeOrder = { Ref: 0, Computed: 1 };
|
|
232
|
-
result.value = traceBuffer.value.sort((a, b) => typeOrder[a.dataType] - typeOrder[b.dataType]).sort((a, b) => a.updateTime - b.updateTime);
|
|
233
|
-
traceBuffer.value = [];
|
|
234
|
-
}
|
|
235
|
-
function clear() {
|
|
236
|
-
if (isTracing.value)
|
|
237
|
-
return;
|
|
238
|
-
result.value = [];
|
|
239
|
-
}
|
|
240
|
-
function openInEditor(filePath) {
|
|
241
|
-
if (!filePath)
|
|
242
|
-
return;
|
|
243
|
-
client.value.openInEditor(filePath);
|
|
244
|
-
}
|
|
245
|
-
return (_ctx, _cache) => {
|
|
246
|
-
const _component_VTooltip = resolveComponent("VTooltip");
|
|
247
|
-
const _component_VDCard = __unplugin_components_7;
|
|
248
|
-
const _component_VDBadge = __unplugin_components_1;
|
|
249
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
250
|
-
createBaseVNode("div", _hoisted_2, [
|
|
251
|
-
createVNode(_component_VDCard, {
|
|
252
|
-
flex: "~ col gap-2",
|
|
253
|
-
absolute: "",
|
|
254
|
-
"right-3": "",
|
|
255
|
-
"top-3": "",
|
|
256
|
-
"z-20": "",
|
|
257
|
-
p1: ""
|
|
258
|
-
}, {
|
|
259
|
-
default: withCtx(() => [
|
|
260
|
-
createVNode(_component_VTooltip, {
|
|
261
|
-
placement: "bottom",
|
|
262
|
-
distance: 12,
|
|
263
|
-
"text-center": ""
|
|
264
|
-
}, {
|
|
265
|
-
popper: withCtx(() => [
|
|
266
|
-
_hoisted_3
|
|
267
|
-
]),
|
|
268
|
-
default: withCtx(() => [
|
|
269
|
-
!unref(isTracing) ? (openBlock(), createElementBlock("i", {
|
|
270
|
-
key: 0,
|
|
271
|
-
class: "i-fluent:record-12-regular",
|
|
272
|
-
text: "4.7",
|
|
273
|
-
"cursor-pointer": "",
|
|
274
|
-
"text-secondary": "",
|
|
275
|
-
hover: "text-black dark:text-white",
|
|
276
|
-
onClick: start
|
|
277
|
-
})) : (openBlock(), createElementBlock("i", {
|
|
278
|
-
key: 1,
|
|
279
|
-
class: "i-fluent:record-stop-12-regular",
|
|
280
|
-
text: "4.7",
|
|
281
|
-
"cursor-pointer": "",
|
|
282
|
-
"text-red-600": "",
|
|
283
|
-
hover: "text-red-800",
|
|
284
|
-
onClick: stop
|
|
285
|
-
}))
|
|
286
|
-
]),
|
|
287
|
-
_: 1
|
|
288
|
-
}),
|
|
289
|
-
createVNode(_component_VTooltip, {
|
|
290
|
-
placement: "bottom",
|
|
291
|
-
distance: 12,
|
|
292
|
-
"text-center": ""
|
|
293
|
-
}, {
|
|
294
|
-
popper: withCtx(() => [
|
|
295
|
-
_hoisted_4
|
|
296
|
-
]),
|
|
297
|
-
default: withCtx(() => [
|
|
298
|
-
createBaseVNode("i", {
|
|
299
|
-
class: "i-grommet-icons:clear",
|
|
300
|
-
text: "3.8",
|
|
301
|
-
"cursor-pointer": "",
|
|
302
|
-
"text-secondary": "",
|
|
303
|
-
hover: "text-black dark:text-white",
|
|
304
|
-
onClick: clear
|
|
305
|
-
})
|
|
306
|
-
]),
|
|
307
|
-
_: 1
|
|
308
|
-
}),
|
|
309
|
-
createVNode(_component_VTooltip, {
|
|
310
|
-
placement: "bottom",
|
|
311
|
-
distance: 12,
|
|
312
|
-
"text-center": ""
|
|
313
|
-
}, {
|
|
314
|
-
popper: withCtx(() => [
|
|
315
|
-
_hoisted_5
|
|
316
|
-
]),
|
|
317
|
-
default: withCtx(() => [
|
|
318
|
-
!unref(highlightEnabled) ? (openBlock(), createElementBlock("i", {
|
|
319
|
-
key: 0,
|
|
320
|
-
class: "i-tabler:capture",
|
|
321
|
-
text: "4.7",
|
|
322
|
-
"cursor-pointer": "",
|
|
323
|
-
"text-secondary": "",
|
|
324
|
-
hover: "text-black dark:text-white",
|
|
325
|
-
onClick: _cache[0] || (_cache[0] = ($event) => highlightEnabled.value = true)
|
|
326
|
-
})) : (openBlock(), createElementBlock("i", {
|
|
327
|
-
key: 1,
|
|
328
|
-
class: "i-tabler:capture",
|
|
329
|
-
text: "4.7",
|
|
330
|
-
"cursor-pointer": "",
|
|
331
|
-
"text-green-600": "",
|
|
332
|
-
hover: "text-green-800",
|
|
333
|
-
onClick: _cache[1] || (_cache[1] = ($event) => highlightEnabled.value = false)
|
|
334
|
-
}))
|
|
335
|
-
]),
|
|
336
|
-
_: 1
|
|
337
|
-
})
|
|
338
|
-
]),
|
|
339
|
-
_: 1
|
|
340
|
-
}),
|
|
341
|
-
!unref(result).length ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
342
|
-
!unref(isTracing) && !unref(result).length ? (openBlock(), createBlock(_component_VDCard, {
|
|
343
|
-
key: 0,
|
|
344
|
-
flex: "~ col gap2",
|
|
345
|
-
relative: "",
|
|
346
|
-
p3: "",
|
|
347
|
-
op60: ""
|
|
348
|
-
}, {
|
|
349
|
-
default: withCtx(() => [
|
|
350
|
-
createBaseVNode("p", { flex: "~ items-center" }, [
|
|
351
|
-
createTextVNode(" Click the start button "),
|
|
352
|
-
createBaseVNode("button", {
|
|
353
|
-
border: "~ base",
|
|
354
|
-
"mx-1": "",
|
|
355
|
-
"inline-flex": "",
|
|
356
|
-
"items-center": "",
|
|
357
|
-
"justify-center": "",
|
|
358
|
-
p: "0.5",
|
|
359
|
-
onClick: start
|
|
360
|
-
}, _hoisted_8),
|
|
361
|
-
createTextVNode(" to start a new tracing. ")
|
|
362
|
-
]),
|
|
363
|
-
_hoisted_9,
|
|
364
|
-
_hoisted_10,
|
|
365
|
-
_hoisted_11,
|
|
366
|
-
createVNode(_component_VDBadge, {
|
|
367
|
-
absolute: "",
|
|
368
|
-
"right--0.5": "",
|
|
369
|
-
"top-0": "",
|
|
370
|
-
"rounded-0": "",
|
|
371
|
-
"bg-green-400:10": "",
|
|
372
|
-
"text-green-400": "",
|
|
373
|
-
title: "Experimental",
|
|
374
|
-
textContent: "Experimental"
|
|
375
|
-
})
|
|
376
|
-
]),
|
|
377
|
-
_: 1
|
|
378
|
-
})) : unref(isTracing) && !unref(result).length ? (openBlock(), createBlock(_component_VDCard, {
|
|
379
|
-
key: 1,
|
|
380
|
-
flex: "~ col gap2",
|
|
381
|
-
p3: ""
|
|
382
|
-
}, {
|
|
383
|
-
default: withCtx(() => [
|
|
384
|
-
_hoisted_12
|
|
385
|
-
]),
|
|
386
|
-
_: 1
|
|
387
|
-
})) : createCommentVNode("", true)
|
|
388
|
-
])) : createCommentVNode("", true),
|
|
389
|
-
unref(result).length && !unref(isTracing) ? (openBlock(), createElementBlock("table", _hoisted_13, [
|
|
390
|
-
_hoisted_14,
|
|
391
|
-
createBaseVNode("tbody", _hoisted_15, [
|
|
392
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(result), (item, index) => {
|
|
393
|
-
return openBlock(), createElementBlock("tr", {
|
|
394
|
-
key: index,
|
|
395
|
-
class: "group",
|
|
396
|
-
"h-7": "",
|
|
397
|
-
border: "b dashed transparent hover:base"
|
|
398
|
-
}, [
|
|
399
|
-
createBaseVNode("td", {
|
|
400
|
-
"max-w-50": "",
|
|
401
|
-
"cursor-pointer": "",
|
|
402
|
-
"of-hidden": "",
|
|
403
|
-
"text-ellipsis": "",
|
|
404
|
-
"px-2": "",
|
|
405
|
-
"text-center": "",
|
|
406
|
-
"text-sm": "",
|
|
407
|
-
underline: "",
|
|
408
|
-
op70: "",
|
|
409
|
-
hover: "text-primary",
|
|
410
|
-
onClick: ($event) => openInEditor(item.fullFilePath)
|
|
411
|
-
}, toDisplayString(item.componentFile), 9, _hoisted_16),
|
|
412
|
-
createBaseVNode("td", _hoisted_17, toDisplayString(item.key), 1),
|
|
413
|
-
createBaseVNode("td", _hoisted_18, toDisplayString(item.value), 1),
|
|
414
|
-
createBaseVNode("td", _hoisted_19, toDisplayString(item.dataType), 1),
|
|
415
|
-
createBaseVNode("td", _hoisted_20, toDisplayString(item.updateType), 1),
|
|
416
|
-
createBaseVNode("td", _hoisted_21, toDisplayString(unref(dayjs)(item.updateTime).format("HH:mm:ss")), 1)
|
|
417
|
-
]);
|
|
418
|
-
}), 128))
|
|
419
|
-
])
|
|
420
|
-
])) : createCommentVNode("", true)
|
|
421
|
-
])
|
|
422
|
-
]);
|
|
423
|
-
};
|
|
424
|
-
}
|
|
425
|
-
});
|
|
426
|
-
|
|
427
|
-
/* Injected with object hook! */
|
|
428
|
-
|
|
429
|
-
/* unplugin-vue-components disabled */const rerenderTrace_vue_vue_type_style_index_0_scoped_61b9e26e_lang = '';
|
|
430
|
-
/* Injected with object hook! */
|
|
431
|
-
|
|
432
|
-
const rerenderTrace = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-61b9e26e"]]);
|
|
433
|
-
|
|
434
|
-
/* Injected with object hook! */
|
|
435
|
-
|
|
436
|
-
export { rerenderTrace as default };
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { _ as __unplugin_components_0 } from './PanelGrids-664603ce.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, c0 as routeRecordMatcherState, c1 as activeRouteRecordMatcherState, c as createBlock, b_ as _sfc_main$2, _ as __unplugin_components_7, q as normalizeClass, c2 as activeRouteRecordIndex, c3 as toggleRouteRecordMatcher, a9 as createTextVNode, y as toDisplayString, l as normalizeStyle, g as createCommentVNode, c4 as __unplugin_components_1 } from './index-77d53487.js';
|
|
3
|
-
import { _ as _sfc_main$1 } from './StateFields.vue_vue_type_script_setup_true_lang-48cf50ad.js';
|
|
4
|
-
import { g, M } from './splitpanes.es-26cdc434.js';
|
|
5
|
-
import './IconButton.vue_vue_type_script_setup_true_lang-48a6bea2.js';
|
|
6
|
-
|
|
7
|
-
const _hoisted_1 = {
|
|
8
|
-
key: 0,
|
|
9
|
-
"h-screen": "",
|
|
10
|
-
"n-panel-grids": ""
|
|
11
|
-
};
|
|
12
|
-
const _hoisted_2 = {
|
|
13
|
-
"h-screen": "",
|
|
14
|
-
"select-none": "",
|
|
15
|
-
"overflow-scroll": "",
|
|
16
|
-
"p-2": "",
|
|
17
|
-
class: "no-scrollbar"
|
|
18
|
-
};
|
|
19
|
-
const _hoisted_3 = ["onClick"];
|
|
20
|
-
const _hoisted_4 = { "vue-block-title": "" };
|
|
21
|
-
const _hoisted_5 = {
|
|
22
|
-
"h-screen": "",
|
|
23
|
-
"select-none": "",
|
|
24
|
-
"overflow-scroll": "",
|
|
25
|
-
"p-2": "",
|
|
26
|
-
class: "no-scrollbar"
|
|
27
|
-
};
|
|
28
|
-
const _hoisted_6 = /* @__PURE__ */ createBaseVNode("h1", { "text-xl": "" }, " Install Vue Router ", -1);
|
|
29
|
-
const _hoisted_7 = /* @__PURE__ */ createBaseVNode("p", {
|
|
30
|
-
"text-sm": "",
|
|
31
|
-
op50: ""
|
|
32
|
-
}, " It seems you don't have vue-router installed. ", -1);
|
|
33
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
34
|
-
__name: "routes",
|
|
35
|
-
setup(__props) {
|
|
36
|
-
return (_ctx, _cache) => {
|
|
37
|
-
const _component_VDBadge = __unplugin_components_1;
|
|
38
|
-
const _component_StateFields = _sfc_main$1;
|
|
39
|
-
const _component_TabIcon = _sfc_main$2;
|
|
40
|
-
const _component_VDCard = __unplugin_components_7;
|
|
41
|
-
const _component_VDPanelGrids = __unplugin_components_0;
|
|
42
|
-
return unref(router) ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
43
|
-
createVNode(unref(M), null, {
|
|
44
|
-
default: withCtx(() => [
|
|
45
|
-
createVNode(unref(g), {
|
|
46
|
-
border: "r base",
|
|
47
|
-
size: "40"
|
|
48
|
-
}, {
|
|
49
|
-
default: withCtx(() => [
|
|
50
|
-
createBaseVNode("div", _hoisted_2, [
|
|
51
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(routeRecordMatcherState), (item, index) => {
|
|
52
|
-
return openBlock(), createElementBlock("div", {
|
|
53
|
-
key: index,
|
|
54
|
-
"vue-block": "",
|
|
55
|
-
class: normalizeClass([unref(activeRouteRecordIndex) === index ? "vue-block-active" : "vue-block-hover"]),
|
|
56
|
-
onClick: ($event) => unref(toggleRouteRecordMatcher)(index)
|
|
57
|
-
}, [
|
|
58
|
-
createBaseVNode("h3", _hoisted_4, [
|
|
59
|
-
createBaseVNode("span", {
|
|
60
|
-
class: normalizeClass([unref(activeRouteRecordIndex) === index && "text-white"])
|
|
61
|
-
}, [
|
|
62
|
-
createTextVNode(toDisplayString(item.path) + " ", 1),
|
|
63
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(item.tags, (tag, childIndex) => {
|
|
64
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
65
|
-
tag.label ? (openBlock(), createBlock(_component_VDBadge, {
|
|
66
|
-
key: childIndex,
|
|
67
|
-
color: "white/90 dark:black/90",
|
|
68
|
-
style: normalizeStyle({
|
|
69
|
-
backgroundColor: `#${tag.bgColor.toString(16)}`
|
|
70
|
-
})
|
|
71
|
-
}, {
|
|
72
|
-
default: withCtx(() => [
|
|
73
|
-
createTextVNode(toDisplayString(tag.label), 1)
|
|
74
|
-
]),
|
|
75
|
-
_: 2
|
|
76
|
-
}, 1032, ["style"])) : createCommentVNode("", true)
|
|
77
|
-
], 64);
|
|
78
|
-
}), 256))
|
|
79
|
-
], 2)
|
|
80
|
-
])
|
|
81
|
-
], 10, _hoisted_3);
|
|
82
|
-
}), 128))
|
|
83
|
-
])
|
|
84
|
-
]),
|
|
85
|
-
_: 1
|
|
86
|
-
}),
|
|
87
|
-
createVNode(unref(g), { size: "60" }, {
|
|
88
|
-
default: withCtx(() => [
|
|
89
|
-
createBaseVNode("div", _hoisted_5, [
|
|
90
|
-
createVNode(_component_StateFields, { data: unref(activeRouteRecordMatcherState) }, null, 8, ["data"])
|
|
91
|
-
])
|
|
92
|
-
]),
|
|
93
|
-
_: 1
|
|
94
|
-
})
|
|
95
|
-
]),
|
|
96
|
-
_: 1
|
|
97
|
-
})
|
|
98
|
-
])) : (openBlock(), createBlock(_component_VDPanelGrids, {
|
|
99
|
-
key: 1,
|
|
100
|
-
px5: ""
|
|
101
|
-
}, {
|
|
102
|
-
default: withCtx(() => [
|
|
103
|
-
createVNode(_component_VDCard, {
|
|
104
|
-
flex: "~ col gap2",
|
|
105
|
-
"min-w-30": "",
|
|
106
|
-
"items-center": "",
|
|
107
|
-
p3: ""
|
|
108
|
-
}, {
|
|
109
|
-
default: withCtx(() => [
|
|
110
|
-
createVNode(_component_TabIcon, {
|
|
111
|
-
mb2: "",
|
|
112
|
-
"text-5xl": "",
|
|
113
|
-
icon: "i-logos-vue",
|
|
114
|
-
title: "Vue Router"
|
|
115
|
-
}),
|
|
116
|
-
_hoisted_6,
|
|
117
|
-
_hoisted_7
|
|
118
|
-
]),
|
|
119
|
-
_: 1
|
|
120
|
-
})
|
|
121
|
-
]),
|
|
122
|
-
_: 1
|
|
123
|
-
}));
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
|
|
128
|
-
/* Injected with object hook! */
|
|
129
|
-
|
|
130
|
-
/* Injected with object hook! */
|
|
131
|
-
|
|
132
|
-
export { _sfc_main as default };
|