@pinia/colada-devtools 0.1.4 → 0.1.6
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.js +267 -273
- package/dist/index.js.map +1 -1
- package/dist-panel/_queryId_-13o6pDV6.js +708 -0
- package/dist-panel/_queryId_-13o6pDV6.js.map +1 -0
- package/dist-panel/{index-D50XbbDk.js → index-BgTq8RHl.js} +906 -901
- package/dist-panel/index-BgTq8RHl.js.map +1 -0
- package/dist-panel/{index-B6c9Loor.js → index-DcKBZRe1.js} +3 -3
- package/dist-panel/{index-B6c9Loor.js.map → index-DcKBZRe1.js.map} +1 -1
- package/dist-panel/{index-DsbwSvSM.js → index-DgZ0YYsh.js} +2 -2
- package/dist-panel/{index-DsbwSvSM.js.map → index-DgZ0YYsh.js.map} +1 -1
- package/dist-panel/index.js +1 -1
- package/dist-panel/{loader-BxXz3POc.js → loader-Dx4_68Bp.js} +2 -2
- package/dist-panel/loader-Dx4_68Bp.js.map +1 -0
- package/dist-panel/{mouse-pointer-click--GgfMFjw.js → mouse-pointer-click-BeSJo9Pm.js} +2 -2
- package/dist-panel/mouse-pointer-click-BeSJo9Pm.js.map +1 -0
- package/dist-panel/{mutations-CNQGJZrN.js → mutations-4_Hc86Rz.js} +2 -2
- package/dist-panel/{mutations-CNQGJZrN.js.map → mutations-4_Hc86Rz.js.map} +1 -1
- package/dist-panel/queries-BWAwqUDO.js +795 -0
- package/dist-panel/{queries-CSBvC4-S.js.map → queries-BWAwqUDO.js.map} +1 -1
- package/dist-panel/{settings-Cl-hr-ie.js → settings-CAkjqhkP.js} +2 -2
- package/dist-panel/{settings-Cl-hr-ie.js.map → settings-CAkjqhkP.js.map} +1 -1
- package/dist-shared/index.d.ts +27 -0
- package/dist-shared/index.js +295 -65
- package/dist-shared/index.js.map +1 -1
- package/package.json +8 -8
- package/dist-panel/_queryId_-Bilvrtoo.js +0 -621
- package/dist-panel/_queryId_-Bilvrtoo.js.map +0 -1
- package/dist-panel/index-D50XbbDk.js.map +0 -1
- package/dist-panel/loader-BxXz3POc.js.map +0 -1
- package/dist-panel/mouse-pointer-click--GgfMFjw.js.map +0 -1
- package/dist-panel/queries-CSBvC4-S.js +0 -813
|
@@ -1,621 +0,0 @@
|
|
|
1
|
-
import { _ as N } from "./mouse-pointer-click--GgfMFjw.js";
|
|
2
|
-
import { m, c as l, o as n, a as e, d as z, 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, M as G, b as P, T as X, U as Z, x as I, y as J, F as q, k as r, w as d, i, V as K, W as B, X as ee, j as te } from "./index-D50XbbDk.js";
|
|
3
|
-
import { _ as oe, a as se } from "./loader-BxXz3POc.js";
|
|
4
|
-
const ne = {
|
|
5
|
-
viewBox: "0 0 24 24",
|
|
6
|
-
width: "1.2em",
|
|
7
|
-
height: "1.2em"
|
|
8
|
-
};
|
|
9
|
-
function le(a, 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 ae = m({ name: "lucide-trash", render: le }), ie = {
|
|
22
|
-
viewBox: "0 0 24 24",
|
|
23
|
-
width: "1.2em",
|
|
24
|
-
height: "1.2em"
|
|
25
|
-
};
|
|
26
|
-
function re(a, s) {
|
|
27
|
-
return n(), l("svg", ie, 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(a, 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(a, 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 }), _e = { class: "collapse collapse-arrow" }, fe = { 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__ */ z({
|
|
80
|
-
__name: "UCollapse.ce",
|
|
81
|
-
props: /* @__PURE__ */ A({
|
|
82
|
-
title: { type: String },
|
|
83
|
-
icon: { type: [Object, Function] }
|
|
84
|
-
}, {
|
|
85
|
-
open: { type: Boolean, default: !0 },
|
|
86
|
-
openModifiers: {}
|
|
87
|
-
}),
|
|
88
|
-
emits: ["update:open"],
|
|
89
|
-
setup(a) {
|
|
90
|
-
const s = U(a, "open");
|
|
91
|
-
function f(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", _e, [
|
|
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", fe, [
|
|
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: f
|
|
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(a) {
|
|
134
|
-
if (a < 1e3)
|
|
135
|
-
return `${Math.round(a)} ms`;
|
|
136
|
-
const s = a / 1e3;
|
|
137
|
-
if (a < 1e4)
|
|
138
|
-
return `${s.toFixed(3)} seconds`;
|
|
139
|
-
if (a < 6e4)
|
|
140
|
-
return `${Math.floor(s)} seconds`;
|
|
141
|
-
const f = Math.floor(s / 60);
|
|
142
|
-
return a < 36e5 ? `${f} minute${f > 1 ? "s" : ""}` : `${Math.floor(f / 60)}h${f % 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(a, 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(a, 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(a, 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 He = m({ name: "lucide-file-text", render: Se }), je = {
|
|
204
|
-
viewBox: "0 0 24 24",
|
|
205
|
-
width: "1.2em",
|
|
206
|
-
height: "1.2em"
|
|
207
|
-
};
|
|
208
|
-
function Ie(a, s) {
|
|
209
|
-
return n(), l("svg", je, 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 ze = 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(a, 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 Oe = m({ name: "lucide-braces", render: Ve }), Re = {
|
|
244
|
-
viewBox: "0 0 24 24",
|
|
245
|
-
width: "1.2em",
|
|
246
|
-
height: "1.2em"
|
|
247
|
-
};
|
|
248
|
-
function Ee(a, s) {
|
|
249
|
-
return n(), l("svg", Re, 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 Le = m({ name: "lucide-history", render: Ee }), Ne = {
|
|
263
|
-
viewBox: "0 0 24 24",
|
|
264
|
-
width: "1.2em",
|
|
265
|
-
height: "1.2em"
|
|
266
|
-
};
|
|
267
|
-
function Ae(a, s) {
|
|
268
|
-
return n(), l("svg", Ne, 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" }, at = {
|
|
306
|
-
key: 0,
|
|
307
|
-
class: "rounded p-1 overflow-auto max-h-[1200px]"
|
|
308
|
-
}, it = {
|
|
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" }, _t = { class: "font-bold" }, ft = { 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__ */ z({
|
|
324
|
-
__name: "[queryId]",
|
|
325
|
-
setup(a) {
|
|
326
|
-
const s = K(), f = G(), o = P(() => f.value.find((c) => c.keyHash === s.params.queryId) ?? null), h = {
|
|
327
|
-
showSecond: !0,
|
|
328
|
-
rounding: "floor",
|
|
329
|
-
max: 1e3 * 60 * 5
|
|
330
|
-
// 5 minutes
|
|
331
|
-
}, C = X(() => {
|
|
332
|
-
var c;
|
|
333
|
-
return ((c = o.value) == null ? void 0 : c.devtools.updatedAt) ?? 0;
|
|
334
|
-
}, {
|
|
335
|
-
...h,
|
|
336
|
-
updateInterval: 3e3
|
|
337
|
-
}), k = Z(), x = I(!1);
|
|
338
|
-
let T = x.value, S = null;
|
|
339
|
-
const $ = I(!1);
|
|
340
|
-
return J(
|
|
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, H = oe, O = se, R = de, E = ae, L = N;
|
|
350
|
-
return n(), l("div", Fe, [
|
|
351
|
-
o.value ? (n(), l(q, { key: 0 }, [
|
|
352
|
-
r(g, {
|
|
353
|
-
title: "Details",
|
|
354
|
-
icon: i(Be)
|
|
355
|
-
}, {
|
|
356
|
-
default: d(() => {
|
|
357
|
-
var p, _, j;
|
|
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(i(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(i(B)(new Date(o.value.devtools.history.at(0).fetchTime.start), {
|
|
373
|
-
...h,
|
|
374
|
-
max: void 0
|
|
375
|
-
})), 1)
|
|
376
|
-
])) : b("", !0),
|
|
377
|
-
(j = (_ = o.value.devtools.history.at(0)) == null ? void 0 : _.fetchTime) != null && j.end ? (n(), l("p", Je, [
|
|
378
|
-
t[12] || (t[12] = e("span", null, "Fetch duration:", -1)),
|
|
379
|
-
e("span", Ke, u(i(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(i(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: i(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] = (_) => i(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
|
-
__: [15]
|
|
430
|
-
}, 8, ["disabled"]),
|
|
431
|
-
r(y, {
|
|
432
|
-
class: "theme-neutral",
|
|
433
|
-
size: "sm",
|
|
434
|
-
title: "Invalidate this query",
|
|
435
|
-
onClick: t[1] || (t[1] = (_) => i(k).emit("queries:invalidate", o.value.key))
|
|
436
|
-
}, {
|
|
437
|
-
default: d(() => [
|
|
438
|
-
r(V),
|
|
439
|
-
t[16] || (t[16] = v(" Invalidate "))
|
|
440
|
-
]),
|
|
441
|
-
_: 1,
|
|
442
|
-
__: [16]
|
|
443
|
-
}),
|
|
444
|
-
o.value.devtools.simulate !== "loading" ? (n(), w(y, {
|
|
445
|
-
key: 0,
|
|
446
|
-
class: "theme-purple",
|
|
447
|
-
size: "sm",
|
|
448
|
-
title: "Restore the previous state",
|
|
449
|
-
onClick: t[2] || (t[2] = (_) => i(k).emit("queries:simulate:loading", o.value.key))
|
|
450
|
-
}, {
|
|
451
|
-
default: d(() => [
|
|
452
|
-
r(H),
|
|
453
|
-
t[17] || (t[17] = v(" Simulate loading "))
|
|
454
|
-
]),
|
|
455
|
-
_: 1,
|
|
456
|
-
__: [17]
|
|
457
|
-
})) : (n(), w(y, {
|
|
458
|
-
key: 1,
|
|
459
|
-
class: "theme-purple",
|
|
460
|
-
size: "sm",
|
|
461
|
-
title: "Simulate a loading state",
|
|
462
|
-
onClick: t[3] || (t[3] = (_) => i(k).emit("queries:simulate:loading:stop", o.value.key))
|
|
463
|
-
}, {
|
|
464
|
-
default: d(() => [
|
|
465
|
-
r(H, { class: "animate-spin" }),
|
|
466
|
-
t[18] || (t[18] = v(" Stop loading "))
|
|
467
|
-
]),
|
|
468
|
-
_: 1,
|
|
469
|
-
__: [18]
|
|
470
|
-
})),
|
|
471
|
-
o.value.devtools.simulate !== "error" ? (n(), w(y, {
|
|
472
|
-
key: 2,
|
|
473
|
-
class: "theme-error",
|
|
474
|
-
size: "sm",
|
|
475
|
-
title: "Simulate an Error state",
|
|
476
|
-
onClick: t[4] || (t[4] = (_) => i(k).emit("queries:simulate:error", o.value.key))
|
|
477
|
-
}, {
|
|
478
|
-
default: d(() => [
|
|
479
|
-
r(O),
|
|
480
|
-
t[19] || (t[19] = v(" Simulate error "))
|
|
481
|
-
]),
|
|
482
|
-
_: 1,
|
|
483
|
-
__: [19]
|
|
484
|
-
})) : (n(), w(y, {
|
|
485
|
-
key: 3,
|
|
486
|
-
class: "theme-error",
|
|
487
|
-
size: "sm",
|
|
488
|
-
title: "Restore the previous state",
|
|
489
|
-
onClick: t[5] || (t[5] = (_) => i(k).emit("queries:simulate:error:stop", o.value.key))
|
|
490
|
-
}, {
|
|
491
|
-
default: d(() => [
|
|
492
|
-
r(R),
|
|
493
|
-
t[20] || (t[20] = v(" Remove error "))
|
|
494
|
-
]),
|
|
495
|
-
_: 1,
|
|
496
|
-
__: [20]
|
|
497
|
-
})),
|
|
498
|
-
r(y, {
|
|
499
|
-
class: "theme-warning",
|
|
500
|
-
size: "sm",
|
|
501
|
-
title: "Reset this query to its initial (pending) state",
|
|
502
|
-
onClick: t[6] || (t[6] = (_) => i(k).emit("queries:reset", o.value.key))
|
|
503
|
-
}, {
|
|
504
|
-
default: d(() => [
|
|
505
|
-
r(E),
|
|
506
|
-
t[21] || (t[21] = v(" Reset "))
|
|
507
|
-
]),
|
|
508
|
-
_: 1,
|
|
509
|
-
__: [21]
|
|
510
|
-
})
|
|
511
|
-
])
|
|
512
|
-
];
|
|
513
|
-
}),
|
|
514
|
-
_: 1
|
|
515
|
-
}, 8, ["icon"]),
|
|
516
|
-
r(g, {
|
|
517
|
-
open: x.value,
|
|
518
|
-
"onUpdate:open": t[7] || (t[7] = (p) => x.value = p),
|
|
519
|
-
title: "Data",
|
|
520
|
-
icon: i(He)
|
|
521
|
-
}, {
|
|
522
|
-
default: d(() => [
|
|
523
|
-
e("div", lt, [
|
|
524
|
-
o.value.state.data !== void 0 ? (n(), l("pre", at, u(o.value.state.data), 1)) : (n(), l("p", it, " No data "))
|
|
525
|
-
])
|
|
526
|
-
]),
|
|
527
|
-
_: 1
|
|
528
|
-
}, 8, ["open", "icon"]),
|
|
529
|
-
r(g, {
|
|
530
|
-
open: $.value,
|
|
531
|
-
"onUpdate:open": t[8] || (t[8] = (p) => $.value = p),
|
|
532
|
-
title: `Error${o.value.state.status === "error" ? " (!)" : ""}`,
|
|
533
|
-
icon: i(ze)
|
|
534
|
-
}, {
|
|
535
|
-
default: d(() => [
|
|
536
|
-
e("div", rt, [
|
|
537
|
-
o.value.state.error ? (n(), l("pre", dt, u(o.value.state.error), 1)) : (n(), l("p", ut, " No error "))
|
|
538
|
-
])
|
|
539
|
-
]),
|
|
540
|
-
_: 1
|
|
541
|
-
}, 8, ["open", "title", "icon"]),
|
|
542
|
-
r(g, {
|
|
543
|
-
title: "Call count",
|
|
544
|
-
icon: i(Ue),
|
|
545
|
-
open: !1
|
|
546
|
-
}, {
|
|
547
|
-
default: d(() => [
|
|
548
|
-
e("div", ct, [
|
|
549
|
-
e("p", pt, [
|
|
550
|
-
t[22] || (t[22] = e("span", null, "Calls:", -1)),
|
|
551
|
-
e("span", null, [
|
|
552
|
-
e("code", vt, u(o.value.devtools.count.total), 1)
|
|
553
|
-
]),
|
|
554
|
-
t[23] || (t[23] = e("span", null, "Success:", -1)),
|
|
555
|
-
e("span", null, [
|
|
556
|
-
e("code", mt, u(o.value.devtools.count.succeed), 1)
|
|
557
|
-
]),
|
|
558
|
-
t[24] || (t[24] = e("span", null, "Errors:", -1)),
|
|
559
|
-
e("span", null, [
|
|
560
|
-
e("code", ht, u(o.value.devtools.count.errored), 1)
|
|
561
|
-
]),
|
|
562
|
-
t[25] || (t[25] = e("span", null, "Cancelled:", -1)),
|
|
563
|
-
e("span", null, [
|
|
564
|
-
e("code", _t, u(o.value.devtools.count.cancelled), 1)
|
|
565
|
-
])
|
|
566
|
-
])
|
|
567
|
-
])
|
|
568
|
-
]),
|
|
569
|
-
_: 1
|
|
570
|
-
}, 8, ["icon"]),
|
|
571
|
-
r(g, {
|
|
572
|
-
title: `History (${o.value.devtools.history.length})`,
|
|
573
|
-
icon: i(Le),
|
|
574
|
-
open: !1
|
|
575
|
-
}, {
|
|
576
|
-
default: d(() => [
|
|
577
|
-
e("div", ft, [
|
|
578
|
-
(n(!0), l(q, null, te(o.value.devtools.history, (p) => (n(), w(g, {
|
|
579
|
-
key: p.updatedAt,
|
|
580
|
-
title: `Entry nº${p.id} (${i(B)(new Date(p.updatedAt), h)})`,
|
|
581
|
-
open: !1
|
|
582
|
-
}, {
|
|
583
|
-
default: d(() => [
|
|
584
|
-
e("pre", gt, u(p), 1)
|
|
585
|
-
]),
|
|
586
|
-
_: 2
|
|
587
|
-
}, 1032, ["title"]))), 128))
|
|
588
|
-
])
|
|
589
|
-
]),
|
|
590
|
-
_: 1
|
|
591
|
-
}, 8, ["title", "icon"]),
|
|
592
|
-
r(g, {
|
|
593
|
-
title: "Options",
|
|
594
|
-
open: !1,
|
|
595
|
-
icon: i(Oe)
|
|
596
|
-
}, {
|
|
597
|
-
default: d(() => [
|
|
598
|
-
e("div", kt, [
|
|
599
|
-
o.value.options ? (n(), l("pre", yt, u(o.value.options), 1)) : (n(), l("p", xt, t[26] || (t[26] = [
|
|
600
|
-
v(" This Query entry has no options. It might have been created from the server or manually set with "),
|
|
601
|
-
e("code", null, "queryCache.setQueryData()", -1),
|
|
602
|
-
v(" for prefetching. ")
|
|
603
|
-
])))
|
|
604
|
-
])
|
|
605
|
-
]),
|
|
606
|
-
_: 1
|
|
607
|
-
}, 8, ["icon"])
|
|
608
|
-
], 64)) : (n(), l("div", wt, [
|
|
609
|
-
e("p", bt, [
|
|
610
|
-
t[27] || (t[27] = v(" Select a Query to inspect ")),
|
|
611
|
-
r(L)
|
|
612
|
-
])
|
|
613
|
-
]))
|
|
614
|
-
]);
|
|
615
|
-
};
|
|
616
|
-
}
|
|
617
|
-
});
|
|
618
|
-
export {
|
|
619
|
-
qt as default
|
|
620
|
-
};
|
|
621
|
-
//# sourceMappingURL=_queryId_-Bilvrtoo.js.map
|