@pinia/colada-devtools 0.2.0 → 0.2.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.
- package/dist-panel/{(unselected)-B-_Xdo2t.js → (unselected)-95MlHIGa.js} +3 -3
- package/dist-panel/{(unselected)-B-_Xdo2t.js.map → (unselected)-95MlHIGa.js.map} +1 -1
- package/dist-panel/{(unselected)-BFwQCIEo.js → (unselected)-DcyIREPL.js} +3 -3
- package/dist-panel/{(unselected)-BFwQCIEo.js.map → (unselected)-DcyIREPL.js.map} +1 -1
- package/dist-panel/{_mutationId_-BG1E7StK.js → _mutationId_-BfpMyZn5.js} +7 -6
- package/dist-panel/_mutationId_-BfpMyZn5.js.map +1 -0
- package/dist-panel/{_queryId_-BHPtMxoe.js → _queryId_-deTdMujv.js} +183 -162
- package/dist-panel/_queryId_-deTdMujv.js.map +1 -0
- package/dist-panel/circle-x-CRJfYoJo.js +677 -0
- package/dist-panel/circle-x-CRJfYoJo.js.map +1 -0
- package/dist-panel/{index-CTwvPt67.js → index-CEuAAFs8.js} +330 -302
- package/dist-panel/{index-CTwvPt67.js.map → index-CEuAAFs8.js.map} +1 -1
- package/dist-panel/{index-kHk614RY.js → index-DfoOd-Mi.js} +2 -2
- package/dist-panel/{index-kHk614RY.js.map → index-DfoOd-Mi.js.map} +1 -1
- package/dist-panel/index.js +2 -2
- package/dist-panel/{loader-nEPBwFfz.js → loader-CiXOT2XE.js} +2 -2
- package/dist-panel/loader-CiXOT2XE.js.map +1 -0
- package/dist-panel/{mouse-pointer-click-DQLuAnaZ.js → mouse-pointer-click-CR81e5yZ.js} +2 -2
- package/dist-panel/mouse-pointer-click-CR81e5yZ.js.map +1 -0
- package/dist-panel/{mutations-BZWQwG2S.js → mutations-Dox_GA2-.js} +4 -4
- package/dist-panel/{mutations-BZWQwG2S.js.map → mutations-Dox_GA2-.js.map} +1 -1
- package/dist-panel/{queries-D3ybdTKc.js → queries-15p7FQjG.js} +4 -4
- package/dist-panel/{queries-D3ybdTKc.js.map → queries-15p7FQjG.js.map} +1 -1
- package/dist-panel/{settings-DddAyvXJ.js → settings-DqjxZlKC.js} +2 -2
- package/dist-panel/{settings-DddAyvXJ.js.map → settings-DqjxZlKC.js.map} +1 -1
- package/dist-panel/{use-container-media-query-BWmwm2oB.js → use-container-media-query-rzuTymhT.js} +2 -2
- package/dist-panel/{use-container-media-query-BWmwm2oB.js.map → use-container-media-query-rzuTymhT.js.map} +1 -1
- package/dist-shared/index.d.ts +95 -0
- package/dist-shared/index.js +1 -0
- package/dist-shared/index.js.map +1 -1
- package/package.json +2 -2
- package/dist-panel/_mutationId_-BG1E7StK.js.map +0 -1
- 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
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { _ as F } from "./mouse-pointer-click-
|
|
2
|
-
import { I as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { m as
|
|
5
|
-
const
|
|
1
|
+
import { _ as F } from "./mouse-pointer-click-CR81e5yZ.js";
|
|
2
|
+
import { I as U, _ as Q, a as W, b as J, c as G, d as P, e as X, f as K, g as Y } from "./circle-x-CRJfYoJo.js";
|
|
3
|
+
import { _ as Z, a as ee } from "./loader-CiXOT2XE.js";
|
|
4
|
+
import { m as q, c as i, o as n, a as t, d as te, C as se, b as z, s as oe, p as B, v as ne, F as b, i as a, w as d, g as o, x as D, q as _, t as c, y as le, f as $, z as ae, A as C, e as x, B as re, h as ie } from "./index-CEuAAFs8.js";
|
|
5
|
+
const ue = {
|
|
6
6
|
viewBox: "0 0 24 24",
|
|
7
7
|
width: "1.2em",
|
|
8
8
|
height: "1.2em"
|
|
9
9
|
};
|
|
10
|
-
function
|
|
11
|
-
return n(), i("svg",
|
|
10
|
+
function de(v, l) {
|
|
11
|
+
return n(), i("svg", ue, [...l[0] || (l[0] = [
|
|
12
12
|
t("g", {
|
|
13
13
|
fill: "none",
|
|
14
14
|
stroke: "currentColor",
|
|
@@ -21,13 +21,13 @@ function re(c, l) {
|
|
|
21
21
|
], -1)
|
|
22
22
|
])]);
|
|
23
23
|
}
|
|
24
|
-
const
|
|
24
|
+
const ce = q({ name: "lucide-timer-reset", render: de }), pe = {
|
|
25
25
|
viewBox: "0 0 24 24",
|
|
26
26
|
width: "1.2em",
|
|
27
27
|
height: "1.2em"
|
|
28
28
|
};
|
|
29
|
-
function
|
|
30
|
-
return n(), i("svg",
|
|
29
|
+
function me(v, l) {
|
|
30
|
+
return n(), i("svg", pe, [...l[0] || (l[0] = [
|
|
31
31
|
t("g", {
|
|
32
32
|
fill: "none",
|
|
33
33
|
stroke: "currentColor",
|
|
@@ -41,25 +41,25 @@ function pe(c, l) {
|
|
|
41
41
|
], -1)
|
|
42
42
|
])]);
|
|
43
43
|
}
|
|
44
|
-
const
|
|
45
|
-
function
|
|
46
|
-
if (
|
|
47
|
-
return `${Math.round(
|
|
48
|
-
const l =
|
|
49
|
-
if (
|
|
44
|
+
const _e = q({ name: "lucide-refresh-cw", render: me });
|
|
45
|
+
function ve(v) {
|
|
46
|
+
if (v < 1e3)
|
|
47
|
+
return `${Math.round(v)} ms`;
|
|
48
|
+
const l = v / 1e3;
|
|
49
|
+
if (v < 1e4)
|
|
50
50
|
return `${l.toFixed(3)} seconds`;
|
|
51
|
-
if (
|
|
51
|
+
if (v < 6e4)
|
|
52
52
|
return `${Math.floor(l)} seconds`;
|
|
53
|
-
const
|
|
54
|
-
return
|
|
53
|
+
const y = Math.floor(l / 60);
|
|
54
|
+
return v < 36e5 ? `${y} minute${y > 1 ? "s" : ""}` : `${Math.floor(y / 60)}h${y % 60}m${l % 60}s`;
|
|
55
55
|
}
|
|
56
|
-
const
|
|
56
|
+
const fe = {
|
|
57
57
|
viewBox: "0 0 24 24",
|
|
58
58
|
width: "1.2em",
|
|
59
59
|
height: "1.2em"
|
|
60
60
|
};
|
|
61
|
-
function
|
|
62
|
-
return n(), i("svg",
|
|
61
|
+
function he(v, l) {
|
|
62
|
+
return n(), i("svg", fe, [...l[0] || (l[0] = [
|
|
63
63
|
t("g", {
|
|
64
64
|
fill: "none",
|
|
65
65
|
stroke: "currentColor",
|
|
@@ -72,13 +72,13 @@ function ve(c, l) {
|
|
|
72
72
|
], -1)
|
|
73
73
|
])]);
|
|
74
74
|
}
|
|
75
|
-
const
|
|
75
|
+
const ge = q({ name: "lucide-history", render: he }), ye = {
|
|
76
76
|
viewBox: "0 0 24 24",
|
|
77
77
|
width: "1.2em",
|
|
78
78
|
height: "1.2em"
|
|
79
79
|
};
|
|
80
|
-
function
|
|
81
|
-
return n(), i("svg",
|
|
80
|
+
function ke(v, l) {
|
|
81
|
+
return n(), i("svg", ye, [...l[0] || (l[0] = [
|
|
82
82
|
t("g", {
|
|
83
83
|
fill: "none",
|
|
84
84
|
stroke: "currentColor",
|
|
@@ -97,214 +97,234 @@ function ge(c, l) {
|
|
|
97
97
|
], -1)
|
|
98
98
|
])]);
|
|
99
99
|
}
|
|
100
|
-
const
|
|
100
|
+
const xe = q({ name: "lucide-sigma-square", render: ke }), we = { class: "flex flex-col divide-y dark:divide-(--ui-border) divide-(--ui-border-accented)" }, $e = { class: "py-1 text-sm" }, qe = { class: "grid grid-cols-[auto_1fr] gap-1" }, be = { class: "rounded bg-neutral-500/20 p-0.5" }, Ce = {
|
|
101
101
|
class: "grid grid-cols-[auto_1fr] gap-x-2",
|
|
102
102
|
title: "When was the query entry last updated"
|
|
103
|
-
},
|
|
103
|
+
}, Se = { class: "font-bold" }, Ie = {
|
|
104
104
|
key: 0,
|
|
105
105
|
class: "grid grid-cols-[auto_1fr] gap-x-2",
|
|
106
106
|
title: "When was the last time the query was fetched"
|
|
107
|
-
},
|
|
107
|
+
}, Te = { class: "font-bold" }, ze = {
|
|
108
108
|
key: 1,
|
|
109
109
|
class: "grid grid-cols-[auto_1fr] gap-x-2",
|
|
110
110
|
title: "How long did the last query take to fetch"
|
|
111
|
-
},
|
|
111
|
+
}, Be = { class: "font-bold" }, De = {
|
|
112
112
|
class: "grid grid-cols-[auto_1fr] gap-x-2",
|
|
113
113
|
title: "How many components and effects are using this query"
|
|
114
|
-
},
|
|
114
|
+
}, Ee = { class: "font-bold" }, Ne = {
|
|
115
115
|
key: 2,
|
|
116
116
|
class: "grid grid-cols-[auto_1fr] gap-x-2",
|
|
117
117
|
title: "When is this query entry garbace collected"
|
|
118
|
-
},
|
|
118
|
+
}, Re = { class: "font-bold" }, Ae = { class: "py-2 gap-2 flex flex-wrap items-center justify-items-start" }, He = { class: "py-1" }, Oe = {
|
|
119
119
|
key: 0,
|
|
120
120
|
class: "rounded p-1 overflow-auto max-h-[1200px]"
|
|
121
|
-
},
|
|
121
|
+
}, Le = {
|
|
122
122
|
key: 1,
|
|
123
123
|
class: "text-neutral-500/50"
|
|
124
|
-
},
|
|
124
|
+
}, Me = { 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" }, Je = { class: "rounded p-1 overflow-auto max-h-[1200px]" }, Ge = { class: "py-1" }, Pe = {
|
|
125
125
|
key: 0,
|
|
126
126
|
class: "rounded bg-neutral-500/20 p-1 overflow-auto max-h-[1200px]"
|
|
127
|
-
},
|
|
127
|
+
}, Xe = { key: 1 }, Ke = {
|
|
128
128
|
key: 1,
|
|
129
129
|
class: "py-6 mx-auto"
|
|
130
|
-
},
|
|
130
|
+
}, Ye = { class: "flex flex-col text-center items-center gap-2 text-lg px-2" }, Ze = { class: "text-center text-sm text-neutral-500 mt-4" }, nt = /* @__PURE__ */ te({
|
|
131
131
|
__name: "[queryId]",
|
|
132
|
-
setup(
|
|
133
|
-
const l =
|
|
132
|
+
setup(v) {
|
|
133
|
+
const l = le(), y = se(), s = z(() => y.value.find((r) => r.keyHash === l.params.queryId) ?? null), E = z(() => s.value?.devtools.history.map((r) => {
|
|
134
134
|
let e;
|
|
135
135
|
try {
|
|
136
|
-
e = JSON.stringify(
|
|
137
|
-
} catch (
|
|
138
|
-
e = `Error serializing entry: ${String(
|
|
136
|
+
e = JSON.stringify(r, null, 2);
|
|
137
|
+
} catch (p) {
|
|
138
|
+
e = `Error serializing entry: ${String(p)}`;
|
|
139
139
|
}
|
|
140
140
|
return {
|
|
141
|
-
...
|
|
141
|
+
...r,
|
|
142
142
|
data: e
|
|
143
143
|
};
|
|
144
|
-
}) ?? []),
|
|
144
|
+
}) ?? []), w = {
|
|
145
145
|
showSecond: !0,
|
|
146
146
|
rounding: "floor",
|
|
147
147
|
max: 1e3 * 60 * 60 * 24
|
|
148
148
|
// 1 day
|
|
149
|
-
},
|
|
150
|
-
...
|
|
149
|
+
}, N = ae(() => s.value?.devtools.updatedAt ?? 0, {
|
|
150
|
+
...w,
|
|
151
151
|
updateInterval: 3e3
|
|
152
|
-
}),
|
|
153
|
-
let
|
|
154
|
-
const
|
|
155
|
-
|
|
152
|
+
}), h = oe(), g = B("pc:query:details:data:open", !1, {});
|
|
153
|
+
let S = g.value, I = null;
|
|
154
|
+
const k = B("pc:query:details:error:open", !1, {});
|
|
155
|
+
ne(
|
|
156
156
|
() => s.value?.state,
|
|
157
|
-
(
|
|
158
|
-
!
|
|
157
|
+
(r) => {
|
|
158
|
+
!r || I === r.status || (I = r.status, r.status === "error" ? (k.value = !0, S = g.value, g.value = !1) : r.status === "success" && (g.value = S, k.value = !1));
|
|
159
|
+
}
|
|
160
|
+
);
|
|
161
|
+
function R(r, e, p) {
|
|
162
|
+
if (e.length === 0)
|
|
163
|
+
return console.error("Cannot set value with empty path"), !1;
|
|
164
|
+
let f = r;
|
|
165
|
+
for (let m = 0; m < e.length - 1; m++) {
|
|
166
|
+
if (f == null || typeof f != "object")
|
|
167
|
+
return console.error("Invalid path:", e, "at index", m, "Current value:", f), !1;
|
|
168
|
+
f = f[e[m]];
|
|
159
169
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
170
|
+
return f == null || typeof f != "object" ? (console.error("Invalid final parent in path:", e), !1) : (f[e.at(-1)] = p, !0);
|
|
171
|
+
}
|
|
172
|
+
const A = (r, e) => {
|
|
173
|
+
if (!s.value) return;
|
|
174
|
+
if (!R(s.value.state.data, r, e)) {
|
|
175
|
+
console.error("Failed to update value at path:", r);
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
h.emit("queries:set:state", s.value.key, s.value.state);
|
|
179
|
+
};
|
|
180
|
+
return (r, e) => {
|
|
181
|
+
const p = Q, f = _e, m = re, H = ce, T = Z, O = ee, L = X, M = K, V = Y, j = F;
|
|
182
|
+
return n(), i("div", we, [
|
|
183
|
+
s.value ? (n(), i(b, { key: 0 }, [
|
|
184
|
+
a(p, {
|
|
165
185
|
title: "Details",
|
|
166
|
-
icon: o(
|
|
186
|
+
icon: o(U)
|
|
167
187
|
}, {
|
|
168
|
-
default:
|
|
169
|
-
t("div",
|
|
170
|
-
t("p",
|
|
188
|
+
default: d(() => [
|
|
189
|
+
t("div", $e, [
|
|
190
|
+
t("p", qe, [
|
|
171
191
|
e[9] || (e[9] = t("span", null, "key:", -1)),
|
|
172
192
|
t("span", null, [
|
|
173
|
-
t("code",
|
|
193
|
+
t("code", be, c(s.value.key), 1)
|
|
174
194
|
])
|
|
175
195
|
]),
|
|
176
|
-
t("p",
|
|
196
|
+
t("p", Ce, [
|
|
177
197
|
e[10] || (e[10] = t("span", null, "Last update:", -1)),
|
|
178
|
-
t("span",
|
|
198
|
+
t("span", Se, c(o(N)), 1)
|
|
179
199
|
]),
|
|
180
|
-
s.value.devtools.history.at(0)?.fetchTime ? (n(), i("p",
|
|
200
|
+
s.value.devtools.history.at(0)?.fetchTime ? (n(), i("p", Ie, [
|
|
181
201
|
e[11] || (e[11] = t("span", null, "Last fetch:", -1)),
|
|
182
|
-
t("span",
|
|
183
|
-
...
|
|
202
|
+
t("span", Te, c(o(C)(new Date(s.value.devtools.history.at(0).fetchTime.start), {
|
|
203
|
+
...w,
|
|
184
204
|
max: void 0
|
|
185
205
|
})), 1)
|
|
186
|
-
])) :
|
|
187
|
-
s.value.devtools.history.at(0)?.fetchTime?.end ? (n(), i("p",
|
|
206
|
+
])) : $("", !0),
|
|
207
|
+
s.value.devtools.history.at(0)?.fetchTime?.end ? (n(), i("p", ze, [
|
|
188
208
|
e[12] || (e[12] = t("span", null, "Fetch duration:", -1)),
|
|
189
|
-
t("span",
|
|
209
|
+
t("span", Be, c(o(ve)(
|
|
190
210
|
s.value.devtools.history.at(0).fetchTime.end - s.value.devtools.history.at(0).fetchTime.start
|
|
191
211
|
)), 1)
|
|
192
|
-
])) :
|
|
193
|
-
t("p",
|
|
212
|
+
])) : $("", !0),
|
|
213
|
+
t("p", De, [
|
|
194
214
|
t("span", null, [
|
|
195
|
-
e[13] || (e[13] =
|
|
196
|
-
t("span",
|
|
215
|
+
e[13] || (e[13] = _("Observers: ", -1)),
|
|
216
|
+
t("span", Ee, c(s.value.deps.length), 1)
|
|
197
217
|
])
|
|
198
218
|
]),
|
|
199
|
-
!s.value.active && s.value.options ? (n(), i("p",
|
|
200
|
-
typeof s.value.options.gcTime == "number" && Number.isFinite(s.value.options.gcTime) ? (n(), i(
|
|
219
|
+
!s.value.active && s.value.options ? (n(), i("p", Ne, [
|
|
220
|
+
typeof s.value.options.gcTime == "number" && Number.isFinite(s.value.options.gcTime) ? (n(), i(b, { key: 0 }, [
|
|
201
221
|
e[14] || (e[14] = t("span", null, [
|
|
202
|
-
|
|
222
|
+
_("Will be "),
|
|
203
223
|
t("i", null, "gced")
|
|
204
224
|
], -1)),
|
|
205
|
-
t("span",
|
|
225
|
+
t("span", Re, c(o(C)(
|
|
206
226
|
new Date(s.value.devtools.inactiveAt + s.value.options.gcTime),
|
|
207
227
|
{
|
|
208
|
-
...
|
|
228
|
+
...w,
|
|
209
229
|
max: void 0
|
|
210
230
|
}
|
|
211
231
|
)), 1)
|
|
212
|
-
], 64)) :
|
|
213
|
-
])) :
|
|
232
|
+
], 64)) : $("", !0)
|
|
233
|
+
])) : $("", !0)
|
|
214
234
|
])
|
|
215
235
|
]),
|
|
216
236
|
_: 1
|
|
217
237
|
}, 8, ["icon"]),
|
|
218
|
-
a(
|
|
238
|
+
a(p, {
|
|
219
239
|
title: "Actions",
|
|
220
|
-
icon: o(
|
|
240
|
+
icon: o(W)
|
|
221
241
|
}, {
|
|
222
|
-
default:
|
|
223
|
-
t("div",
|
|
224
|
-
a(
|
|
242
|
+
default: d(() => [
|
|
243
|
+
t("div", Ae, [
|
|
244
|
+
a(m, {
|
|
225
245
|
class: "theme-info",
|
|
226
246
|
size: "sm",
|
|
227
247
|
title: "Refetch this query",
|
|
228
248
|
disabled: s.value.options?.enabled === !1,
|
|
229
|
-
onClick: e[0] || (e[0] = (
|
|
249
|
+
onClick: e[0] || (e[0] = (u) => o(h).emit("queries:refetch", s.value.key))
|
|
230
250
|
}, {
|
|
231
|
-
default:
|
|
232
|
-
a(
|
|
233
|
-
e[15] || (e[15] =
|
|
251
|
+
default: d(() => [
|
|
252
|
+
a(f, { class: "size-3.5" }),
|
|
253
|
+
e[15] || (e[15] = _(" Refetch ", -1))
|
|
234
254
|
]),
|
|
235
255
|
_: 1
|
|
236
256
|
}, 8, ["disabled"]),
|
|
237
|
-
a(
|
|
257
|
+
a(m, {
|
|
238
258
|
class: "theme-neutral",
|
|
239
259
|
size: "sm",
|
|
240
260
|
title: "Invalidate this query",
|
|
241
|
-
onClick: e[1] || (e[1] = (
|
|
261
|
+
onClick: e[1] || (e[1] = (u) => o(h).emit("queries:invalidate", s.value.key))
|
|
242
262
|
}, {
|
|
243
|
-
default:
|
|
244
|
-
a(
|
|
245
|
-
e[16] || (e[16] =
|
|
263
|
+
default: d(() => [
|
|
264
|
+
a(H),
|
|
265
|
+
e[16] || (e[16] = _(" Invalidate ", -1))
|
|
246
266
|
]),
|
|
247
267
|
_: 1
|
|
248
268
|
}),
|
|
249
|
-
s.value.devtools.simulate !== "loading" ? (n(),
|
|
269
|
+
s.value.devtools.simulate !== "loading" ? (n(), x(m, {
|
|
250
270
|
key: 0,
|
|
251
271
|
class: "theme-purple",
|
|
252
272
|
size: "sm",
|
|
253
273
|
title: "Restore the previous state",
|
|
254
|
-
onClick: e[2] || (e[2] = (
|
|
274
|
+
onClick: e[2] || (e[2] = (u) => o(h).emit("queries:simulate:loading", s.value.key))
|
|
255
275
|
}, {
|
|
256
|
-
default:
|
|
276
|
+
default: d(() => [
|
|
257
277
|
a(T),
|
|
258
|
-
e[17] || (e[17] =
|
|
278
|
+
e[17] || (e[17] = _(" Simulate loading ", -1))
|
|
259
279
|
]),
|
|
260
280
|
_: 1
|
|
261
|
-
})) : (n(),
|
|
281
|
+
})) : (n(), x(m, {
|
|
262
282
|
key: 1,
|
|
263
283
|
class: "theme-purple",
|
|
264
284
|
size: "sm",
|
|
265
285
|
title: "Simulate a loading state",
|
|
266
|
-
onClick: e[3] || (e[3] = (
|
|
286
|
+
onClick: e[3] || (e[3] = (u) => o(h).emit("queries:simulate:loading:stop", s.value.key))
|
|
267
287
|
}, {
|
|
268
|
-
default:
|
|
288
|
+
default: d(() => [
|
|
269
289
|
a(T, { class: "animate-spin" }),
|
|
270
|
-
e[18] || (e[18] =
|
|
290
|
+
e[18] || (e[18] = _(" Stop loading ", -1))
|
|
271
291
|
]),
|
|
272
292
|
_: 1
|
|
273
293
|
})),
|
|
274
|
-
s.value.devtools.simulate !== "error" ? (n(),
|
|
294
|
+
s.value.devtools.simulate !== "error" ? (n(), x(m, {
|
|
275
295
|
key: 2,
|
|
276
296
|
class: "theme-error",
|
|
277
297
|
size: "sm",
|
|
278
298
|
title: "Simulate an Error state",
|
|
279
|
-
onClick: e[4] || (e[4] = (
|
|
299
|
+
onClick: e[4] || (e[4] = (u) => o(h).emit("queries:simulate:error", s.value.key))
|
|
280
300
|
}, {
|
|
281
|
-
default:
|
|
282
|
-
a(
|
|
283
|
-
e[19] || (e[19] =
|
|
301
|
+
default: d(() => [
|
|
302
|
+
a(O),
|
|
303
|
+
e[19] || (e[19] = _(" Simulate error ", -1))
|
|
284
304
|
]),
|
|
285
305
|
_: 1
|
|
286
|
-
})) : (n(),
|
|
306
|
+
})) : (n(), x(m, {
|
|
287
307
|
key: 3,
|
|
288
308
|
class: "theme-error",
|
|
289
309
|
size: "sm",
|
|
290
310
|
title: "Restore the previous state",
|
|
291
|
-
onClick: e[5] || (e[5] = (
|
|
311
|
+
onClick: e[5] || (e[5] = (u) => o(h).emit("queries:simulate:error:stop", s.value.key))
|
|
292
312
|
}, {
|
|
293
|
-
default:
|
|
294
|
-
a(
|
|
295
|
-
e[20] || (e[20] =
|
|
313
|
+
default: d(() => [
|
|
314
|
+
a(L),
|
|
315
|
+
e[20] || (e[20] = _(" Remove error ", -1))
|
|
296
316
|
]),
|
|
297
317
|
_: 1
|
|
298
318
|
})),
|
|
299
|
-
a(
|
|
319
|
+
a(m, {
|
|
300
320
|
class: "theme-warning",
|
|
301
321
|
size: "sm",
|
|
302
322
|
title: "Reset this query to its initial (pending) state",
|
|
303
|
-
onClick: e[6] || (e[6] = (
|
|
323
|
+
onClick: e[6] || (e[6] = (u) => o(h).emit("queries:reset", s.value.key))
|
|
304
324
|
}, {
|
|
305
|
-
default:
|
|
306
|
-
a(
|
|
307
|
-
e[21] || (e[21] =
|
|
325
|
+
default: d(() => [
|
|
326
|
+
a(M),
|
|
327
|
+
e[21] || (e[21] = _(" Reset ", -1))
|
|
308
328
|
]),
|
|
309
329
|
_: 1
|
|
310
330
|
})
|
|
@@ -312,77 +332,78 @@ const ye = $({ name: "lucide-sigma-square", render: ge }), ke = { class: "flex f
|
|
|
312
332
|
]),
|
|
313
333
|
_: 1
|
|
314
334
|
}, 8, ["icon"]),
|
|
315
|
-
a(
|
|
316
|
-
open: o(
|
|
317
|
-
"onUpdate:open": e[7] || (e[7] = (
|
|
335
|
+
a(p, {
|
|
336
|
+
open: o(g),
|
|
337
|
+
"onUpdate:open": e[7] || (e[7] = (u) => D(g) ? g.value = u : null),
|
|
318
338
|
title: "Data",
|
|
319
|
-
icon: o(
|
|
339
|
+
icon: o(J),
|
|
320
340
|
class: "font-mono",
|
|
321
341
|
"no-padding": ""
|
|
322
342
|
}, {
|
|
323
|
-
default:
|
|
324
|
-
a(
|
|
325
|
-
data: s.value.state.data
|
|
343
|
+
default: d(() => [
|
|
344
|
+
a(V, {
|
|
345
|
+
data: s.value.state.data,
|
|
346
|
+
"onUpdate:value": A
|
|
326
347
|
}, null, 8, ["data"])
|
|
327
348
|
]),
|
|
328
349
|
_: 1
|
|
329
350
|
}, 8, ["open", "icon"]),
|
|
330
|
-
a(
|
|
331
|
-
open: o(
|
|
332
|
-
"onUpdate:open": e[8] || (e[8] = (
|
|
351
|
+
a(p, {
|
|
352
|
+
open: o(k),
|
|
353
|
+
"onUpdate:open": e[8] || (e[8] = (u) => D(k) ? k.value = u : null),
|
|
333
354
|
title: `Error${s.value.state.status === "error" ? " (!)" : ""}`,
|
|
334
|
-
icon: o(
|
|
355
|
+
icon: o(G)
|
|
335
356
|
}, {
|
|
336
|
-
default:
|
|
337
|
-
t("div",
|
|
338
|
-
s.value.state.error ? (n(), i("pre",
|
|
357
|
+
default: d(() => [
|
|
358
|
+
t("div", He, [
|
|
359
|
+
s.value.state.error ? (n(), i("pre", Oe, c(s.value.state.error), 1)) : (n(), i("p", Le, "No error"))
|
|
339
360
|
])
|
|
340
361
|
]),
|
|
341
362
|
_: 1
|
|
342
363
|
}, 8, ["open", "title", "icon"]),
|
|
343
|
-
a(
|
|
364
|
+
a(p, {
|
|
344
365
|
title: "Call count",
|
|
345
|
-
icon: o(
|
|
366
|
+
icon: o(xe),
|
|
346
367
|
open: !1
|
|
347
368
|
}, {
|
|
348
|
-
default:
|
|
349
|
-
t("div",
|
|
350
|
-
t("p",
|
|
369
|
+
default: d(() => [
|
|
370
|
+
t("div", Me, [
|
|
371
|
+
t("p", Ve, [
|
|
351
372
|
e[22] || (e[22] = t("span", null, "Calls:", -1)),
|
|
352
373
|
t("span", null, [
|
|
353
|
-
t("code",
|
|
374
|
+
t("code", je, c(s.value.devtools.count.total), 1)
|
|
354
375
|
]),
|
|
355
376
|
e[23] || (e[23] = t("span", null, "Success:", -1)),
|
|
356
377
|
t("span", null, [
|
|
357
|
-
t("code", Fe,
|
|
378
|
+
t("code", Fe, c(s.value.devtools.count.succeed), 1)
|
|
358
379
|
]),
|
|
359
380
|
e[24] || (e[24] = t("span", null, "Errors:", -1)),
|
|
360
381
|
t("span", null, [
|
|
361
|
-
t("code",
|
|
382
|
+
t("code", Ue, c(s.value.devtools.count.errored), 1)
|
|
362
383
|
]),
|
|
363
384
|
e[25] || (e[25] = t("span", null, "Cancelled:", -1)),
|
|
364
385
|
t("span", null, [
|
|
365
|
-
t("code",
|
|
386
|
+
t("code", Qe, c(s.value.devtools.count.cancelled), 1)
|
|
366
387
|
])
|
|
367
388
|
])
|
|
368
389
|
])
|
|
369
390
|
]),
|
|
370
391
|
_: 1
|
|
371
392
|
}, 8, ["icon"]),
|
|
372
|
-
a(
|
|
393
|
+
a(p, {
|
|
373
394
|
title: `History (${s.value.devtools.history.length})`,
|
|
374
|
-
icon: o(
|
|
395
|
+
icon: o(ge),
|
|
375
396
|
open: !1
|
|
376
397
|
}, {
|
|
377
|
-
default:
|
|
378
|
-
t("div",
|
|
379
|
-
(n(!0), i(
|
|
380
|
-
key:
|
|
381
|
-
title: `Entry nº${
|
|
398
|
+
default: d(() => [
|
|
399
|
+
t("div", We, [
|
|
400
|
+
(n(!0), i(b, null, ie(E.value, (u) => (n(), x(p, {
|
|
401
|
+
key: u.updatedAt,
|
|
402
|
+
title: `Entry nº${u.id} (${o(C)(new Date(u.updatedAt), w)})`,
|
|
382
403
|
open: !1
|
|
383
404
|
}, {
|
|
384
|
-
default:
|
|
385
|
-
t("pre",
|
|
405
|
+
default: d(() => [
|
|
406
|
+
t("pre", Je, c(u.data), 1)
|
|
386
407
|
]),
|
|
387
408
|
_: 2
|
|
388
409
|
}, 1032, ["title"]))), 128))
|
|
@@ -390,34 +411,34 @@ const ye = $({ name: "lucide-sigma-square", render: ge }), ke = { class: "flex f
|
|
|
390
411
|
]),
|
|
391
412
|
_: 1
|
|
392
413
|
}, 8, ["title", "icon"]),
|
|
393
|
-
a(
|
|
414
|
+
a(p, {
|
|
394
415
|
title: "Options",
|
|
395
416
|
open: !1,
|
|
396
|
-
icon: o(
|
|
417
|
+
icon: o(P)
|
|
397
418
|
}, {
|
|
398
|
-
default:
|
|
399
|
-
t("div",
|
|
400
|
-
s.value.options ? (n(), i("pre",
|
|
401
|
-
|
|
419
|
+
default: d(() => [
|
|
420
|
+
t("div", Ge, [
|
|
421
|
+
s.value.options ? (n(), i("pre", Pe, c(s.value.options), 1)) : (n(), i("p", Xe, [...e[26] || (e[26] = [
|
|
422
|
+
_(" This Query entry has no options. It might have been created from the server or manually set with ", -1),
|
|
402
423
|
t("code", null, "queryCache.setQueryData()", -1),
|
|
403
|
-
|
|
424
|
+
_(" for prefetching. ", -1)
|
|
404
425
|
])]))
|
|
405
426
|
])
|
|
406
427
|
]),
|
|
407
428
|
_: 1
|
|
408
429
|
}, 8, ["icon"])
|
|
409
|
-
], 64)) : (n(), i("div",
|
|
410
|
-
t("p",
|
|
411
|
-
e[27] || (e[27] =
|
|
412
|
-
a(
|
|
430
|
+
], 64)) : (n(), i("div", Ke, [
|
|
431
|
+
t("p", Ye, [
|
|
432
|
+
e[27] || (e[27] = _(" Select a Query to inspect ", -1)),
|
|
433
|
+
a(j)
|
|
413
434
|
]),
|
|
414
|
-
t("p",
|
|
435
|
+
t("p", Ze, " No query with key " + c(o(l).params.queryId) + " was found in the cache ", 1)
|
|
415
436
|
]))
|
|
416
437
|
]);
|
|
417
438
|
};
|
|
418
439
|
}
|
|
419
440
|
});
|
|
420
441
|
export {
|
|
421
|
-
|
|
442
|
+
nt as default
|
|
422
443
|
};
|
|
423
|
-
//# sourceMappingURL=_queryId_-
|
|
444
|
+
//# sourceMappingURL=_queryId_-deTdMujv.js.map
|