vite-plugin-vue-devtools 0.0.1-alpha.0 → 0.0.1-alpha.2
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-07e53519.js +15 -0
- package/dist/client/assets/VIcon.vue_vue_type_script_setup_true_lang-c622c694.js +19 -0
- package/dist/client/assets/VIconTitle.vue_vue_type_script_setup_true_lang-5f26c7d7.js +30 -0
- package/dist/client/assets/VPanelGrids-2e4d7603.js +15 -0
- package/dist/client/assets/VTextInput-52804693.css +18 -0
- package/dist/client/assets/VTextInput.vue_vue_type_script_setup_true_lang-11aa9678.js +145 -0
- package/dist/client/assets/__inspecting-ca212e33.js +51 -0
- package/dist/client/assets/assets-7d94be21.js +1403 -0
- package/dist/client/assets/components-f04eb68e.js +699 -0
- package/dist/client/assets/fuse.esm-c317b696.js +1782 -0
- package/dist/client/assets/graph-b9e504aa.js +52260 -0
- package/dist/client/assets/index-ab9e9151.js +15372 -0
- package/dist/client/assets/index-f0fa9f81.css +454 -0
- package/dist/client/assets/inspect-d697adb8.js +96 -0
- package/dist/client/assets/overview-afb7d69a.js +305 -0
- package/dist/client/assets/pages-43ddf646.js +21 -0
- package/dist/client/assets/pages-4aa45253.js +320 -0
- package/dist/client/assets/pinia-178be7b6.js +139 -0
- package/dist/client/assets/routes-cd4e8e50.js +129 -0
- package/dist/client/assets/rpc-c07563d7.js +136 -0
- package/dist/client/assets/settings-c9f4467d.js +299 -0
- package/dist/client/assets/splitpanes.es-f2ab0d30.js +725 -0
- package/dist/client/assets/timeline-6da2fbae.js +209 -0
- package/dist/client/index.html +23 -0
- package/dist/index.cjs +7764 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.mjs +7748 -0
- package/package.json +92 -8
- package/src/node/Container.vue +298 -0
- package/src/node/app.js +41 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { d as defineComponent, a2 as useColorMode, P as ref, Q 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-ab9e9151.js';
|
|
2
|
+
import { i as inspectClientUrl } from './rpc-c07563d7.js';
|
|
3
|
+
|
|
4
|
+
const iframeCacheMap = /* @__PURE__ */ new Map();
|
|
5
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "IframeView",
|
|
7
|
+
props: {
|
|
8
|
+
src: null
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const props = __props;
|
|
12
|
+
const colorMode = useColorMode();
|
|
13
|
+
const anchor = ref();
|
|
14
|
+
const key = computed(() => props.src);
|
|
15
|
+
const iframeEl = ref();
|
|
16
|
+
const box = reactive(useElementBounding(anchor));
|
|
17
|
+
onMounted(() => {
|
|
18
|
+
if (iframeCacheMap.get(key.value)) {
|
|
19
|
+
iframeEl.value = iframeCacheMap.get(key.value);
|
|
20
|
+
iframeEl.value.style.visibility = "visible";
|
|
21
|
+
} else {
|
|
22
|
+
iframeEl.value = document.createElement("iframe");
|
|
23
|
+
iframeCacheMap.set(key.value, iframeEl.value);
|
|
24
|
+
iframeEl.value.src = props.src;
|
|
25
|
+
try {
|
|
26
|
+
iframeEl.value.style.opacity = "0.01";
|
|
27
|
+
iframeEl.value.onload = () => {
|
|
28
|
+
syncColorMode();
|
|
29
|
+
iframeEl.value.style.opacity = "1";
|
|
30
|
+
};
|
|
31
|
+
} catch (e) {
|
|
32
|
+
iframeEl.value.style.opacity = "1";
|
|
33
|
+
}
|
|
34
|
+
document.body.appendChild(iframeEl.value);
|
|
35
|
+
nextTick(updateIframeBox);
|
|
36
|
+
}
|
|
37
|
+
setTimeout(syncColorMode, 100);
|
|
38
|
+
});
|
|
39
|
+
watchEffect(updateIframeBox);
|
|
40
|
+
watchEffect(syncColorMode);
|
|
41
|
+
onUnmounted(() => {
|
|
42
|
+
if (iframeEl.value)
|
|
43
|
+
iframeEl.value.style.visibility = "hidden";
|
|
44
|
+
});
|
|
45
|
+
function syncColorMode() {
|
|
46
|
+
if (!iframeEl.value || !iframeEl.value.contentWindow)
|
|
47
|
+
return;
|
|
48
|
+
try {
|
|
49
|
+
const html = iframeEl.value.contentWindow.document.querySelector("html");
|
|
50
|
+
html?.classList.toggle("dark", colorMode.value === "dark");
|
|
51
|
+
html?.classList.toggle("light", colorMode.value === "dark");
|
|
52
|
+
} catch (e) {
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function updateIframeBox() {
|
|
56
|
+
if (!iframeEl.value)
|
|
57
|
+
return;
|
|
58
|
+
Object.assign(iframeEl.value.style, {
|
|
59
|
+
position: "fixed",
|
|
60
|
+
left: `${box.left}px`,
|
|
61
|
+
top: `${box.top}px`,
|
|
62
|
+
width: `${box.width}px`,
|
|
63
|
+
height: `${box.height}px`,
|
|
64
|
+
outline: "none"
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
return (_ctx, _cache) => {
|
|
68
|
+
return openBlock(), createElementBlock("div", {
|
|
69
|
+
ref_key: "anchor",
|
|
70
|
+
ref: anchor,
|
|
71
|
+
"h-full": "",
|
|
72
|
+
"w-full": ""
|
|
73
|
+
}, null, 512);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
/* Injected with object hook! */
|
|
79
|
+
|
|
80
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
81
|
+
__name: "inspect",
|
|
82
|
+
setup(__props) {
|
|
83
|
+
return (_ctx, _cache) => {
|
|
84
|
+
const _component_IframeView = _sfc_main$1;
|
|
85
|
+
return openBlock(), createElementBlock("div", null, [
|
|
86
|
+
createVNode(_component_IframeView, { src: unref(inspectClientUrl) }, null, 8, ["src"])
|
|
87
|
+
]);
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
/* Injected with object hook! */
|
|
93
|
+
|
|
94
|
+
/* Injected with object hook! */
|
|
95
|
+
|
|
96
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
import { _ as __unplugin_components_0$1 } from './VPanelGrids-2e4d7603.js';
|
|
2
|
+
import { P as ref, Q as computed, d as defineComponent, o as openBlock, a as createBlock, w as withCtx, e as createBaseVNode, b as createVNode, t as toDisplayString, u as unref, Z as vueVersion, E as createTextVNode, c as createElementBlock, F as Fragment, $ as __unplugin_components_0, O as __unplugin_components_1, X as resolveComponent, _ as _sfc_main$1 } from './index-ab9e9151.js';
|
|
3
|
+
import { r as rpc } from './rpc-c07563d7.js';
|
|
4
|
+
import { i as initPages, a as routes } from './pages-43ddf646.js';
|
|
5
|
+
|
|
6
|
+
const version = "0.0.1-alpha.2";
|
|
7
|
+
|
|
8
|
+
/* Injected with object hook! */
|
|
9
|
+
|
|
10
|
+
initPages();
|
|
11
|
+
const modules = ref(await rpc.componentGraph());
|
|
12
|
+
const vueModules = computed(() => modules.value.filter((i) => i.id.match(/\.vue($|\?v=)/)));
|
|
13
|
+
const pageCount = computed(() => routes.value.length);
|
|
14
|
+
const componentCount = computed(() => vueModules.value.length);
|
|
15
|
+
|
|
16
|
+
/* Injected with object hook! */
|
|
17
|
+
|
|
18
|
+
const _hoisted_1 = {
|
|
19
|
+
flex: "~ col gap2",
|
|
20
|
+
ma: "",
|
|
21
|
+
"h-full": "",
|
|
22
|
+
"max-w-300": "",
|
|
23
|
+
"w-full": "",
|
|
24
|
+
p8: "",
|
|
25
|
+
px20: ""
|
|
26
|
+
};
|
|
27
|
+
const _hoisted_2 = /* @__PURE__ */ createBaseVNode("div", { "flex-auto": "" }, null, -1);
|
|
28
|
+
const _hoisted_3 = {
|
|
29
|
+
flex: "~ col",
|
|
30
|
+
"mt-20": "",
|
|
31
|
+
"items-center": ""
|
|
32
|
+
};
|
|
33
|
+
const _hoisted_4 = {
|
|
34
|
+
flex: "~",
|
|
35
|
+
"mt--10": "",
|
|
36
|
+
"items-center": "",
|
|
37
|
+
"justify-center": ""
|
|
38
|
+
};
|
|
39
|
+
const _hoisted_5 = {
|
|
40
|
+
"mr--16": "",
|
|
41
|
+
"mt--6": ""
|
|
42
|
+
};
|
|
43
|
+
const _hoisted_6 = {
|
|
44
|
+
mb6: "",
|
|
45
|
+
"mt--1": "",
|
|
46
|
+
"text-center": "",
|
|
47
|
+
"text-sm": "",
|
|
48
|
+
flex: "~ gap-1"
|
|
49
|
+
};
|
|
50
|
+
const _hoisted_7 = /* @__PURE__ */ createBaseVNode("span", { op40: "" }, " Vue DevTools ", -1);
|
|
51
|
+
const _hoisted_8 = { op40: "" };
|
|
52
|
+
const _hoisted_9 = { flex: "~ gap2 wrap" };
|
|
53
|
+
const _hoisted_10 = {
|
|
54
|
+
p4: "",
|
|
55
|
+
"theme-card-green": "",
|
|
56
|
+
flex: "~ col auto"
|
|
57
|
+
};
|
|
58
|
+
const _hoisted_11 = /* @__PURE__ */ createBaseVNode("div", {
|
|
59
|
+
"logos-vue": "",
|
|
60
|
+
"text-3xl": ""
|
|
61
|
+
}, null, -1);
|
|
62
|
+
const _hoisted_12 = /* @__PURE__ */ createBaseVNode("div", {
|
|
63
|
+
"carbon-tree-view-alt": "",
|
|
64
|
+
"text-3xl": ""
|
|
65
|
+
}, null, -1);
|
|
66
|
+
const _hoisted_13 = /* @__PURE__ */ createBaseVNode("div", {
|
|
67
|
+
"i-carbon-assembly-cluster": "",
|
|
68
|
+
"text-3xl": ""
|
|
69
|
+
}, null, -1);
|
|
70
|
+
const _hoisted_14 = {
|
|
71
|
+
flex: "~ gap-6 wrap",
|
|
72
|
+
"mt-5": "",
|
|
73
|
+
"items-center": "",
|
|
74
|
+
"justify-center": ""
|
|
75
|
+
};
|
|
76
|
+
const _hoisted_15 = /* @__PURE__ */ createBaseVNode("a", {
|
|
77
|
+
href: "https://github.com/webfansplz/vite-plugin-vue-devtools",
|
|
78
|
+
target: "_blank",
|
|
79
|
+
flex: "~ gap1",
|
|
80
|
+
"items-center": "",
|
|
81
|
+
op50: "",
|
|
82
|
+
hover: "op100 text-blue",
|
|
83
|
+
transition: ""
|
|
84
|
+
}, [
|
|
85
|
+
/* @__PURE__ */ createBaseVNode("div", { "i-carbon-star": "" }),
|
|
86
|
+
/* @__PURE__ */ createTextVNode(" Star on GitHub ")
|
|
87
|
+
], -1);
|
|
88
|
+
const _hoisted_16 = /* @__PURE__ */ createBaseVNode("a", {
|
|
89
|
+
href: "https://github.com/webfansplz/vite-plugin-vue-devtools/discussions/1",
|
|
90
|
+
target: "_blank",
|
|
91
|
+
flex: "~ gap1",
|
|
92
|
+
"items-center": "",
|
|
93
|
+
op50: "",
|
|
94
|
+
hover: "op100 text-yellow",
|
|
95
|
+
transition: ""
|
|
96
|
+
}, [
|
|
97
|
+
/* @__PURE__ */ createBaseVNode("div", { "i-carbon-data-enrichment": "" }),
|
|
98
|
+
/* @__PURE__ */ createTextVNode(" Ideas & Suggestions ")
|
|
99
|
+
], -1);
|
|
100
|
+
const _hoisted_17 = /* @__PURE__ */ createBaseVNode("a", {
|
|
101
|
+
href: "https://github.com/webfansplz/vite-plugin-vue-devtools/discussions/2",
|
|
102
|
+
target: "_blank",
|
|
103
|
+
flex: "~ gap1",
|
|
104
|
+
"items-center": "",
|
|
105
|
+
op50: "",
|
|
106
|
+
hover: "op100 text-lime",
|
|
107
|
+
transition: ""
|
|
108
|
+
}, [
|
|
109
|
+
/* @__PURE__ */ createBaseVNode("div", { "i-carbon-plan": "" }),
|
|
110
|
+
/* @__PURE__ */ createTextVNode(" Project Roadmap ")
|
|
111
|
+
], -1);
|
|
112
|
+
const _hoisted_18 = /* @__PURE__ */ createBaseVNode("a", {
|
|
113
|
+
href: "https://github.com/webfansplz/vite-plugin-vue-devtools/issues",
|
|
114
|
+
target: "_blank",
|
|
115
|
+
flex: "~ gap1",
|
|
116
|
+
"items-center": "",
|
|
117
|
+
op50: "",
|
|
118
|
+
hover: "op100 text-rose",
|
|
119
|
+
transition: ""
|
|
120
|
+
}, [
|
|
121
|
+
/* @__PURE__ */ createBaseVNode("div", { "i-carbon-debug": "" }),
|
|
122
|
+
/* @__PURE__ */ createTextVNode(" Bug Reports ")
|
|
123
|
+
], -1);
|
|
124
|
+
const _hoisted_19 = /* @__PURE__ */ createBaseVNode("div", { "i-carbon-settings": "" }, null, -1);
|
|
125
|
+
const _hoisted_20 = /* @__PURE__ */ createBaseVNode("div", { "flex-auto": "" }, null, -1);
|
|
126
|
+
const _hoisted_21 = {
|
|
127
|
+
flex: "~ gap-1",
|
|
128
|
+
"items-center": "",
|
|
129
|
+
"justify-center": "",
|
|
130
|
+
"text-sm": "",
|
|
131
|
+
op40: ""
|
|
132
|
+
};
|
|
133
|
+
const _hoisted_22 = /* @__PURE__ */ createBaseVNode("span", null, "+", -1);
|
|
134
|
+
const _hoisted_23 = /* @__PURE__ */ createBaseVNode("span", null, "+", -1);
|
|
135
|
+
const _hoisted_24 = /* @__PURE__ */ createBaseVNode("span", null, "+", -1);
|
|
136
|
+
const _hoisted_25 = /* @__PURE__ */ createBaseVNode("span", null, "+", -1);
|
|
137
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
138
|
+
__name: "overview",
|
|
139
|
+
setup(__props) {
|
|
140
|
+
const isMacOS = navigator?.platform.toLowerCase().includes("mac");
|
|
141
|
+
return (_ctx, _cache) => {
|
|
142
|
+
const _component_Logo = __unplugin_components_0;
|
|
143
|
+
const _component_VBadge = __unplugin_components_1;
|
|
144
|
+
const _component_RouterLink = resolveComponent("RouterLink");
|
|
145
|
+
const _component_VButton = _sfc_main$1;
|
|
146
|
+
const _component_VPanelGrids = __unplugin_components_0$1;
|
|
147
|
+
return openBlock(), createBlock(_component_VPanelGrids, {
|
|
148
|
+
"h-screen": "",
|
|
149
|
+
"w-full": "",
|
|
150
|
+
flex: ""
|
|
151
|
+
}, {
|
|
152
|
+
default: withCtx(() => [
|
|
153
|
+
createBaseVNode("div", _hoisted_1, [
|
|
154
|
+
_hoisted_2,
|
|
155
|
+
createBaseVNode("div", _hoisted_3, [
|
|
156
|
+
createBaseVNode("div", _hoisted_4, [
|
|
157
|
+
createVNode(_component_Logo, { "h-18": "" }),
|
|
158
|
+
createBaseVNode("button", _hoisted_5, [
|
|
159
|
+
createVNode(_component_VBadge, {
|
|
160
|
+
"bg-green-400:10": "",
|
|
161
|
+
"text-green-400": "",
|
|
162
|
+
title: "preview",
|
|
163
|
+
textContent: "preview"
|
|
164
|
+
})
|
|
165
|
+
])
|
|
166
|
+
]),
|
|
167
|
+
createBaseVNode("div", _hoisted_6, [
|
|
168
|
+
_hoisted_7,
|
|
169
|
+
createBaseVNode("code", _hoisted_8, "v" + toDisplayString(unref(version)), 1)
|
|
170
|
+
])
|
|
171
|
+
]),
|
|
172
|
+
createBaseVNode("div", _hoisted_9, [
|
|
173
|
+
createBaseVNode("div", _hoisted_10, [
|
|
174
|
+
_hoisted_11,
|
|
175
|
+
createBaseVNode("code", null, "v" + toDisplayString(unref(vueVersion)), 1)
|
|
176
|
+
]),
|
|
177
|
+
createVNode(_component_RouterLink, {
|
|
178
|
+
flex: "~ col auto",
|
|
179
|
+
to: "/pages",
|
|
180
|
+
replace: "",
|
|
181
|
+
"min-w-40": "",
|
|
182
|
+
p4: "",
|
|
183
|
+
"theme-card-lime": ""
|
|
184
|
+
}, {
|
|
185
|
+
default: withCtx(() => [
|
|
186
|
+
_hoisted_12,
|
|
187
|
+
createBaseVNode("div", null, toDisplayString(unref(pageCount)) + " pages", 1)
|
|
188
|
+
]),
|
|
189
|
+
_: 1
|
|
190
|
+
}),
|
|
191
|
+
createVNode(_component_RouterLink, {
|
|
192
|
+
flex: "~ col auto",
|
|
193
|
+
to: "/components",
|
|
194
|
+
replace: "",
|
|
195
|
+
"min-w-40": "",
|
|
196
|
+
p4: "",
|
|
197
|
+
"theme-card-lime": ""
|
|
198
|
+
}, {
|
|
199
|
+
default: withCtx(() => [
|
|
200
|
+
_hoisted_13,
|
|
201
|
+
createBaseVNode("div", null, toDisplayString(unref(componentCount)) + " components", 1)
|
|
202
|
+
]),
|
|
203
|
+
_: 1
|
|
204
|
+
})
|
|
205
|
+
]),
|
|
206
|
+
createBaseVNode("div", _hoisted_14, [
|
|
207
|
+
_hoisted_15,
|
|
208
|
+
_hoisted_16,
|
|
209
|
+
_hoisted_17,
|
|
210
|
+
_hoisted_18,
|
|
211
|
+
createVNode(_component_RouterLink, {
|
|
212
|
+
to: "/settings",
|
|
213
|
+
flex: "~ gap1",
|
|
214
|
+
replace: "",
|
|
215
|
+
"inline-block": "",
|
|
216
|
+
"items-center": "",
|
|
217
|
+
op50: "",
|
|
218
|
+
"hover:op80": ""
|
|
219
|
+
}, {
|
|
220
|
+
default: withCtx(() => [
|
|
221
|
+
_hoisted_19,
|
|
222
|
+
createTextVNode(" Settings ")
|
|
223
|
+
]),
|
|
224
|
+
_: 1
|
|
225
|
+
})
|
|
226
|
+
]),
|
|
227
|
+
_hoisted_20,
|
|
228
|
+
createBaseVNode("div", _hoisted_21, [
|
|
229
|
+
createTextVNode(" Press "),
|
|
230
|
+
unref(isMacOS) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
231
|
+
createVNode(_component_VButton, {
|
|
232
|
+
n: "xs",
|
|
233
|
+
class: "px2"
|
|
234
|
+
}, {
|
|
235
|
+
default: withCtx(() => [
|
|
236
|
+
createTextVNode(" ⇧ Shift ")
|
|
237
|
+
]),
|
|
238
|
+
_: 1
|
|
239
|
+
}),
|
|
240
|
+
_hoisted_22,
|
|
241
|
+
createVNode(_component_VButton, {
|
|
242
|
+
n: "xs",
|
|
243
|
+
class: "px2"
|
|
244
|
+
}, {
|
|
245
|
+
default: withCtx(() => [
|
|
246
|
+
createTextVNode(" ⌥ Option ")
|
|
247
|
+
]),
|
|
248
|
+
_: 1
|
|
249
|
+
}),
|
|
250
|
+
_hoisted_23,
|
|
251
|
+
createVNode(_component_VButton, {
|
|
252
|
+
n: "xs",
|
|
253
|
+
class: "px2"
|
|
254
|
+
}, {
|
|
255
|
+
default: withCtx(() => [
|
|
256
|
+
createTextVNode(" D ")
|
|
257
|
+
]),
|
|
258
|
+
_: 1
|
|
259
|
+
})
|
|
260
|
+
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
261
|
+
createVNode(_component_VButton, {
|
|
262
|
+
n: "xs",
|
|
263
|
+
class: "px2"
|
|
264
|
+
}, {
|
|
265
|
+
default: withCtx(() => [
|
|
266
|
+
createTextVNode(" Shift ")
|
|
267
|
+
]),
|
|
268
|
+
_: 1
|
|
269
|
+
}),
|
|
270
|
+
_hoisted_24,
|
|
271
|
+
createVNode(_component_VButton, {
|
|
272
|
+
n: "xs",
|
|
273
|
+
class: "px2"
|
|
274
|
+
}, {
|
|
275
|
+
default: withCtx(() => [
|
|
276
|
+
createTextVNode(" Alt ")
|
|
277
|
+
]),
|
|
278
|
+
_: 1
|
|
279
|
+
}),
|
|
280
|
+
_hoisted_25,
|
|
281
|
+
createVNode(_component_VButton, {
|
|
282
|
+
n: "xs",
|
|
283
|
+
class: "px2"
|
|
284
|
+
}, {
|
|
285
|
+
default: withCtx(() => [
|
|
286
|
+
createTextVNode(" D ")
|
|
287
|
+
]),
|
|
288
|
+
_: 1
|
|
289
|
+
})
|
|
290
|
+
], 64)),
|
|
291
|
+
createTextVNode(" to toggle DevTools ")
|
|
292
|
+
])
|
|
293
|
+
])
|
|
294
|
+
]),
|
|
295
|
+
_: 1
|
|
296
|
+
});
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
|
|
301
|
+
/* Injected with object hook! */
|
|
302
|
+
|
|
303
|
+
/* Injected with object hook! */
|
|
304
|
+
|
|
305
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { P as ref, Q as computed, u as unref, a0 as app, a1 as triggerRef } from './index-ab9e9151.js';
|
|
2
|
+
|
|
3
|
+
const router = ref();
|
|
4
|
+
const currentRoute = computed(() => unref(router.value?.currentRoute));
|
|
5
|
+
const routes = computed(() => {
|
|
6
|
+
return (router.value?.getRoutes() || []).map((i) => {
|
|
7
|
+
return {
|
|
8
|
+
...i
|
|
9
|
+
};
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
function initPages() {
|
|
13
|
+
router.value = app.value?.config.globalProperties.$router;
|
|
14
|
+
router.value?.afterEach(() => {
|
|
15
|
+
triggerRef(router);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Injected with object hook! */
|
|
20
|
+
|
|
21
|
+
export { routes as a, currentRoute as c, initPages as i, router as r };
|