adonisjs-server-stats 1.11.5 → 1.11.7
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/README.md +19 -6
- package/dist/core/index.d.ts +2 -1
- package/dist/core/index.js +550 -468
- package/dist/core/types-diagnostics.d.ts +2 -0
- package/dist/react/{CacheSection-BYN53kYO.js → CacheSection-DOUnyUrw.js} +1 -1
- package/dist/react/{CacheTab-DOhuK05d.js → CacheTab-D9o6bsPc.js} +1 -1
- package/dist/react/{ConfigSection-B9EHh4Rp.js → ConfigSection-DzNC7pOJ.js} +1 -1
- package/dist/react/{ConfigTab-C8kriE2b.js → ConfigTab-CT-Tu-ct.js} +1 -1
- package/dist/react/{CustomPaneTab-CvzQS_Wh.js → CustomPaneTab-CvIPe7NP.js} +1 -1
- package/dist/react/{EmailsSection-BJyFJf7A.js → EmailsSection-B1LT7Nx3.js} +1 -1
- package/dist/react/{EmailsTab-Ch8jp10B.js → EmailsTab-DKxK322z.js} +1 -1
- package/dist/react/{EventsSection-DJPwHeT8.js → EventsSection-D3AK0mhw.js} +1 -1
- package/dist/react/{EventsTab-B-FoehXC.js → EventsTab-BRRSW6RI.js} +1 -1
- package/dist/react/InternalsContent-BNOnSoi9.js +393 -0
- package/dist/react/{InternalsSection-B6VlVx5f.js → InternalsSection-BwrTfpjA.js} +1 -1
- package/dist/react/{InternalsTab-CkEKpRMU.js → InternalsTab--RD-L1dX.js} +1 -1
- package/dist/react/{JobsSection-DWF4i1t_.js → JobsSection-BMvj5886.js} +1 -1
- package/dist/react/{JobsTab-DqnifQXV.js → JobsTab-CQXWCrl8.js} +1 -1
- package/dist/react/{LogEntryRow-CMMkqA9M.js → LogEntryRow-DFI52ZEw.js} +1 -1
- package/dist/react/{LogsSection-C1xC5aP4.js → LogsSection-CW2hQ976.js} +2 -2
- package/dist/react/{LogsTab-CS4sLfLw.js → LogsTab-CV4Gf_yb.js} +2 -2
- package/dist/react/{OverviewSection-CxvfOR0v.js → OverviewSection-CxF9cabq.js} +1 -1
- package/dist/react/{QueriesSection-CrMdU5Ax.js → QueriesSection-CZJ-imAb.js} +117 -101
- package/dist/react/{QueriesTab-x85PjkyS.js → QueriesTab-CQHa1ck3.js} +23 -14
- package/dist/react/{RequestsSection-DETN9oZb.js → RequestsSection-Cb5YeqvI.js} +2 -2
- package/dist/react/{RoutesSection-CmorkJeC.js → RoutesSection-B43olD9v.js} +1 -1
- package/dist/react/{RoutesTab-CbzBOzpc.js → RoutesTab-RfhCUbkx.js} +1 -1
- package/dist/react/{SplitPaneWrapper-BiIgT4ND.js → SplitPaneWrapper-B05Mg6Sg.js} +1 -1
- package/dist/react/{TimelineTab-Ue9tUD_n.js → TimelineTab-Dx4686Ti.js} +2 -2
- package/dist/react/components/Dashboard/shared/DataTable.d.ts +1 -1
- package/dist/react/{index-DwDK-4oX.js → index-C4EMJrkH.js} +2 -2
- package/dist/react/index.js +1 -1
- package/dist/react/style.css +1 -1
- package/dist/src/collectors/db_pool_collector.js +17 -23
- 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 +2 -2
- package/dist/src/provider/diagnostics.d.ts +3 -0
- package/dist/src/provider/diagnostics.js +1 -0
- package/dist/src/provider/server_stats_provider.d.ts +7 -0
- package/dist/src/provider/server_stats_provider.js +36 -0
- package/dist/src/styles/components.css +16 -0
- package/dist/src/styles/dashboard.css +27 -18
- package/dist/vue/{CacheSection-DT2Mwf_s.js → CacheSection-BAotiuQq.js} +1 -1
- package/dist/vue/{ConfigSection-BwKwS9lh.js → ConfigSection-JZjK5E5F.js} +1 -1
- package/dist/vue/{EmailsSection-B65g0FVS.js → EmailsSection-BLwyQO7B.js} +1 -1
- package/dist/vue/{EventsSection-CxqtVF-o.js → EventsSection-BUEwO-0A.js} +1 -1
- package/dist/vue/{InternalsSection-BJUXE-5F.js → InternalsSection-jhTCuK3j.js} +149 -130
- package/dist/vue/{InternalsTab-DEMjqtlw.js → InternalsTab-521fxYYj.js} +152 -133
- package/dist/vue/{JobsSection-rMIyMb-g.js → JobsSection-21A0yQMq.js} +1 -1
- package/dist/vue/{LogsSection-DmmZVJ7D.js → LogsSection-BmOx8SNa.js} +1 -1
- package/dist/vue/{OverviewSection-BMabyqw-.js → OverviewSection-BRDK3Ony.js} +1 -1
- package/dist/vue/QueriesSection-D2WGsuR4.js +444 -0
- package/dist/vue/QueriesTab-6D_xfi7Q.js +114 -0
- package/dist/vue/{RequestsSection-CTu4jPZ_.js → RequestsSection-DLrjCfcE.js} +1 -1
- package/dist/vue/{RoutesSection-zQZDedL7.js → RoutesSection-CPr9w42B.js} +1 -1
- package/dist/vue/{index-CM3yNVUR.js → index-CYaqRGIT.js} +2 -2
- package/dist/vue/index.js +1 -1
- package/dist/vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/react/InternalsContent-O8ino9oM.js +0 -370
- package/dist/vue/QueriesSection-BfDFwGqH.js +0 -428
- package/dist/vue/QueriesTab-DuTG7cpC.js +0 -106
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { fillPercent as U, getTimerLabel as j, getIntegrationDetails as
|
|
1
|
+
import { defineComponent as V, ref as C, onMounted as B, onBeforeUnmount as R, computed as k, openBlock as a, createElementBlock as o, toDisplayString as s, Fragment as u, createElementVNode as l, createTextVNode as d, createCommentVNode as c, renderList as v, unref as S, normalizeClass as m, normalizeStyle as F } from "vue";
|
|
2
|
+
import { fillPercent as U, getTimerLabel as j, getIntegrationDetails as Q, getIntegrationStatus as H, getIntegrationLabel as O, formatUptime as q, timeAgo as M, formatCollectorConfig as J, UnauthorizedError as K, classifyStatus as W, formatDuration as w } from "adonisjs-server-stats/core";
|
|
3
3
|
import { u as G } from "./useApiClient-BQQ9CF-q.js";
|
|
4
4
|
const X = {
|
|
5
5
|
key: 0,
|
|
@@ -10,42 +10,53 @@ const X = {
|
|
|
10
10
|
}, Z = {
|
|
11
11
|
key: 2,
|
|
12
12
|
class: "ss-dbg-empty"
|
|
13
|
-
}, _ = {
|
|
13
|
+
}, _ = {
|
|
14
14
|
key: 0,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
style: {
|
|
16
|
+
background: "var(--ss-amber-bg)",
|
|
17
|
+
color: "var(--ss-amber-fg)",
|
|
18
|
+
padding: "8px 12px",
|
|
19
|
+
borderRadius: "6px",
|
|
20
|
+
fontSize: "12px",
|
|
21
|
+
marginBottom: "12px",
|
|
22
|
+
lineHeight: "1.5"
|
|
23
|
+
}
|
|
24
|
+
}, ll = { class: "ss-dbg-info-cards" }, tl = { class: "ss-dbg-info-card-label" }, el = { class: "ss-dbg-info-card-value" }, nl = {
|
|
17
25
|
key: 1,
|
|
26
|
+
class: "ss-dbg-empty"
|
|
27
|
+
}, sl = {
|
|
28
|
+
key: 2,
|
|
18
29
|
class: "ss-dbg-table"
|
|
19
|
-
},
|
|
30
|
+
}, al = { style: { "font-family": "monospace", "font-size": "11px" } }, ol = {
|
|
20
31
|
key: 0,
|
|
21
32
|
class: "ss-dbg-c-dim",
|
|
22
33
|
style: { "margin-left": "6px", "font-size": "11px" }
|
|
23
|
-
},
|
|
34
|
+
}, rl = { class: "ss-dbg-c-red" }, ul = {
|
|
24
35
|
class: "ss-dbg-c-dim",
|
|
25
36
|
style: { "margin-left": "4px" }
|
|
26
|
-
},
|
|
27
|
-
key: 2,
|
|
28
|
-
class: "ss-dbg-empty"
|
|
29
|
-
}, vl = {
|
|
37
|
+
}, dl = { style: { "font-size": "11px" } }, il = ["onClick"], bl = ["onClick"], vl = {
|
|
30
38
|
key: 3,
|
|
31
|
-
class: "ss-dbg-table"
|
|
32
|
-
}, gl = { class: "ss-dbg-bar" }, fl = { class: "ss-dbg-bar-track" }, pl = {
|
|
33
|
-
key: 4,
|
|
34
39
|
class: "ss-dbg-empty"
|
|
35
|
-
},
|
|
36
|
-
key:
|
|
40
|
+
}, gl = {
|
|
41
|
+
key: 4,
|
|
37
42
|
class: "ss-dbg-table"
|
|
38
|
-
},
|
|
39
|
-
key:
|
|
43
|
+
}, pl = { class: "ss-dbg-bar" }, fl = { class: "ss-dbg-bar-track" }, ml = {
|
|
44
|
+
key: 5,
|
|
40
45
|
class: "ss-dbg-empty"
|
|
41
|
-
},
|
|
46
|
+
}, yl = {
|
|
47
|
+
key: 6,
|
|
48
|
+
class: "ss-dbg-table"
|
|
49
|
+
}, kl = { class: "ss-dbg-c-dim" }, cl = {
|
|
42
50
|
key: 7,
|
|
51
|
+
class: "ss-dbg-empty"
|
|
52
|
+
}, xl = {
|
|
53
|
+
key: 8,
|
|
43
54
|
class: "ss-dbg-table"
|
|
44
|
-
},
|
|
55
|
+
}, Tl = { class: "ss-dbg-c-dim" }, Cl = { class: "ss-dbg-table" }, Sl = { style: { "font-family": "monospace", "font-size": "11px" } }, El = {
|
|
45
56
|
key: 0,
|
|
46
57
|
class: "ss-dbg-table",
|
|
47
58
|
style: { "margin-top": "8px" }
|
|
48
|
-
},
|
|
59
|
+
}, zl = { style: { "font-family": "monospace", "font-size": "11px" } }, hl = { class: "ss-dbg-table" }, Dl = { class: "ss-dbg-table" }, Il = { style: { "font-family": "monospace", "font-size": "11px" } }, $l = { style: { "font-family": "monospace", "font-size": "11px" } }, Ml = { style: { "font-family": "monospace", "font-size": "11px" } }, wl = { style: { "font-size": "11px" } }, Ll = 3e3, Vl = /* @__PURE__ */ V({
|
|
49
60
|
__name: "InternalsTab",
|
|
50
61
|
props: {
|
|
51
62
|
data: {},
|
|
@@ -53,17 +64,17 @@ const X = {
|
|
|
53
64
|
debugEndpoint: {},
|
|
54
65
|
authToken: {}
|
|
55
66
|
},
|
|
56
|
-
setup(
|
|
57
|
-
const
|
|
67
|
+
setup(L) {
|
|
68
|
+
const x = L, z = C(null), y = C(!0), g = C(null);
|
|
58
69
|
let b = null;
|
|
59
|
-
const
|
|
70
|
+
const P = G(x.baseUrl || "", x.authToken);
|
|
60
71
|
async function h() {
|
|
61
|
-
const r =
|
|
72
|
+
const r = x.debugEndpoint || "/admin/api/debug";
|
|
62
73
|
try {
|
|
63
|
-
const e = await
|
|
74
|
+
const e = await P().get(`${r}/diagnostics`);
|
|
64
75
|
z.value = e, g.value = null, y.value = !1;
|
|
65
76
|
} catch (t) {
|
|
66
|
-
if (t instanceof
|
|
77
|
+
if (t instanceof K) {
|
|
67
78
|
g.value = t, y.value = !1, b && (clearInterval(b), b = null);
|
|
68
79
|
return;
|
|
69
80
|
}
|
|
@@ -71,22 +82,22 @@ const X = {
|
|
|
71
82
|
}
|
|
72
83
|
}
|
|
73
84
|
B(() => {
|
|
74
|
-
y.value = !0, g.value = null, h(), b = setInterval(h,
|
|
75
|
-
}),
|
|
85
|
+
y.value = !0, g.value = null, h(), b = setInterval(h, Ll);
|
|
86
|
+
}), R(() => {
|
|
76
87
|
b && (clearInterval(b), b = null);
|
|
77
88
|
});
|
|
78
|
-
const
|
|
79
|
-
function
|
|
80
|
-
|
|
89
|
+
const p = C(/* @__PURE__ */ new Set());
|
|
90
|
+
function f(r) {
|
|
91
|
+
p.value.has(r) ? p.value.delete(r) : p.value.add(r);
|
|
81
92
|
}
|
|
82
|
-
function
|
|
83
|
-
const t =
|
|
93
|
+
function T(r) {
|
|
94
|
+
const t = W(r);
|
|
84
95
|
return t === "ok" ? "ss-dbg-dot-ok" : t === "err" ? "ss-dbg-dot-err" : "";
|
|
85
96
|
}
|
|
86
97
|
function N(r) {
|
|
87
98
|
return r.debounceMs !== void 0 ? `${w(r.debounceMs)} (debounce)` : r.intervalMs !== void 0 ? w(r.intervalMs) : "-";
|
|
88
99
|
}
|
|
89
|
-
const
|
|
100
|
+
const E = k(() => z.value || x.data || null), n = k(() => E.value || {}), D = k(() => n.value.buffers ? Object.entries(n.value.buffers).map(([r, t]) => ({
|
|
90
101
|
name: r.charAt(0).toUpperCase() + r.slice(1),
|
|
91
102
|
...t,
|
|
92
103
|
percent: U(t.current, t.max)
|
|
@@ -107,33 +118,41 @@ const X = {
|
|
|
107
118
|
for (const [t, e] of Object.entries(n.value.integrations))
|
|
108
119
|
r.push({
|
|
109
120
|
key: t,
|
|
110
|
-
label:
|
|
121
|
+
label: O(t),
|
|
111
122
|
status: H(e),
|
|
112
|
-
details:
|
|
123
|
+
details: Q(t, e)
|
|
113
124
|
});
|
|
114
125
|
return r;
|
|
115
126
|
});
|
|
116
127
|
return (r, t) => (a(), o("div", null, [
|
|
117
|
-
y.value && !
|
|
118
|
-
|
|
119
|
-
|
|
128
|
+
y.value && !E.value ? (a(), o("div", X, "Loading diagnostics...")) : g.value ? (a(), o("div", Y, "Error: " + s(g.value.message), 1)) : E.value ? (a(), o(u, { key: 3 }, [
|
|
129
|
+
n.value.collectors?.some((e) => e.name === "db_pool" || e.name === "app") && Array.isArray(n.value.lucidDebugConnections) && n.value.lucidDebugConnections.length === 0 ? (a(), o("div", _, [...t[4] || (t[4] = [
|
|
130
|
+
l("strong", null, "Query capture disabled", -1),
|
|
131
|
+
d(" — no Lucid connections have ", -1),
|
|
132
|
+
l("code", { style: { "font-size": "11px" } }, "debug: true", -1),
|
|
133
|
+
d(". Add it to your database connection in ", -1),
|
|
134
|
+
l("code", { style: { "font-size": "11px" } }, "config/database.ts", -1),
|
|
135
|
+
d(" to see queries in the Queries panel. ", -1)
|
|
136
|
+
])])) : c("", !0),
|
|
137
|
+
t[42] || (t[42] = l("div", { class: "ss-dbg-internals-title" }, "Package Info", -1)),
|
|
138
|
+
l("div", ll, [
|
|
120
139
|
(a(!0), o(u, null, v([
|
|
121
140
|
{ label: "Version", value: n.value.package?.version || "-" },
|
|
122
141
|
{ label: "Node.js", value: n.value.package?.nodeVersion || "-" },
|
|
123
142
|
{ label: "AdonisJS", value: n.value.package?.adonisVersion || "-" },
|
|
124
|
-
{ label: "Uptime", value:
|
|
143
|
+
{ label: "Uptime", value: S(q)(n.value.package?.uptime) },
|
|
125
144
|
{ label: "Renderer", value: n.value.devToolbar?.renderer || "preact" }
|
|
126
145
|
], (e) => (a(), o("div", {
|
|
127
146
|
key: e.label,
|
|
128
147
|
class: "ss-dbg-info-card"
|
|
129
148
|
}, [
|
|
130
|
-
l("span",
|
|
131
|
-
l("span",
|
|
149
|
+
l("span", tl, s(e.label), 1),
|
|
150
|
+
l("span", el, s(e.value), 1)
|
|
132
151
|
]))), 128))
|
|
133
152
|
]),
|
|
134
|
-
t[
|
|
135
|
-
n.value.collectors?.length ? (a(), o("table",
|
|
136
|
-
t[
|
|
153
|
+
t[43] || (t[43] = l("div", { class: "ss-dbg-internals-title" }, "Collectors", -1)),
|
|
154
|
+
n.value.collectors?.length ? (a(), o("table", sl, [
|
|
155
|
+
t[5] || (t[5] = l("thead", null, [
|
|
137
156
|
l("tr", null, [
|
|
138
157
|
l("th", null, "Collector"),
|
|
139
158
|
l("th", null, "Status"),
|
|
@@ -146,41 +165,41 @@ const X = {
|
|
|
146
165
|
key: e.name
|
|
147
166
|
}, [
|
|
148
167
|
l("td", null, [
|
|
149
|
-
l("span",
|
|
150
|
-
e.label && e.label !== e.name ? (a(), o("span",
|
|
168
|
+
l("span", al, s(e.name), 1),
|
|
169
|
+
e.label && e.label !== e.name ? (a(), o("span", ol, s(e.label), 1)) : c("", !0)
|
|
151
170
|
]),
|
|
152
171
|
l("td", null, [
|
|
153
172
|
l("span", {
|
|
154
|
-
class: m(["ss-dbg-dot",
|
|
173
|
+
class: m(["ss-dbg-dot", T(e.status)])
|
|
155
174
|
}, null, 2),
|
|
156
175
|
d(" " + s(e.status), 1)
|
|
157
176
|
]),
|
|
158
|
-
l("td",
|
|
177
|
+
l("td", rl, [
|
|
159
178
|
e.lastError ? (a(), o(u, { key: 0 }, [
|
|
160
179
|
d(s(e.lastError) + " ", 1),
|
|
161
|
-
l("span",
|
|
180
|
+
l("span", ul, s(S(M)(e.lastErrorAt ?? 0)), 1)
|
|
162
181
|
], 64)) : (a(), o(u, { key: 1 }, [
|
|
163
182
|
d("-")
|
|
164
183
|
], 64))
|
|
165
184
|
]),
|
|
166
|
-
l("td",
|
|
167
|
-
Object.keys(e.config || {}).length ? (a(!0), o(u, { key: 0 }, v(
|
|
185
|
+
l("td", dl, [
|
|
186
|
+
Object.keys(e.config || {}).length ? (a(!0), o(u, { key: 0 }, v(S(J)(e.config), (i) => (a(), o("span", {
|
|
168
187
|
key: i.key,
|
|
169
188
|
style: { "margin-right": "8px" }
|
|
170
189
|
}, [
|
|
171
190
|
d(s(i.key) + "=", 1),
|
|
172
|
-
i.secret && !
|
|
191
|
+
i.secret && !p.value.has(`collector-${e.name}-${i.key}`) ? (a(), o("span", {
|
|
173
192
|
key: 0,
|
|
174
193
|
class: "ss-dbg-c-muted",
|
|
175
194
|
style: { cursor: "pointer" },
|
|
176
|
-
onClick: (
|
|
177
|
-
}, "••••••••", 8,
|
|
195
|
+
onClick: (A) => f(`collector-${e.name}-${i.key}`)
|
|
196
|
+
}, "••••••••", 8, il)) : (a(), o(u, { key: 1 }, [
|
|
178
197
|
l("span", null, s(i.value), 1),
|
|
179
198
|
i.secret ? (a(), o("button", {
|
|
180
199
|
key: 0,
|
|
181
200
|
style: { background: "none", border: "none", color: "var(--ss-link-color, #3b82f6)", cursor: "pointer", "font-size": "10px", "margin-left": "4px", padding: "0" },
|
|
182
|
-
onClick: (
|
|
183
|
-
}, " Hide ", 8,
|
|
201
|
+
onClick: (A) => f(`collector-${e.name}-${i.key}`)
|
|
202
|
+
}, " Hide ", 8, bl)) : c("", !0)
|
|
184
203
|
], 64))
|
|
185
204
|
]))), 128)) : (a(), o(u, { key: 1 }, [
|
|
186
205
|
d("-")
|
|
@@ -188,10 +207,10 @@ const X = {
|
|
|
188
207
|
])
|
|
189
208
|
]))), 128))
|
|
190
209
|
])
|
|
191
|
-
])) : (a(), o("div",
|
|
192
|
-
t[
|
|
193
|
-
D.value.length ? (a(), o("table",
|
|
194
|
-
t[
|
|
210
|
+
])) : (a(), o("div", nl, "No collectors")),
|
|
211
|
+
t[44] || (t[44] = l("div", { class: "ss-dbg-internals-title" }, "Buffers", -1)),
|
|
212
|
+
D.value.length ? (a(), o("table", gl, [
|
|
213
|
+
t[6] || (t[6] = l("thead", null, [
|
|
195
214
|
l("tr", null, [
|
|
196
215
|
l("th", null, "Buffer"),
|
|
197
216
|
l("th", null, "Usage"),
|
|
@@ -205,11 +224,11 @@ const X = {
|
|
|
205
224
|
l("td", null, s(e.name), 1),
|
|
206
225
|
l("td", null, s(e.current.toLocaleString()) + " / " + s(e.max.toLocaleString()), 1),
|
|
207
226
|
l("td", null, [
|
|
208
|
-
l("div",
|
|
227
|
+
l("div", pl, [
|
|
209
228
|
l("div", fl, [
|
|
210
229
|
l("div", {
|
|
211
230
|
class: m(["ss-dbg-bar-fill", e.percent >= 100 ? "ss-dbg-bar-fill-warn" : ""]),
|
|
212
|
-
style:
|
|
231
|
+
style: F({ width: e.percent + "%" })
|
|
213
232
|
}, null, 6)
|
|
214
233
|
]),
|
|
215
234
|
l("span", {
|
|
@@ -219,10 +238,10 @@ const X = {
|
|
|
219
238
|
])
|
|
220
239
|
]))), 128))
|
|
221
240
|
])
|
|
222
|
-
])) : (a(), o("div",
|
|
223
|
-
t[
|
|
224
|
-
I.value.length ? (a(), o("table",
|
|
225
|
-
t[
|
|
241
|
+
])) : (a(), o("div", vl, "No buffer data")),
|
|
242
|
+
t[45] || (t[45] = l("div", { class: "ss-dbg-internals-title" }, "Timers", -1)),
|
|
243
|
+
I.value.length ? (a(), o("table", yl, [
|
|
244
|
+
t[7] || (t[7] = l("thead", null, [
|
|
226
245
|
l("tr", null, [
|
|
227
246
|
l("th", null, "Timer"),
|
|
228
247
|
l("th", null, "Status"),
|
|
@@ -236,17 +255,17 @@ const X = {
|
|
|
236
255
|
l("td", null, s(e.label), 1),
|
|
237
256
|
l("td", null, [
|
|
238
257
|
l("span", {
|
|
239
|
-
class: m(["ss-dbg-dot",
|
|
258
|
+
class: m(["ss-dbg-dot", T(e.active ? "active" : "inactive")])
|
|
240
259
|
}, null, 2),
|
|
241
260
|
d(" " + s(e.active ? "active" : "inactive"), 1)
|
|
242
261
|
]),
|
|
243
|
-
l("td",
|
|
262
|
+
l("td", kl, s(e.interval), 1)
|
|
244
263
|
]))), 128))
|
|
245
264
|
])
|
|
246
|
-
])) : (a(), o("div",
|
|
247
|
-
t[
|
|
248
|
-
$.value.length ? (a(), o("table",
|
|
249
|
-
t[
|
|
265
|
+
])) : (a(), o("div", ml, "No timer data")),
|
|
266
|
+
t[46] || (t[46] = l("div", { class: "ss-dbg-internals-title" }, "Integrations", -1)),
|
|
267
|
+
$.value.length ? (a(), o("table", xl, [
|
|
268
|
+
t[8] || (t[8] = l("thead", null, [
|
|
250
269
|
l("tr", null, [
|
|
251
270
|
l("th", null, "Integration"),
|
|
252
271
|
l("th", null, "Status"),
|
|
@@ -260,18 +279,18 @@ const X = {
|
|
|
260
279
|
l("td", null, s(e.label), 1),
|
|
261
280
|
l("td", null, [
|
|
262
281
|
l("span", {
|
|
263
|
-
class: m(["ss-dbg-dot",
|
|
282
|
+
class: m(["ss-dbg-dot", T(e.status)])
|
|
264
283
|
}, null, 2),
|
|
265
284
|
d(" " + s(e.status), 1)
|
|
266
285
|
]),
|
|
267
|
-
l("td",
|
|
286
|
+
l("td", Tl, s(e.details), 1)
|
|
268
287
|
]))), 128))
|
|
269
288
|
])
|
|
270
|
-
])) : (a(), o("div",
|
|
271
|
-
n.value.storage ? (a(), o(u, { key:
|
|
272
|
-
t[
|
|
273
|
-
l("table",
|
|
274
|
-
t[
|
|
289
|
+
])) : (a(), o("div", cl, "No integration data")),
|
|
290
|
+
n.value.storage ? (a(), o(u, { key: 9 }, [
|
|
291
|
+
t[17] || (t[17] = l("div", { class: "ss-dbg-internals-title" }, "Storage", -1)),
|
|
292
|
+
l("table", Cl, [
|
|
293
|
+
t[15] || (t[15] = l("thead", null, [
|
|
275
294
|
l("tr", null, [
|
|
276
295
|
l("th", null, "Metric"),
|
|
277
296
|
l("th", null, "Value")
|
|
@@ -279,38 +298,38 @@ const X = {
|
|
|
279
298
|
], -1)),
|
|
280
299
|
l("tbody", null, [
|
|
281
300
|
l("tr", null, [
|
|
282
|
-
t[
|
|
301
|
+
t[9] || (t[9] = l("td", null, "Status", -1)),
|
|
283
302
|
l("td", null, [
|
|
284
303
|
l("span", {
|
|
285
|
-
class: m(["ss-dbg-dot",
|
|
304
|
+
class: m(["ss-dbg-dot", T(n.value.storage.ready ? "ready" : "unavailable")])
|
|
286
305
|
}, null, 2),
|
|
287
306
|
d(" " + s(n.value.storage.ready ? "ready" : "not ready"), 1)
|
|
288
307
|
])
|
|
289
308
|
]),
|
|
290
309
|
l("tr", null, [
|
|
291
|
-
t[
|
|
292
|
-
l("td",
|
|
310
|
+
t[10] || (t[10] = l("td", null, "DB Path", -1)),
|
|
311
|
+
l("td", Sl, s(n.value.storage.dbPath), 1)
|
|
293
312
|
]),
|
|
294
313
|
l("tr", null, [
|
|
295
|
-
t[
|
|
314
|
+
t[11] || (t[11] = l("td", null, "File Size", -1)),
|
|
296
315
|
l("td", null, s(n.value.storage.fileSizeMb.toFixed(1)) + " MB", 1)
|
|
297
316
|
]),
|
|
298
317
|
l("tr", null, [
|
|
299
|
-
t[
|
|
318
|
+
t[12] || (t[12] = l("td", null, "WAL Size", -1)),
|
|
300
319
|
l("td", null, s(n.value.storage.walSizeMb.toFixed(1)) + " MB", 1)
|
|
301
320
|
]),
|
|
302
321
|
l("tr", null, [
|
|
303
|
-
t[
|
|
322
|
+
t[13] || (t[13] = l("td", null, "Retention", -1)),
|
|
304
323
|
l("td", null, s(n.value.storage.retentionDays) + " days", 1)
|
|
305
324
|
]),
|
|
306
325
|
l("tr", null, [
|
|
307
|
-
t[
|
|
308
|
-
l("td", null, s(
|
|
326
|
+
t[14] || (t[14] = l("td", null, "Last Cleanup", -1)),
|
|
327
|
+
l("td", null, s(S(M)(n.value.storage.lastCleanupAt ?? 0)), 1)
|
|
309
328
|
])
|
|
310
329
|
])
|
|
311
330
|
]),
|
|
312
|
-
n.value.storage.tables?.length ? (a(), o("table",
|
|
313
|
-
t[
|
|
331
|
+
n.value.storage.tables?.length ? (a(), o("table", El, [
|
|
332
|
+
t[16] || (t[16] = l("thead", null, [
|
|
314
333
|
l("tr", null, [
|
|
315
334
|
l("th", null, "Table"),
|
|
316
335
|
l("th", null, "Rows")
|
|
@@ -320,15 +339,15 @@ const X = {
|
|
|
320
339
|
(a(!0), o(u, null, v(n.value.storage.tables, (e) => (a(), o("tr", {
|
|
321
340
|
key: e.name
|
|
322
341
|
}, [
|
|
323
|
-
l("td",
|
|
342
|
+
l("td", zl, s(e.name), 1),
|
|
324
343
|
l("td", null, s(e.rowCount.toLocaleString()), 1)
|
|
325
344
|
]))), 128))
|
|
326
345
|
])
|
|
327
|
-
])) :
|
|
328
|
-
], 64)) :
|
|
329
|
-
t[
|
|
330
|
-
l("table",
|
|
331
|
-
t[
|
|
346
|
+
])) : c("", !0)
|
|
347
|
+
], 64)) : c("", !0),
|
|
348
|
+
t[47] || (t[47] = l("div", { class: "ss-dbg-internals-title" }, "Resolved Config", -1)),
|
|
349
|
+
l("table", hl, [
|
|
350
|
+
t[25] || (t[25] = l("thead", null, [
|
|
332
351
|
l("tr", null, [
|
|
333
352
|
l("th", null, "Setting"),
|
|
334
353
|
l("th", null, "Value")
|
|
@@ -336,38 +355,38 @@ const X = {
|
|
|
336
355
|
], -1)),
|
|
337
356
|
l("tbody", null, [
|
|
338
357
|
l("tr", null, [
|
|
339
|
-
t[
|
|
358
|
+
t[18] || (t[18] = l("td", null, "intervalMs", -1)),
|
|
340
359
|
l("td", null, s(n.value.config?.intervalMs), 1)
|
|
341
360
|
]),
|
|
342
361
|
l("tr", null, [
|
|
343
|
-
t[
|
|
362
|
+
t[19] || (t[19] = l("td", null, "transport", -1)),
|
|
344
363
|
l("td", null, s(n.value.config?.transport), 1)
|
|
345
364
|
]),
|
|
346
365
|
l("tr", null, [
|
|
347
|
-
t[
|
|
366
|
+
t[20] || (t[20] = l("td", null, "channelName", -1)),
|
|
348
367
|
l("td", null, s(n.value.config?.channelName), 1)
|
|
349
368
|
]),
|
|
350
369
|
l("tr", null, [
|
|
351
|
-
t[
|
|
370
|
+
t[21] || (t[21] = l("td", null, "endpoint", -1)),
|
|
352
371
|
l("td", null, s(n.value.config?.endpoint === !1 ? "false" : n.value.config?.endpoint), 1)
|
|
353
372
|
]),
|
|
354
373
|
l("tr", null, [
|
|
355
|
-
t[
|
|
374
|
+
t[22] || (t[22] = l("td", null, "skipInTest", -1)),
|
|
356
375
|
l("td", null, s(n.value.config?.skipInTest), 1)
|
|
357
376
|
]),
|
|
358
377
|
l("tr", null, [
|
|
359
|
-
t[
|
|
378
|
+
t[23] || (t[23] = l("td", null, "onStats callback", -1)),
|
|
360
379
|
l("td", null, s(n.value.config?.hasOnStatsCallback ? "defined" : "not defined"), 1)
|
|
361
380
|
]),
|
|
362
381
|
l("tr", null, [
|
|
363
|
-
t[
|
|
382
|
+
t[24] || (t[24] = l("td", null, "shouldShow callback", -1)),
|
|
364
383
|
l("td", null, s(n.value.config?.hasShouldShowCallback ? "defined" : "not defined"), 1)
|
|
365
384
|
])
|
|
366
385
|
])
|
|
367
386
|
]),
|
|
368
|
-
t[
|
|
369
|
-
l("table",
|
|
370
|
-
t[
|
|
387
|
+
t[48] || (t[48] = l("div", { class: "ss-dbg-internals-title" }, "DevToolbar", -1)),
|
|
388
|
+
l("table", Dl, [
|
|
389
|
+
t[41] || (t[41] = l("thead", null, [
|
|
371
390
|
l("tr", null, [
|
|
372
391
|
l("th", null, "Setting"),
|
|
373
392
|
l("th", null, "Value")
|
|
@@ -375,89 +394,89 @@ const X = {
|
|
|
375
394
|
], -1)),
|
|
376
395
|
l("tbody", null, [
|
|
377
396
|
l("tr", null, [
|
|
378
|
-
t[
|
|
397
|
+
t[26] || (t[26] = l("td", null, "enabled", -1)),
|
|
379
398
|
l("td", null, s(n.value.devToolbar?.enabled), 1)
|
|
380
399
|
]),
|
|
381
400
|
l("tr", null, [
|
|
382
|
-
t[
|
|
401
|
+
t[27] || (t[27] = l("td", null, "tracing", -1)),
|
|
383
402
|
l("td", null, s(n.value.devToolbar?.tracing), 1)
|
|
384
403
|
]),
|
|
385
404
|
l("tr", null, [
|
|
386
|
-
t[
|
|
405
|
+
t[28] || (t[28] = l("td", null, "dashboard", -1)),
|
|
387
406
|
l("td", null, s(n.value.devToolbar?.dashboard), 1)
|
|
388
407
|
]),
|
|
389
408
|
l("tr", null, [
|
|
390
|
-
t[
|
|
391
|
-
l("td",
|
|
409
|
+
t[29] || (t[29] = l("td", null, "dashboardPath", -1)),
|
|
410
|
+
l("td", Il, s(n.value.devToolbar?.dashboardPath), 1)
|
|
392
411
|
]),
|
|
393
412
|
l("tr", null, [
|
|
394
|
-
t[
|
|
395
|
-
l("td",
|
|
396
|
-
|
|
413
|
+
t[30] || (t[30] = l("td", null, "debugEndpoint", -1)),
|
|
414
|
+
l("td", $l, [
|
|
415
|
+
p.value.has("cfg-debugEndpoint") ? (a(), o(u, { key: 1 }, [
|
|
397
416
|
d(s(n.value.devToolbar?.debugEndpoint) + " ", 1),
|
|
398
417
|
l("button", {
|
|
399
418
|
style: { background: "none", border: "none", color: "var(--ss-link-color, #3b82f6)", cursor: "pointer", "font-size": "10px", "margin-left": "4px", padding: "0" },
|
|
400
|
-
onClick: t[1] || (t[1] = (e) =>
|
|
419
|
+
onClick: t[1] || (t[1] = (e) => f("cfg-debugEndpoint"))
|
|
401
420
|
}, " Hide ")
|
|
402
421
|
], 64)) : (a(), o("span", {
|
|
403
422
|
key: 0,
|
|
404
423
|
class: "ss-dbg-c-muted",
|
|
405
424
|
style: { cursor: "pointer" },
|
|
406
|
-
onClick: t[0] || (t[0] = (e) =>
|
|
425
|
+
onClick: t[0] || (t[0] = (e) => f("cfg-debugEndpoint"))
|
|
407
426
|
}, "••••••••"))
|
|
408
427
|
])
|
|
409
428
|
]),
|
|
410
429
|
l("tr", null, [
|
|
411
|
-
t[
|
|
430
|
+
t[31] || (t[31] = l("td", null, "maxQueries", -1)),
|
|
412
431
|
l("td", null, s(n.value.devToolbar?.maxQueries), 1)
|
|
413
432
|
]),
|
|
414
433
|
l("tr", null, [
|
|
415
|
-
t[
|
|
434
|
+
t[32] || (t[32] = l("td", null, "maxEvents", -1)),
|
|
416
435
|
l("td", null, s(n.value.devToolbar?.maxEvents), 1)
|
|
417
436
|
]),
|
|
418
437
|
l("tr", null, [
|
|
419
|
-
t[
|
|
438
|
+
t[33] || (t[33] = l("td", null, "maxEmails", -1)),
|
|
420
439
|
l("td", null, s(n.value.devToolbar?.maxEmails), 1)
|
|
421
440
|
]),
|
|
422
441
|
l("tr", null, [
|
|
423
|
-
t[
|
|
442
|
+
t[34] || (t[34] = l("td", null, "maxTraces", -1)),
|
|
424
443
|
l("td", null, s(n.value.devToolbar?.maxTraces), 1)
|
|
425
444
|
]),
|
|
426
445
|
l("tr", null, [
|
|
427
|
-
t[
|
|
446
|
+
t[35] || (t[35] = l("td", null, "slowQueryThresholdMs", -1)),
|
|
428
447
|
l("td", null, s(n.value.devToolbar?.slowQueryThresholdMs), 1)
|
|
429
448
|
]),
|
|
430
449
|
l("tr", null, [
|
|
431
|
-
t[
|
|
450
|
+
t[36] || (t[36] = l("td", null, "retentionDays", -1)),
|
|
432
451
|
l("td", null, s(n.value.devToolbar?.retentionDays), 1)
|
|
433
452
|
]),
|
|
434
453
|
l("tr", null, [
|
|
435
|
-
t[
|
|
436
|
-
l("td",
|
|
437
|
-
|
|
454
|
+
t[37] || (t[37] = l("td", null, "dbPath", -1)),
|
|
455
|
+
l("td", Ml, [
|
|
456
|
+
p.value.has("cfg-dbPath") ? (a(), o(u, { key: 1 }, [
|
|
438
457
|
d(s(n.value.devToolbar?.dbPath) + " ", 1),
|
|
439
458
|
l("button", {
|
|
440
459
|
style: { background: "none", border: "none", color: "var(--ss-link-color, #3b82f6)", cursor: "pointer", "font-size": "10px", "margin-left": "4px", padding: "0" },
|
|
441
|
-
onClick: t[3] || (t[3] = (e) =>
|
|
460
|
+
onClick: t[3] || (t[3] = (e) => f("cfg-dbPath"))
|
|
442
461
|
}, " Hide ")
|
|
443
462
|
], 64)) : (a(), o("span", {
|
|
444
463
|
key: 0,
|
|
445
464
|
class: "ss-dbg-c-muted",
|
|
446
465
|
style: { cursor: "pointer" },
|
|
447
|
-
onClick: t[2] || (t[2] = (e) =>
|
|
466
|
+
onClick: t[2] || (t[2] = (e) => f("cfg-dbPath"))
|
|
448
467
|
}, "••••••••"))
|
|
449
468
|
])
|
|
450
469
|
]),
|
|
451
470
|
l("tr", null, [
|
|
452
|
-
t[
|
|
471
|
+
t[38] || (t[38] = l("td", null, "persistDebugData", -1)),
|
|
453
472
|
l("td", null, s(n.value.devToolbar?.persistDebugData), 1)
|
|
454
473
|
]),
|
|
455
474
|
l("tr", null, [
|
|
456
|
-
t[
|
|
457
|
-
l("td",
|
|
475
|
+
t[39] || (t[39] = l("td", null, "excludeFromTracing", -1)),
|
|
476
|
+
l("td", wl, s(n.value.devToolbar?.excludeFromTracing?.join(", ") || "-"), 1)
|
|
458
477
|
]),
|
|
459
478
|
l("tr", null, [
|
|
460
|
-
t[
|
|
479
|
+
t[40] || (t[40] = l("td", null, "customPanes", -1)),
|
|
461
480
|
l("td", null, s(n.value.devToolbar?.customPaneCount ?? 0) + " registered", 1)
|
|
462
481
|
])
|
|
463
482
|
])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as L, inject as h, ref as p, computed as g, openBlock as o, createElementBlock as d, createElementVNode as s, toDisplayString as n, createCommentVNode as v, createVNode as k, unref as a, withCtx as z, Fragment as _, renderList as x, normalizeClass as w, withModifiers as K, createBlock as M } from "vue";
|
|
2
2
|
import { extractJobs as O, extractJobStats as Q, JOB_STATUS_FILTERS as W, getJobStatusBadgeColor as q, formatDuration as G, formatTime as H, timeAgo as X } from "adonisjs-server-stats/core";
|
|
3
|
-
import { u as Y } from "./index-
|
|
3
|
+
import { u as Y } from "./index-CYaqRGIT.js";
|
|
4
4
|
import { u as Z } from "./useResizableTable-BoivAevK.js";
|
|
5
5
|
import { _ as I } from "./JsonViewer.vue_vue_type_script_setup_true_lang-Bid05zpm.js";
|
|
6
6
|
import { _ as j } from "./FilterBar.vue_vue_type_script_setup_true_lang-ClJ37hhT.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as ie, inject as C, ref as u, computed as B, openBlock as a, createElementBlock as o, createVNode as O, unref as s, withCtx as ue, createElementVNode as n, Fragment as q, renderList as x, normalizeClass as $, toDisplayString as i, withKeys as V, createCommentVNode as _, createStaticVNode as re, createTextVNode as w, withModifiers as U, createBlock as de } from "vue";
|
|
2
2
|
import { LOG_LEVELS as ce, getStructuredData as m, getLogLevelCssClass as ve, resolveLogLevel as W, resolveLogTimestamp as F, formatTime as pe, timeAgo as he, resolveLogRequestId as g, resolveLogMessage as _e } from "adonisjs-server-stats/core";
|
|
3
3
|
import { _ as fe } from "./JsonViewer.vue_vue_type_script_setup_true_lang-Bid05zpm.js";
|
|
4
|
-
import { u as me } from "./index-
|
|
4
|
+
import { u as me } from "./index-CYaqRGIT.js";
|
|
5
5
|
import { _ as ge } from "./FilterBar.vue_vue_type_script_setup_true_lang-ClJ37hhT.js";
|
|
6
6
|
import { _ as ye } from "./PaginationControls.vue_vue_type_script_setup_true_lang-CuN7g_8Z.js";
|
|
7
7
|
const ke = { class: "ss-dash-log-filters" }, be = ["onClick"], Ce = ["value"], qe = { class: "ss-dash-structured-search" }, $e = ["value"], Fe = ["value"], Le = ["value"], Se = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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
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-
|
|
3
|
+
import { u as xs, _ as U } from "./index-CYaqRGIT.js";
|
|
4
4
|
const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ */ ws({
|
|
5
5
|
__name: "TimeRangeSelector",
|
|
6
6
|
props: {
|