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
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import { defineComponent as I, ref as c, computed as $, watch as Y, nextTick as j, onBeforeUnmount as K, openBlock as s, createElementBlock as l, Fragment as r, createElementVNode as e, toDisplayString as a, normalizeClass as g, unref as u, renderList as b, normalizeStyle as L, createTextVNode as N, createCommentVNode as f, createVNode as J, withDirectives as Q, vModelText as X, withModifiers as Z } from "vue";
|
|
2
|
+
import { initSplitPane as tt, formatDuration as m, TAB_ICONS as V, formatTime as et, timeAgo as st, durationClassName as lt } from "adonisjs-server-stats/core";
|
|
3
|
+
import { u as at } from "./useApiClient-BQQ9CF-q.js";
|
|
4
|
+
import { u as nt } from "./useResizableTable-BoivAevK.js";
|
|
5
|
+
import { _ as ot } from "./RelatedLogs.vue_vue_type_script_setup_true_lang-Py1iu9GU.js";
|
|
6
|
+
const dt = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "ss-dbg-empty"
|
|
9
|
+
}, it = { class: "ss-dbg-empty" }, rt = {
|
|
10
|
+
key: 2,
|
|
11
|
+
class: "ss-dbg-tl-detail-wrapper"
|
|
12
|
+
}, ut = { class: "ss-dbg-tl-detail-header" }, ct = { class: "ss-dbg-tl-detail-url" }, gt = { class: "ss-dbg-tl-meta" }, bt = { class: "ss-dbg-tl-legend" }, vt = { id: "ss-dbg-tl-waterfall" }, ht = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "ss-dbg-empty"
|
|
15
|
+
}, mt = ["title"], pt = { class: "ss-dbg-tl-track" }, ft = ["title"], _t = { class: "ss-dbg-tl-dur" }, yt = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "ss-dbg-tl-warnings"
|
|
18
|
+
}, kt = { class: "ss-dbg-tl-legend" }, wt = { id: "ss-dbg-tl-waterfall" }, Ct = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "ss-dbg-empty"
|
|
21
|
+
}, Tt = ["title"], xt = { class: "ss-dbg-tl-track" }, $t = ["title"], Lt = { class: "ss-dbg-tl-dur" }, Rt = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "ss-dbg-tl-warnings"
|
|
24
|
+
}, Bt = {
|
|
25
|
+
key: 3,
|
|
26
|
+
class: "ss-dbg-empty"
|
|
27
|
+
}, Dt = { class: "ss-dbg-search-bar" }, Et = { class: "ss-dbg-summary" }, At = {
|
|
28
|
+
key: 0,
|
|
29
|
+
class: "ss-dbg-empty"
|
|
30
|
+
}, St = ["onClick"], Mt = {
|
|
31
|
+
class: "ss-dbg-c-dim",
|
|
32
|
+
style: { "white-space": "nowrap" }
|
|
33
|
+
}, Nt = { class: "ss-dbg-c-text" }, qt = ["href"], Ot = ["viewBox", "innerHTML"], Pt = {
|
|
34
|
+
class: "ss-dbg-c-muted",
|
|
35
|
+
style: { "text-align": "center" }
|
|
36
|
+
}, Vt = ["title"], Gt = /* @__PURE__ */ I({
|
|
37
|
+
__name: "TimelineTab",
|
|
38
|
+
props: {
|
|
39
|
+
data: {},
|
|
40
|
+
dashboardPath: {},
|
|
41
|
+
baseUrl: {},
|
|
42
|
+
debugEndpoint: {},
|
|
43
|
+
authToken: {}
|
|
44
|
+
},
|
|
45
|
+
setup(R) {
|
|
46
|
+
const _ = R, y = c(""), v = c(null), n = c(null), B = c(!1), h = c(null), U = at(_.baseUrl || "", _.authToken), k = $(() => {
|
|
47
|
+
const d = _.data;
|
|
48
|
+
if (!d) return [];
|
|
49
|
+
const i = Array.isArray(d) ? d : d.traces || [];
|
|
50
|
+
if (!y.value.trim()) return i;
|
|
51
|
+
const t = y.value.toLowerCase();
|
|
52
|
+
return i.filter(
|
|
53
|
+
(o) => o.url.toLowerCase().includes(t) || o.method.toLowerCase().includes(t) || String(o.statusCode).includes(t)
|
|
54
|
+
);
|
|
55
|
+
}), w = {
|
|
56
|
+
request: "#1e3a5f",
|
|
57
|
+
middleware: "rgba(30, 58, 95, 0.7)",
|
|
58
|
+
db: "#6d28d9",
|
|
59
|
+
view: "#0e7490",
|
|
60
|
+
mail: "#059669",
|
|
61
|
+
event: "#b45309",
|
|
62
|
+
custom: "#525252"
|
|
63
|
+
}, q = {
|
|
64
|
+
request: "Request",
|
|
65
|
+
middleware: "Middleware",
|
|
66
|
+
db: "Database",
|
|
67
|
+
view: "View",
|
|
68
|
+
mail: "Mail",
|
|
69
|
+
event: "Event",
|
|
70
|
+
custom: "Custom"
|
|
71
|
+
};
|
|
72
|
+
function H(d) {
|
|
73
|
+
v.value === d.id ? (v.value = null, n.value = null, h.value = null) : (v.value = d.id, z(d.id));
|
|
74
|
+
}
|
|
75
|
+
function O() {
|
|
76
|
+
v.value = null, n.value = null, h.value = null;
|
|
77
|
+
}
|
|
78
|
+
let p = null;
|
|
79
|
+
async function z(d) {
|
|
80
|
+
p && p.abort(), p = new AbortController(), B.value = !0, h.value = null, n.value = null;
|
|
81
|
+
const i = _.debugEndpoint || "/admin/api/debug";
|
|
82
|
+
try {
|
|
83
|
+
const o = await U().get(`${i}/traces/${d}`);
|
|
84
|
+
n.value = o;
|
|
85
|
+
} catch (t) {
|
|
86
|
+
if (t instanceof Error && t.name === "AbortError") return;
|
|
87
|
+
h.value = t instanceof Error ? t.message : "Failed to load trace";
|
|
88
|
+
} finally {
|
|
89
|
+
B.value = !1;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
const C = $(() => n.value?.spans || []), T = $(() => n.value?.warnings || []);
|
|
93
|
+
function P(d, i) {
|
|
94
|
+
const t = i || 1, o = t > 0 ? d.startOffset / t * 100 : 0, G = t > 0 ? Math.max(d.duration / t * 100, 0.5) : 0.5;
|
|
95
|
+
return {
|
|
96
|
+
left: `${o}%`,
|
|
97
|
+
width: `${G}%`,
|
|
98
|
+
background: w[d.category] || w.custom
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
const { tableRef: F } = nt(() => k.value), D = c(null), E = c(null), A = c(null), S = c(null);
|
|
102
|
+
let x = null;
|
|
103
|
+
const M = $(() => n.value ? n.value.logs || [] : []);
|
|
104
|
+
Y([v, n], async () => {
|
|
105
|
+
x?.(), x = null, n.value && M.value.length > 0 && (await j(), D.value && E.value && A.value && S.value && (x = tt({
|
|
106
|
+
container: D.value,
|
|
107
|
+
handle: E.value,
|
|
108
|
+
topPane: A.value,
|
|
109
|
+
bottomPane: S.value,
|
|
110
|
+
storageKey: "ss-dbg-timeline-split"
|
|
111
|
+
})));
|
|
112
|
+
}), K(() => {
|
|
113
|
+
p && p.abort(), x?.();
|
|
114
|
+
});
|
|
115
|
+
function W(d) {
|
|
116
|
+
return lt(d, "ss-dbg");
|
|
117
|
+
}
|
|
118
|
+
return (d, i) => (s(), l("div", null, [
|
|
119
|
+
v.value !== null ? (s(), l(r, { key: 0 }, [
|
|
120
|
+
B.value ? (s(), l("div", dt, "Loading trace detail...")) : h.value ? (s(), l(r, { key: 1 }, [
|
|
121
|
+
e("div", { class: "ss-dbg-tl-detail-header" }, [
|
|
122
|
+
e("button", {
|
|
123
|
+
type: "button",
|
|
124
|
+
class: "ss-dbg-btn-clear",
|
|
125
|
+
onClick: O
|
|
126
|
+
}, "← Back")
|
|
127
|
+
]),
|
|
128
|
+
e("div", it, "Error: " + a(h.value), 1)
|
|
129
|
+
], 64)) : n.value ? (s(), l("div", rt, [
|
|
130
|
+
e("div", ut, [
|
|
131
|
+
e("button", {
|
|
132
|
+
type: "button",
|
|
133
|
+
class: "ss-dbg-btn-clear",
|
|
134
|
+
onClick: O
|
|
135
|
+
}, "← Back"),
|
|
136
|
+
e("span", {
|
|
137
|
+
class: g(`ss-dbg-method ss-dbg-method-${n.value.method.toLowerCase()}`)
|
|
138
|
+
}, a(n.value.method), 3),
|
|
139
|
+
e("span", ct, a(n.value.url), 1),
|
|
140
|
+
e("span", {
|
|
141
|
+
class: g(`ss-dbg-status ss-dbg-status-${Math.floor(n.value.statusCode / 100)}xx`)
|
|
142
|
+
}, a(n.value.statusCode), 3),
|
|
143
|
+
e("span", gt, a(u(m)(n.value.totalDuration)) + " · " + a(n.value.spanCount) + " spans ", 1)
|
|
144
|
+
]),
|
|
145
|
+
M.value.length > 0 ? (s(), l("div", {
|
|
146
|
+
key: 0,
|
|
147
|
+
ref_key: "splitContainerRef",
|
|
148
|
+
ref: D,
|
|
149
|
+
class: "ss-dbg-split-container"
|
|
150
|
+
}, [
|
|
151
|
+
e("div", {
|
|
152
|
+
ref_key: "splitTopRef",
|
|
153
|
+
ref: A,
|
|
154
|
+
class: "ss-dbg-split-top"
|
|
155
|
+
}, [
|
|
156
|
+
e("div", bt, [
|
|
157
|
+
(s(), l(r, null, b(w, (t, o) => e("span", {
|
|
158
|
+
key: o,
|
|
159
|
+
class: "ss-dbg-tl-legend-item"
|
|
160
|
+
}, [
|
|
161
|
+
e("span", {
|
|
162
|
+
class: "ss-dbg-tl-legend-dot",
|
|
163
|
+
style: L({ background: t })
|
|
164
|
+
}, null, 4),
|
|
165
|
+
N(" " + a(q[o] || o), 1)
|
|
166
|
+
])), 64))
|
|
167
|
+
]),
|
|
168
|
+
e("div", vt, [
|
|
169
|
+
C.value.length === 0 ? (s(), l("div", ht, " No spans captured for this request ")) : f("", !0),
|
|
170
|
+
(s(!0), l(r, null, b(C.value, (t) => (s(), l("div", {
|
|
171
|
+
key: t.id,
|
|
172
|
+
class: "ss-dbg-tl-row"
|
|
173
|
+
}, [
|
|
174
|
+
e("span", {
|
|
175
|
+
class: "ss-dbg-tl-label",
|
|
176
|
+
title: t.label
|
|
177
|
+
}, a(t.label), 9, mt),
|
|
178
|
+
e("span", pt, [
|
|
179
|
+
e("span", {
|
|
180
|
+
class: g(`ss-dbg-tl-bar ss-dbg-tl-bar-${t.category}`),
|
|
181
|
+
style: L(P(t, n.value.totalDuration)),
|
|
182
|
+
title: `${t.label}: ${u(m)(t.duration)}`
|
|
183
|
+
}, null, 14, ft)
|
|
184
|
+
]),
|
|
185
|
+
e("span", _t, a(u(m)(t.duration)), 1)
|
|
186
|
+
]))), 128))
|
|
187
|
+
]),
|
|
188
|
+
T.value.length > 0 ? (s(), l("div", yt, [
|
|
189
|
+
i[2] || (i[2] = e("div", { class: "ss-dbg-tl-warnings-title" }, "Warnings", -1)),
|
|
190
|
+
(s(!0), l(r, null, b(T.value, (t, o) => (s(), l("div", {
|
|
191
|
+
key: o,
|
|
192
|
+
class: "ss-dbg-tl-warning"
|
|
193
|
+
}, a(t), 1))), 128))
|
|
194
|
+
])) : f("", !0)
|
|
195
|
+
], 512),
|
|
196
|
+
e("div", {
|
|
197
|
+
ref_key: "splitHandleRef",
|
|
198
|
+
ref: E,
|
|
199
|
+
class: "ss-dbg-split-handle"
|
|
200
|
+
}, null, 512),
|
|
201
|
+
e("div", {
|
|
202
|
+
ref_key: "splitBottomRef",
|
|
203
|
+
ref: S,
|
|
204
|
+
class: "ss-dbg-split-bottom"
|
|
205
|
+
}, [
|
|
206
|
+
J(ot, { logs: M.value }, null, 8, ["logs"])
|
|
207
|
+
], 512)
|
|
208
|
+
], 512)) : (s(), l(r, { key: 1 }, [
|
|
209
|
+
e("div", kt, [
|
|
210
|
+
(s(), l(r, null, b(w, (t, o) => e("span", {
|
|
211
|
+
key: o,
|
|
212
|
+
class: "ss-dbg-tl-legend-item"
|
|
213
|
+
}, [
|
|
214
|
+
e("span", {
|
|
215
|
+
class: "ss-dbg-tl-legend-dot",
|
|
216
|
+
style: L({ background: t })
|
|
217
|
+
}, null, 4),
|
|
218
|
+
N(" " + a(q[o] || o), 1)
|
|
219
|
+
])), 64))
|
|
220
|
+
]),
|
|
221
|
+
e("div", wt, [
|
|
222
|
+
C.value.length === 0 ? (s(), l("div", Ct, " No spans captured for this request ")) : f("", !0),
|
|
223
|
+
(s(!0), l(r, null, b(C.value, (t) => (s(), l("div", {
|
|
224
|
+
key: t.id,
|
|
225
|
+
class: "ss-dbg-tl-row"
|
|
226
|
+
}, [
|
|
227
|
+
e("span", {
|
|
228
|
+
class: "ss-dbg-tl-label",
|
|
229
|
+
title: t.label
|
|
230
|
+
}, a(t.label), 9, Tt),
|
|
231
|
+
e("span", xt, [
|
|
232
|
+
e("span", {
|
|
233
|
+
class: g(`ss-dbg-tl-bar ss-dbg-tl-bar-${t.category}`),
|
|
234
|
+
style: L(P(t, n.value.totalDuration)),
|
|
235
|
+
title: `${t.label}: ${u(m)(t.duration)}`
|
|
236
|
+
}, null, 14, $t)
|
|
237
|
+
]),
|
|
238
|
+
e("span", Lt, a(u(m)(t.duration)), 1)
|
|
239
|
+
]))), 128))
|
|
240
|
+
]),
|
|
241
|
+
T.value.length > 0 ? (s(), l("div", Rt, [
|
|
242
|
+
i[3] || (i[3] = e("div", { class: "ss-dbg-tl-warnings-title" }, "Warnings", -1)),
|
|
243
|
+
(s(!0), l(r, null, b(T.value, (t, o) => (s(), l("div", {
|
|
244
|
+
key: o,
|
|
245
|
+
class: "ss-dbg-tl-warning"
|
|
246
|
+
}, a(t), 1))), 128))
|
|
247
|
+
])) : f("", !0)
|
|
248
|
+
], 64))
|
|
249
|
+
])) : (s(), l("div", Bt, "Loading trace detail..."))
|
|
250
|
+
], 64)) : (s(), l(r, { key: 1 }, [
|
|
251
|
+
e("div", Dt, [
|
|
252
|
+
Q(e("input", {
|
|
253
|
+
"onUpdate:modelValue": i[0] || (i[0] = (t) => y.value = t),
|
|
254
|
+
class: "ss-dbg-search",
|
|
255
|
+
placeholder: "Filter traces...",
|
|
256
|
+
type: "text"
|
|
257
|
+
}, null, 512), [
|
|
258
|
+
[X, y.value]
|
|
259
|
+
]),
|
|
260
|
+
e("span", Et, a(k.value.length) + " traces", 1)
|
|
261
|
+
]),
|
|
262
|
+
k.value.length === 0 ? (s(), l("div", At, "No traces captured")) : (s(), l("table", {
|
|
263
|
+
key: 1,
|
|
264
|
+
ref_key: "tableRef",
|
|
265
|
+
ref: F,
|
|
266
|
+
class: "ss-dbg-table"
|
|
267
|
+
}, [
|
|
268
|
+
i[4] || (i[4] = e("thead", null, [
|
|
269
|
+
e("tr", null, [
|
|
270
|
+
e("th", null, "#"),
|
|
271
|
+
e("th", null, "Method"),
|
|
272
|
+
e("th", null, "URL"),
|
|
273
|
+
e("th", null, "Status"),
|
|
274
|
+
e("th", null, "Duration"),
|
|
275
|
+
e("th", null, "Spans"),
|
|
276
|
+
e("th", null, "Time")
|
|
277
|
+
])
|
|
278
|
+
], -1)),
|
|
279
|
+
e("tbody", null, [
|
|
280
|
+
(s(!0), l(r, null, b(k.value, (t) => (s(), l("tr", {
|
|
281
|
+
key: t.id,
|
|
282
|
+
class: "ss-dbg-email-row",
|
|
283
|
+
onClick: (o) => H(t)
|
|
284
|
+
}, [
|
|
285
|
+
e("td", Mt, a(t.id), 1),
|
|
286
|
+
e("td", null, [
|
|
287
|
+
e("span", {
|
|
288
|
+
class: g(`ss-dbg-method ss-dbg-method-${t.method.toLowerCase()}`)
|
|
289
|
+
}, a(t.method), 3)
|
|
290
|
+
]),
|
|
291
|
+
e("td", Nt, [
|
|
292
|
+
N(a(t.url) + " ", 1),
|
|
293
|
+
R.dashboardPath ? (s(), l("a", {
|
|
294
|
+
key: 0,
|
|
295
|
+
href: `${R.dashboardPath}#requests?id=${t.id}`,
|
|
296
|
+
target: "_blank",
|
|
297
|
+
class: "ss-dbg-deeplink",
|
|
298
|
+
onClick: i[1] || (i[1] = Z(() => {
|
|
299
|
+
}, ["stop"]))
|
|
300
|
+
}, [
|
|
301
|
+
(s(), l("svg", {
|
|
302
|
+
viewBox: u(V)["open-external"].viewBox,
|
|
303
|
+
width: "12",
|
|
304
|
+
height: "12",
|
|
305
|
+
fill: "none",
|
|
306
|
+
stroke: "currentColor",
|
|
307
|
+
"stroke-width": "2",
|
|
308
|
+
innerHTML: u(V)["open-external"].elements.join("")
|
|
309
|
+
}, null, 8, Ot))
|
|
310
|
+
], 8, qt)) : f("", !0)
|
|
311
|
+
]),
|
|
312
|
+
e("td", null, [
|
|
313
|
+
e("span", {
|
|
314
|
+
class: g(`ss-dbg-status ss-dbg-status-${Math.floor(t.statusCode / 100)}xx`)
|
|
315
|
+
}, a(t.statusCode), 3)
|
|
316
|
+
]),
|
|
317
|
+
e("td", {
|
|
318
|
+
class: g(["ss-dbg-duration", W(t.totalDuration)])
|
|
319
|
+
}, a(u(m)(t.totalDuration)), 3),
|
|
320
|
+
e("td", Pt, a(t.spanCount), 1),
|
|
321
|
+
e("td", {
|
|
322
|
+
class: "ss-dbg-event-time",
|
|
323
|
+
title: u(et)(t.timestamp)
|
|
324
|
+
}, a(u(st)(t.timestamp)), 9, Vt)
|
|
325
|
+
], 8, St))), 128))
|
|
326
|
+
])
|
|
327
|
+
], 512))
|
|
328
|
+
], 64))
|
|
329
|
+
]));
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
export {
|
|
333
|
+
Gt as default
|
|
334
|
+
};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { LogEntry } from '../../../core/log-utils.js';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
logs: LogEntry[];
|
|
4
|
-
classPrefix?: 'ss-dash' | 'ss-dbg';
|
|
5
4
|
};
|
|
6
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
-
classPrefix: "ss-dash" | "ss-dbg";
|
|
8
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
6
|
export default _default;
|
|
@@ -617,7 +617,7 @@ const wt = ["title", "aria-label"], Ct = ["viewBox", "innerHTML"], Tt = ["viewBo
|
|
|
617
617
|
defaultOpen: { type: Boolean, default: !1 }
|
|
618
618
|
},
|
|
619
619
|
setup(e, { expose: s }) {
|
|
620
|
-
const t = E(() => import("./QueriesTab-
|
|
620
|
+
const t = E(() => import("./QueriesTab-DuTG7cpC.js")), r = E(() => import("./EventsTab-BBM7olXF.js")), o = E(() => import("./EmailsTab-CNyEODVB.js")), c = E(() => import("./RoutesTab-Dz0MkZuF.js")), y = E(() => import("./LogsTab-47zEK7jL.js")), v = E(() => import("./TimelineTab-DHfXsX7t.js")), f = E(() => import("./CacheTab-BPisYYiQ.js")), S = E(() => import("./JobsTab-WFnxPdN7.js")), R = E(() => import("./ConfigTab-C8cafGUj.js")), P = E(() => import("./InternalsTab-DEMjqtlw.js")), b = E(() => import("./CustomPaneTab-Hr1IBHfz.js")), u = e, H = h(u.defaultOpen), g = h("queries"), { theme: I } = oe(), { features: x } = de({
|
|
621
621
|
baseUrl: u.baseUrl,
|
|
622
622
|
debugEndpoint: u.debugEndpoint,
|
|
623
623
|
authToken: u.authToken
|
|
@@ -976,7 +976,7 @@ const Qt = ["data-theme"], Jt = { class: "ss-dash-header" }, Wt = { class: "ss-d
|
|
|
976
976
|
channelName: { default: "server-stats/dashboard" }
|
|
977
977
|
},
|
|
978
978
|
setup(e) {
|
|
979
|
-
const s = E(() => import("./OverviewSection-
|
|
979
|
+
const s = E(() => import("./OverviewSection-BMabyqw-.js")), t = E(() => import("./RequestsSection-CTu4jPZ_.js")), r = E(() => import("./QueriesSection-BfDFwGqH.js")), o = E(() => import("./EventsSection-CxqtVF-o.js")), c = E(() => import("./RoutesSection-zQZDedL7.js")), y = E(() => import("./LogsSection-DmmZVJ7D.js")), v = E(() => import("./EmailsSection-B65g0FVS.js")), f = E(() => import("./CacheSection-DT2Mwf_s.js")), S = E(() => import("./JobsSection-rMIyMb-g.js")), R = E(() => import("./ConfigSection-BwKwS9lh.js")), P = E(() => import("./InternalsSection-BJUXE-5F.js")), b = [
|
|
980
980
|
"overview",
|
|
981
981
|
"requests",
|
|
982
982
|
"queries",
|
package/dist/vue/index.js
CHANGED