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.
Files changed (30) hide show
  1. package/dist/client/assets/VCard-07e53519.js +15 -0
  2. package/dist/client/assets/VIcon.vue_vue_type_script_setup_true_lang-c622c694.js +19 -0
  3. package/dist/client/assets/VIconTitle.vue_vue_type_script_setup_true_lang-5f26c7d7.js +30 -0
  4. package/dist/client/assets/VPanelGrids-2e4d7603.js +15 -0
  5. package/dist/client/assets/VTextInput-52804693.css +18 -0
  6. package/dist/client/assets/VTextInput.vue_vue_type_script_setup_true_lang-11aa9678.js +145 -0
  7. package/dist/client/assets/__inspecting-ca212e33.js +51 -0
  8. package/dist/client/assets/assets-7d94be21.js +1403 -0
  9. package/dist/client/assets/components-f04eb68e.js +699 -0
  10. package/dist/client/assets/fuse.esm-c317b696.js +1782 -0
  11. package/dist/client/assets/graph-b9e504aa.js +52260 -0
  12. package/dist/client/assets/index-ab9e9151.js +15372 -0
  13. package/dist/client/assets/index-f0fa9f81.css +454 -0
  14. package/dist/client/assets/inspect-d697adb8.js +96 -0
  15. package/dist/client/assets/overview-afb7d69a.js +305 -0
  16. package/dist/client/assets/pages-43ddf646.js +21 -0
  17. package/dist/client/assets/pages-4aa45253.js +320 -0
  18. package/dist/client/assets/pinia-178be7b6.js +139 -0
  19. package/dist/client/assets/routes-cd4e8e50.js +129 -0
  20. package/dist/client/assets/rpc-c07563d7.js +136 -0
  21. package/dist/client/assets/settings-c9f4467d.js +299 -0
  22. package/dist/client/assets/splitpanes.es-f2ab0d30.js +725 -0
  23. package/dist/client/assets/timeline-6da2fbae.js +209 -0
  24. package/dist/client/index.html +23 -0
  25. package/dist/index.cjs +7764 -0
  26. package/dist/index.d.ts +5 -0
  27. package/dist/index.mjs +7748 -0
  28. package/package.json +92 -8
  29. package/src/node/Container.vue +298 -0
  30. package/src/node/app.js +41 -0
@@ -0,0 +1,320 @@
1
+ import { _ as _sfc_main$3, a as __unplugin_components_3 } from './VTextInput.vue_vue_type_script_setup_true_lang-11aa9678.js';
2
+ import { d as defineComponent, P as ref, Q 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, O as __unplugin_components_1, f as onMounted, z as isRef, B as withKeys } from './index-ab9e9151.js';
3
+ import { i as initPages, c as currentRoute, r as router, a as routes } from './pages-43ddf646.js';
4
+ import './VIconTitle.vue_vue_type_script_setup_true_lang-5f26c7d7.js';
5
+ import './VIcon.vue_vue_type_script_setup_true_lang-c622c694.js';
6
+
7
+ const _hoisted_1$2 = {
8
+ block: "",
9
+ "cursor-pointer": ""
10
+ };
11
+ const _hoisted_2$2 = { p2: "" };
12
+ const _hoisted_3$2 = ["onSubmit"];
13
+ const _hoisted_4$2 = /* @__PURE__ */ createBaseVNode("div", {
14
+ px2: "",
15
+ "text-sm": "",
16
+ op50: ""
17
+ }, " Fill params and navigate: ", -1);
18
+ const _hoisted_5$2 = {
19
+ flex: "~",
20
+ "items-center": "",
21
+ p2: "",
22
+ "font-mono": "",
23
+ "text-sm": ""
24
+ };
25
+ const _hoisted_6$2 = { key: 1 };
26
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
27
+ __name: "RoutePathItem",
28
+ props: {
29
+ route: null
30
+ },
31
+ emits: ["navigate"],
32
+ setup(__props, { emit }) {
33
+ const props = __props;
34
+ function parseExpressRoute(route) {
35
+ return route.split(/(:\w+[\?\*]?)/).filter(Boolean);
36
+ }
37
+ const partsInput = ref([]);
38
+ const parts = computed(() => {
39
+ const _ = parseExpressRoute(props.route.path);
40
+ partsInput.value = Array.from({ length: _.length }, () => "");
41
+ return _;
42
+ });
43
+ const path = computed(() => parts.value.map((i, idx) => i[0] === ":" ? partsInput.value[idx] : i).join("").replace(/\/+/g, "/"));
44
+ const hasWildcard = computed(() => props.route.path.includes(":"));
45
+ function navigate() {
46
+ emit("navigate", path.value);
47
+ }
48
+ return (_ctx, _cache) => {
49
+ const _component_VTextInput = _sfc_main$3;
50
+ const _component_VButton = _sfc_main$4;
51
+ const _component_VDropdown = resolveComponent("VDropdown");
52
+ return !unref(hasWildcard) ? (openBlock(), createElementBlock("button", {
53
+ key: 0,
54
+ onClick: navigate
55
+ }, [
56
+ createBaseVNode("code", null, toDisplayString(__props.route.path), 1)
57
+ ])) : (openBlock(), createBlock(_component_VDropdown, { key: 1 }, {
58
+ popper: withCtx(({ hide }) => [
59
+ createBaseVNode("div", _hoisted_2$2, [
60
+ createBaseVNode("form", {
61
+ flex: "~ col",
62
+ onSubmit: withModifiers(() => {
63
+ navigate();
64
+ hide();
65
+ }, ["prevent"])
66
+ }, [
67
+ unref(hasWildcard) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
68
+ _hoisted_4$2,
69
+ createBaseVNode("div", _hoisted_5$2, [
70
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(parts), (part, idx) => {
71
+ return openBlock(), createElementBlock(Fragment, { key: idx }, [
72
+ part[0] === ":" ? (openBlock(), createBlock(_component_VTextInput, {
73
+ key: 0,
74
+ modelValue: unref(partsInput)[idx],
75
+ "onUpdate:modelValue": ($event) => unref(partsInput)[idx] = $event,
76
+ "w-20": "",
77
+ "n-sm": "",
78
+ placeholder: part.slice(1)
79
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : (openBlock(), createElementBlock("span", _hoisted_6$2, toDisplayString(part), 1))
80
+ ], 64);
81
+ }), 128))
82
+ ])
83
+ ], 64)) : createCommentVNode("", true),
84
+ createVNode(_component_VButton, {
85
+ block: "",
86
+ n: "primary"
87
+ }, {
88
+ default: withCtx(() => [
89
+ createTextVNode(" Navigate ")
90
+ ]),
91
+ _: 1
92
+ })
93
+ ], 40, _hoisted_3$2)
94
+ ])
95
+ ]),
96
+ default: withCtx(() => [
97
+ createBaseVNode("code", _hoisted_1$2, [
98
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(parts), (part, idx) => {
99
+ return openBlock(), createElementBlock("span", {
100
+ key: idx,
101
+ class: normalizeClass(part[0] === ":" ? "text-gray border border-dashed rounded border-gray:50 px1" : "")
102
+ }, toDisplayString(part[0] === ":" ? part.slice(1) : part), 3);
103
+ }), 128))
104
+ ])
105
+ ]),
106
+ _: 1
107
+ }));
108
+ };
109
+ }
110
+ });
111
+
112
+ /* Injected with object hook! */
113
+
114
+ const _hoisted_1$1 = { "w-full": "" };
115
+ const _hoisted_2$1 = /* @__PURE__ */ createBaseVNode("thead", { border: "b base" }, [
116
+ /* @__PURE__ */ createBaseVNode("tr", null, [
117
+ /* @__PURE__ */ createBaseVNode("th", { "text-left": "" }),
118
+ /* @__PURE__ */ createBaseVNode("th", { "text-left": "" }, " Route Path "),
119
+ /* @__PURE__ */ createBaseVNode("th", { "text-left": "" }, " Name ")
120
+ ])
121
+ ], -1);
122
+ const _hoisted_3$1 = {
123
+ "w-20": "",
124
+ "pr-1": ""
125
+ };
126
+ const _hoisted_4$1 = {
127
+ flex: "",
128
+ "items-center": "",
129
+ "justify-end": ""
130
+ };
131
+ const _hoisted_5$1 = { "text-sm": "" };
132
+ const _hoisted_6$1 = {
133
+ flex: "inline gap3",
134
+ "items-center": ""
135
+ };
136
+ const _hoisted_7$1 = {
137
+ "w-30": "",
138
+ "ws-nowrap": "",
139
+ "pr-1": "",
140
+ "text-left": "",
141
+ "font-mono": "",
142
+ "text-sm": "",
143
+ op50: ""
144
+ };
145
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
146
+ __name: "RoutesTable",
147
+ props: {
148
+ pages: null,
149
+ matched: null,
150
+ matchedPending: null
151
+ },
152
+ emits: ["navigate"],
153
+ setup(__props) {
154
+ const props = __props;
155
+ const sorted = computed(() => {
156
+ return [...props.pages].sort((a, b) => a.path.localeCompare(b.path));
157
+ });
158
+ return (_ctx, _cache) => {
159
+ const _component_VBadge = __unplugin_components_1;
160
+ const _component_RoutePathItem = _sfc_main$2;
161
+ return openBlock(), createElementBlock("div", null, [
162
+ createBaseVNode("table", _hoisted_1$1, [
163
+ _hoisted_2$1,
164
+ createBaseVNode("tbody", null, [
165
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(sorted), (item) => {
166
+ return openBlock(), createElementBlock("tr", {
167
+ key: item.name,
168
+ class: "group",
169
+ "h-7": "",
170
+ border: "b dashed transparent hover:base"
171
+ }, [
172
+ createBaseVNode("td", _hoisted_3$1, [
173
+ createBaseVNode("div", _hoisted_4$1, [
174
+ __props.matched.find((m) => m.path === item.path) ? (openBlock(), createBlock(_component_VBadge, {
175
+ key: 0,
176
+ "bg-green-400:10": "",
177
+ "text-green-400": "",
178
+ title: "active",
179
+ textContent: "active"
180
+ })) : createCommentVNode("", true),
181
+ __props.matchedPending.find((m) => m.path === item.path) ? (openBlock(), createBlock(_component_VBadge, {
182
+ key: 1,
183
+ "bg-teal-400:10": "",
184
+ "text-teal-400": "",
185
+ title: "next",
186
+ textContent: "next"
187
+ })) : createCommentVNode("", true)
188
+ ])
189
+ ]),
190
+ createBaseVNode("td", _hoisted_5$1, [
191
+ createBaseVNode("div", _hoisted_6$1, [
192
+ createVNode(_component_RoutePathItem, {
193
+ route: item,
194
+ class: normalizeClass(__props.matched.find((m) => m.path === item.path) ? "text-primary" : __props.matchedPending.find((m) => m.name === item.name) ? "text-teal" : ""),
195
+ onNavigate: _cache[0] || (_cache[0] = (path) => _ctx.$emit("navigate", path))
196
+ }, null, 8, ["route", "class"])
197
+ ])
198
+ ]),
199
+ createBaseVNode("td", _hoisted_7$1, toDisplayString(item.name ?? "-"), 1)
200
+ ]);
201
+ }), 128))
202
+ ])
203
+ ])
204
+ ]);
205
+ };
206
+ }
207
+ });
208
+
209
+ /* Injected with object hook! */
210
+
211
+ const _hoisted_1 = {
212
+ "h-full": "",
213
+ "of-auto": "",
214
+ "n-panel-grids": ""
215
+ };
216
+ const _hoisted_2 = {
217
+ border: "b base",
218
+ flex: "~ col gap1",
219
+ px4: "",
220
+ py3: "",
221
+ "navbar-glass": ""
222
+ };
223
+ const _hoisted_3 = /* @__PURE__ */ createBaseVNode("span", { op50: "" }, "Navigate from ", -1);
224
+ const _hoisted_4 = { "font-mono": "" };
225
+ const _hoisted_5 = /* @__PURE__ */ createBaseVNode("span", { op50: "" }, " to ", -1);
226
+ const _hoisted_6 = {
227
+ key: 1,
228
+ op50: ""
229
+ };
230
+ const _hoisted_7 = /* @__PURE__ */ createBaseVNode("span", null, [
231
+ /* @__PURE__ */ createTextVNode("Press "),
232
+ /* @__PURE__ */ createBaseVNode("b", { "font-bold": "" }, "Enter"),
233
+ /* @__PURE__ */ createTextVNode(" to navigate")
234
+ ], -1);
235
+ const _hoisted_8 = {
236
+ key: 0,
237
+ "text-orange": "",
238
+ op75: ""
239
+ };
240
+ const _hoisted_9 = {
241
+ key: 1,
242
+ op50: ""
243
+ };
244
+ const _sfc_main = /* @__PURE__ */ defineComponent({
245
+ __name: "pages",
246
+ setup(__props) {
247
+ const routeInput = ref("");
248
+ onMounted(() => {
249
+ initPages();
250
+ routeInput.value = currentRoute.value?.path ?? "/";
251
+ });
252
+ const routeInputMatched = computed(() => {
253
+ if (routeInput.value === currentRoute.value?.path)
254
+ return [];
255
+ return router.value?.resolve({
256
+ path: routeInput.value || "/"
257
+ }).matched ?? [];
258
+ });
259
+ function navigate() {
260
+ if (routeInput.value === currentRoute.value?.path)
261
+ return;
262
+ router.value?.push(routeInput.value || "/");
263
+ }
264
+ function navigateToRoute(path) {
265
+ router.value?.push(path);
266
+ }
267
+ return (_ctx, _cache) => {
268
+ const _component_VTextInput = _sfc_main$3;
269
+ const _component_RoutesTable = _sfc_main$1;
270
+ const _component_VSectionBlock = __unplugin_components_3;
271
+ return openBlock(), createElementBlock("div", _hoisted_1, [
272
+ createBaseVNode("div", _hoisted_2, [
273
+ createBaseVNode("div", null, [
274
+ unref(currentRoute)?.path !== unref(routeInput) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
275
+ _hoisted_3,
276
+ createBaseVNode("span", _hoisted_4, toDisplayString(unref(currentRoute)?.path), 1),
277
+ _hoisted_5
278
+ ], 64)) : (openBlock(), createElementBlock("span", _hoisted_6, "Current route"))
279
+ ]),
280
+ createVNode(_component_VTextInput, {
281
+ modelValue: unref(routeInput),
282
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(routeInput) ? routeInput.value = $event : null),
283
+ "font-mono": "",
284
+ icon: "carbon-direction-right-01 scale-y--100",
285
+ class: normalizeClass(unref(currentRoute)?.path === unref(routeInput) ? "" : unref(routeInputMatched).length ? "text-green" : "text-orange"),
286
+ onKeydown: withKeys(navigate, ["enter"])
287
+ }, null, 8, ["modelValue", "class", "onKeydown"]),
288
+ createBaseVNode("div", null, [
289
+ unref(currentRoute)?.path !== unref(routeInput) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
290
+ _hoisted_7,
291
+ !unref(routeInputMatched).length ? (openBlock(), createElementBlock("span", _hoisted_8, " (no match)")) : createCommentVNode("", true)
292
+ ], 64)) : (openBlock(), createElementBlock("span", _hoisted_9, "Edit path above to navigate"))
293
+ ])
294
+ ]),
295
+ createVNode(_component_VSectionBlock, {
296
+ icon: "carbon-tree-view-alt",
297
+ text: "All Routes",
298
+ description: `${unref(routes).length} routes registered in your application`,
299
+ padding: "pr5"
300
+ }, {
301
+ default: withCtx(() => [
302
+ createVNode(_component_RoutesTable, {
303
+ pages: unref(routes),
304
+ matched: unref(currentRoute)?.matched ?? [],
305
+ "matched-pending": unref(routeInputMatched),
306
+ onNavigate: navigateToRoute
307
+ }, null, 8, ["pages", "matched", "matched-pending"])
308
+ ]),
309
+ _: 1
310
+ }, 8, ["description"])
311
+ ]);
312
+ };
313
+ }
314
+ });
315
+
316
+ /* Injected with object hook! */
317
+
318
+ /* Injected with object hook! */
319
+
320
+ export { _sfc_main as default };
@@ -0,0 +1,139 @@
1
+ import { _ as __unplugin_components_0 } from './VPanelGrids-2e4d7603.js';
2
+ import { _ as __unplugin_components_7 } from './VCard-07e53519.js';
3
+ import { d as defineComponent, P as ref, Q as computed, R as piniaStoresId, S as reactivePick, T as toRaw, U as piniaState, V as piniaGetters, u as unref, W as piniaVisible, o as openBlock, c as createElementBlock, b as createVNode, w as withCtx, e as createBaseVNode, F as Fragment, r as renderList, a as createBlock, I as _sfc_main$1, n as normalizeClass, t as toDisplayString } from './index-ab9e9151.js';
4
+ import { g, M, _ as _sfc_main$2 } from './splitpanes.es-f2ab0d30.js';
5
+ import './VIcon.vue_vue_type_script_setup_true_lang-c622c694.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 Pinia ", -1);
29
+ const _hoisted_7 = /* @__PURE__ */ createBaseVNode("p", {
30
+ "text-sm": "",
31
+ op50: ""
32
+ }, " It seems you don't have pinia installed. ", -1);
33
+ const _sfc_main = /* @__PURE__ */ defineComponent({
34
+ __name: "pinia",
35
+ setup(__props) {
36
+ const activeIndex = ref(0);
37
+ const omitStoreId = computed(() => {
38
+ return activeIndex.value === 0 ? "" : piniaStoresId.value[activeIndex.value];
39
+ });
40
+ function select(index) {
41
+ activeIndex.value = index;
42
+ }
43
+ const data = computed(() => {
44
+ const state = omitStoreId.value ? reactivePick(toRaw(piniaState.value), omitStoreId.value) : piniaState.value;
45
+ const getters = omitStoreId.value ? reactivePick(toRaw(piniaGetters.value), omitStoreId.value) : piniaGetters.value;
46
+ const hasState = Object.values(unref(state)).some((item) => item !== void 0);
47
+ const hasGetters = Object.values(unref(getters)).some((item) => item !== void 0);
48
+ return [
49
+ hasState && {
50
+ key: "state",
51
+ value: toRaw(state)
52
+ },
53
+ hasGetters && {
54
+ key: "getters",
55
+ value: toRaw(getters)
56
+ }
57
+ ].filter(Boolean);
58
+ });
59
+ return (_ctx, _cache) => {
60
+ const _component_StateFields = _sfc_main$2;
61
+ const _component_TabIcon = _sfc_main$1;
62
+ const _component_VCard = __unplugin_components_7;
63
+ const _component_VPanelGrids = __unplugin_components_0;
64
+ return unref(piniaVisible) ? (openBlock(), createElementBlock("div", _hoisted_1, [
65
+ createVNode(unref(M), null, {
66
+ default: withCtx(() => [
67
+ createVNode(unref(g), { border: "r base" }, {
68
+ default: withCtx(() => [
69
+ createBaseVNode("div", _hoisted_2, [
70
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(piniaStoresId), (item, index) => {
71
+ return openBlock(), createElementBlock("div", {
72
+ key: index,
73
+ "vue-block": "",
74
+ class: normalizeClass([unref(activeIndex) === index ? "vue-block-active" : "vue-block-hover"]),
75
+ onClick: ($event) => select(index)
76
+ }, [
77
+ createBaseVNode("h3", _hoisted_4, [
78
+ createBaseVNode("span", {
79
+ class: normalizeClass([unref(activeIndex) === index ? "text-white" : "vue-block-text"])
80
+ }, toDisplayString(item), 3)
81
+ ])
82
+ ], 10, _hoisted_3);
83
+ }), 128))
84
+ ])
85
+ ]),
86
+ _: 1
87
+ }),
88
+ createVNode(unref(g), null, {
89
+ default: withCtx(() => [
90
+ createBaseVNode("div", _hoisted_5, [
91
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(data), (item, index) => {
92
+ return openBlock(), createBlock(_component_StateFields, {
93
+ id: index,
94
+ key: index,
95
+ data: item
96
+ }, null, 8, ["id", "data"]);
97
+ }), 128))
98
+ ])
99
+ ]),
100
+ _: 1
101
+ })
102
+ ]),
103
+ _: 1
104
+ })
105
+ ])) : (openBlock(), createBlock(_component_VPanelGrids, {
106
+ key: 1,
107
+ px5: ""
108
+ }, {
109
+ default: withCtx(() => [
110
+ createVNode(_component_VCard, {
111
+ flex: "~ col gap2",
112
+ "min-w-30": "",
113
+ "items-center": "",
114
+ p3: ""
115
+ }, {
116
+ default: withCtx(() => [
117
+ createVNode(_component_TabIcon, {
118
+ mb2: "",
119
+ "text-5xl": "",
120
+ icon: "icon-park-outline:pineapple",
121
+ title: "Pinia"
122
+ }),
123
+ _hoisted_6,
124
+ _hoisted_7
125
+ ]),
126
+ _: 1
127
+ })
128
+ ]),
129
+ _: 1
130
+ }));
131
+ };
132
+ }
133
+ });
134
+
135
+ /* Injected with object hook! */
136
+
137
+ /* Injected with object hook! */
138
+
139
+ export { _sfc_main as default };
@@ -0,0 +1,129 @@
1
+ import { _ as __unplugin_components_0 } from './VPanelGrids-2e4d7603.js';
2
+ import { _ as __unplugin_components_7 } from './VCard-07e53519.js';
3
+ import { d as defineComponent, f as onMounted, u as unref, J as routeRecordMatcherState, o as openBlock, c as createElementBlock, b as createVNode, w as withCtx, e as createBaseVNode, F as Fragment, r as renderList, K as activeRouteRecordMatcherState, a as createBlock, I as _sfc_main$2, n as normalizeClass, L as activeRouteRecordIndex, M as toggleRouteRecordMatcher, E as createTextVNode, t as toDisplayString, N as normalizeStyle, O as __unplugin_components_1 } from './index-ab9e9151.js';
4
+ import { g, M, _ as _sfc_main$1 } from './splitpanes.es-f2ab0d30.js';
5
+ import './VIcon.vue_vue_type_script_setup_true_lang-c622c694.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
+ onMounted(() => {
37
+ });
38
+ return (_ctx, _cache) => {
39
+ const _component_VBadge = __unplugin_components_1;
40
+ const _component_StateFields = _sfc_main$1;
41
+ const _component_TabIcon = _sfc_main$2;
42
+ const _component_VCard = __unplugin_components_7;
43
+ const _component_VPanelGrids = __unplugin_components_0;
44
+ return unref(routeRecordMatcherState)?.length ? (openBlock(), createElementBlock("div", _hoisted_1, [
45
+ createVNode(unref(M), null, {
46
+ default: withCtx(() => [
47
+ createVNode(unref(g), { border: "r base" }, {
48
+ default: withCtx(() => [
49
+ createBaseVNode("div", _hoisted_2, [
50
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(routeRecordMatcherState), (item, index) => {
51
+ return openBlock(), createElementBlock("div", {
52
+ key: index,
53
+ "vue-block": "",
54
+ class: normalizeClass([unref(activeRouteRecordIndex) === index ? "vue-block-active" : "vue-block-hover"]),
55
+ onClick: ($event) => unref(toggleRouteRecordMatcher)(index)
56
+ }, [
57
+ createBaseVNode("h3", _hoisted_4, [
58
+ createBaseVNode("span", {
59
+ class: normalizeClass([unref(activeRouteRecordIndex) === index ? "text-white" : "vue-block-text"])
60
+ }, [
61
+ createTextVNode(toDisplayString(item.path) + " ", 1),
62
+ (openBlock(true), createElementBlock(Fragment, null, renderList(item.tags, (tag, childIndex) => {
63
+ return openBlock(), createBlock(_component_VBadge, {
64
+ key: childIndex,
65
+ "text-black": "",
66
+ style: normalizeStyle({
67
+ backgroundColor: `#${tag.bgColor.toString(16)}`
68
+ })
69
+ }, {
70
+ default: withCtx(() => [
71
+ createTextVNode(toDisplayString(tag.label), 1)
72
+ ]),
73
+ _: 2
74
+ }, 1032, ["style"]);
75
+ }), 128))
76
+ ], 2)
77
+ ])
78
+ ], 10, _hoisted_3);
79
+ }), 128))
80
+ ])
81
+ ]),
82
+ _: 1
83
+ }),
84
+ createVNode(unref(g), null, {
85
+ default: withCtx(() => [
86
+ createBaseVNode("div", _hoisted_5, [
87
+ createVNode(_component_StateFields, { data: unref(activeRouteRecordMatcherState) }, null, 8, ["data"])
88
+ ])
89
+ ]),
90
+ _: 1
91
+ })
92
+ ]),
93
+ _: 1
94
+ })
95
+ ])) : (openBlock(), createBlock(_component_VPanelGrids, {
96
+ key: 1,
97
+ px5: ""
98
+ }, {
99
+ default: withCtx(() => [
100
+ createVNode(_component_VCard, {
101
+ flex: "~ col gap2",
102
+ "min-w-30": "",
103
+ "items-center": "",
104
+ p3: ""
105
+ }, {
106
+ default: withCtx(() => [
107
+ createVNode(_component_TabIcon, {
108
+ mb2: "",
109
+ "text-5xl": "",
110
+ icon: "i-logos-vue",
111
+ title: "Vue Router"
112
+ }),
113
+ _hoisted_6,
114
+ _hoisted_7
115
+ ]),
116
+ _: 1
117
+ })
118
+ ]),
119
+ _: 1
120
+ }));
121
+ };
122
+ }
123
+ });
124
+
125
+ /* Injected with object hook! */
126
+
127
+ /* Injected with object hook! */
128
+
129
+ export { _sfc_main as default };