@pinia/colada-devtools 0.2.0 → 0.3.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/dist/index.d.ts +2 -4
- package/dist/index.js +19 -20
- package/dist/index.js.map +1 -1
- package/dist-panel/{(unselected)-B-_Xdo2t.js → (unselected)-BvYXA0-7.js} +3 -3
- package/dist-panel/{(unselected)-B-_Xdo2t.js.map → (unselected)-BvYXA0-7.js.map} +1 -1
- package/dist-panel/{(unselected)-BFwQCIEo.js → (unselected)-De_qnqOP.js} +3 -3
- package/dist-panel/{(unselected)-BFwQCIEo.js.map → (unselected)-De_qnqOP.js.map} +1 -1
- package/dist-panel/_mutationId_-DJZUO9uK.js +307 -0
- package/dist-panel/_mutationId_-DJZUO9uK.js.map +1 -0
- package/dist-panel/_queryId_-OYxjQ3wF.js +439 -0
- package/dist-panel/_queryId_-OYxjQ3wF.js.map +1 -0
- package/dist-panel/circle-x-CKUVRuJV.js +678 -0
- package/dist-panel/circle-x-CKUVRuJV.js.map +1 -0
- package/dist-panel/{index-CTwvPt67.js → index-BDRe8hqi.js} +497 -469
- package/dist-panel/{index-CTwvPt67.js.map → index-BDRe8hqi.js.map} +1 -1
- package/dist-panel/{index-kHk614RY.js → index-CbhK8baV.js} +2 -2
- package/dist-panel/{index-kHk614RY.js.map → index-CbhK8baV.js.map} +1 -1
- package/dist-panel/index.js +2 -2
- package/dist-panel/{loader-nEPBwFfz.js → loader-DUh7Y4gr.js} +2 -2
- package/dist-panel/loader-DUh7Y4gr.js.map +1 -0
- package/dist-panel/{mouse-pointer-click-DQLuAnaZ.js → mouse-pointer-click-tLOKuf9h.js} +2 -2
- package/dist-panel/mouse-pointer-click-tLOKuf9h.js.map +1 -0
- package/dist-panel/{mutations-BZWQwG2S.js → mutations-DbP2-xaA.js} +4 -4
- package/dist-panel/{mutations-BZWQwG2S.js.map → mutations-DbP2-xaA.js.map} +1 -1
- package/dist-panel/{queries-D3ybdTKc.js → queries-CfTVwyNe.js} +4 -4
- package/dist-panel/{queries-D3ybdTKc.js.map → queries-CfTVwyNe.js.map} +1 -1
- package/dist-panel/{settings-DddAyvXJ.js → settings--jMqFgqF.js} +2 -2
- package/dist-panel/{settings-DddAyvXJ.js.map → settings--jMqFgqF.js.map} +1 -1
- package/dist-panel/{use-container-media-query-BWmwm2oB.js → use-container-media-query-B1rNyopG.js} +2 -2
- package/dist-panel/{use-container-media-query-BWmwm2oB.js.map → use-container-media-query-B1rNyopG.js.map} +1 -1
- package/dist-shared/index.d.ts +95 -0
- package/dist-shared/index.js +2 -1
- package/dist-shared/index.js.map +1 -1
- package/package.json +6 -6
- package/dist-panel/_mutationId_-BG1E7StK.js +0 -306
- package/dist-panel/_mutationId_-BG1E7StK.js.map +0 -1
- package/dist-panel/_queryId_-BHPtMxoe.js +0 -423
- package/dist-panel/_queryId_-BHPtMxoe.js.map +0 -1
- package/dist-panel/braces-B9tH-Qp5.js +0 -294
- package/dist-panel/braces-B9tH-Qp5.js.map +0 -1
- package/dist-panel/loader-nEPBwFfz.js.map +0 -1
- package/dist-panel/mouse-pointer-click-DQLuAnaZ.js.map +0 -1
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
import { _ as j } from "./mouse-pointer-click-tLOKuf9h.js";
|
|
2
|
+
import { I as F, _ as U, a as Q, b as W, c as G, d as J, e as P, f as X, g as K } from "./circle-x-CKUVRuJV.js";
|
|
3
|
+
import { _ as Y, a as Z } from "./loader-DUh7Y4gr.js";
|
|
4
|
+
import { m as $, c as u, o as n, a as t, d as ee, C as te, b as se, s as oe, p as D, v as ne, F as C, i as l, w as r, g as o, n as z, x as R, q as p, t as m, y as le, f as b, z as ae, A as I, e as k, B as ie, h as re } from "./index-BDRe8hqi.js";
|
|
5
|
+
const ue = {
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
width: "1.2em",
|
|
8
|
+
height: "1.2em"
|
|
9
|
+
};
|
|
10
|
+
function de(v, a) {
|
|
11
|
+
return n(), u("svg", ue, [...a[0] || (a[0] = [
|
|
12
|
+
t("g", {
|
|
13
|
+
fill: "none",
|
|
14
|
+
stroke: "currentColor",
|
|
15
|
+
"stroke-linecap": "round",
|
|
16
|
+
"stroke-linejoin": "round",
|
|
17
|
+
"stroke-width": "2"
|
|
18
|
+
}, [
|
|
19
|
+
t("path", { d: "M10 2h4m-2 12v-4m-8 3a8 8 0 0 1 8-7a8 8 0 1 1-5.3 14L4 17.6" }),
|
|
20
|
+
t("path", { d: "M9 17H4v5" })
|
|
21
|
+
], -1)
|
|
22
|
+
])]);
|
|
23
|
+
}
|
|
24
|
+
const ce = $({ name: "lucide-timer-reset", render: de }), pe = {
|
|
25
|
+
viewBox: "0 0 24 24",
|
|
26
|
+
width: "1.2em",
|
|
27
|
+
height: "1.2em"
|
|
28
|
+
};
|
|
29
|
+
function me(v, a) {
|
|
30
|
+
return n(), u("svg", pe, [...a[0] || (a[0] = [
|
|
31
|
+
t("g", {
|
|
32
|
+
fill: "none",
|
|
33
|
+
stroke: "currentColor",
|
|
34
|
+
"stroke-linecap": "round",
|
|
35
|
+
"stroke-linejoin": "round",
|
|
36
|
+
"stroke-width": "2"
|
|
37
|
+
}, [
|
|
38
|
+
t("path", { d: "M3 12a9 9 0 0 1 9-9a9.75 9.75 0 0 1 6.74 2.74L21 8" }),
|
|
39
|
+
t("path", { d: "M21 3v5h-5m5 4a9 9 0 0 1-9 9a9.75 9.75 0 0 1-6.74-2.74L3 16" }),
|
|
40
|
+
t("path", { d: "M8 16H3v5" })
|
|
41
|
+
], -1)
|
|
42
|
+
])]);
|
|
43
|
+
}
|
|
44
|
+
const ve = $({ name: "lucide-refresh-cw", render: me });
|
|
45
|
+
function _e(v) {
|
|
46
|
+
if (v < 1e3)
|
|
47
|
+
return `${Math.round(v)} ms`;
|
|
48
|
+
const a = v / 1e3;
|
|
49
|
+
if (v < 1e4)
|
|
50
|
+
return `${a.toFixed(3)} seconds`;
|
|
51
|
+
if (v < 6e4)
|
|
52
|
+
return `${Math.floor(a)} seconds`;
|
|
53
|
+
const y = Math.floor(a / 60);
|
|
54
|
+
return v < 36e5 ? `${y} minute${y > 1 ? "s" : ""}` : `${Math.floor(y / 60)}h${y % 60}m${a % 60}s`;
|
|
55
|
+
}
|
|
56
|
+
const fe = {
|
|
57
|
+
viewBox: "0 0 24 24",
|
|
58
|
+
width: "1.2em",
|
|
59
|
+
height: "1.2em"
|
|
60
|
+
};
|
|
61
|
+
function ge(v, a) {
|
|
62
|
+
return n(), u("svg", fe, [...a[0] || (a[0] = [
|
|
63
|
+
t("g", {
|
|
64
|
+
fill: "none",
|
|
65
|
+
stroke: "currentColor",
|
|
66
|
+
"stroke-linecap": "round",
|
|
67
|
+
"stroke-linejoin": "round",
|
|
68
|
+
"stroke-width": "2"
|
|
69
|
+
}, [
|
|
70
|
+
t("path", { d: "M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8" }),
|
|
71
|
+
t("path", { d: "M3 3v5h5m4-1v5l4 2" })
|
|
72
|
+
], -1)
|
|
73
|
+
])]);
|
|
74
|
+
}
|
|
75
|
+
const he = $({ name: "lucide-history", render: ge }), ye = {
|
|
76
|
+
viewBox: "0 0 24 24",
|
|
77
|
+
width: "1.2em",
|
|
78
|
+
height: "1.2em"
|
|
79
|
+
};
|
|
80
|
+
function ke(v, a) {
|
|
81
|
+
return n(), u("svg", ye, [...a[0] || (a[0] = [
|
|
82
|
+
t("g", {
|
|
83
|
+
fill: "none",
|
|
84
|
+
stroke: "currentColor",
|
|
85
|
+
"stroke-linecap": "round",
|
|
86
|
+
"stroke-linejoin": "round",
|
|
87
|
+
"stroke-width": "2"
|
|
88
|
+
}, [
|
|
89
|
+
t("rect", {
|
|
90
|
+
width: "18",
|
|
91
|
+
height: "18",
|
|
92
|
+
x: "3",
|
|
93
|
+
y: "3",
|
|
94
|
+
rx: "2"
|
|
95
|
+
}),
|
|
96
|
+
t("path", { d: "M16 8.9V7H8l4 5l-4 5h8v-1.9" })
|
|
97
|
+
], -1)
|
|
98
|
+
])]);
|
|
99
|
+
}
|
|
100
|
+
const xe = $({ name: "lucide-sigma-square", render: ke }), we = { class: "flex flex-col divide-y dark:divide-(--ui-border) divide-(--ui-border-accented)" }, be = { class: "py-1 text-sm" }, $e = { class: "grid grid-cols-[auto_1fr] gap-1" }, qe = { class: "rounded bg-neutral-500/20 p-0.5" }, Ce = {
|
|
101
|
+
class: "grid grid-cols-[auto_1fr] gap-x-2",
|
|
102
|
+
title: "When was the query entry last updated"
|
|
103
|
+
}, Ie = { class: "font-bold" }, Te = {
|
|
104
|
+
key: 0,
|
|
105
|
+
class: "grid grid-cols-[auto_1fr] gap-x-2",
|
|
106
|
+
title: "When was the last time the query was fetched"
|
|
107
|
+
}, Se = { class: "font-bold" }, Be = {
|
|
108
|
+
key: 1,
|
|
109
|
+
class: "grid grid-cols-[auto_1fr] gap-x-2",
|
|
110
|
+
title: "How long did the last query take to fetch"
|
|
111
|
+
}, De = { class: "font-bold" }, ze = {
|
|
112
|
+
class: "grid grid-cols-[auto_1fr] gap-x-2",
|
|
113
|
+
title: "How many components and effects are using this query"
|
|
114
|
+
}, Re = { class: "font-bold" }, Ae = {
|
|
115
|
+
key: 2,
|
|
116
|
+
class: "grid grid-cols-[auto_1fr] gap-x-2",
|
|
117
|
+
title: "When is this query entry garbace collected"
|
|
118
|
+
}, Ne = { class: "font-bold" }, Ee = { class: "py-2 gap-2 flex flex-wrap items-center justify-items-start" }, He = { class: "py-1" }, Le = {
|
|
119
|
+
key: 0,
|
|
120
|
+
class: "rounded p-1 overflow-auto max-h-[1200px]"
|
|
121
|
+
}, Me = {
|
|
122
|
+
key: 1,
|
|
123
|
+
class: "text-(--ui-text-muted)/50"
|
|
124
|
+
}, Oe = { class: "py-1" }, Ve = { class: "grid grid-cols-[auto_1fr] gap-1" }, je = { class: "font-bold" }, Fe = { class: "font-bold" }, Ue = { class: "font-bold" }, Qe = { class: "font-bold" }, We = { class: "py-1" }, Ge = { key: 1 }, Je = {
|
|
125
|
+
key: 1,
|
|
126
|
+
class: "py-6 mx-auto"
|
|
127
|
+
}, Pe = { class: "flex flex-col text-center items-center gap-2 text-lg px-2" }, Xe = { class: "text-center text-sm text-neutral-500 mt-4" }, tt = /* @__PURE__ */ ee({
|
|
128
|
+
__name: "[queryId]",
|
|
129
|
+
setup(v) {
|
|
130
|
+
const a = le(), y = te(), s = se(() => y.value.find((d) => d.keyHash === a.params.queryId) ?? null), w = {
|
|
131
|
+
showSecond: !0,
|
|
132
|
+
rounding: "floor",
|
|
133
|
+
max: 1e3 * 60 * 60 * 24
|
|
134
|
+
// 1 day
|
|
135
|
+
}, A = ae(() => s.value?.devtools.updatedAt ?? 0, {
|
|
136
|
+
...w,
|
|
137
|
+
updateInterval: 3e3
|
|
138
|
+
}), g = oe(), h = D("pc:query:details:data:open", !1, {});
|
|
139
|
+
let T = h.value, S = null;
|
|
140
|
+
const x = D("pc:query:details:error:open", !1, {});
|
|
141
|
+
ne(
|
|
142
|
+
() => s.value?.state,
|
|
143
|
+
(d) => {
|
|
144
|
+
!d || S === d.status || (S = d.status, d.status === "error" ? (x.value = !0, T = h.value, h.value = !1) : d.status === "success" && (h.value = T, x.value = !1));
|
|
145
|
+
}
|
|
146
|
+
);
|
|
147
|
+
function N(d, e, _) {
|
|
148
|
+
if (e.length === 0)
|
|
149
|
+
return console.error("Cannot set value with empty path"), !1;
|
|
150
|
+
let f = d;
|
|
151
|
+
for (let c = 0; c < e.length - 1; c++) {
|
|
152
|
+
if (f == null || typeof f != "object")
|
|
153
|
+
return console.error("Invalid path:", e, "at index", c, "Current value:", f), !1;
|
|
154
|
+
f = f[e[c]];
|
|
155
|
+
}
|
|
156
|
+
return f == null || typeof f != "object" ? (console.error("Invalid final parent in path:", e), !1) : (f[e.at(-1)] = _, !0);
|
|
157
|
+
}
|
|
158
|
+
const E = (d, e) => {
|
|
159
|
+
if (!s.value) return;
|
|
160
|
+
if (!N(s.value.state.data, d, e)) {
|
|
161
|
+
console.error("Failed to update value at path:", d);
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
g.emit("queries:set:state", s.value.key, s.value.state);
|
|
165
|
+
};
|
|
166
|
+
return (d, e) => {
|
|
167
|
+
const _ = U, f = ve, c = ie, H = ce, B = Y, L = Z, M = P, O = X, q = K, V = j;
|
|
168
|
+
return n(), u("div", we, [
|
|
169
|
+
s.value ? (n(), u(C, { key: 0 }, [
|
|
170
|
+
l(_, {
|
|
171
|
+
title: "Details",
|
|
172
|
+
icon: o(F)
|
|
173
|
+
}, {
|
|
174
|
+
default: r(() => [
|
|
175
|
+
t("div", be, [
|
|
176
|
+
t("p", $e, [
|
|
177
|
+
e[9] || (e[9] = t("span", null, "key:", -1)),
|
|
178
|
+
t("span", null, [
|
|
179
|
+
t("code", qe, m(s.value.key), 1)
|
|
180
|
+
])
|
|
181
|
+
]),
|
|
182
|
+
t("p", Ce, [
|
|
183
|
+
e[10] || (e[10] = t("span", null, "Last update:", -1)),
|
|
184
|
+
t("span", Ie, m(o(A)), 1)
|
|
185
|
+
]),
|
|
186
|
+
s.value.devtools.history.at(0)?.fetchTime ? (n(), u("p", Te, [
|
|
187
|
+
e[11] || (e[11] = t("span", null, "Last fetch:", -1)),
|
|
188
|
+
t("span", Se, m(o(I)(new Date(s.value.devtools.history.at(0).fetchTime.start), {
|
|
189
|
+
...w,
|
|
190
|
+
max: void 0
|
|
191
|
+
})), 1)
|
|
192
|
+
])) : b("", !0),
|
|
193
|
+
s.value.devtools.history.at(0)?.fetchTime?.end ? (n(), u("p", Be, [
|
|
194
|
+
e[12] || (e[12] = t("span", null, "Fetch duration:", -1)),
|
|
195
|
+
t("span", De, m(o(_e)(
|
|
196
|
+
s.value.devtools.history.at(0).fetchTime.end - s.value.devtools.history.at(0).fetchTime.start
|
|
197
|
+
)), 1)
|
|
198
|
+
])) : b("", !0),
|
|
199
|
+
t("p", ze, [
|
|
200
|
+
t("span", null, [
|
|
201
|
+
e[13] || (e[13] = p("Observers: ", -1)),
|
|
202
|
+
t("span", Re, m(s.value.deps.length), 1)
|
|
203
|
+
])
|
|
204
|
+
]),
|
|
205
|
+
!s.value.active && s.value.options ? (n(), u("p", Ae, [
|
|
206
|
+
typeof s.value.options.gcTime == "number" && Number.isFinite(s.value.options.gcTime) ? (n(), u(C, { key: 0 }, [
|
|
207
|
+
e[14] || (e[14] = t("span", null, [
|
|
208
|
+
p("Will be "),
|
|
209
|
+
t("i", null, "gced")
|
|
210
|
+
], -1)),
|
|
211
|
+
t("span", Ne, m(o(I)(
|
|
212
|
+
new Date(s.value.devtools.inactiveAt + s.value.options.gcTime),
|
|
213
|
+
{
|
|
214
|
+
...w,
|
|
215
|
+
max: void 0
|
|
216
|
+
}
|
|
217
|
+
)), 1)
|
|
218
|
+
], 64)) : b("", !0)
|
|
219
|
+
])) : b("", !0)
|
|
220
|
+
])
|
|
221
|
+
]),
|
|
222
|
+
_: 1
|
|
223
|
+
}, 8, ["icon"]),
|
|
224
|
+
l(_, {
|
|
225
|
+
title: "Actions",
|
|
226
|
+
icon: o(Q)
|
|
227
|
+
}, {
|
|
228
|
+
default: r(() => [
|
|
229
|
+
t("div", Ee, [
|
|
230
|
+
l(c, {
|
|
231
|
+
class: "theme-info",
|
|
232
|
+
size: "sm",
|
|
233
|
+
title: "Refetch this query",
|
|
234
|
+
disabled: s.value.options?.enabled === !1,
|
|
235
|
+
onClick: e[0] || (e[0] = (i) => o(g).emit("queries:refetch", s.value.key))
|
|
236
|
+
}, {
|
|
237
|
+
default: r(() => [
|
|
238
|
+
l(f, { class: "size-3.5" }),
|
|
239
|
+
e[15] || (e[15] = p(" Refetch ", -1))
|
|
240
|
+
]),
|
|
241
|
+
_: 1
|
|
242
|
+
}, 8, ["disabled"]),
|
|
243
|
+
l(c, {
|
|
244
|
+
class: "theme-neutral",
|
|
245
|
+
size: "sm",
|
|
246
|
+
title: "Invalidate this query",
|
|
247
|
+
onClick: e[1] || (e[1] = (i) => o(g).emit("queries:invalidate", s.value.key))
|
|
248
|
+
}, {
|
|
249
|
+
default: r(() => [
|
|
250
|
+
l(H),
|
|
251
|
+
e[16] || (e[16] = p(" Invalidate ", -1))
|
|
252
|
+
]),
|
|
253
|
+
_: 1
|
|
254
|
+
}),
|
|
255
|
+
s.value.devtools.simulate !== "loading" ? (n(), k(c, {
|
|
256
|
+
key: 0,
|
|
257
|
+
class: "theme-purple",
|
|
258
|
+
size: "sm",
|
|
259
|
+
title: "Restore the previous state",
|
|
260
|
+
onClick: e[2] || (e[2] = (i) => o(g).emit("queries:simulate:loading", s.value.key))
|
|
261
|
+
}, {
|
|
262
|
+
default: r(() => [
|
|
263
|
+
l(B),
|
|
264
|
+
e[17] || (e[17] = p(" Simulate loading ", -1))
|
|
265
|
+
]),
|
|
266
|
+
_: 1
|
|
267
|
+
})) : (n(), k(c, {
|
|
268
|
+
key: 1,
|
|
269
|
+
class: "theme-purple",
|
|
270
|
+
size: "sm",
|
|
271
|
+
title: "Simulate a loading state",
|
|
272
|
+
onClick: e[3] || (e[3] = (i) => o(g).emit("queries:simulate:loading:stop", s.value.key))
|
|
273
|
+
}, {
|
|
274
|
+
default: r(() => [
|
|
275
|
+
l(B, { class: "animate-spin" }),
|
|
276
|
+
e[18] || (e[18] = p(" Stop loading ", -1))
|
|
277
|
+
]),
|
|
278
|
+
_: 1
|
|
279
|
+
})),
|
|
280
|
+
s.value.devtools.simulate !== "error" ? (n(), k(c, {
|
|
281
|
+
key: 2,
|
|
282
|
+
class: "theme-error",
|
|
283
|
+
size: "sm",
|
|
284
|
+
title: "Simulate an Error state",
|
|
285
|
+
onClick: e[4] || (e[4] = (i) => o(g).emit("queries:simulate:error", s.value.key))
|
|
286
|
+
}, {
|
|
287
|
+
default: r(() => [
|
|
288
|
+
l(L),
|
|
289
|
+
e[19] || (e[19] = p(" Simulate error ", -1))
|
|
290
|
+
]),
|
|
291
|
+
_: 1
|
|
292
|
+
})) : (n(), k(c, {
|
|
293
|
+
key: 3,
|
|
294
|
+
class: "theme-error",
|
|
295
|
+
size: "sm",
|
|
296
|
+
title: "Restore the previous state",
|
|
297
|
+
onClick: e[5] || (e[5] = (i) => o(g).emit("queries:simulate:error:stop", s.value.key))
|
|
298
|
+
}, {
|
|
299
|
+
default: r(() => [
|
|
300
|
+
l(M),
|
|
301
|
+
e[20] || (e[20] = p(" Remove error ", -1))
|
|
302
|
+
]),
|
|
303
|
+
_: 1
|
|
304
|
+
})),
|
|
305
|
+
l(c, {
|
|
306
|
+
class: "theme-warning",
|
|
307
|
+
size: "sm",
|
|
308
|
+
title: "Reset this query to its initial (pending) state",
|
|
309
|
+
onClick: e[6] || (e[6] = (i) => o(g).emit("queries:reset", s.value.key))
|
|
310
|
+
}, {
|
|
311
|
+
default: r(() => [
|
|
312
|
+
l(O),
|
|
313
|
+
e[21] || (e[21] = p(" Reset ", -1))
|
|
314
|
+
]),
|
|
315
|
+
_: 1
|
|
316
|
+
})
|
|
317
|
+
])
|
|
318
|
+
]),
|
|
319
|
+
_: 1
|
|
320
|
+
}, 8, ["icon"]),
|
|
321
|
+
l(_, {
|
|
322
|
+
open: o(h),
|
|
323
|
+
"onUpdate:open": e[7] || (e[7] = (i) => R(h) ? h.value = i : null),
|
|
324
|
+
title: `Data${s.value.state.data === void 0 ? " (empty)" : ""}`,
|
|
325
|
+
icon: o(W),
|
|
326
|
+
class: z([s.value.state.data === void 0 && "text-(--ui-text-muted)"]),
|
|
327
|
+
"no-padding": ""
|
|
328
|
+
}, {
|
|
329
|
+
default: r(() => [
|
|
330
|
+
l(q, {
|
|
331
|
+
data: s.value.state.data,
|
|
332
|
+
"onUpdate:value": E
|
|
333
|
+
}, null, 8, ["data"])
|
|
334
|
+
]),
|
|
335
|
+
_: 1
|
|
336
|
+
}, 8, ["open", "title", "icon", "class"]),
|
|
337
|
+
l(_, {
|
|
338
|
+
open: o(x),
|
|
339
|
+
"onUpdate:open": e[8] || (e[8] = (i) => R(x) ? x.value = i : null),
|
|
340
|
+
title: `Error${s.value.state.status === "error" ? " (!)" : "(empty)"}`,
|
|
341
|
+
icon: o(G),
|
|
342
|
+
class: z([s.value.state.status !== "error" && "text-(--ui-text-muted)"]),
|
|
343
|
+
disabled: ""
|
|
344
|
+
}, {
|
|
345
|
+
default: r(() => [
|
|
346
|
+
t("div", He, [
|
|
347
|
+
s.value.state.error ? (n(), u("pre", Le, m(s.value.state.error), 1)) : (n(), u("p", Me, "No error"))
|
|
348
|
+
])
|
|
349
|
+
]),
|
|
350
|
+
_: 1
|
|
351
|
+
}, 8, ["open", "title", "icon", "class"]),
|
|
352
|
+
l(_, {
|
|
353
|
+
title: "Call count",
|
|
354
|
+
icon: o(xe),
|
|
355
|
+
open: !1
|
|
356
|
+
}, {
|
|
357
|
+
default: r(() => [
|
|
358
|
+
t("div", Oe, [
|
|
359
|
+
t("p", Ve, [
|
|
360
|
+
e[22] || (e[22] = t("span", null, "Calls:", -1)),
|
|
361
|
+
t("span", null, [
|
|
362
|
+
t("code", je, m(s.value.devtools.count.total), 1)
|
|
363
|
+
]),
|
|
364
|
+
e[23] || (e[23] = t("span", null, "Success:", -1)),
|
|
365
|
+
t("span", null, [
|
|
366
|
+
t("code", Fe, m(s.value.devtools.count.succeed), 1)
|
|
367
|
+
]),
|
|
368
|
+
e[24] || (e[24] = t("span", null, "Errors:", -1)),
|
|
369
|
+
t("span", null, [
|
|
370
|
+
t("code", Ue, m(s.value.devtools.count.errored), 1)
|
|
371
|
+
]),
|
|
372
|
+
e[25] || (e[25] = t("span", null, "Cancelled:", -1)),
|
|
373
|
+
t("span", null, [
|
|
374
|
+
t("code", Qe, m(s.value.devtools.count.cancelled), 1)
|
|
375
|
+
])
|
|
376
|
+
])
|
|
377
|
+
])
|
|
378
|
+
]),
|
|
379
|
+
_: 1
|
|
380
|
+
}, 8, ["icon"]),
|
|
381
|
+
l(_, {
|
|
382
|
+
title: `History (${s.value.devtools.history.length})`,
|
|
383
|
+
icon: o(he),
|
|
384
|
+
open: !1
|
|
385
|
+
}, {
|
|
386
|
+
default: r(() => [
|
|
387
|
+
t("div", We, [
|
|
388
|
+
(n(!0), u(C, null, re(s.value.devtools.history, (i) => (n(), k(_, {
|
|
389
|
+
key: i.updatedAt,
|
|
390
|
+
title: `Entry nº${i.id} (${o(I)(new Date(i.updatedAt), w)})`,
|
|
391
|
+
open: !1,
|
|
392
|
+
class: "border border-neutral-200 dark:border-neutral-800"
|
|
393
|
+
}, {
|
|
394
|
+
default: r(() => [
|
|
395
|
+
l(q, {
|
|
396
|
+
data: i,
|
|
397
|
+
readonly: ""
|
|
398
|
+
}, null, 8, ["data"])
|
|
399
|
+
]),
|
|
400
|
+
_: 2
|
|
401
|
+
}, 1032, ["title"]))), 128))
|
|
402
|
+
])
|
|
403
|
+
]),
|
|
404
|
+
_: 1
|
|
405
|
+
}, 8, ["title", "icon"]),
|
|
406
|
+
l(_, {
|
|
407
|
+
title: "Options",
|
|
408
|
+
open: !1,
|
|
409
|
+
icon: o(J),
|
|
410
|
+
"no-padding": ""
|
|
411
|
+
}, {
|
|
412
|
+
default: r(() => [
|
|
413
|
+
s.value.options ? (n(), k(q, {
|
|
414
|
+
key: 0,
|
|
415
|
+
data: s.value.options,
|
|
416
|
+
readonly: ""
|
|
417
|
+
}, null, 8, ["data"])) : (n(), u("p", Ge, [...e[26] || (e[26] = [
|
|
418
|
+
p(" This Query entry has no options. It might have been created from the server or manually set with ", -1),
|
|
419
|
+
t("code", null, "queryCache.setQueryData()", -1),
|
|
420
|
+
p(" for prefetching. ", -1)
|
|
421
|
+
])]))
|
|
422
|
+
]),
|
|
423
|
+
_: 1
|
|
424
|
+
}, 8, ["icon"])
|
|
425
|
+
], 64)) : (n(), u("div", Je, [
|
|
426
|
+
t("p", Pe, [
|
|
427
|
+
e[27] || (e[27] = p(" Select a Query to inspect ", -1)),
|
|
428
|
+
l(V)
|
|
429
|
+
]),
|
|
430
|
+
t("p", Xe, " No query with key " + m(o(a).params.queryId) + " was found in the cache ", 1)
|
|
431
|
+
]))
|
|
432
|
+
]);
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
});
|
|
436
|
+
export {
|
|
437
|
+
tt as default
|
|
438
|
+
};
|
|
439
|
+
//# sourceMappingURL=_queryId_-OYxjQ3wF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_queryId_-OYxjQ3wF.js","sources":["../src/panel/utils/time.ts","../src/panel/pages/queries/[queryId].vue"],"sourcesContent":["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, 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, useLocalStorage } from '@vueuse/core'\nimport type { FormatTimeAgoOptions } from '@vueuse/core'\n\nconst route = useRoute()\nconst queries = useQueryEntries()\n\nconst selectedQuery = computed<UseQueryEntryPayload | null>(() => {\n return queries.value.find((entry) => entry.keyHash === route.params.queryId) ?? null\n})\n\nconst TIME_AGO_OPTIONS: FormatTimeAgoOptions = {\n showSecond: true,\n rounding: 'floor',\n max: 1000 * 60 * 60 * 24, // 1 day\n}\n\nconst lastUpdate = useTimeAgo(() => selectedQuery.value?.devtools.updatedAt ?? 0, {\n ...TIME_AGO_OPTIONS,\n updateInterval: 3000,\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 = useLocalStorage<boolean>('pc:query:details:data:open', false, {})\nlet wasDataOpen = isDataOpen.value\nlet lastStatus: DataStateStatus | null = null\nconst isErrorOpen = useLocalStorage<boolean>('pc:query:details:error:open', 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\n// Helper function to set nested value\nfunction setNestedValue(obj: any, path: Array<string | number>, value: unknown): boolean {\n if (path.length === 0) {\n console.error('Cannot set value with empty path')\n return false\n }\n\n let current = obj\n // Navigate to parent of target value\n for (let i = 0; i < path.length - 1; i++) {\n if (current == null || typeof current !== 'object') {\n console.error('Invalid path:', path, 'at index', i, 'Current value:', current)\n return false\n }\n current = current[path[i]!]\n }\n\n // Validate the final parent exists\n if (current == null || typeof current !== 'object') {\n console.error('Invalid final parent in path:', path)\n return false\n }\n\n // Set the final value\n current[path.at(-1)!] = value\n return true\n}\n\n// Handle value updates from JsonViewer\nconst handleValueUpdate = (path: Array<string | number>, value: unknown) => {\n if (!selectedQuery.value) return\n\n // Update the value at the path\n const success = setNestedValue(selectedQuery.value.state.data, path, value)\n\n if (!success) {\n console.error('Failed to update value at path:', path)\n return\n }\n\n // Send to app via RPC\n channel.emit('queries:set:state', selectedQuery.value.key, selectedQuery.value.state)\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\n >Observers: <span class=\"font-bold\">{{ selectedQuery.deps.length }}</span></span\n >\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\n v-model:open=\"isDataOpen\"\n :title=\"`Data${selectedQuery.state.data === undefined ? ' (empty)' : ''}`\"\n :icon=\"IFileText\"\n :class=\"[selectedQuery.state.data === undefined && 'text-(--ui-text-muted)']\"\n no-padding\n >\n <JsonViewer :data=\"selectedQuery.state.data\" @update:value=\"handleValueUpdate\" />\n </UCollapse>\n\n <UCollapse\n v-model:open=\"isErrorOpen\"\n :title=\"`Error${selectedQuery.state.status === 'error' ? ' (!)' : '(empty)'}`\"\n :icon=\"ICircleX\"\n :class=\"[selectedQuery.state.status !== 'error' && 'text-(--ui-text-muted)']\"\n disabled\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-(--ui-text-muted)/50\">No error</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 class=\"border border-neutral-200 dark:border-neutral-800\"\n >\n <JsonViewer :data=\"entry\" readonly />\n </UCollapse>\n </div>\n </UCollapse>\n\n <UCollapse title=\"Options\" :open=\"false\" :icon=\"IBraces\" no-padding>\n <JsonViewer v-if=\"selectedQuery.options\" :data=\"selectedQuery.options\" readonly />\n <p v-else>\n This Query entry has no options. It might have been created from the server or manually\n set with\n <code>queryCache.setQueryData()</code> for prefetching.\n </p>\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 <p class=\"text-center text-sm text-neutral-500 mt-4\">\n No query with key {{ route.params.queryId }} was found in the cache\n </p>\n </div>\n </template>\n </div>\n</template>\n"],"names":["formatDuration","timeInMs","seconds","minutes","route","useRoute","queries","useQueryEntries","selectedQuery","computed","entry","TIME_AGO_OPTIONS","lastUpdate","useTimeAgo","channel","useDuplexChannel","isDataOpen","useLocalStorage","wasDataOpen","lastStatus","isErrorOpen","watch","state","setNestedValue","obj","path","value","current","i","handleValueUpdate","_openBlock","_createElementBlock","_hoisted_1","_Fragment","_createVNode","_component_UCollapse","_unref","IInfoCircle","_createElementVNode","_hoisted_2","_hoisted_3","_cache","_hoisted_4","_toDisplayString","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","formatTimeAgo","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","IWrench","_hoisted_15","_component_UButton","_component_i_lucide_refresh_cw","_component_i_lucide_timer_reset","_createBlock","_component_i_lucide_loader","_component_i_lucide_x_octagon","_component_i_lucide_rotate_ccw","_component_i_lucide_trash","$event","IFileText","_component_JsonViewer","ICircleX","_normalizeClass","_hoisted_16","_hoisted_17","_hoisted_18","ISigmaSquare","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","IHistory","_hoisted_25","IBraces","_hoisted_26","_hoisted_27","_hoisted_28","_component_i_lucide_mouse_pointer_click","_hoisted_29"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,SAASA,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACLA,UAAME,IAAQC,GAAA,GACRC,IAAUC,GAAA,GAEVC,IAAgBC,GAAsC,MACnDH,EAAQ,MAAM,KAAK,CAACI,MAAUA,EAAM,YAAYN,EAAM,OAAO,OAAO,KAAK,IACjF,GAEKO,IAAyC;AAAA,MAC7C,YAAY;AAAA,MACZ,UAAU;AAAA,MACV,KAAK,MAAO,KAAK,KAAK;AAAA;AAAA,IAAA,GAGlBC,IAAaC,GAAW,MAAML,EAAc,OAAO,SAAS,aAAa,GAAG;AAAA,MAChF,GAAGG;AAAA,MAC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