adonisjs-server-stats 1.10.3 → 1.11.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/core/field-resolvers.d.ts +64 -0
- package/dist/core/formatters.d.ts +15 -0
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +208 -203
- package/dist/react/CacheSection-BYN53kYO.js +135 -0
- package/dist/react/CacheStatsBar-CRodCOeP.js +27 -0
- package/dist/react/CacheTab-DOhuK05d.js +106 -0
- package/dist/react/{ConfigSection-DGgqjAal.js → ConfigSection-B9EHh4Rp.js} +1 -1
- package/dist/react/{ConfigTab-H3OnYqmK.js → ConfigTab-C8kriE2b.js} +1 -1
- package/dist/react/CustomPaneTab-CvzQS_Wh.js +99 -0
- package/dist/react/EmailPreviewOverlay-BmXOAvqG.js +58 -0
- package/dist/react/EmailsSection-BJyFJf7A.js +226 -0
- package/dist/react/EmailsTab-Ch8jp10B.js +110 -0
- package/dist/react/{EventsSection-C7RQW_LY.js → EventsSection-DJPwHeT8.js} +27 -26
- package/dist/react/EventsTab-B-FoehXC.js +58 -0
- package/dist/react/{InternalsContent-DBzsI0CG.js → InternalsContent-O8ino9oM.js} +133 -109
- package/dist/react/InternalsSection-B6VlVx5f.js +22 -0
- package/dist/react/InternalsTab-CkEKpRMU.js +17 -0
- package/dist/react/JobStatsBar-C7RslAFE.js +30 -0
- package/dist/react/JobsSection-DWF4i1t_.js +167 -0
- package/dist/react/JobsTab-DqnifQXV.js +129 -0
- package/dist/react/LogEntryRow-CMMkqA9M.js +43 -0
- package/dist/react/LogsSection-C1xC5aP4.js +198 -0
- package/dist/react/LogsTab-CS4sLfLw.js +79 -0
- package/dist/react/{OverviewSection-ABP9ueBo.js → OverviewSection-CxvfOR0v.js} +70 -80
- package/dist/react/QueriesSection-CrMdU5Ax.js +458 -0
- package/dist/react/{QueriesTab-BQzcxEiW.js → QueriesTab-x85PjkyS.js} +22 -21
- package/dist/react/RequestsSection-DETN9oZb.js +321 -0
- package/dist/react/{RoutesSection-BRhxrtjZ.js → RoutesSection-CmorkJeC.js} +1 -1
- package/dist/react/{RoutesTab-CpYH5lUw.js → RoutesTab-CbzBOzpc.js} +12 -12
- package/dist/react/SplitPaneWrapper-BiIgT4ND.js +49 -0
- package/dist/react/TimeAgoCell-o3KigGfM.js +8 -0
- package/dist/react/{TimelineTab-DjLR35Ce.js → TimelineTab-Ue9tUD_n.js} +71 -91
- package/dist/react/{index-CsImORX6.js → index-DwDK-4oX.js} +4 -4
- package/dist/react/index.js +6 -6
- package/dist/react/react/components/shared/CacheStatsBar.d.ts +13 -0
- package/dist/react/react/components/shared/EmailPreviewOverlay.d.ts +29 -0
- package/dist/react/react/components/shared/JobStatsBar.d.ts +12 -0
- package/dist/react/react/components/shared/LogEntryRow.d.ts +9 -0
- package/dist/react/react/components/shared/RelatedLogs.d.ts +2 -2
- package/dist/react/react/components/shared/SplitPaneWrapper.d.ts +7 -0
- package/dist/react/react/components/shared/TimeAgoCell.d.ts +17 -0
- package/dist/react/react/hooks/useDiagnosticsData.d.ts +14 -0
- package/dist/react/style.css +1 -1
- package/dist/src/edge/client/dashboard.js +2 -2
- package/dist/src/edge/client/debug-panel-deferred.js +1 -1
- package/dist/src/edge/client-vue/dashboard.js +3 -3
- package/dist/src/edge/client-vue/debug-panel-deferred.js +4 -4
- package/dist/src/styles/components.css +67 -0
- package/dist/src/styles/dashboard.css +5 -15
- package/dist/src/styles/debug-panel.css +1 -22
- package/dist/src/styles/utilities.css +3 -1
- package/dist/vue/{CacheSection-ITqvpfH5.js → CacheSection-DT2Mwf_s.js} +1 -1
- package/dist/vue/{ConfigSection-DTn3GslE.js → ConfigSection-BwKwS9lh.js} +1 -1
- package/dist/vue/CustomPaneTab-Hr1IBHfz.js +172 -0
- package/dist/vue/{EmailsSection-DtLJ4XoS.js → EmailsSection-B65g0FVS.js} +1 -1
- package/dist/vue/{EventsSection-BOYYz0Ty.js → EventsSection-CxqtVF-o.js} +1 -1
- package/dist/vue/{JobsSection-BazTxcJL.js → JobsSection-rMIyMb-g.js} +1 -1
- package/dist/vue/{LogsSection-D55PjTKX.js → LogsSection-DmmZVJ7D.js} +1 -1
- package/dist/vue/{OverviewSection-1uBKo-Tu.js → OverviewSection-BMabyqw-.js} +49 -50
- package/dist/vue/{QueriesSection-rpoZ4ogd.js → QueriesSection-BfDFwGqH.js} +44 -45
- package/dist/vue/{QueriesTab-C8_7oprC.js → QueriesTab-DuTG7cpC.js} +30 -31
- package/dist/vue/RelatedLogs.vue_vue_type_script_setup_true_lang-Py1iu9GU.js +77 -0
- package/dist/vue/{RequestsSection-x7LvT0MC.js → RequestsSection-CTu4jPZ_.js} +143 -147
- package/dist/vue/{RoutesSection-CCD0zZqQ.js → RoutesSection-zQZDedL7.js} +1 -1
- package/dist/vue/TimelineTab-DHfXsX7t.js +334 -0
- package/dist/vue/components/shared/RelatedLogs.vue.d.ts +1 -4
- package/dist/vue/{index-C8MxnS7Q.js → index-CM3yNVUR.js} +2 -2
- package/dist/vue/index.js +1 -1
- package/dist/vue/style.css +1 -1
- package/package.json +7 -7
- package/dist/react/CacheSection-baMZotSn.js +0 -146
- package/dist/react/CacheTab-2cw_rMzj.js +0 -117
- package/dist/react/CustomPaneTab-B6r7ha0u.js +0 -98
- package/dist/react/EmailsSection-C-UZISG-.js +0 -262
- package/dist/react/EmailsTab-DbK4Eobn.js +0 -139
- package/dist/react/EventsTab-CfVr7AiM.js +0 -57
- package/dist/react/InternalsSection-t7ihcWO-.js +0 -32
- package/dist/react/InternalsTab-Oij0A2fN.js +0 -30
- package/dist/react/JobsSection-CQHNK_Ls.js +0 -187
- package/dist/react/JobsTab-znzf6jzk.js +0 -153
- package/dist/react/LogsSection-Dmm3rE2B.js +0 -233
- package/dist/react/LogsTab-D8unMV5P.js +0 -108
- package/dist/react/QueriesSection-CnmSkznA.js +0 -461
- package/dist/react/RelatedLogs-3A8RuGKH.js +0 -52
- package/dist/react/RequestsSection-kW79_M7k.js +0 -341
- package/dist/vue/CustomPaneTab-BJxT5Dp7.js +0 -172
- package/dist/vue/RelatedLogs.vue_vue_type_script_setup_true_lang-CB2_TzYW.js +0 -84
- package/dist/vue/TimelineTab-zj5Z5OdT.js +0 -338
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as ws, openBlock as o, createElementBlock as n, Fragment as _, renderList as k, createElementVNode as s, normalizeClass as b, toDisplayString as r, inject as P, ref as D, watch as
|
|
2
|
-
import { formatDuration as
|
|
3
|
-
import { u as xs, _ as U } from "./index-
|
|
1
|
+
import { defineComponent as ws, openBlock as o, createElementBlock as n, Fragment as _, renderList as k, createElementVNode as s, normalizeClass as b, toDisplayString as r, inject as P, ref as D, watch as fs, computed as d, onUnmounted as Ws, unref as x, createVNode as N, createCommentVNode as v, normalizeStyle as ts, createTextVNode as gs } from "vue";
|
|
2
|
+
import { formatDuration as F, formatTime as Os, timeAgo as Hs, durationClassName as Ks } from "adonisjs-server-stats/core";
|
|
3
|
+
import { u as xs, _ as U } from "./index-CM3yNVUR.js";
|
|
4
4
|
const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ */ ws({
|
|
5
5
|
__name: "TimeRangeSelector",
|
|
6
6
|
props: {
|
|
@@ -18,12 +18,12 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
18
18
|
{ value: "7d", label: "7d" }
|
|
19
19
|
];
|
|
20
20
|
return (C, I) => (o(), n("div", Gs, [
|
|
21
|
-
(o(), n(_, null, k($, (
|
|
22
|
-
key:
|
|
21
|
+
(o(), n(_, null, k($, (f) => s("button", {
|
|
22
|
+
key: f.value,
|
|
23
23
|
type: "button",
|
|
24
|
-
class: b(`ss-dash-btn ${S.modelValue ===
|
|
25
|
-
onClick: (ls) => w("update:modelValue",
|
|
26
|
-
}, r(
|
|
24
|
+
class: b(`ss-dash-btn ${S.modelValue === f.value ? "ss-dash-active" : ""}`),
|
|
25
|
+
onClick: (ls) => w("update:modelValue", f.value)
|
|
26
|
+
}, r(f.label), 11, Xs)), 64))
|
|
27
27
|
]));
|
|
28
28
|
}
|
|
29
29
|
}), Zs = { class: "ss-dash-overview" }, Js = {
|
|
@@ -36,7 +36,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
36
36
|
key: 0,
|
|
37
37
|
class: "ss-dash-empty",
|
|
38
38
|
style: { "min-height": "120px" }
|
|
39
|
-
}, he = ["viewBox"], pe = ["id"], ye = ["id"], _e = ["x1", "y1", "x2", "y2"],
|
|
39
|
+
}, he = ["viewBox"], pe = ["id"], ye = ["id"], _e = ["x1", "y1", "x2", "y2"], me = ["x", "y"], fe = ["d", "fill"], ge = ["d"], xe = ["d", "fill"], ke = ["d"], we = ["x", "y", "width", "height", "data-idx", "onMouseenter"], be = ["cx", "cy", "r", "data-idx", "opacity"], Re = ["cx", "cy", "r", "data-idx", "opacity"], $e = ["x", "y"], qe = {
|
|
40
40
|
key: 0,
|
|
41
41
|
style: { color: "var(--ss-red-fg)" }
|
|
42
42
|
}, Se = {
|
|
@@ -52,7 +52,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
52
52
|
}, Le = {
|
|
53
53
|
key: 1,
|
|
54
54
|
class: "ss-dash-secondary-list"
|
|
55
|
-
}, De = ["href"],
|
|
55
|
+
}, De = ["href"], Ne = ["title"], Fe = { class: "ss-dash-secondary-card" }, Qe = { class: "ss-dash-secondary-list" }, je = { class: "ss-dash-secondary-list-value" }, Ae = { class: "ss-dash-secondary-list-value" }, Ve = { class: "ss-dash-secondary-list-value" }, ze = { class: "ss-dash-secondary-card" }, Be = {
|
|
56
56
|
key: 0,
|
|
57
57
|
class: "ss-dash-empty",
|
|
58
58
|
style: { "min-height": "60px" }
|
|
@@ -93,7 +93,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
93
93
|
}, yt = { class: "ss-dash-secondary-list" }, _t = {
|
|
94
94
|
href: "#cache",
|
|
95
95
|
class: "ss-dash-widget-row-link"
|
|
96
|
-
},
|
|
96
|
+
}, mt = { class: "ss-dash-secondary-list-value" }, ft = {
|
|
97
97
|
href: "#cache",
|
|
98
98
|
class: "ss-dash-widget-row-link"
|
|
99
99
|
}, gt = { class: "ss-dash-secondary-list-value" }, xt = {
|
|
@@ -117,7 +117,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
117
117
|
}, Tt = { class: "ss-dash-secondary-list-value" }, Et = { class: "ss-dash-secondary-card" }, Lt = { class: "ss-dash-secondary-list" }, Dt = {
|
|
118
118
|
href: "#requests?status=2xx",
|
|
119
119
|
class: "ss-dash-widget-row-link"
|
|
120
|
-
},
|
|
120
|
+
}, Nt = { class: "ss-dash-secondary-list-value" }, Ft = {
|
|
121
121
|
href: "#requests?status=3xx",
|
|
122
122
|
class: "ss-dash-widget-row-link"
|
|
123
123
|
}, Qt = { class: "ss-dash-secondary-list-value" }, jt = {
|
|
@@ -136,7 +136,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
136
136
|
}, It = ["href"], Wt = ["title"], as = 220, ks = 120, Ot = /* @__PURE__ */ ws({
|
|
137
137
|
__name: "OverviewSection",
|
|
138
138
|
setup(S) {
|
|
139
|
-
const R = P("ss-refresh-key", D(0)), w = P("ss-base-url", ""), $ = P("ss-dashboard-endpoint", "/__stats/api"), C = P("ss-auth-token", void 0), I = Math.random().toString(36).slice(2, 8),
|
|
139
|
+
const R = P("ss-refresh-key", D(0)), w = P("ss-base-url", ""), $ = P("ss-dashboard-endpoint", "/__stats/api"), C = P("ss-auth-token", void 0), I = Math.random().toString(36).slice(2, 8), f = D("1h"), { data: ls, loading: bs } = xs(() => "overview", {
|
|
140
140
|
baseUrl: w,
|
|
141
141
|
dashboardEndpoint: $,
|
|
142
142
|
authToken: C,
|
|
@@ -150,7 +150,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
150
150
|
refreshKey: R
|
|
151
151
|
}
|
|
152
152
|
);
|
|
153
|
-
|
|
153
|
+
fs(f, (t) => {
|
|
154
154
|
$s(t);
|
|
155
155
|
});
|
|
156
156
|
const os = d(() => ls.value), l = d(() => os.value || {
|
|
@@ -188,9 +188,9 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
188
188
|
), ns = d(() => `ss-cg-total-${I}`), rs = d(() => `ss-cg-error-${I}`);
|
|
189
189
|
function Ls(t, e) {
|
|
190
190
|
if (t <= 0) return [0];
|
|
191
|
-
const a = t / e, i = Math.pow(10, Math.floor(Math.log10(a))),
|
|
191
|
+
const a = t / e, i = Math.pow(10, Math.floor(Math.log10(a))), m = a / i;
|
|
192
192
|
let y;
|
|
193
|
-
|
|
193
|
+
m <= 1 ? y = i : m <= 2 ? y = 2 * i : m <= 5 ? y = 5 * i : y = 10 * i;
|
|
194
194
|
const B = [];
|
|
195
195
|
for (let es = y; es <= t + y * 0.5; es += y) B.push(Math.round(es));
|
|
196
196
|
return B.length === 0 && B.push(Math.ceil(t)), B;
|
|
@@ -211,18 +211,17 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
211
211
|
if (t.length === 1) return `M${t[0].x},${t[0].y}`;
|
|
212
212
|
let e = `M${t[0].x.toFixed(1)},${t[0].y.toFixed(1)}`;
|
|
213
213
|
for (let a = 0; a < t.length - 1; a++) {
|
|
214
|
-
const i = t[a],
|
|
215
|
-
e += ` C${y.toFixed(1)},${i.y.toFixed(1)} ${y.toFixed(1)},${
|
|
214
|
+
const i = t[a], m = t[a + 1], y = (i.x + m.x) / 2;
|
|
215
|
+
e += ` C${y.toFixed(1)},${i.y.toFixed(1)} ${y.toFixed(1)},${m.y.toFixed(1)} ${m.x.toFixed(1)},${m.y.toFixed(1)}`;
|
|
216
216
|
}
|
|
217
217
|
return e;
|
|
218
218
|
}
|
|
219
219
|
function ds(t) {
|
|
220
|
-
|
|
221
|
-
return e === "very-slow" ? "ss-dash-very-slow" : e === "slow" ? "ss-dash-slow" : "";
|
|
220
|
+
return Ks(t, "ss-dash");
|
|
222
221
|
}
|
|
223
222
|
const us = D(null), G = D(0);
|
|
224
223
|
let T = null;
|
|
225
|
-
|
|
224
|
+
fs(us, (t) => {
|
|
226
225
|
T?.disconnect(), T = null, t && (G.value = t.clientWidth, T = new ResizeObserver((e) => {
|
|
227
226
|
for (const a of e)
|
|
228
227
|
G.value = a.contentRect.width;
|
|
@@ -240,14 +239,14 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
240
239
|
const e = t;
|
|
241
240
|
return (t.errorCount ?? 0) + (Number(e.error_count) || 0);
|
|
242
241
|
})
|
|
243
|
-
), Ds = d(() => Math.max(...V.value, 1)), vs = d(() => Math.ceil(Ds.value * 1.1)), hs = d(() => E.value.some((t) => t > 0)), z = d(() => Ls(vs.value, 4)),
|
|
242
|
+
), Ds = d(() => Math.max(...V.value, 1)), vs = d(() => Math.ceil(Ds.value * 1.1)), hs = d(() => E.value.some((t) => t > 0)), z = d(() => Ls(vs.value, 4)), Ns = d(
|
|
244
243
|
() => z.value.length > 0 ? z.value[z.value.length - 1] : vs.value
|
|
245
244
|
);
|
|
246
245
|
function X(t) {
|
|
247
246
|
return h.left + t / Math.max(u.value.length - 1, 1) * cs.value;
|
|
248
247
|
}
|
|
249
248
|
function L(t) {
|
|
250
|
-
return h.top + j.value - t / (
|
|
249
|
+
return h.top + j.value - t / (Ns.value || 1) * j.value;
|
|
251
250
|
}
|
|
252
251
|
const p = d(
|
|
253
252
|
() => u.value.map((t, e) => ({ x: X(e), y: L(V.value[e]) }))
|
|
@@ -257,8 +256,8 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
257
256
|
() => p.value.length > 1 ? `${Y.value} L${p.value[p.value.length - 1].x.toFixed(1)},${A.value} L${p.value[0].x.toFixed(1)},${A.value} Z` : ""
|
|
258
257
|
), ys = d(
|
|
259
258
|
() => hs.value && q.value.length > 1 ? `${Z.value} L${q.value[q.value.length - 1].x.toFixed(1)},${A.value} L${q.value[0].x.toFixed(1)},${A.value} Z` : ""
|
|
260
|
-
),
|
|
261
|
-
() => Math.max(1, Math.ceil(u.value.length /
|
|
259
|
+
), Fs = d(() => Math.min(10, u.value.length)), Qs = d(
|
|
260
|
+
() => Math.max(1, Math.ceil(u.value.length / Fs.value))
|
|
262
261
|
), c = D({ visible: !1, x: 0, idx: -1 });
|
|
263
262
|
function js(t) {
|
|
264
263
|
const e = p.value[t].x;
|
|
@@ -288,7 +287,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
288
287
|
function J(t) {
|
|
289
288
|
return t.url || t.pattern || "-";
|
|
290
289
|
}
|
|
291
|
-
function
|
|
290
|
+
function ms(t) {
|
|
292
291
|
return t.name || t.eventName || t.event_name || t.event || "";
|
|
293
292
|
}
|
|
294
293
|
function ss(t) {
|
|
@@ -301,9 +300,9 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
301
300
|
e[1] || (e[1] = s("div", { class: "ss-dash-card-title" }, "Avg Response Time", -1)),
|
|
302
301
|
s("div", {
|
|
303
302
|
class: b(["ss-dash-card-value", Bs()])
|
|
304
|
-
}, r(g.value ? x(
|
|
303
|
+
}, r(g.value ? x(F)(W.value) : "-"), 3),
|
|
305
304
|
s("div", te, [
|
|
306
|
-
|
|
305
|
+
N(U, {
|
|
307
306
|
data: Cs.value,
|
|
308
307
|
color: "#34d399",
|
|
309
308
|
width: 160,
|
|
@@ -315,9 +314,9 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
315
314
|
e[2] || (e[2] = s("div", { class: "ss-dash-card-title" }, "P95 Response Time", -1)),
|
|
316
315
|
s("div", {
|
|
317
316
|
class: b(["ss-dash-card-value", Ps()])
|
|
318
|
-
}, r(g.value ? x(
|
|
317
|
+
}, r(g.value ? x(F)(O.value) : "-"), 3),
|
|
319
318
|
s("div", le, [
|
|
320
|
-
|
|
319
|
+
N(U, {
|
|
321
320
|
data: Ms.value,
|
|
322
321
|
color: "#60a5fa",
|
|
323
322
|
width: 160,
|
|
@@ -331,7 +330,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
331
330
|
class: b(["ss-dash-card-value", Us()])
|
|
332
331
|
}, r(g.value ? qs.value.toFixed(1) : "-"), 3),
|
|
333
332
|
s("div", ne, [
|
|
334
|
-
|
|
333
|
+
N(U, {
|
|
335
334
|
data: Ts.value,
|
|
336
335
|
color: "#34d399",
|
|
337
336
|
width: 160,
|
|
@@ -345,7 +344,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
345
344
|
class: b(["ss-dash-card-value", Is()])
|
|
346
345
|
}, r(g.value ? `${H.value.toFixed(1)}%` : "-"), 3),
|
|
347
346
|
s("div", ie, [
|
|
348
|
-
|
|
347
|
+
N(U, {
|
|
349
348
|
data: Es.value,
|
|
350
349
|
color: "#f87171",
|
|
351
350
|
width: 160,
|
|
@@ -357,9 +356,9 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
357
356
|
s("div", de, [
|
|
358
357
|
s("div", ue, [
|
|
359
358
|
e[5] || (e[5] = s("span", { class: "ss-dash-chart-title" }, "Request Volume", -1)),
|
|
360
|
-
|
|
361
|
-
"model-value":
|
|
362
|
-
"onUpdate:modelValue": e[0] || (e[0] = (a) =>
|
|
359
|
+
N(Ys, {
|
|
360
|
+
"model-value": f.value,
|
|
361
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => f.value = a)
|
|
363
362
|
}, null, 8, ["model-value"])
|
|
364
363
|
]),
|
|
365
364
|
s("div", ce, [
|
|
@@ -430,13 +429,13 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
430
429
|
fill: "var(--ss-dim)",
|
|
431
430
|
"font-size": "9",
|
|
432
431
|
"dominant-baseline": "middle"
|
|
433
|
-
}, r(a), 9,
|
|
432
|
+
}, r(a), 9, me)
|
|
434
433
|
]))), 128)),
|
|
435
434
|
ps.value ? (o(), n("path", {
|
|
436
435
|
key: 0,
|
|
437
436
|
d: ps.value,
|
|
438
437
|
fill: `url(#${ns.value})`
|
|
439
|
-
}, null, 8,
|
|
438
|
+
}, null, 8, fe)) : v("", !0),
|
|
440
439
|
Y.value ? (o(), n("path", {
|
|
441
440
|
key: 1,
|
|
442
441
|
d: Y.value,
|
|
@@ -470,7 +469,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
470
469
|
fill: "transparent",
|
|
471
470
|
class: "ss-dash-chart-hover-zone",
|
|
472
471
|
"data-idx": i,
|
|
473
|
-
onMouseenter: (
|
|
472
|
+
onMouseenter: (m) => js(i),
|
|
474
473
|
onMouseleave: As
|
|
475
474
|
}, null, 40, we),
|
|
476
475
|
V.value[i] > 0 ? (o(), n("circle", {
|
|
@@ -559,19 +558,19 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
559
558
|
}, [
|
|
560
559
|
s("span", {
|
|
561
560
|
title: J(a)
|
|
562
|
-
}, r(J(a)), 9,
|
|
561
|
+
}, r(J(a)), 9, Ne),
|
|
563
562
|
s("span", {
|
|
564
563
|
class: b([
|
|
565
564
|
"ss-dash-secondary-list-value",
|
|
566
565
|
"ss-dash-duration",
|
|
567
566
|
ds(a.avgDuration)
|
|
568
567
|
])
|
|
569
|
-
}, r(x(
|
|
568
|
+
}, r(x(F)(a.avgDuration)), 3)
|
|
570
569
|
], 8, De)
|
|
571
570
|
]))), 128))
|
|
572
571
|
]))
|
|
573
572
|
]),
|
|
574
|
-
s("div",
|
|
573
|
+
s("div", Fe, [
|
|
575
574
|
e[14] || (e[14] = s("div", { class: "ss-dash-secondary-card-title" }, [
|
|
576
575
|
s("a", {
|
|
577
576
|
href: "#queries",
|
|
@@ -585,7 +584,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
585
584
|
]),
|
|
586
585
|
s("li", null, [
|
|
587
586
|
e[12] || (e[12] = s("span", null, "Avg Duration", -1)),
|
|
588
|
-
s("span", Ae, r(x(
|
|
587
|
+
s("span", Ae, r(x(F)(l.value.queryStats.avgDuration)), 1)
|
|
589
588
|
]),
|
|
590
589
|
s("li", null, [
|
|
591
590
|
e[13] || (e[13] = s("span", null, "Queries / Request", -1)),
|
|
@@ -630,10 +629,10 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
630
629
|
l.value.topEvents.length === 0 ? (o(), n("div", He, " No events yet ")) : (o(), n("ul", Ke, [
|
|
631
630
|
(o(!0), n(_, null, k(l.value.topEvents.slice(0, 5), (a, i) => (o(), n("li", { key: i }, [
|
|
632
631
|
s("a", {
|
|
633
|
-
href: `#events?event_name=${encodeURIComponent(
|
|
632
|
+
href: `#events?event_name=${encodeURIComponent(ms(a))}`,
|
|
634
633
|
class: "ss-dash-widget-row-link"
|
|
635
634
|
}, [
|
|
636
|
-
s("span", null, r(
|
|
635
|
+
s("span", null, r(ms(a)), 1),
|
|
637
636
|
s("span", Xe, r(a.count), 1)
|
|
638
637
|
], 8, Ge)
|
|
639
638
|
]))), 128))
|
|
@@ -717,11 +716,11 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
717
716
|
s("li", null, [
|
|
718
717
|
s("a", _t, [
|
|
719
718
|
e[26] || (e[26] = s("span", null, "Keys", -1)),
|
|
720
|
-
s("span",
|
|
719
|
+
s("span", mt, r(l.value.cacheStats.totalKeys), 1)
|
|
721
720
|
])
|
|
722
721
|
]),
|
|
723
722
|
s("li", null, [
|
|
724
|
-
s("a",
|
|
723
|
+
s("a", ft, [
|
|
725
724
|
e[27] || (e[27] = s("span", null, "Hit Rate", -1)),
|
|
726
725
|
s("span", gt, r(l.value.cacheStats.hitRate.toFixed(1)) + "%", 1)
|
|
727
726
|
])
|
|
@@ -784,11 +783,11 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
784
783
|
s("li", null, [
|
|
785
784
|
s("a", Dt, [
|
|
786
785
|
e[35] || (e[35] = s("span", { style: { color: "var(--ss-green-fg)" } }, "2xx", -1)),
|
|
787
|
-
s("span",
|
|
786
|
+
s("span", Nt, r(l.value.statusDistribution["2xx"]), 1)
|
|
788
787
|
])
|
|
789
788
|
]),
|
|
790
789
|
s("li", null, [
|
|
791
|
-
s("a",
|
|
790
|
+
s("a", Ft, [
|
|
792
791
|
e[36] || (e[36] = s("span", { style: { color: "var(--ss-blue-fg)" } }, "3xx", -1)),
|
|
793
792
|
s("span", Qt, r(l.value.statusDistribution["3xx"]), 1)
|
|
794
793
|
])
|
|
@@ -829,7 +828,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
829
828
|
"ss-dash-duration",
|
|
830
829
|
ds(a.avgDuration)
|
|
831
830
|
])
|
|
832
|
-
}, r(x(
|
|
831
|
+
}, r(x(F)(a.avgDuration)), 3)
|
|
833
832
|
], 8, It)
|
|
834
833
|
]))), 128))
|
|
835
834
|
]))
|
|
@@ -843,7 +842,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
|
|
|
843
842
|
for (const [$, C] of R)
|
|
844
843
|
w[$] = C;
|
|
845
844
|
return w;
|
|
846
|
-
}, Yt = /* @__PURE__ */ Ht(Ot, [["__scopeId", "data-v-
|
|
845
|
+
}, Yt = /* @__PURE__ */ Ht(Ot, [["__scopeId", "data-v-6c6eb892"]]);
|
|
847
846
|
export {
|
|
848
847
|
Yt as default
|
|
849
848
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as H, inject as A, ref as
|
|
2
|
-
import { formatTime as
|
|
3
|
-
import { u as vt } from "./index-
|
|
1
|
+
import { defineComponent as H, inject as A, ref as $, computed as g, openBlock as o, createElementBlock as i, createVNode as W, withCtx as it, createElementVNode as e, normalizeClass as f, unref as r, createTextVNode as b, toDisplayString as u, createCommentVNode as v, Fragment as k, renderList as T, withKeys as B, withModifiers as L, createBlock as ut, h as D } from "vue";
|
|
2
|
+
import { formatTime as rt, timeAgo as dt, SLOW_DURATION_MS as pt, durationClassName as ct } from "adonisjs-server-stats/core";
|
|
3
|
+
import { u as vt } from "./index-CM3yNVUR.js";
|
|
4
4
|
import { u as ht } from "./useResizableTable-BoivAevK.js";
|
|
5
5
|
import { _ as mt } from "./FilterBar.vue_vue_type_script_setup_true_lang-ClJ37hhT.js";
|
|
6
6
|
import { _ as ft } from "./PaginationControls.vue_vue_type_script_setup_true_lang-CuN7g_8Z.js";
|
|
@@ -19,7 +19,7 @@ const yt = { class: "ss-dash-btn-group" }, xt = {
|
|
|
19
19
|
}, wt = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "ss-dash-sort-arrow"
|
|
22
|
-
},
|
|
22
|
+
}, Ct = ["onClick", "onKeydown"], $t = {
|
|
23
23
|
key: 0,
|
|
24
24
|
class: "ss-dash-dup"
|
|
25
25
|
}, gt = { style: { color: "var(--ss-muted)", "text-align": "center", display: "block" } }, Dt = { class: "ss-dash-duration" }, Nt = { class: "ss-dash-duration" }, Pt = { style: { color: "var(--ss-muted)", "text-align": "center", display: "block" } }, St = {
|
|
@@ -88,12 +88,12 @@ const J = H({
|
|
|
88
88
|
...Gt,
|
|
89
89
|
__name: "QueriesSection",
|
|
90
90
|
setup(n) {
|
|
91
|
-
const z = A("ss-refresh-key",
|
|
91
|
+
const z = A("ss-refresh-key", $(0)), F = A("ss-dashboard-endpoint", "/__stats/api"), K = A("ss-auth-token", void 0), j = A("ss-base-url", ""), c = $("list"), d = $(null), a = $(null), y = $(null), N = g(() => c.value === "grouped" ? "queries/grouped" : "queries"), { data: w, loading: G, pagination: P, sort: h, goToPage: X, setSearch: Y, setSort: Z, explainQuery: tt } = vt(() => N.value, {
|
|
92
92
|
baseUrl: j,
|
|
93
93
|
dashboardEndpoint: F,
|
|
94
94
|
authToken: K,
|
|
95
95
|
refreshKey: z
|
|
96
|
-
}), M =
|
|
96
|
+
}), M = $(""), O = g(() => w.value ? c.value === "grouped" ? w.value.groups || [] : w.value.data || w.value || [] : []), m = g(() => c.value !== "grouped" ? O.value : O.value.map((s) => {
|
|
97
97
|
const t = { ...s };
|
|
98
98
|
return (t.sqlNormalized === null || t.sqlNormalized === void 0 && (s.sql_normalized || s.pattern)) && (t.sqlNormalized = s.sql_normalized || s.pattern || ""), (t.count === null || t.count === void 0) && s.total_count !== null && s.total_count !== void 0 && (t.count = s.total_count), (t.avgDuration === null || t.avgDuration === void 0) && s.avg_duration !== null && s.avg_duration !== void 0 && (t.avgDuration = s.avg_duration), (t.maxDuration === null || t.maxDuration === void 0) && s.max_duration !== null && s.max_duration !== void 0 && (t.maxDuration = s.max_duration), (t.minDuration === null || t.minDuration === void 0) && s.min_duration !== null && s.min_duration !== void 0 && (t.minDuration = s.min_duration), (t.totalDuration === null || t.totalDuration === void 0) && s.total_duration !== null && s.total_duration !== void 0 && (t.totalDuration = s.total_duration), (t.percentOfTotal === null || t.percentOfTotal === void 0) && s.pct_time !== null && s.pct_time !== void 0 && (t.percentOfTotal = s.pct_time), t;
|
|
99
99
|
})), R = g(() => {
|
|
@@ -103,7 +103,7 @@ const J = H({
|
|
|
103
103
|
s.set(l, (s.get(l) || 0) + 1);
|
|
104
104
|
}
|
|
105
105
|
return s;
|
|
106
|
-
}),
|
|
106
|
+
}), C = g(() => {
|
|
107
107
|
const s = P.total ?? m.value.length;
|
|
108
108
|
let t = 0, l = 0, p = 0, x = 0;
|
|
109
109
|
for (const _ of m.value) {
|
|
@@ -115,8 +115,8 @@ const J = H({
|
|
|
115
115
|
return { total: s, slow: t, duplicates: l, avgDuration: x > 0 ? p / x : 0 };
|
|
116
116
|
}), st = g(() => {
|
|
117
117
|
if (c.value === "grouped") return `${m.value.length} query patterns`;
|
|
118
|
-
const s = [`${
|
|
119
|
-
return
|
|
118
|
+
const s = [`${C.value.total} queries`];
|
|
119
|
+
return C.value.slow > 0 && s.push(`${C.value.slow} slow`), C.value.duplicates > 0 && s.push(`${C.value.duplicates} dup`), s.push(`avg ${(C.value.avgDuration || 0).toFixed(1)}ms`), s.join(", ");
|
|
120
120
|
});
|
|
121
121
|
function et(s) {
|
|
122
122
|
M.value = s, Y(s);
|
|
@@ -147,8 +147,7 @@ const J = H({
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
function E(s) {
|
|
150
|
-
|
|
151
|
-
return t === "very-slow" ? "ss-dash-very-slow" : t === "slow" ? "ss-dash-slow" : "";
|
|
150
|
+
return ct(s, "ss-dash");
|
|
152
151
|
}
|
|
153
152
|
function q() {
|
|
154
153
|
const s = a.value?.plan;
|
|
@@ -191,7 +190,7 @@ const J = H({
|
|
|
191
190
|
]),
|
|
192
191
|
_: 1
|
|
193
192
|
}, 8, ["model-value", "summary"]),
|
|
194
|
-
|
|
193
|
+
r(G) && !r(w) ? (o(), i("div", xt, "Loading queries...")) : c.value === "grouped" ? (o(), i("div", _t, [
|
|
195
194
|
m.value.length > 0 ? (o(), i("table", {
|
|
196
195
|
key: 0,
|
|
197
196
|
ref_key: "tableRef",
|
|
@@ -206,14 +205,14 @@ const J = H({
|
|
|
206
205
|
onClick: t[2] || (t[2] = (l) => S("count"))
|
|
207
206
|
}, [
|
|
208
207
|
t[8] || (t[8] = b(" Count ", -1)),
|
|
209
|
-
|
|
208
|
+
r(h).column === "count" ? (o(), i("span", bt, u(r(h).direction === "asc" ? " ▲" : " ▼"), 1)) : v("", !0)
|
|
210
209
|
]),
|
|
211
210
|
e("th", {
|
|
212
211
|
class: "ss-dash-sortable",
|
|
213
212
|
onClick: t[3] || (t[3] = (l) => S("avgDuration"))
|
|
214
213
|
}, [
|
|
215
214
|
t[9] || (t[9] = b(" Avg ", -1)),
|
|
216
|
-
|
|
215
|
+
r(h).column === "avgDuration" ? (o(), i("span", kt, u(r(h).direction === "asc" ? " ▲" : " ▼"), 1)) : v("", !0)
|
|
217
216
|
]),
|
|
218
217
|
t[12] || (t[12] = e("th", null, "Min", -1)),
|
|
219
218
|
t[13] || (t[13] = e("th", null, "Max", -1)),
|
|
@@ -222,7 +221,7 @@ const J = H({
|
|
|
222
221
|
onClick: t[4] || (t[4] = (l) => S("totalDuration"))
|
|
223
222
|
}, [
|
|
224
223
|
t[10] || (t[10] = b(" Total ", -1)),
|
|
225
|
-
|
|
224
|
+
r(h).column === "totalDuration" ? (o(), i("span", wt, u(r(h).direction === "asc" ? " ▲" : " ▼"), 1)) : v("", !0)
|
|
226
225
|
]),
|
|
227
226
|
t[14] || (t[14] = e("th", null, "% Time", -1))
|
|
228
227
|
])
|
|
@@ -237,30 +236,30 @@ const J = H({
|
|
|
237
236
|
tabindex: "0",
|
|
238
237
|
onClick: L((x) => d.value = d.value === l.sqlNormalized ? null : l.sqlNormalized, ["stop"]),
|
|
239
238
|
onKeydown: B((x) => d.value = d.value === l.sqlNormalized ? null : l.sqlNormalized, ["enter"])
|
|
240
|
-
},
|
|
241
|
-
(l.count || 0) >= 3 ? (o(), i("span",
|
|
239
|
+
}, u(l.sqlNormalized), 43, Ct),
|
|
240
|
+
(l.count || 0) >= 3 ? (o(), i("span", $t, "DUP")) : v("", !0)
|
|
242
241
|
]),
|
|
243
242
|
e("td", null, [
|
|
244
|
-
e("span", gt,
|
|
243
|
+
e("span", gt, u(l.count || 0), 1)
|
|
245
244
|
]),
|
|
246
245
|
e("td", null, [
|
|
247
246
|
e("span", {
|
|
248
247
|
class: f(`ss-dash-duration ${E(l.avgDuration || 0)}`)
|
|
249
|
-
},
|
|
248
|
+
}, u((l.avgDuration || 0).toFixed(2)) + "ms ", 3)
|
|
250
249
|
]),
|
|
251
250
|
e("td", null, [
|
|
252
|
-
e("span", Dt,
|
|
251
|
+
e("span", Dt, u((l.minDuration || 0).toFixed(2)) + "ms", 1)
|
|
253
252
|
]),
|
|
254
253
|
e("td", null, [
|
|
255
254
|
e("span", {
|
|
256
255
|
class: f(`ss-dash-duration ${E(l.maxDuration || 0)}`)
|
|
257
|
-
},
|
|
256
|
+
}, u((l.maxDuration || 0).toFixed(2)) + "ms ", 3)
|
|
258
257
|
]),
|
|
259
258
|
e("td", null, [
|
|
260
|
-
e("span", Nt,
|
|
259
|
+
e("span", Nt, u((l.totalDuration || 0).toFixed(1)) + "ms", 1)
|
|
261
260
|
]),
|
|
262
261
|
e("td", null, [
|
|
263
|
-
e("span", Pt,
|
|
262
|
+
e("span", Pt, u((l.percentOfTotal || 0).toFixed(1)) + "%", 1)
|
|
264
263
|
])
|
|
265
264
|
]))), 128))
|
|
266
265
|
])
|
|
@@ -292,7 +291,7 @@ const J = H({
|
|
|
292
291
|
onClick: t[5] || (t[5] = (l) => S("duration"))
|
|
293
292
|
}, [
|
|
294
293
|
t[15] || (t[15] = b(" Duration ", -1)),
|
|
295
|
-
|
|
294
|
+
r(h).column === "duration" ? (o(), i("span", zt, u(r(h).direction === "asc" ? " ▲" : " ▼"), 1)) : v("", !0)
|
|
296
295
|
]),
|
|
297
296
|
t[19] || (t[19] = e("th", null, "Method", -1)),
|
|
298
297
|
t[20] || (t[20] = e("th", null, "Model", -1)),
|
|
@@ -302,7 +301,7 @@ const J = H({
|
|
|
302
301
|
onClick: t[6] || (t[6] = (l) => S("createdAt"))
|
|
303
302
|
}, [
|
|
304
303
|
t[16] || (t[16] = b(" Time ", -1)),
|
|
305
|
-
|
|
304
|
+
r(h).column === "createdAt" ? (o(), i("span", jt, u(r(h).direction === "asc" ? " ▲" : " ▼"), 1)) : v("", !0)
|
|
306
305
|
]),
|
|
307
306
|
t[22] || (t[22] = e("th", null, null, -1))
|
|
308
307
|
])
|
|
@@ -313,7 +312,7 @@ const J = H({
|
|
|
313
312
|
}, [
|
|
314
313
|
e("tr", null, [
|
|
315
314
|
e("td", null, [
|
|
316
|
-
e("span", At,
|
|
315
|
+
e("span", At, u(l.id), 1)
|
|
317
316
|
]),
|
|
318
317
|
e("td", null, [
|
|
319
318
|
e("div", null, [
|
|
@@ -324,10 +323,10 @@ const J = H({
|
|
|
324
323
|
tabindex: "0",
|
|
325
324
|
onClick: L((p) => d.value = d.value === l.id ? null : l.id, ["stop"]),
|
|
326
325
|
onKeydown: B((p) => d.value = d.value === l.id ? null : l.id, ["enter"])
|
|
327
|
-
},
|
|
326
|
+
}, u(l.sql || l.sql_text || ""), 43, Ft),
|
|
328
327
|
(R.value.get(
|
|
329
328
|
(l.sqlNormalized || l.sql || l.sql_text) ?? ""
|
|
330
|
-
) ?? 0) > 1 ? (o(), i("span", Kt, " ×" +
|
|
329
|
+
) ?? 0) > 1 ? (o(), i("span", Kt, " ×" + u(R.value.get(
|
|
331
330
|
(l.sqlNormalized || l.sql || l.sql_text) ?? ""
|
|
332
331
|
)), 1)) : v("", !0)
|
|
333
332
|
])
|
|
@@ -335,29 +334,29 @@ const J = H({
|
|
|
335
334
|
e("td", null, [
|
|
336
335
|
e("span", {
|
|
337
336
|
class: f(`ss-dash-duration ${E(l.duration || 0)}`)
|
|
338
|
-
},
|
|
337
|
+
}, u((l.duration || 0).toFixed(2)) + "ms ", 3)
|
|
339
338
|
]),
|
|
340
339
|
e("td", null, [
|
|
341
340
|
e("span", {
|
|
342
341
|
class: f(`ss-dash-method ss-dash-method-${(l.method || l.sql_method || "").toLowerCase()}`)
|
|
343
|
-
},
|
|
342
|
+
}, u(l.method || l.sql_method || ""), 3)
|
|
344
343
|
]),
|
|
345
344
|
e("td", null, [
|
|
346
345
|
e("span", {
|
|
347
346
|
style: { color: "var(--ss-muted)", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" },
|
|
348
347
|
title: l.model
|
|
349
|
-
},
|
|
348
|
+
}, u(l.model || "-"), 9, Rt)
|
|
350
349
|
]),
|
|
351
350
|
e("td", null, [
|
|
352
|
-
e("span", Et,
|
|
351
|
+
e("span", Et, u(l.connection || "-"), 1)
|
|
353
352
|
]),
|
|
354
353
|
e("td", null, [
|
|
355
354
|
e("span", {
|
|
356
355
|
class: "ss-dash-event-time",
|
|
357
|
-
title:
|
|
356
|
+
title: r(rt)(
|
|
358
357
|
l.createdAt || l.created_at || l.timestamp || ""
|
|
359
358
|
)
|
|
360
|
-
}, r(
|
|
359
|
+
}, u(r(dt)(
|
|
361
360
|
l.createdAt || l.created_at || l.timestamp || ""
|
|
362
361
|
)), 9, Lt)
|
|
363
362
|
]),
|
|
@@ -368,7 +367,7 @@ const J = H({
|
|
|
368
367
|
class: f(`ss-dash-explain-btn${a.value?.queryId === l.id && !a.value?.error ? " ss-dash-explain-btn-active" : ""}`),
|
|
369
368
|
disabled: y.value === l.id,
|
|
370
369
|
onClick: L((p) => lt(l.id), ["stop"])
|
|
371
|
-
},
|
|
370
|
+
}, u(y.value === l.id ? "..." : "EXPLAIN"), 11, Mt)) : v("", !0)
|
|
372
371
|
])
|
|
373
372
|
]),
|
|
374
373
|
a.value && a.value.queryId === l.id ? (o(), i("tr", Ot, [
|
|
@@ -377,11 +376,11 @@ const J = H({
|
|
|
377
376
|
e("div", Ut, [
|
|
378
377
|
a.value.error ? (o(), i("div", Qt, [
|
|
379
378
|
t[23] || (t[23] = e("strong", null, "Error:", -1)),
|
|
380
|
-
b(" " +
|
|
379
|
+
b(" " + u(a.value.error) + " ", 1),
|
|
381
380
|
a.value.message ? (o(), i("br", Wt)) : v("", !0),
|
|
382
|
-
b(" " +
|
|
381
|
+
b(" " + u(a.value.message), 1)
|
|
383
382
|
])) : at() ? (o(), i("div", Bt, [
|
|
384
|
-
W(
|
|
383
|
+
W(r(J), {
|
|
385
384
|
node: ot(),
|
|
386
385
|
depth: 0
|
|
387
386
|
}, null, 8, ["node"])
|
|
@@ -389,12 +388,12 @@ const J = H({
|
|
|
389
388
|
e("table", null, [
|
|
390
389
|
e("thead", null, [
|
|
391
390
|
e("tr", null, [
|
|
392
|
-
(o(!0), i(k, null, T(q(), (p) => (o(), i("th", { key: p },
|
|
391
|
+
(o(!0), i(k, null, T(q(), (p) => (o(), i("th", { key: p }, u(p), 1))), 128))
|
|
393
392
|
])
|
|
394
393
|
]),
|
|
395
394
|
e("tbody", null, [
|
|
396
395
|
(o(!0), i(k, null, T(a.value.plan, (p, x) => (o(), i("tr", { key: x }, [
|
|
397
|
-
(o(!0), i(k, null, T(q(), (_) => (o(), i("td", { key: _ },
|
|
396
|
+
(o(!0), i(k, null, T(q(), (_) => (o(), i("td", { key: _ }, u(nt(p, _)), 1))), 128))
|
|
398
397
|
]))), 128))
|
|
399
398
|
])
|
|
400
399
|
])
|
|
@@ -413,12 +412,12 @@ const J = H({
|
|
|
413
412
|
])
|
|
414
413
|
], 512)) : (o(), i("div", Jt, "No queries recorded"))
|
|
415
414
|
]),
|
|
416
|
-
|
|
415
|
+
r(P).totalPages > 1 ? (o(), ut(ft, {
|
|
417
416
|
key: 0,
|
|
418
|
-
page:
|
|
419
|
-
"last-page":
|
|
420
|
-
total:
|
|
421
|
-
onPageChange:
|
|
417
|
+
page: r(P).page,
|
|
418
|
+
"last-page": r(P).totalPages,
|
|
419
|
+
total: r(P).total,
|
|
420
|
+
onPageChange: r(X)
|
|
422
421
|
}, null, 8, ["page", "last-page", "total", "onPageChange"])) : v("", !0)
|
|
423
422
|
], 64))
|
|
424
423
|
]));
|