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
|
@@ -1307,3 +1307,70 @@ tr:hover .ss-dbg-copy-row-btn,
|
|
|
1307
1307
|
font-weight: 400;
|
|
1308
1308
|
color: var(--ss-dim);
|
|
1309
1309
|
}
|
|
1310
|
+
|
|
1311
|
+
/* ── Cache stats bar ─────────────────────────────────────────── */
|
|
1312
|
+
/* Shared between Dashboard CacheSection and DebugPanel CacheTab.
|
|
1313
|
+
* Gap/padding differ slightly — override via --ss-cache-stats-gap
|
|
1314
|
+
* and --ss-cache-stats-px / --ss-cache-stats-py. */
|
|
1315
|
+
.ss-cache-stats,
|
|
1316
|
+
.ss-dash-cache-stats,
|
|
1317
|
+
.ss-dbg-cache-stats {
|
|
1318
|
+
display: flex;
|
|
1319
|
+
gap: var(--ss-cache-stats-gap, 16px);
|
|
1320
|
+
padding: var(--ss-cache-stats-py, 8px) var(--ss-cache-stats-px, 12px);
|
|
1321
|
+
border-bottom: 1px solid var(--ss-border-dim);
|
|
1322
|
+
background: var(--ss-surface-alt);
|
|
1323
|
+
font-size: 11px;
|
|
1324
|
+
flex-shrink: 0;
|
|
1325
|
+
}
|
|
1326
|
+
.ss-cache-stat,
|
|
1327
|
+
.ss-dash-cache-stat,
|
|
1328
|
+
.ss-dbg-cache-stat {
|
|
1329
|
+
display: inline-flex;
|
|
1330
|
+
align-items: center;
|
|
1331
|
+
gap: 4px;
|
|
1332
|
+
}
|
|
1333
|
+
.ss-cache-stat-label,
|
|
1334
|
+
.ss-dash-cache-stat-label,
|
|
1335
|
+
.ss-dbg-cache-stat-label {
|
|
1336
|
+
color: var(--ss-muted);
|
|
1337
|
+
}
|
|
1338
|
+
.ss-cache-stat-value,
|
|
1339
|
+
.ss-dash-cache-stat-value,
|
|
1340
|
+
.ss-dbg-cache-stat-value {
|
|
1341
|
+
color: var(--ss-text);
|
|
1342
|
+
font-weight: 600;
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
/* ── Job stats bar ──────────────────────────────────────────── */
|
|
1346
|
+
/* Shared between Dashboard JobsSection and DebugPanel JobsTab.
|
|
1347
|
+
* Gap/padding differ slightly — override via --ss-job-stats-gap
|
|
1348
|
+
* and --ss-job-stats-px / --ss-job-stats-py. */
|
|
1349
|
+
.ss-job-stats,
|
|
1350
|
+
.ss-dash-job-stats,
|
|
1351
|
+
.ss-dbg-job-stats {
|
|
1352
|
+
display: flex;
|
|
1353
|
+
gap: var(--ss-job-stats-gap, 16px);
|
|
1354
|
+
padding: var(--ss-job-stats-py, 8px) var(--ss-job-stats-px, 12px);
|
|
1355
|
+
background: var(--ss-surface-alt);
|
|
1356
|
+
font-size: 11px;
|
|
1357
|
+
flex-shrink: 0;
|
|
1358
|
+
}
|
|
1359
|
+
.ss-job-stat,
|
|
1360
|
+
.ss-dash-job-stat,
|
|
1361
|
+
.ss-dbg-job-stat {
|
|
1362
|
+
display: inline-flex;
|
|
1363
|
+
align-items: center;
|
|
1364
|
+
gap: 4px;
|
|
1365
|
+
}
|
|
1366
|
+
.ss-job-stat-label,
|
|
1367
|
+
.ss-dash-job-stat-label,
|
|
1368
|
+
.ss-dbg-job-stat-label {
|
|
1369
|
+
color: var(--ss-muted);
|
|
1370
|
+
}
|
|
1371
|
+
.ss-job-stat-value,
|
|
1372
|
+
.ss-dash-job-stat-value,
|
|
1373
|
+
.ss-dbg-job-stat-value {
|
|
1374
|
+
color: var(--ss-text);
|
|
1375
|
+
font-weight: 600;
|
|
1376
|
+
}
|
|
@@ -1168,28 +1168,18 @@ body {
|
|
|
1168
1168
|
}
|
|
1169
1169
|
|
|
1170
1170
|
/* ── Cache ─────────────────────────────────────────────────────── */
|
|
1171
|
+
/* Base cache stats bar → components.css; dashboard overrides: */
|
|
1171
1172
|
.ss-dash-cache-stats {
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
flex-shrink: 0;
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
.ss-dash-cache-stat {
|
|
1180
|
-
font-size: 11px;
|
|
1173
|
+
--ss-cache-stats-gap: 12px;
|
|
1174
|
+
--ss-cache-stats-py: 12px;
|
|
1175
|
+
--ss-cache-stats-px: 16px;
|
|
1176
|
+
background: none;
|
|
1181
1177
|
}
|
|
1182
1178
|
.ss-dash-cache-stat-label {
|
|
1183
1179
|
font-size: 10px;
|
|
1184
|
-
color: var(--ss-muted);
|
|
1185
1180
|
text-transform: uppercase;
|
|
1186
1181
|
margin-right: 4px;
|
|
1187
1182
|
}
|
|
1188
|
-
.ss-dash-cache-stat-value {
|
|
1189
|
-
font-weight: 600;
|
|
1190
|
-
/* tabular-nums → utilities.css */
|
|
1191
|
-
color: var(--ss-text);
|
|
1192
|
-
}
|
|
1193
1183
|
|
|
1194
1184
|
.ss-dash-cache-detail {
|
|
1195
1185
|
padding: 12px 16px;
|
|
@@ -524,28 +524,7 @@
|
|
|
524
524
|
color: var(--ss-red-fg);
|
|
525
525
|
}
|
|
526
526
|
|
|
527
|
-
/* Cache tab */
|
|
528
|
-
.ss-dbg-cache-stats {
|
|
529
|
-
display: flex;
|
|
530
|
-
gap: 16px;
|
|
531
|
-
padding: 8px 12px;
|
|
532
|
-
border-bottom: 1px solid var(--ss-border-dim);
|
|
533
|
-
background: var(--ss-surface-alt);
|
|
534
|
-
font-size: 11px;
|
|
535
|
-
}
|
|
536
|
-
.ss-dbg-cache-stat {
|
|
537
|
-
display: inline-flex;
|
|
538
|
-
align-items: center;
|
|
539
|
-
gap: 4px;
|
|
540
|
-
}
|
|
541
|
-
.ss-dbg-cache-stat-label {
|
|
542
|
-
color: var(--ss-muted);
|
|
543
|
-
}
|
|
544
|
-
.ss-dbg-cache-stat-value {
|
|
545
|
-
color: var(--ss-text);
|
|
546
|
-
font-weight: 600;
|
|
547
|
-
/* tabular-nums → utilities.css */
|
|
548
|
-
}
|
|
527
|
+
/* Cache tab — base stats bar → components.css */
|
|
549
528
|
|
|
550
529
|
/* Cache detail overlay */
|
|
551
530
|
.ss-dbg-cache-detail {
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
.ss-dash-event-time,
|
|
61
61
|
.ss-dash-card-value,
|
|
62
62
|
.ss-dash-secondary-list-value,
|
|
63
|
+
.ss-cache-stat-value,
|
|
63
64
|
.ss-dash-cache-stat-value,
|
|
64
65
|
.ss-dash-job-stat-value,
|
|
65
66
|
.ss-dash-widget-stat-value,
|
|
@@ -70,6 +71,7 @@
|
|
|
70
71
|
.ss-dbg-event-time,
|
|
71
72
|
.ss-dbg-mini-stat-value,
|
|
72
73
|
.ss-dbg-cache-stat-value,
|
|
73
|
-
.ss-dbg-job-stat-value
|
|
74
|
+
.ss-dbg-job-stat-value,
|
|
75
|
+
.ss-job-stat-value {
|
|
74
76
|
font-variant-numeric: tabular-nums;
|
|
75
77
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as E, inject as v, ref as h, computed as C, openBlock as a, createElementBlock as l, createElementVNode as e, toDisplayString as c, createCommentVNode as g, createVNode as F, unref as y, Fragment as N, renderList as A, withModifiers as B, createBlock as U } from "vue";
|
|
2
|
-
import { u as H } from "./index-
|
|
2
|
+
import { u as H } from "./index-CM3yNVUR.js";
|
|
3
3
|
import { u as M } from "./useResizableTable-BoivAevK.js";
|
|
4
4
|
import { DashboardApi as j, formatCacheSize as q, formatTtl as I } from "adonisjs-server-stats/core";
|
|
5
5
|
import { u as G } from "./useApiClient-BQQ9CF-q.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as re, inject as m, ref as w, computed as x, openBlock as i, createElementBlock as r, createElementVNode as n, normalizeClass as a, createCommentVNode as b, Fragment as _, toDisplayString as u, unref as c, renderList as A, withModifiers as I, normalizeStyle as R } from "vue";
|
|
2
|
-
import { u as ue } from "./index-
|
|
2
|
+
import { u as ue } from "./index-CM3yNVUR.js";
|
|
3
3
|
import { isRedactedValue as d, flattenConfig as z, TAB_ICONS as g, countLeaves as ce, collectTopLevelObjectKeys as pe, copyWithFeedback as de, formatFlatValue as ve } from "adonisjs-server-stats/core";
|
|
4
4
|
const fe = { style: { position: "relative", flex: 1 } }, he = ["value"], ge = ["title", "onClick"], ye = ["viewBox", "innerHTML"], be = ["viewBox", "innerHTML"], $e = ["onClick"], we = { key: 0 }, xe = ["title", "onClick"], ke = ["viewBox", "innerHTML"], Ce = ["viewBox", "innerHTML"], _e = ["onClick"], Se = { key: 0 }, Be = { style: { padding: "4px 16px", fontSize: "10px", color: "var(--ss-muted)" } }, Le = ["onClick"], He = ["title"], Te = ["title"], je = ["title", "onClick"], Me = ["viewBox", "innerHTML"], me = ["viewBox", "innerHTML"], Ae = ["onClick"], Ie = ["title", "onClick"], Ee = ["viewBox", "innerHTML"], Ve = ["viewBox", "innerHTML"], Oe = {
|
|
5
5
|
key: 1,
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { defineComponent as $, ref as h, computed as F, onMounted as K, openBlock as n, createElementBlock as r, withDirectives as R, createElementVNode as f, vModelText as U, toDisplayString as l, createCommentVNode as v, Fragment as b, renderList as k, normalizeClass as y, createTextVNode as z } from "vue";
|
|
2
|
+
import { compactPreview as B, formatDuration as E, timeAgo as S, formatTime as O, durationClassName as P } from "adonisjs-server-stats/core";
|
|
3
|
+
import { u as j } from "./useApiClient-BQQ9CF-q.js";
|
|
4
|
+
import { u as J } from "./useResizableTable-BoivAevK.js";
|
|
5
|
+
const q = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "ss-dbg-search-bar"
|
|
8
|
+
}, G = ["placeholder"], H = { class: "ss-dbg-summary" }, I = {
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "ss-dbg-empty"
|
|
11
|
+
}, Q = {
|
|
12
|
+
key: 2,
|
|
13
|
+
class: "ss-dbg-empty"
|
|
14
|
+
}, W = ["onClick"], X = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "ss-dbg-c-dim"
|
|
17
|
+
}, Y = ["title"], se = /* @__PURE__ */ $({
|
|
18
|
+
__name: "CustomPaneTab",
|
|
19
|
+
props: {
|
|
20
|
+
pane: {},
|
|
21
|
+
baseUrl: {},
|
|
22
|
+
authToken: {}
|
|
23
|
+
},
|
|
24
|
+
setup(d) {
|
|
25
|
+
const o = d, u = h([]), p = h(!1), c = h(""), _ = j(o.baseUrl || "", o.authToken);
|
|
26
|
+
let C = !1;
|
|
27
|
+
async function N() {
|
|
28
|
+
if (!(o.pane.fetchOnce && C)) {
|
|
29
|
+
p.value = !0;
|
|
30
|
+
try {
|
|
31
|
+
const e = await _().fetch(o.pane.endpoint), a = (o.pane.dataKey || o.pane.id).split(".");
|
|
32
|
+
let i = e;
|
|
33
|
+
for (const t of a)
|
|
34
|
+
i = i?.[t];
|
|
35
|
+
u.value = Array.isArray(i) ? i : [], C = !0;
|
|
36
|
+
} catch {
|
|
37
|
+
u.value = [];
|
|
38
|
+
} finally {
|
|
39
|
+
p.value = !1;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
const g = F(() => {
|
|
44
|
+
if (!c.value.trim()) return u.value;
|
|
45
|
+
const e = c.value.toLowerCase(), s = o.pane.columns.filter((a) => a.searchable).map((a) => a.key);
|
|
46
|
+
return s.length === 0 ? u.value : u.value.filter(
|
|
47
|
+
(a) => s.some((i) => {
|
|
48
|
+
const t = a[i];
|
|
49
|
+
return t == null ? !1 : String(t).toLowerCase().includes(e);
|
|
50
|
+
})
|
|
51
|
+
);
|
|
52
|
+
});
|
|
53
|
+
function m(e, s) {
|
|
54
|
+
if (e == null) return "-";
|
|
55
|
+
switch (s.format || "text") {
|
|
56
|
+
case "time":
|
|
57
|
+
return typeof e == "number" ? S(e) : String(e);
|
|
58
|
+
case "timeAgo":
|
|
59
|
+
return S(e);
|
|
60
|
+
case "duration":
|
|
61
|
+
return E(typeof e == "number" ? e : parseFloat(String(e)));
|
|
62
|
+
case "method":
|
|
63
|
+
return String(e);
|
|
64
|
+
case "json": {
|
|
65
|
+
let i = e;
|
|
66
|
+
if (typeof e == "string")
|
|
67
|
+
try {
|
|
68
|
+
i = JSON.parse(e);
|
|
69
|
+
} catch {
|
|
70
|
+
}
|
|
71
|
+
return B(i, 80);
|
|
72
|
+
}
|
|
73
|
+
case "badge":
|
|
74
|
+
return String(e);
|
|
75
|
+
default:
|
|
76
|
+
return String(e);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
function T(e, s) {
|
|
80
|
+
if (s.format === "time" || s.format === "timeAgo")
|
|
81
|
+
return O(e);
|
|
82
|
+
}
|
|
83
|
+
function x(e) {
|
|
84
|
+
return e == null;
|
|
85
|
+
}
|
|
86
|
+
function A(e) {
|
|
87
|
+
const s = typeof e == "number" ? e : parseFloat(String(e));
|
|
88
|
+
if (isNaN(s)) return "ss-dbg-duration";
|
|
89
|
+
const a = P(s, "ss-dbg");
|
|
90
|
+
return a ? `ss-dbg-duration ${a}` : "ss-dbg-duration";
|
|
91
|
+
}
|
|
92
|
+
function L(e, s) {
|
|
93
|
+
if (s.format === "badge" && s.badgeColorMap) {
|
|
94
|
+
const a = String(e).toLowerCase();
|
|
95
|
+
return s.badgeColorMap[a] || "muted";
|
|
96
|
+
}
|
|
97
|
+
return "";
|
|
98
|
+
}
|
|
99
|
+
function D(e) {
|
|
100
|
+
return `ss-dbg-method ss-dbg-method-${String(e).toLowerCase()}`;
|
|
101
|
+
}
|
|
102
|
+
function M() {
|
|
103
|
+
u.value = [];
|
|
104
|
+
}
|
|
105
|
+
const { tableRef: V } = J(() => g.value);
|
|
106
|
+
return K(() => {
|
|
107
|
+
N();
|
|
108
|
+
}), (e, s) => (n(), r("div", null, [
|
|
109
|
+
d.pane.search ? (n(), r("div", q, [
|
|
110
|
+
R(f("input", {
|
|
111
|
+
"onUpdate:modelValue": s[0] || (s[0] = (a) => c.value = a),
|
|
112
|
+
class: "ss-dbg-search",
|
|
113
|
+
placeholder: d.pane.search.placeholder,
|
|
114
|
+
type: "text"
|
|
115
|
+
}, null, 8, G), [
|
|
116
|
+
[U, c.value]
|
|
117
|
+
]),
|
|
118
|
+
f("span", H, l(g.value.length) + " items", 1),
|
|
119
|
+
d.pane.clearable ? (n(), r("button", {
|
|
120
|
+
key: 0,
|
|
121
|
+
class: "ss-dbg-btn-clear",
|
|
122
|
+
onClick: M
|
|
123
|
+
}, "Clear")) : v("", !0)
|
|
124
|
+
])) : v("", !0),
|
|
125
|
+
p.value ? (n(), r("div", I, "Loading...")) : g.value.length === 0 ? (n(), r("div", Q, "No data")) : (n(), r("table", {
|
|
126
|
+
key: 3,
|
|
127
|
+
ref_key: "tableRef",
|
|
128
|
+
ref: V,
|
|
129
|
+
class: "ss-dbg-table"
|
|
130
|
+
}, [
|
|
131
|
+
f("thead", null, [
|
|
132
|
+
f("tr", null, [
|
|
133
|
+
(n(!0), r(b, null, k(d.pane.columns, (a) => (n(), r("th", {
|
|
134
|
+
key: a.key
|
|
135
|
+
}, l(a.label), 1))), 128))
|
|
136
|
+
])
|
|
137
|
+
]),
|
|
138
|
+
f("tbody", null, [
|
|
139
|
+
(n(!0), r(b, null, k(g.value, (a, i) => (n(), r("tr", {
|
|
140
|
+
key: String(a.id ?? i)
|
|
141
|
+
}, [
|
|
142
|
+
(n(!0), r(b, null, k(d.pane.columns, (t) => (n(), r("td", {
|
|
143
|
+
key: t.key,
|
|
144
|
+
class: y({ "ss-dbg-filterable": t.filterable }),
|
|
145
|
+
onClick: (Z) => t.filterable ? c.value = String(a[t.key]) : void 0
|
|
146
|
+
}, [
|
|
147
|
+
x(a[t.key]) ? (n(), r("span", X, "-")) : t.format === "time" || t.format === "timeAgo" ? (n(), r("span", {
|
|
148
|
+
key: 1,
|
|
149
|
+
class: "ss-dbg-event-time",
|
|
150
|
+
title: T(a[t.key], t)
|
|
151
|
+
}, l(m(a[t.key], t)), 9, Y)) : t.format === "duration" ? (n(), r("span", {
|
|
152
|
+
key: 2,
|
|
153
|
+
class: y(A(a[t.key]))
|
|
154
|
+
}, l(m(a[t.key], t)), 3)) : t.format === "method" ? (n(), r("span", {
|
|
155
|
+
key: 3,
|
|
156
|
+
class: y(D(a[t.key]))
|
|
157
|
+
}, l(m(a[t.key], t)), 3)) : t.format === "badge" ? (n(), r("span", {
|
|
158
|
+
key: 4,
|
|
159
|
+
class: y(`ss-dbg-badge ss-dbg-badge-${L(a[t.key], t)}`)
|
|
160
|
+
}, l(m(a[t.key], t)), 3)) : (n(), r(b, { key: 5 }, [
|
|
161
|
+
z(l(m(a[t.key], t)), 1)
|
|
162
|
+
], 64))
|
|
163
|
+
], 10, W))), 128))
|
|
164
|
+
]))), 128))
|
|
165
|
+
])
|
|
166
|
+
], 512))
|
|
167
|
+
]));
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
export {
|
|
171
|
+
se as default
|
|
172
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as V, inject as h, ref as f, computed as A, openBlock as o, createElementBlock as i, createElementVNode as e, Fragment as c, createTextVNode as u, toDisplayString as n, createCommentVNode as y, normalizeClass as _, createVNode as F, unref as r, renderList as B, createBlock as D } from "vue";
|
|
2
2
|
import { formatTime as R, timeAgo as z } from "adonisjs-server-stats/core";
|
|
3
|
-
import { u as L } from "./index-
|
|
3
|
+
import { u as L } from "./index-CM3yNVUR.js";
|
|
4
4
|
import { u as M } from "./useResizableTable-BoivAevK.js";
|
|
5
5
|
import { _ as U } from "./FilterBar.vue_vue_type_script_setup_true_lang-ClJ37hhT.js";
|
|
6
6
|
import { _ as q } from "./PaginationControls.vue_vue_type_script_setup_true_lang-CuN7g_8Z.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as E, inject as i, ref as p, computed as P, openBlock as s, createElementBlock as l, createVNode as v, unref as a, Fragment as h, createElementVNode as e, renderList as T, toDisplayString as c, createBlock as C, createCommentVNode as D } from "vue";
|
|
2
2
|
import { formatTime as S, timeAgo as V } from "adonisjs-server-stats/core";
|
|
3
|
-
import { u as $ } from "./index-
|
|
3
|
+
import { u as $ } from "./index-CM3yNVUR.js";
|
|
4
4
|
import { u as A } from "./useResizableTable-BoivAevK.js";
|
|
5
5
|
import { _ as B } from "./FilterBar.vue_vue_type_script_setup_true_lang-ClJ37hhT.js";
|
|
6
6
|
import { _ as R } from "./PaginationControls.vue_vue_type_script_setup_true_lang-CuN7g_8Z.js";
|
|
@@ -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-CM3yNVUR.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-CM3yNVUR.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 = {
|