@pinia/colada-devtools 0.0.1

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.
@@ -0,0 +1,614 @@
1
+ import { _ as O } from "./mouse-pointer-click-C8Q9Aulw.js";
2
+ import { m, c as l, o as n, a as e, d as j, Q as A, l as U, p as F, R as Q, C as M, P as v, g as w, h as b, S as W, t as u, _ as Y, T as G, M as P, b as X, U as Z, V as J, y as I, z as K, F as q, k as r, w as d, i as a, W as B, X as ee, j as te } from "./index-DfIXa7Jb.js";
3
+ import { _ as oe, a as se } from "./loader-B7hpsxwv.js";
4
+ const ne = {
5
+ viewBox: "0 0 24 24",
6
+ width: "1.2em",
7
+ height: "1.2em"
8
+ };
9
+ function le(i, s) {
10
+ return n(), l("svg", ne, s[0] || (s[0] = [
11
+ e("path", {
12
+ fill: "none",
13
+ stroke: "currentColor",
14
+ "stroke-linecap": "round",
15
+ "stroke-linejoin": "round",
16
+ "stroke-width": "2",
17
+ d: "M3 6h18m-2 0v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6m3 0V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"
18
+ }, null, -1)
19
+ ]));
20
+ }
21
+ const ie = m({ name: "lucide-trash", render: le }), ae = {
22
+ viewBox: "0 0 24 24",
23
+ width: "1.2em",
24
+ height: "1.2em"
25
+ };
26
+ function re(i, s) {
27
+ return n(), l("svg", ae, s[0] || (s[0] = [
28
+ e("g", {
29
+ fill: "none",
30
+ stroke: "currentColor",
31
+ "stroke-linecap": "round",
32
+ "stroke-linejoin": "round",
33
+ "stroke-width": "2"
34
+ }, [
35
+ e("path", { d: "M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8" }),
36
+ e("path", { d: "M3 3v5h5" })
37
+ ], -1)
38
+ ]));
39
+ }
40
+ const de = m({ name: "lucide-rotate-ccw", render: re }), ue = {
41
+ viewBox: "0 0 24 24",
42
+ width: "1.2em",
43
+ height: "1.2em"
44
+ };
45
+ function ce(i, s) {
46
+ return n(), l("svg", ue, s[0] || (s[0] = [
47
+ e("g", {
48
+ fill: "none",
49
+ stroke: "currentColor",
50
+ "stroke-linecap": "round",
51
+ "stroke-linejoin": "round",
52
+ "stroke-width": "2"
53
+ }, [
54
+ e("path", { d: "M10 2h4m-2 12v-4m-8 3a8 8 0 0 1 8-7a8 8 0 1 1-5.3 14L4 17.6" }),
55
+ e("path", { d: "M9 17H4v5" })
56
+ ], -1)
57
+ ]));
58
+ }
59
+ const pe = m({ name: "lucide-timer-reset", render: ce }), ve = {
60
+ viewBox: "0 0 24 24",
61
+ width: "1.2em",
62
+ height: "1.2em"
63
+ };
64
+ function me(i, s) {
65
+ return n(), l("svg", ve, s[0] || (s[0] = [
66
+ e("g", {
67
+ fill: "none",
68
+ stroke: "currentColor",
69
+ "stroke-linecap": "round",
70
+ "stroke-linejoin": "round",
71
+ "stroke-width": "2"
72
+ }, [
73
+ e("path", { d: "M3 12a9 9 0 0 1 9-9a9.75 9.75 0 0 1 6.74 2.74L21 8" }),
74
+ e("path", { d: "M21 3v5h-5m5 4a9 9 0 0 1-9 9a9.75 9.75 0 0 1-6.74-2.74L3 16" }),
75
+ e("path", { d: "M8 16H3v5" })
76
+ ], -1)
77
+ ]));
78
+ }
79
+ const he = m({ name: "lucide-refresh-cw", render: me }), fe = { class: "collapse collapse-arrow" }, _e = { class: "collapse-title px-2 py-0.5 bg-neutral-200 dark:bg-neutral-800 theme-neutral" }, ge = { class: "font-semibold text-sm flex gap-x-1 items-center" }, ke = /* @__PURE__ */ j({
80
+ __name: "UCollapse.ce",
81
+ props: /* @__PURE__ */ A({
82
+ title: { type: String },
83
+ icon: { type: null }
84
+ }, {
85
+ open: { type: Boolean, default: !0 },
86
+ openModifiers: {}
87
+ }),
88
+ emits: ["update:open"],
89
+ setup(i) {
90
+ const s = U(i, "open");
91
+ function _(o) {
92
+ if (o.target instanceof HTMLElement) {
93
+ const h = {
94
+ block: "nearest",
95
+ inline: "nearest",
96
+ behavior: "smooth"
97
+ };
98
+ o.target.scrollIntoView(h);
99
+ }
100
+ }
101
+ return (o, h) => (n(), l("div", fe, [
102
+ F(e("input", {
103
+ "onUpdate:modelValue": h[0] || (h[0] = (C) => s.value = C),
104
+ type: "checkbox"
105
+ }, null, 512), [
106
+ [Q, s.value]
107
+ ]),
108
+ e("div", _e, [
109
+ M(o.$slots, "title", {
110
+ open: s.value,
111
+ title: o.title
112
+ }, () => [
113
+ e("h3", ge, [
114
+ M(o.$slots, "icon", {}, () => [
115
+ o.icon ? (n(), w(W(o.icon), {
116
+ key: 0,
117
+ class: "size-4"
118
+ })) : b("", !0)
119
+ ], !0),
120
+ v(" " + u(o.title ?? "Group"), 1)
121
+ ])
122
+ ], !0)
123
+ ]),
124
+ e("div", {
125
+ class: "collapse-content px-2 text-sm overflow-hidden",
126
+ onTransitionend: _
127
+ }, [
128
+ M(o.$slots, "default", { open: s.value }, void 0, !0)
129
+ ], 32)
130
+ ]));
131
+ }
132
+ }), ye = '.collapse[data-v-a5be0055]:not(td,tr,colgroup){visibility:visible}.collapse[data-v-a5be0055]{position:relative;display:grid;overflow:hidden;width:100%;grid-template-rows:max-content 0fr;transition:grid-template-rows .2s;isolation:isolate}.collapse>input[data-v-a5be0055]:is([type=checkbox],[type=radio]){grid-column-start:1;grid-row-start:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0}.collapse[data-v-a5be0055]:is([open],:focus),.collapse[data-v-a5be0055]:has(>input:is([type=checkbox],[type=radio]):checked){grid-template-rows:max-content 1fr}.collapse:is([open],:focus)>.collapse-content[data-v-a5be0055],.collapse[data-v-a5be0055]:not(.collapse-close)>:where(input:is([type=checkbox],[type=radio]):checked~.collapse-content){visibility:visible;min-height:fit-content}.collapse[data-v-a5be0055]:focus-visible,.collapse[data-v-a5be0055]:has(>input:is([type=checkbox],[type=radio]):focus-visible){outline-color:var(--ui-text);outline-style:solid;outline-width:2px;outline-offset:2px}.collapse:not(.collapse-close)>input[type=checkbox][data-v-a5be0055],.collapse:not(.collapse-close)>input[type=radio][data-v-a5be0055]:not(:checked),.collapse:not(.collapse-close)>.collapse-title[data-v-a5be0055]{cursor:pointer}.collapse:focus:not(.collapse-close,.collapse[open])>.collapse-title[data-v-a5be0055]{cursor:unset}.collapse:is([open]).collapse-arrow>.collapse-title[data-v-a5be0055]:after{transform:translateY(-50%) rotate(225deg)}.collapse.collapse-arrow:focus>.collapse-title[data-v-a5be0055]:after{transform:translateY(-50%) rotate(225deg)}.collapse.collapse-arrow>input:is([type=checkbox],[type=radio]):checked~.collapse-title[data-v-a5be0055]:after{transform:translateY(-50%) rotate(225deg)}.collapse>input[data-v-a5be0055]:is([type=checkbox],[type=radio]){z-index:1;width:100%}.collapse-title[data-v-a5be0055],.collapse-content[data-v-a5be0055]{grid-column-start:1;grid-row-start:1}.collapse-content[data-v-a5be0055]{visibility:hidden;grid-column-start:1;grid-row-start:2;min-height:0;cursor:unset;transition:visibility .2s}.collapse-arrow>.collapse-title[data-v-a5be0055]:after{position:absolute;display:block;height:.5rem;width:.5rem;transform:translateY(-100%) rotate(45deg);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s;top:50%;right:.8em;inset-inline-end:.75rem;content:"";transform-origin:75% 75%;box-shadow:2px 2px;pointer-events:none}.collapse-title[data-v-a5be0055]{position:relative;width:100%;transition:background-color .2s ease-out}', xe = /* @__PURE__ */ Y(ke, [["styles", [ye]], ["__scopeId", "data-v-a5be0055"]]);
133
+ function we(i) {
134
+ if (i < 1e3)
135
+ return `${Math.round(i)} ms`;
136
+ const s = i / 1e3;
137
+ if (i < 1e4)
138
+ return `${s.toFixed(3)} seconds`;
139
+ if (i < 6e4)
140
+ return `${Math.floor(s)} seconds`;
141
+ const _ = Math.floor(s / 60);
142
+ return i < 36e5 ? `${_} minute${_ > 1 ? "s" : ""}` : `${Math.floor(_ / 60)}h${_ % 60}m${s % 60}s`;
143
+ }
144
+ const be = {
145
+ viewBox: "0 0 24 24",
146
+ width: "1.2em",
147
+ height: "1.2em"
148
+ };
149
+ function $e(i, s) {
150
+ return n(), l("svg", be, s[0] || (s[0] = [
151
+ e("path", {
152
+ fill: "none",
153
+ stroke: "currentColor",
154
+ "stroke-linecap": "round",
155
+ "stroke-linejoin": "round",
156
+ "stroke-width": "2",
157
+ d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"
158
+ }, null, -1)
159
+ ]));
160
+ }
161
+ const Ce = m({ name: "lucide-wrench", render: $e }), Me = {
162
+ viewBox: "0 0 24 24",
163
+ width: "1.2em",
164
+ height: "1.2em"
165
+ };
166
+ function qe(i, s) {
167
+ return n(), l("svg", Me, s[0] || (s[0] = [
168
+ e("g", {
169
+ fill: "none",
170
+ stroke: "currentColor",
171
+ "stroke-linecap": "round",
172
+ "stroke-linejoin": "round",
173
+ "stroke-width": "2"
174
+ }, [
175
+ e("circle", {
176
+ cx: "12",
177
+ cy: "12",
178
+ r: "10"
179
+ }),
180
+ e("path", { d: "M12 16v-4m0-4h.01" })
181
+ ], -1)
182
+ ]));
183
+ }
184
+ const Be = m({ name: "lucide-info", render: qe }), Te = {
185
+ viewBox: "0 0 24 24",
186
+ width: "1.2em",
187
+ height: "1.2em"
188
+ };
189
+ function Se(i, s) {
190
+ return n(), l("svg", Te, s[0] || (s[0] = [
191
+ e("g", {
192
+ fill: "none",
193
+ stroke: "currentColor",
194
+ "stroke-linecap": "round",
195
+ "stroke-linejoin": "round",
196
+ "stroke-width": "2"
197
+ }, [
198
+ e("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }),
199
+ e("path", { d: "M14 2v4a2 2 0 0 0 2 2h4M10 9H8m8 4H8m8 4H8" })
200
+ ], -1)
201
+ ]));
202
+ }
203
+ const ze = m({ name: "lucide-file-text", render: Se }), He = {
204
+ viewBox: "0 0 24 24",
205
+ width: "1.2em",
206
+ height: "1.2em"
207
+ };
208
+ function Ie(i, s) {
209
+ return n(), l("svg", He, s[0] || (s[0] = [
210
+ e("g", {
211
+ fill: "none",
212
+ stroke: "currentColor",
213
+ "stroke-linecap": "round",
214
+ "stroke-linejoin": "round",
215
+ "stroke-width": "2"
216
+ }, [
217
+ e("circle", {
218
+ cx: "12",
219
+ cy: "12",
220
+ r: "10"
221
+ }),
222
+ e("path", { d: "m15 9l-6 6m0-6l6 6" })
223
+ ], -1)
224
+ ]));
225
+ }
226
+ const je = m({ name: "lucide-circle-x", render: Ie }), De = {
227
+ viewBox: "0 0 24 24",
228
+ width: "1.2em",
229
+ height: "1.2em"
230
+ };
231
+ function Ve(i, s) {
232
+ return n(), l("svg", De, s[0] || (s[0] = [
233
+ e("path", {
234
+ fill: "none",
235
+ stroke: "currentColor",
236
+ "stroke-linecap": "round",
237
+ "stroke-linejoin": "round",
238
+ "stroke-width": "2",
239
+ d: "M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2a2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1m8 0h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1"
240
+ }, null, -1)
241
+ ]));
242
+ }
243
+ const Re = m({ name: "lucide-braces", render: Ve }), Ee = {
244
+ viewBox: "0 0 24 24",
245
+ width: "1.2em",
246
+ height: "1.2em"
247
+ };
248
+ function Le(i, s) {
249
+ return n(), l("svg", Ee, s[0] || (s[0] = [
250
+ e("g", {
251
+ fill: "none",
252
+ stroke: "currentColor",
253
+ "stroke-linecap": "round",
254
+ "stroke-linejoin": "round",
255
+ "stroke-width": "2"
256
+ }, [
257
+ e("path", { d: "M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8" }),
258
+ e("path", { d: "M3 3v5h5m4-1v5l4 2" })
259
+ ], -1)
260
+ ]));
261
+ }
262
+ const Ne = m({ name: "lucide-history", render: Le }), Oe = {
263
+ viewBox: "0 0 24 24",
264
+ width: "1.2em",
265
+ height: "1.2em"
266
+ };
267
+ function Ae(i, s) {
268
+ return n(), l("svg", Oe, s[0] || (s[0] = [
269
+ e("g", {
270
+ fill: "none",
271
+ stroke: "currentColor",
272
+ "stroke-linecap": "round",
273
+ "stroke-linejoin": "round",
274
+ "stroke-width": "2"
275
+ }, [
276
+ e("rect", {
277
+ width: "18",
278
+ height: "18",
279
+ x: "3",
280
+ y: "3",
281
+ rx: "2"
282
+ }),
283
+ e("path", { d: "M16 8.9V7H8l4 5l-4 5h8v-1.9" })
284
+ ], -1)
285
+ ]));
286
+ }
287
+ const Ue = m({ name: "lucide-sigma-square", render: Ae }), Fe = { class: "flex flex-col divide-y dark:divide-(--ui-border) divide-(--ui-border-accented)" }, Qe = { class: "py-1 text-sm" }, We = { class: "grid grid-cols-[auto_1fr] gap-1" }, Ye = { class: "rounded bg-neutral-500/20 p-0.5" }, Ge = {
288
+ class: "grid grid-cols-[auto_1fr] gap-x-2",
289
+ title: "When was the query entry last updated"
290
+ }, Pe = { class: "font-bold" }, Xe = {
291
+ key: 0,
292
+ class: "grid grid-cols-[auto_1fr] gap-x-2",
293
+ title: "When was the last time the query was fetched"
294
+ }, Ze = { class: "font-bold" }, Je = {
295
+ key: 1,
296
+ class: "grid grid-cols-[auto_1fr] gap-x-2",
297
+ title: "How long did the last query take to fetch"
298
+ }, Ke = { class: "font-bold" }, et = {
299
+ class: "grid grid-cols-[auto_1fr] gap-x-2",
300
+ title: "How many components and effects are using this query"
301
+ }, tt = { class: "font-bold" }, ot = {
302
+ key: 2,
303
+ class: "grid grid-cols-[auto_1fr] gap-x-2",
304
+ title: "When is this query entry garbace collected"
305
+ }, st = { class: "font-bold" }, nt = { class: "py-2 gap-2 flex flex-wrap items-center justify-items-start" }, lt = { class: "py-1" }, it = {
306
+ key: 0,
307
+ class: "rounded p-1 overflow-auto max-h-[1200px]"
308
+ }, at = {
309
+ key: 1,
310
+ class: "text-neutral-500/50"
311
+ }, rt = { class: "py-1" }, dt = {
312
+ key: 0,
313
+ class: "rounded p-1 overflow-auto max-h-[1200px]"
314
+ }, ut = {
315
+ key: 1,
316
+ class: "text-neutral-500/50"
317
+ }, ct = { class: "py-1" }, pt = { class: "grid grid-cols-[auto_1fr] gap-1" }, vt = { class: "font-bold" }, mt = { class: "font-bold" }, ht = { class: "font-bold" }, ft = { class: "font-bold" }, _t = { class: "py-1" }, gt = { class: "rounded p-1 overflow-auto max-h-[1200px]" }, kt = { class: "py-1" }, yt = {
318
+ key: 0,
319
+ class: "rounded bg-neutral-500/20 p-1 overflow-auto max-h-[1200px]"
320
+ }, xt = { key: 1 }, wt = {
321
+ key: 1,
322
+ class: "py-6 mx-auto"
323
+ }, bt = { class: "flex flex-col text-center items-center gap-2 text-lg px-2" }, qt = /* @__PURE__ */ j({
324
+ __name: "[queryId]",
325
+ setup(i) {
326
+ const s = G(), _ = P(), o = X(() => _.value.find((c) => c.id === s.params.queryId) ?? null), h = {
327
+ showSecond: !0,
328
+ rounding: "floor",
329
+ max: 1e3 * 60 * 5
330
+ // 5 minutes
331
+ }, C = Z(() => {
332
+ var c;
333
+ return ((c = o.value) == null ? void 0 : c.devtools.updatedAt) ?? 0;
334
+ }, {
335
+ ...h,
336
+ updateInterval: 3e3
337
+ }), k = J(), x = I(!1);
338
+ let T = x.value, S = null;
339
+ const $ = I(!1);
340
+ return K(
341
+ () => {
342
+ var c;
343
+ return (c = o.value) == null ? void 0 : c.state;
344
+ },
345
+ (c) => {
346
+ !c || S === c.status || (S = c.status, c.status === "error" ? ($.value = !0, T = x.value, x.value = !1) : c.status === "success" && (x.value = T, $.value = !1));
347
+ }
348
+ ), (c, t) => {
349
+ const g = xe, D = he, y = ee, V = pe, z = oe, R = se, E = de, L = ie, N = O;
350
+ return n(), l("div", Fe, [
351
+ o.value ? (n(), l(q, { key: 0 }, [
352
+ r(g, {
353
+ title: "Details",
354
+ icon: a(Be)
355
+ }, {
356
+ default: d(() => {
357
+ var p, f, H;
358
+ return [
359
+ e("div", Qe, [
360
+ e("p", We, [
361
+ t[9] || (t[9] = e("span", null, "key:", -1)),
362
+ e("span", null, [
363
+ e("code", Ye, u(o.value.key), 1)
364
+ ])
365
+ ]),
366
+ e("p", Ge, [
367
+ t[10] || (t[10] = e("span", null, "Last update:", -1)),
368
+ e("span", Pe, u(a(C)), 1)
369
+ ]),
370
+ (p = o.value.devtools.history.at(0)) != null && p.fetchTime ? (n(), l("p", Xe, [
371
+ t[11] || (t[11] = e("span", null, "Last fetch:", -1)),
372
+ e("span", Ze, u(a(B)(new Date(o.value.devtools.history.at(0).fetchTime.start), {
373
+ ...h,
374
+ max: void 0
375
+ })), 1)
376
+ ])) : b("", !0),
377
+ (H = (f = o.value.devtools.history.at(0)) == null ? void 0 : f.fetchTime) != null && H.end ? (n(), l("p", Je, [
378
+ t[12] || (t[12] = e("span", null, "Fetch duration:", -1)),
379
+ e("span", Ke, u(a(we)(
380
+ o.value.devtools.history.at(0).fetchTime.end - o.value.devtools.history.at(0).fetchTime.start
381
+ )), 1)
382
+ ])) : b("", !0),
383
+ e("p", et, [
384
+ e("span", null, [
385
+ t[13] || (t[13] = v("Observers: ")),
386
+ e("span", tt, u(o.value.deps.length), 1)
387
+ ])
388
+ ]),
389
+ !o.value.active && o.value.options ? (n(), l("p", ot, [
390
+ typeof o.value.options.gcTime == "number" && Number.isFinite(o.value.options.gcTime) ? (n(), l(q, { key: 0 }, [
391
+ t[14] || (t[14] = e("span", null, [
392
+ v("Will be "),
393
+ e("i", null, "gced")
394
+ ], -1)),
395
+ e("span", st, u(a(B)(
396
+ new Date(o.value.devtools.inactiveAt + o.value.options.gcTime),
397
+ {
398
+ ...h,
399
+ max: void 0
400
+ }
401
+ )), 1)
402
+ ], 64)) : b("", !0)
403
+ ])) : b("", !0)
404
+ ])
405
+ ];
406
+ }),
407
+ _: 1
408
+ }, 8, ["icon"]),
409
+ r(g, {
410
+ title: "Actions",
411
+ icon: a(Ce)
412
+ }, {
413
+ default: d(() => {
414
+ var p;
415
+ return [
416
+ e("div", nt, [
417
+ r(y, {
418
+ class: "theme-info",
419
+ size: "sm",
420
+ title: "Refetch this query",
421
+ disabled: ((p = o.value.options) == null ? void 0 : p.enabled) === !1,
422
+ onClick: t[0] || (t[0] = (f) => a(k).emit("queries:refetch", o.value.key))
423
+ }, {
424
+ default: d(() => [
425
+ r(D, { class: "size-3.5" }),
426
+ t[15] || (t[15] = v(" Refetch "))
427
+ ]),
428
+ _: 1
429
+ }, 8, ["disabled"]),
430
+ r(y, {
431
+ class: "theme-neutral",
432
+ size: "sm",
433
+ title: "Invalidate this query",
434
+ onClick: t[1] || (t[1] = (f) => a(k).emit("queries:invalidate", o.value.key))
435
+ }, {
436
+ default: d(() => [
437
+ r(V),
438
+ t[16] || (t[16] = v(" Invalidate "))
439
+ ]),
440
+ _: 1
441
+ }),
442
+ o.value.devtools.simulate !== "loading" ? (n(), w(y, {
443
+ key: 0,
444
+ class: "theme-purple",
445
+ size: "sm",
446
+ title: "Restore the previous state",
447
+ onClick: t[2] || (t[2] = (f) => a(k).emit("queries:simulate:loading", o.value.key))
448
+ }, {
449
+ default: d(() => [
450
+ r(z),
451
+ t[17] || (t[17] = v(" Simulate loading "))
452
+ ]),
453
+ _: 1
454
+ })) : (n(), w(y, {
455
+ key: 1,
456
+ class: "theme-purple",
457
+ size: "sm",
458
+ title: "Simulate a loading state",
459
+ onClick: t[3] || (t[3] = (f) => a(k).emit("queries:simulate:loading:stop", o.value.key))
460
+ }, {
461
+ default: d(() => [
462
+ r(z, { class: "animate-spin" }),
463
+ t[18] || (t[18] = v(" Stop loading "))
464
+ ]),
465
+ _: 1
466
+ })),
467
+ o.value.devtools.simulate !== "error" ? (n(), w(y, {
468
+ key: 2,
469
+ class: "theme-error",
470
+ size: "sm",
471
+ title: "Simulate an Error state",
472
+ onClick: t[4] || (t[4] = (f) => a(k).emit("queries:simulate:error", o.value.key))
473
+ }, {
474
+ default: d(() => [
475
+ r(R),
476
+ t[19] || (t[19] = v(" Simulate error "))
477
+ ]),
478
+ _: 1
479
+ })) : (n(), w(y, {
480
+ key: 3,
481
+ class: "theme-error",
482
+ size: "sm",
483
+ title: "Restore the previous state",
484
+ onClick: t[5] || (t[5] = (f) => a(k).emit("queries:simulate:error:stop", o.value.key))
485
+ }, {
486
+ default: d(() => [
487
+ r(E),
488
+ t[20] || (t[20] = v(" Remove error "))
489
+ ]),
490
+ _: 1
491
+ })),
492
+ r(y, {
493
+ class: "theme-warning",
494
+ size: "sm",
495
+ title: "Reset this query to its initial (pending) state",
496
+ onClick: t[6] || (t[6] = (f) => a(k).emit("queries:reset", o.value.key))
497
+ }, {
498
+ default: d(() => [
499
+ r(L),
500
+ t[21] || (t[21] = v(" Reset "))
501
+ ]),
502
+ _: 1
503
+ })
504
+ ])
505
+ ];
506
+ }),
507
+ _: 1
508
+ }, 8, ["icon"]),
509
+ r(g, {
510
+ open: x.value,
511
+ "onUpdate:open": t[7] || (t[7] = (p) => x.value = p),
512
+ title: "Data",
513
+ icon: a(ze)
514
+ }, {
515
+ default: d(() => [
516
+ e("div", lt, [
517
+ o.value.state.data !== void 0 ? (n(), l("pre", it, u(o.value.state.data), 1)) : (n(), l("p", at, " No data "))
518
+ ])
519
+ ]),
520
+ _: 1
521
+ }, 8, ["open", "icon"]),
522
+ r(g, {
523
+ open: $.value,
524
+ "onUpdate:open": t[8] || (t[8] = (p) => $.value = p),
525
+ title: `Error${o.value.state.status === "error" ? " (!)" : ""}`,
526
+ icon: a(je)
527
+ }, {
528
+ default: d(() => [
529
+ e("div", rt, [
530
+ o.value.state.error ? (n(), l("pre", dt, u(o.value.state.error), 1)) : (n(), l("p", ut, " No error "))
531
+ ])
532
+ ]),
533
+ _: 1
534
+ }, 8, ["open", "title", "icon"]),
535
+ r(g, {
536
+ title: "Call count",
537
+ icon: a(Ue),
538
+ open: !1
539
+ }, {
540
+ default: d(() => [
541
+ e("div", ct, [
542
+ e("p", pt, [
543
+ t[22] || (t[22] = e("span", null, "Calls:", -1)),
544
+ e("span", null, [
545
+ e("code", vt, u(o.value.devtools.count.total), 1)
546
+ ]),
547
+ t[23] || (t[23] = e("span", null, "Success:", -1)),
548
+ e("span", null, [
549
+ e("code", mt, u(o.value.devtools.count.succeed), 1)
550
+ ]),
551
+ t[24] || (t[24] = e("span", null, "Errors:", -1)),
552
+ e("span", null, [
553
+ e("code", ht, u(o.value.devtools.count.errored), 1)
554
+ ]),
555
+ t[25] || (t[25] = e("span", null, "Cancelled:", -1)),
556
+ e("span", null, [
557
+ e("code", ft, u(o.value.devtools.count.cancelled), 1)
558
+ ])
559
+ ])
560
+ ])
561
+ ]),
562
+ _: 1
563
+ }, 8, ["icon"]),
564
+ r(g, {
565
+ title: `History (${o.value.devtools.history.length})`,
566
+ icon: a(Ne),
567
+ open: !1
568
+ }, {
569
+ default: d(() => [
570
+ e("div", _t, [
571
+ (n(!0), l(q, null, te(o.value.devtools.history, (p) => (n(), w(g, {
572
+ key: p.updatedAt,
573
+ title: `Entry nº${p.id} (${a(B)(new Date(p.updatedAt), h)})`,
574
+ open: !1
575
+ }, {
576
+ default: d(() => [
577
+ e("pre", gt, u(p), 1)
578
+ ]),
579
+ _: 2
580
+ }, 1032, ["title"]))), 128))
581
+ ])
582
+ ]),
583
+ _: 1
584
+ }, 8, ["title", "icon"]),
585
+ r(g, {
586
+ title: "Options",
587
+ open: !1,
588
+ icon: a(Re)
589
+ }, {
590
+ default: d(() => [
591
+ e("div", kt, [
592
+ o.value.options ? (n(), l("pre", yt, u(o.value.options), 1)) : (n(), l("p", xt, t[26] || (t[26] = [
593
+ v(" This Query entry has no options. It might have been created from the server or manually set with "),
594
+ e("code", null, "queryCache.setQueryData()", -1),
595
+ v(" for prefetching. ")
596
+ ])))
597
+ ])
598
+ ]),
599
+ _: 1
600
+ }, 8, ["icon"])
601
+ ], 64)) : (n(), l("div", wt, [
602
+ e("p", bt, [
603
+ t[27] || (t[27] = v(" Select a Query to inspect ")),
604
+ r(N)
605
+ ])
606
+ ]))
607
+ ]);
608
+ };
609
+ }
610
+ });
611
+ export {
612
+ qt as default
613
+ };
614
+ //# sourceMappingURL=_queryId_-hQFnZzX2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_queryId_-hQFnZzX2.js","sources":["../src/panel/components/UCollapse.ce.vue","../src/panel/utils/time.ts","../src/panel/pages/queries/[queryId].vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { Component } from 'vue'\n\ndefineProps<{\n title?: string\n icon?: Component\n}>()\n\nconst open = defineModel<boolean>('open', {\n default: true,\n})\n\nfunction scrollIfNeeded(event: TransitionEvent) {\n if (event.target instanceof HTMLElement) {\n const scrollOptions: ScrollIntoViewOptions = {\n block: 'nearest',\n inline: 'nearest',\n behavior: 'smooth',\n }\n event.target.scrollIntoView(scrollOptions)\n }\n}\n</script>\n\n<template>\n <div class=\"collapse collapse-arrow\">\n <input v-model=\"open\" type=\"checkbox\">\n <div class=\"collapse-title px-2 py-0.5 bg-neutral-200 dark:bg-neutral-800 theme-neutral\">\n <slot name=\"title\" :open :title>\n <h3 class=\"font-semibold text-sm flex gap-x-1 items-center\">\n <slot name=\"icon\">\n <component :is=\"icon\" v-if=\"icon\" class=\"size-4\" />\n </slot>\n {{ title ?? 'Group' }}\n </h3>\n </slot>\n </div>\n <div class=\"collapse-content px-2 text-sm overflow-hidden\" @transitionend=\"scrollIfNeeded\">\n <slot :open />\n </div>\n </div>\n</template>\n\n<style scoped>\n.collapse:not(td, tr, colgroup) {\n visibility: visible;\n}\n\n.collapse {\n position: relative;\n display: grid;\n overflow: hidden;\n width: 100%;\n grid-template-rows: max-content 0fr;\n transition: grid-template-rows 0.2s;\n isolation: isolate;\n\n > input:is([type='checkbox'], [type='radio']) {\n grid-column-start: 1;\n grid-row-start: 1;\n appearance: none;\n opacity: 0;\n }\n\n &:is([open], :focus),\n &:has(> input:is([type='checkbox'], [type='radio']):checked) {\n grid-template-rows: max-content 1fr;\n }\n\n &:is([open], :focus) > .collapse-content,\n &:not(.collapse-close)\n > :where(input:is([type='checkbox'], [type='radio']):checked ~ .collapse-content) {\n visibility: visible;\n min-height: fit-content;\n }\n &:focus-visible,\n &:has(> input:is([type='checkbox'], [type='radio']):focus-visible) {\n outline-color: var(--ui-text);\n outline-style: solid;\n outline-width: 2px;\n outline-offset: 2px;\n }\n\n &:not(.collapse-close) {\n > input[type='checkbox'],\n > input[type='radio']:not(:checked),\n > .collapse-title {\n cursor: pointer;\n }\n }\n\n &:focus:not(.collapse-close, .collapse[open]) > .collapse-title {\n cursor: unset;\n }\n\n &:is([open]) {\n &.collapse-arrow {\n > .collapse-title:after {\n transform: translateY(-50%) rotate(225deg);\n }\n }\n }\n\n &.collapse-arrow:focus {\n > .collapse-title:after {\n transform: translateY(-50%) rotate(225deg);\n }\n }\n\n &.collapse-arrow {\n > input:is([type='checkbox'], [type='radio']):checked ~ .collapse-title:after {\n transform: translateY(-50%) rotate(225deg);\n }\n }\n\n > input:is([type='checkbox'], [type='radio']) {\n z-index: 1;\n width: 100%;\n }\n}\n\n.collapse-title,\n.collapse-content {\n grid-column-start: 1;\n grid-row-start: 1;\n}\n\n.collapse-content {\n visibility: hidden;\n grid-column-start: 1;\n grid-row-start: 2;\n min-height: 0;\n cursor: unset;\n transition: visibility 0.2s;\n}\n\n.collapse-arrow {\n > .collapse-title:after {\n position: absolute;\n display: block;\n height: 0.5rem;\n width: 0.5rem;\n transform: translateY(-100%) rotate(45deg);\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 0.2s;\n top: 50%;\n right: 0.8em;\n inset-inline-end: 0.75rem;\n content: '';\n transform-origin: 75% 75%;\n box-shadow: 2px 2px;\n pointer-events: none;\n }\n}\n\n.collapse-title {\n position: relative;\n width: 100%;\n transition: background-color 0.2s ease-out;\n}\n</style>\n","export function formatDuration(timeInMs: number): string {\n if (timeInMs < 1000) {\n return `${Math.round(timeInMs)} ms`\n }\n\n const seconds = timeInMs / 1000\n if (timeInMs < 10_000) {\n return `${seconds.toFixed(3)} seconds`\n }\n\n if (timeInMs < 60_000) {\n return `${Math.floor(seconds)} seconds`\n }\n\n const minutes = Math.floor(seconds / 60)\n\n if (timeInMs < 3_600_000) {\n return `${minutes} minute${minutes > 1 ? 's' : ''}`\n }\n\n const hours = Math.floor(minutes / 60)\n\n return `${hours}h${minutes % 60}m${seconds % 60}s`\n}\n","<script setup lang=\"ts\">\nimport type { UseQueryEntryPayload } from '@pinia/colada-devtools/shared'\nimport { computed, ref, watch } from 'vue'\nimport { useDuplexChannel, useQueryEntries } from '../../composables/duplex-channel'\nimport { formatDuration } from '../../utils/time'\nimport { useRoute } from 'vue-router'\nimport type { DataStateStatus } from '@pinia/colada'\n\nimport IWrench from '~icons/lucide/wrench'\nimport IInfoCircle from '~icons/lucide/info'\nimport IFileText from '~icons/lucide/file-text'\nimport ICircleX from '~icons/lucide/circle-x'\nimport IBraces from '~icons/lucide/braces'\nimport IHistory from '~icons/lucide/history'\nimport ISigmaSquare from '~icons/lucide/sigma-square'\nimport { useTimeAgo, formatTimeAgo } from '@vueuse/core'\nimport type { FormatTimeAgoOptions } from '@vueuse/core'\n\nconst route = useRoute('/queries/[queryId]')\nconst queries = useQueryEntries()\n\nconst selectedQuery = computed<UseQueryEntryPayload | null>(() => {\n return queries.value.find((entry) => entry.id === route.params.queryId) ?? null\n})\n\nconst TIME_AGO_OPTIONS: FormatTimeAgoOptions = {\n showSecond: true,\n rounding: 'floor',\n max: 1000 * 60 * 5, // 5 minutes\n}\n\nconst lastUpdate = useTimeAgo(() => selectedQuery.value?.devtools.updatedAt ?? 0, {\n ...TIME_AGO_OPTIONS,\n updateInterval: 3_000,\n})\n\n// TODO: we should be able to highlight components using this query\n// const el = useTemplateRef('me')\n// TODO: add ref=\"me\" to the div\n// watch(\n// // also trigger if the selectedQuery changes\n// () => [el.value, selectedQuery.value?.id] as const,\n// ([el]) => {\n// if (!el || !selectedQuery.value) return\n//\n// const observingComponents = findVueComponents(\n// el,\n// selectedQuery.value.deps.filter((c) => c.type === 'component').map((c) => c.uid) ?? [],\n// )\n//\n// console.log('elements', observingComponents)\n// },\n// )\n\nconst channel = useDuplexChannel()\n\nconst isDataOpen = ref(false)\nlet wasDataOpen = isDataOpen.value\nlet lastStatus: DataStateStatus | null = null\nconst isErrorOpen = ref(false)\nwatch(\n () => selectedQuery.value?.state,\n (state) => {\n if (!state || lastStatus === state.status) return\n lastStatus = state.status\n if (state.status === 'error') {\n isErrorOpen.value = true\n // preserve it for later\n wasDataOpen = isDataOpen.value\n isDataOpen.value = false\n } else if (state.status === 'success') {\n isDataOpen.value = wasDataOpen\n isErrorOpen.value = false\n }\n },\n)\n</script>\n\n<template>\n <div class=\"flex flex-col divide-y dark:divide-(--ui-border) divide-(--ui-border-accented)\">\n <template v-if=\"selectedQuery\">\n <UCollapse title=\"Details\" :icon=\"IInfoCircle\">\n <div class=\"py-1 text-sm\">\n <p class=\"grid grid-cols-[auto_1fr] gap-1\">\n <span>key:</span>\n <span>\n <code class=\"rounded bg-neutral-500/20 p-0.5\">{{ selectedQuery.key }}</code>\n </span>\n </p>\n\n <p\n class=\"grid grid-cols-[auto_1fr] gap-x-2\"\n title=\"When was the query entry last updated\"\n >\n <span>Last update:</span>\n <span class=\"font-bold\">{{ lastUpdate }}</span>\n </p>\n\n <p\n v-if=\"selectedQuery.devtools.history.at(0)?.fetchTime\"\n class=\"grid grid-cols-[auto_1fr] gap-x-2\"\n title=\"When was the last time the query was fetched\"\n >\n <span>Last fetch:</span>\n <span class=\"font-bold\">{{\n formatTimeAgo(new Date(selectedQuery.devtools.history.at(0)!.fetchTime!.start), {\n ...TIME_AGO_OPTIONS,\n max: undefined,\n })\n }}</span>\n </p>\n\n <p\n v-if=\"selectedQuery.devtools.history.at(0)?.fetchTime?.end\"\n class=\"grid grid-cols-[auto_1fr] gap-x-2\"\n title=\"How long did the last query take to fetch\"\n >\n <span>Fetch duration:</span>\n <span class=\"font-bold\">{{\n formatDuration(\n selectedQuery.devtools.history.at(0)!.fetchTime!.end!\n - selectedQuery.devtools.history.at(0)!.fetchTime!.start,\n )\n }}</span>\n </p>\n\n <p\n class=\"grid grid-cols-[auto_1fr] gap-x-2\"\n title=\"How many components and effects are using this query\"\n >\n <span>Observers: <span class=\"font-bold\">{{ selectedQuery.deps.length }}</span></span>\n </p>\n\n <p\n v-if=\"!selectedQuery.active && selectedQuery.options\"\n class=\"grid grid-cols-[auto_1fr] gap-x-2\"\n title=\"When is this query entry garbace collected\"\n >\n <template\n v-if=\"\n typeof selectedQuery.options.gcTime === 'number'\n && Number.isFinite(selectedQuery.options.gcTime)\n \"\n >\n <span>Will be <i>gced</i></span>\n <span class=\"font-bold\">{{\n formatTimeAgo(\n new Date(selectedQuery.devtools.inactiveAt + selectedQuery.options.gcTime),\n {\n ...TIME_AGO_OPTIONS,\n max: undefined,\n },\n )\n }}</span>\n </template>\n </p>\n </div>\n </UCollapse>\n\n <UCollapse title=\"Actions\" :icon=\"IWrench\">\n <div class=\"py-2 gap-2 flex flex-wrap items-center justify-items-start\">\n <UButton\n class=\"theme-info\"\n size=\"sm\"\n title=\"Refetch this query\"\n :disabled=\"selectedQuery.options?.enabled === false\"\n @click=\"channel.emit('queries:refetch', selectedQuery.key)\"\n >\n <i-lucide-refresh-cw class=\"size-3.5\" /> Refetch\n </UButton>\n\n <UButton\n class=\"theme-neutral\"\n size=\"sm\"\n title=\"Invalidate this query\"\n @click=\"channel.emit('queries:invalidate', selectedQuery.key)\"\n >\n <i-lucide-timer-reset /> Invalidate\n </UButton>\n\n <UButton\n v-if=\"selectedQuery.devtools.simulate !== 'loading'\"\n class=\"theme-purple\"\n size=\"sm\"\n title=\"Restore the previous state\"\n @click=\"channel.emit('queries:simulate:loading', selectedQuery.key)\"\n >\n <i-lucide-loader />\n Simulate loading\n </UButton>\n <UButton\n v-else\n class=\"theme-purple\"\n size=\"sm\"\n title=\"Simulate a loading state\"\n @click=\"channel.emit('queries:simulate:loading:stop', selectedQuery.key)\"\n >\n <i-lucide-loader class=\"animate-spin\" />\n Stop loading\n </UButton>\n\n <UButton\n v-if=\"selectedQuery.devtools.simulate !== 'error'\"\n class=\"theme-error\"\n size=\"sm\"\n title=\"Simulate an Error state\"\n @click=\"channel.emit('queries:simulate:error', selectedQuery.key)\"\n >\n <i-lucide-x-octagon /> Simulate error\n </UButton>\n <UButton\n v-else\n class=\"theme-error\"\n size=\"sm\"\n title=\"Restore the previous state\"\n @click=\"channel.emit('queries:simulate:error:stop', selectedQuery.key)\"\n >\n <i-lucide-rotate-ccw /> Remove error\n </UButton>\n\n <UButton\n class=\"theme-warning\"\n size=\"sm\"\n title=\"Reset this query to its initial (pending) state\"\n @click=\"channel.emit('queries:reset', selectedQuery.key)\"\n >\n <i-lucide-trash /> Reset\n </UButton>\n </div>\n </UCollapse>\n\n <UCollapse v-model:open=\"isDataOpen\" title=\"Data\" :icon=\"IFileText\">\n <div class=\"py-1\">\n <pre\n v-if=\"selectedQuery.state.data !== undefined\"\n class=\"rounded p-1 overflow-auto max-h-[1200px]\"\n >{{ selectedQuery.state.data }}</pre>\n <p v-else class=\"text-neutral-500/50\">\n No data\n </p>\n </div>\n </UCollapse>\n\n <UCollapse\n v-model:open=\"isErrorOpen\"\n :title=\"`Error${selectedQuery.state.status === 'error' ? ' (!)' : ''}`\"\n :icon=\"ICircleX\"\n >\n <div class=\"py-1\">\n <pre v-if=\"selectedQuery.state.error\" class=\"rounded p-1 overflow-auto max-h-[1200px]\">{{\n selectedQuery.state.error\n }}</pre>\n <p v-else class=\"text-neutral-500/50\">\n No error\n </p>\n </div>\n </UCollapse>\n\n <UCollapse title=\"Call count\" :icon=\"ISigmaSquare\" :open=\"false\">\n <div class=\"py-1\">\n <p class=\"grid grid-cols-[auto_1fr] gap-1\">\n <span>Calls:</span>\n <span>\n <code class=\"font-bold\">{{ selectedQuery.devtools.count.total }}</code>\n </span>\n <span>Success:</span>\n <span>\n <code class=\"font-bold\">{{ selectedQuery.devtools.count.succeed }}</code>\n </span>\n <span>Errors:</span>\n <span>\n <code class=\"font-bold\">{{ selectedQuery.devtools.count.errored }}</code>\n </span>\n <span>Cancelled:</span>\n <span>\n <code class=\"font-bold\">{{ selectedQuery.devtools.count.cancelled }}</code>\n </span>\n </p>\n </div>\n </UCollapse>\n\n <UCollapse\n :title=\"`History (${selectedQuery.devtools.history.length})`\"\n :icon=\"IHistory\"\n :open=\"false\"\n >\n <div class=\"py-1\">\n <UCollapse\n v-for=\"entry of selectedQuery.devtools.history\"\n :key=\"entry.updatedAt\"\n :title=\"`Entry nº${entry.id} (${formatTimeAgo(new Date(entry.updatedAt), TIME_AGO_OPTIONS)})`\"\n :open=\"false\"\n >\n <pre class=\"rounded p-1 overflow-auto max-h-[1200px]\">{{ entry }}</pre>\n </UCollapse>\n </div>\n </UCollapse>\n\n <UCollapse title=\"Options\" :open=\"false\" :icon=\"IBraces\">\n <div class=\"py-1\">\n <pre\n v-if=\"selectedQuery.options\"\n class=\"rounded bg-neutral-500/20 p-1 overflow-auto max-h-[1200px]\"\n >{{ selectedQuery.options }}</pre>\n <p v-else>\n This Query entry has no options. It might have been created from the server or manually set with\n <code>queryCache.setQueryData()</code> for prefetching.\n </p>\n </div>\n </UCollapse>\n </template>\n\n <template v-else>\n <div class=\"py-6 mx-auto\">\n <p class=\"flex flex-col text-center items-center gap-2 text-lg px-2\">\n Select a Query to inspect\n <i-lucide-mouse-pointer-click />\n </p>\n </div>\n </template>\n </div>\n</template>\n"],"names":["open","_useModel","__props","scrollIfNeeded","event","scrollOptions","formatDuration","timeInMs","seconds","minutes","route","useRoute","queries","useQueryEntries","selectedQuery","computed","entry","TIME_AGO_OPTIONS","lastUpdate","useTimeAgo","_a","channel","useDuplexChannel","isDataOpen","ref","wasDataOpen","lastStatus","isErrorOpen","watch","state"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQM,UAAAA,IAAOC,EAAqBC,GAAA,MAEjC;AAED,aAASC,EAAeC,GAAwB;AAC1C,UAAAA,EAAM,kBAAkB,aAAa;AACvC,cAAMC,IAAuC;AAAA,UAC3C,OAAO;AAAA,UACP,QAAQ;AAAA,UACR,UAAU;AAAA,QACZ;AACM,QAAAD,EAAA,OAAO,eAAeC,CAAa;AAAA,MAAA;AAAA,IAC3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACpBK,SAASC,GAAeC,GAA0B;AACvD,MAAIA,IAAW;AACb,WAAO,GAAG,KAAK,MAAMA,CAAQ,CAAC;AAGhC,QAAMC,IAAUD,IAAW;AAC3B,MAAIA,IAAW;AACb,WAAO,GAAGC,EAAQ,QAAQ,CAAC,CAAC;AAG9B,MAAID,IAAW;AACb,WAAO,GAAG,KAAK,MAAMC,CAAO,CAAC;AAG/B,QAAMC,IAAU,KAAK,MAAMD,IAAU,EAAE;AAEvC,SAAID,IAAW,OACN,GAAGE,CAAO,UAAUA,IAAU,IAAI,MAAM,EAAE,KAK5C,GAFO,KAAK,MAAMA,IAAU,EAAE,CAEtB,IAAIA,IAAU,EAAE,IAAID,IAAU,EAAE;AACjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACLM,UAAAE,IAAQC,EAA6B,GACrCC,IAAUC,EAAgB,GAE1BC,IAAgBC,EAAsC,MACnDH,EAAQ,MAAM,KAAK,CAACI,MAAUA,EAAM,OAAON,EAAM,OAAO,OAAO,KAAK,IAC5E,GAEKO,IAAyC;AAAA,MAC7C,YAAY;AAAA,MACZ,UAAU;AAAA,MACV,KAAK,MAAO,KAAK;AAAA;AAAA,IACnB,GAEMC,IAAaC,EAAW,MAAM;;AAAA,eAAAC,IAAAN,EAAc,UAAd,gBAAAM,EAAqB,SAAS,cAAa;AAAA,OAAG;AAAA,MAChF,GAAGH;AAAA,MACH,gBAAgB;AAAA,IAAA,CACjB,GAoBKI,IAAUC,EAAiB,GAE3BC,IAAaC,EAAI,EAAK;AAC5B,QAAIC,IAAcF,EAAW,OACzBG,IAAqC;AACnC,UAAAC,IAAcH,EAAI,EAAK;AAC7B,WAAAI;AAAA,MACE,MAAM;;AAAA,gBAAAR,IAAAN,EAAc,UAAd,gBAAAM,EAAqB;AAAA;AAAA,MAC3B,CAACS,MAAU;AACT,QAAI,CAACA,KAASH,MAAeG,EAAM,WACnCH,IAAaG,EAAM,QACfA,EAAM,WAAW,WACnBF,EAAY,QAAQ,IAEpBF,IAAcF,EAAW,OACzBA,EAAW,QAAQ,MACVM,EAAM,WAAW,cAC1BN,EAAW,QAAQE,GACnBE,EAAY,QAAQ;AAAA,MACtB;AAAA,IAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,10 @@
1
+ import { _ as e, c, o as n } from "./index-DfIXa7Jb.js";
2
+ const o = {};
3
+ function r(t, a) {
4
+ return n(), c("h1", null, "Homepage");
5
+ }
6
+ const _ = /* @__PURE__ */ e(o, [["render", r]]);
7
+ export {
8
+ _ as default
9
+ };
10
+ //# sourceMappingURL=index-B2dJ1q6y.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-B2dJ1q6y.js","sources":["../src/panel/pages/index.vue"],"sourcesContent":["<script setup lang=\"ts\"></script>\n\n<template>\n <h1>Homepage</h1>\n</template>\n"],"names":["_openBlock","_createElementBlock"],"mappings":";;;AAGE,SAAAA,EAAA,GAAAC,EAAiB,YAAb,UAAQ;;;"}