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