adonisjs-server-stats 1.6.14 → 1.8.0
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 +24 -8
- package/dist/core/index.js +248 -245
- package/dist/react/{CacheSection-DGxMDlWK.js → CacheSection-D5J5moz7.js} +1 -1
- package/dist/react/{CacheTab-CnVW5PLs.js → CacheTab-F1MkWSZl.js} +1 -1
- package/dist/react/{ConfigSection-DPcrfqXY.js → ConfigSection-DerLBu4o.js} +1 -1
- package/dist/react/{ConfigTab-BSWq_o2p.js → ConfigTab-Bsj7v9JW.js} +1 -1
- package/dist/react/{CustomPaneTab-xjkYwTvH.js → CustomPaneTab-gzdtDEvz.js} +1 -1
- package/dist/react/{EmailsSection-CSyTg1aX.js → EmailsSection-ndH3cvJk.js} +1 -1
- package/dist/react/{EmailsTab-Dh2YSa_f.js → EmailsTab-DVPHRx0L.js} +44 -22
- package/dist/react/{EventsSection-C1pbJDfW.js → EventsSection-ClIByDSk.js} +1 -1
- package/dist/react/{EventsTab-eCh02cdd.js → EventsTab-CCzWEKrk.js} +1 -1
- package/dist/react/{JobsSection-CLAin5vU.js → JobsSection-CVMyAs7O.js} +1 -1
- package/dist/react/{JobsTab-Dl5nrj2z.js → JobsTab-CATUyb9V.js} +1 -1
- package/dist/react/{LogsSection-C1p81fXO.js → LogsSection-hAsLaKOC.js} +1 -1
- package/dist/react/{LogsTab-D-kR7PjX.js → LogsTab-QouH4NPQ.js} +1 -1
- package/dist/react/{OverviewSection-nm3xdACz.js → OverviewSection-ae5AO2RG.js} +1 -1
- package/dist/react/{QueriesSection-DB12HMfQ.js → QueriesSection-DFFr9Tbb.js} +1 -1
- package/dist/react/{QueriesTab-fyBB1u_Y.js → QueriesTab-GrHRAREt.js} +1 -1
- package/dist/react/{RequestsSection-DTqB81ac.js → RequestsSection-DtwnJOnM.js} +1 -1
- package/dist/react/{RoutesSection-DJWa4NPV.js → RoutesSection-F7nANhF0.js} +1 -1
- package/dist/react/{RoutesTab-D3l8TOpu.js → RoutesTab-rugjhCPH.js} +1 -1
- package/dist/react/{TimelineSection-C4d-jRX1.js → TimelineSection-F5ThmTdy.js} +1 -1
- package/dist/react/{TimelineTab-C5TFaSmQ.js → TimelineTab-Dvpf-I5C.js} +1 -1
- package/dist/react/{index-UdTfSvtO.js → index-DDzo1bZk.js} +2 -2
- package/dist/react/index.js +1 -1
- package/dist/react/style.css +1 -1
- package/dist/src/controller/debug_controller.js +10 -9
- package/dist/src/dashboard/dashboard_store.js +10 -6
- package/dist/src/data/data_access.js +12 -1
- package/dist/src/debug/email_collector.d.ts +11 -1
- package/dist/src/debug/email_collector.js +31 -1
- package/dist/src/debug/types.d.ts +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 +4 -4
- package/dist/src/edge/client-vue/debug-panel-deferred.js +3 -3
- package/dist/src/provider/server_stats_provider.d.ts +31 -0
- package/dist/src/provider/server_stats_provider.js +244 -5
- package/dist/src/routes/register_routes.js +2 -2
- package/dist/src/styles/components.css +3 -0
- package/dist/vue/{CacheSection-C788Yfai.js → CacheSection-DDvJ7bs2.js} +1 -1
- package/dist/vue/{ConfigSection-CRzYxqW2.js → ConfigSection-GTCrvsPr.js} +1 -1
- package/dist/vue/{EmailsSection-C8JFMtW7.js → EmailsSection-Ct5vsLCc.js} +1 -1
- package/dist/vue/EmailsTab-CNyEODVB.js +177 -0
- package/dist/vue/{EventsSection-C4wXUgxG.js → EventsSection-CRVhtagq.js} +1 -1
- package/dist/vue/{JobsSection-CsKWTjgN.js → JobsSection-B_wH2Co7.js} +1 -1
- package/dist/vue/{LogsSection-BFVjSZ24.js → LogsSection-C4NRFOpA.js} +1 -1
- package/dist/vue/{OverviewSection-CbMdAido.js → OverviewSection-BqSwuMKH.js} +1 -1
- package/dist/vue/{QueriesSection-BPiv7u3r.js → QueriesSection-D4Fs0YH6.js} +1 -1
- package/dist/vue/{RequestsSection-LtImH4rD.js → RequestsSection-B0A5SKcM.js} +1 -1
- package/dist/vue/{RoutesSection-CrxOxmzx.js → RoutesSection-Ys5dTzvF.js} +1 -1
- package/dist/vue/{TimelineSection-DLxMW2J_.js → TimelineSection-D38iHB08.js} +1 -1
- package/dist/vue/components/DebugPanel/tabs/EmailsTab.vue.d.ts +2 -0
- package/dist/vue/{index-qCQpBftQ.js → index-Bj6pm5g3.js} +56 -54
- package/dist/vue/index.js +1 -1
- package/dist/vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/vue/EmailsTab-DhFhoNmU.js +0 -157
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { useState as i, useCallback as f } from "react";
|
|
3
3
|
import { formatCacheSize as x, formatTtl as D } from "adonisjs-server-stats/core";
|
|
4
|
-
import { a as S, J as V } from "./index-
|
|
4
|
+
import { a as S, J as V } from "./index-DDzo1bZk.js";
|
|
5
5
|
import { D as F } from "./DataTable-YyShr5B-.js";
|
|
6
6
|
import { F as L } from "./FilterBar-DQRXpWrb.js";
|
|
7
7
|
function H({ options: k = {} }) {
|
|
@@ -2,7 +2,7 @@ import { jsx as s, jsxs as a } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as b, useMemo as z, useCallback as K } from "react";
|
|
3
3
|
import { formatTtl as B, formatCacheSize as L } from "adonisjs-server-stats/core";
|
|
4
4
|
import { u as S } from "./useDashboardApiBase-Bi36pJ2L.js";
|
|
5
|
-
import { u as j, J as A } from "./index-
|
|
5
|
+
import { u as j, J as A } from "./index-DDzo1bZk.js";
|
|
6
6
|
import { u as $ } from "./useResizableTable-CNJmACdt.js";
|
|
7
7
|
function q({ options: d, dashboardPath: y }) {
|
|
8
8
|
const { dashApiBase: u, resolvedOptions: f } = S(y, d), { data: t, isLoading: v, error: g } = j("cache", f), [i, k] = b(""), [r, h] = b(null), [p, o] = b(null), n = z(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { a as i } from "./index-
|
|
2
|
+
import { a as i } from "./index-DDzo1bZk.js";
|
|
3
3
|
import { C as n } from "./ConfigContent-CnsEI4j3.js";
|
|
4
4
|
function m({ options: o = {} }) {
|
|
5
5
|
const { data: a, isLoading: s } = i("config", o);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { u as f } from "./useDashboardApiBase-Bi36pJ2L.js";
|
|
3
|
-
import { u as m } from "./index-
|
|
3
|
+
import { u as m } from "./index-DDzo1bZk.js";
|
|
4
4
|
import { C as d } from "./ConfigContent-CnsEI4j3.js";
|
|
5
5
|
function b({ options: r, dashboardPath: o }) {
|
|
6
6
|
const { resolvedOptions: a } = f(o, r), { data: e, isLoading: t, error: s } = m("config", a);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as o, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { useState as L, useMemo as h } from "react";
|
|
3
3
|
import { compactPreview as x, formatDuration as A, durationSeverity as f, timeAgo as u, formatTime as p } from "adonisjs-server-stats/core";
|
|
4
|
-
import { u as D } from "./index-
|
|
4
|
+
import { u as D } from "./index-DDzo1bZk.js";
|
|
5
5
|
import { u as M } from "./useResizableTable-CNJmACdt.js";
|
|
6
6
|
function E({ pane: r, options: g }) {
|
|
7
7
|
({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as r, jsx as a, Fragment as i } from "react/jsx-runtime";
|
|
2
2
|
import { useState as n, useEffect as N, useCallback as C } from "react";
|
|
3
3
|
import { timeAgo as P, formatTime as A } from "adonisjs-server-stats/core";
|
|
4
|
-
import { a as T } from "./index-
|
|
4
|
+
import { a as T } from "./index-DDzo1bZk.js";
|
|
5
5
|
import { D as j } from "./DataTable-YyShr5B-.js";
|
|
6
6
|
import { F as $ } from "./FilterBar-DQRXpWrb.js";
|
|
7
7
|
import { P as F } from "./Pagination-BkmzUDY8.js";
|
|
@@ -1,25 +1,47 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { timeAgo as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
function
|
|
7
|
-
const { data:
|
|
8
|
-
const s =
|
|
2
|
+
import { useState as n, useMemo as f, useCallback as v } from "react";
|
|
3
|
+
import { timeAgo as k, formatTime as S } from "adonisjs-server-stats/core";
|
|
4
|
+
import { u as A } from "./index-DDzo1bZk.js";
|
|
5
|
+
import { u as P } from "./useResizableTable-CNJmACdt.js";
|
|
6
|
+
function M({ options: i }) {
|
|
7
|
+
const { data: o, isLoading: N, error: u } = A("emails", i), [c, y] = n(""), [g, b] = n(null), [p, h] = n(null), [x, m] = n(!1), r = f(() => {
|
|
8
|
+
const s = o?.emails || [];
|
|
9
9
|
if (!c) return s;
|
|
10
10
|
const l = c.toLowerCase();
|
|
11
11
|
return s.filter(
|
|
12
12
|
(a) => (a.subject || "").toLowerCase().includes(l) || (a.to || "").toLowerCase().includes(l) || (a.from || "").toLowerCase().includes(l) || (a.mailer || "").toLowerCase().includes(l)
|
|
13
13
|
);
|
|
14
|
-
}, [
|
|
14
|
+
}, [o, c]), d = f(() => r.find((s) => s.id === g), [r, g]), C = v(
|
|
15
|
+
async (s) => {
|
|
16
|
+
if (b(s.id), h(s.html || null), !s.html && s.id) {
|
|
17
|
+
m(!0);
|
|
18
|
+
try {
|
|
19
|
+
const l = i?.debugEndpoint || "/admin/api/debug", a = {};
|
|
20
|
+
i?.authToken && (a.Authorization = `Bearer ${i.authToken}`);
|
|
21
|
+
const w = await fetch(`${l}/emails/${s.id}/preview`, {
|
|
22
|
+
headers: a,
|
|
23
|
+
credentials: i?.authToken ? "omit" : "include"
|
|
24
|
+
});
|
|
25
|
+
w.ok && h(await w.text());
|
|
26
|
+
} catch {
|
|
27
|
+
} finally {
|
|
28
|
+
m(!1);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
[i]
|
|
33
|
+
), L = v(() => {
|
|
34
|
+
b(null), h(null), m(!1);
|
|
35
|
+
}, []), T = {
|
|
15
36
|
sent: "ss-dbg-email-status-sent",
|
|
16
37
|
sending: "ss-dbg-email-status-sending",
|
|
38
|
+
queueing: "ss-dbg-email-status-queued",
|
|
17
39
|
queued: "ss-dbg-email-status-queued",
|
|
18
40
|
failed: "ss-dbg-email-status-failed"
|
|
19
|
-
},
|
|
20
|
-
return
|
|
41
|
+
}, j = P([r]);
|
|
42
|
+
return N && !o ? /* @__PURE__ */ e("div", { className: "ss-dbg-empty", children: "Loading emails..." }) : u ? /* @__PURE__ */ t("div", { className: "ss-dbg-empty", children: [
|
|
21
43
|
"Error: ",
|
|
22
|
-
|
|
44
|
+
u.message
|
|
23
45
|
] }) : d ? /* @__PURE__ */ t("div", { className: "ss-dbg-email-preview", children: [
|
|
24
46
|
/* @__PURE__ */ t("div", { className: "ss-dbg-email-preview-header", children: [
|
|
25
47
|
/* @__PURE__ */ t("div", { className: "ss-dbg-email-preview-meta", children: [
|
|
@@ -44,13 +66,13 @@ function k({ options: b }) {
|
|
|
44
66
|
d.cc
|
|
45
67
|
] })
|
|
46
68
|
] }),
|
|
47
|
-
/* @__PURE__ */ e("button", { className: "ss-dbg-btn-clear", onClick:
|
|
69
|
+
/* @__PURE__ */ e("button", { className: "ss-dbg-btn-clear", onClick: L, type: "button", children: "×" })
|
|
48
70
|
] }),
|
|
49
|
-
|
|
71
|
+
x ? /* @__PURE__ */ e("div", { className: "ss-dbg-empty", children: "Loading preview..." }) : p ? /* @__PURE__ */ e(
|
|
50
72
|
"iframe",
|
|
51
73
|
{
|
|
52
74
|
className: "ss-dbg-email-iframe",
|
|
53
|
-
srcDoc:
|
|
75
|
+
srcDoc: p,
|
|
54
76
|
title: "Email preview",
|
|
55
77
|
sandbox: ""
|
|
56
78
|
}
|
|
@@ -64,7 +86,7 @@ function k({ options: b }) {
|
|
|
64
86
|
className: "ss-dbg-search",
|
|
65
87
|
placeholder: "Filter emails...",
|
|
66
88
|
value: c,
|
|
67
|
-
onChange: (s) =>
|
|
89
|
+
onChange: (s) => y(s.target.value)
|
|
68
90
|
}
|
|
69
91
|
),
|
|
70
92
|
/* @__PURE__ */ t("span", { className: "ss-dbg-summary", children: [
|
|
@@ -72,7 +94,7 @@ function k({ options: b }) {
|
|
|
72
94
|
" emails"
|
|
73
95
|
] })
|
|
74
96
|
] }),
|
|
75
|
-
r.length === 0 ? /* @__PURE__ */ e("div", { className: "ss-dbg-empty", children: "No emails captured" }) : /* @__PURE__ */ t("table", { ref:
|
|
97
|
+
r.length === 0 ? /* @__PURE__ */ e("div", { className: "ss-dbg-empty", children: "No emails captured" }) : /* @__PURE__ */ t("table", { ref: j, className: "ss-dbg-table", children: [
|
|
76
98
|
/* @__PURE__ */ t("colgroup", { children: [
|
|
77
99
|
/* @__PURE__ */ e("col", { style: { width: "50px" } }),
|
|
78
100
|
/* @__PURE__ */ e("col", { style: { width: "140px" } }),
|
|
@@ -97,23 +119,23 @@ function k({ options: b }) {
|
|
|
97
119
|
"tr",
|
|
98
120
|
{
|
|
99
121
|
className: "ss-dbg-email-row",
|
|
100
|
-
onClick: () =>
|
|
122
|
+
onClick: () => C(s),
|
|
101
123
|
children: [
|
|
102
124
|
/* @__PURE__ */ e("td", { className: "ss-dbg-c-dim", style: { whiteSpace: "nowrap" }, children: s.id }),
|
|
103
125
|
/* @__PURE__ */ e("td", { className: "ss-dbg-c-secondary", title: s.from, children: s.from }),
|
|
104
126
|
/* @__PURE__ */ e("td", { className: "ss-dbg-c-secondary", title: s.to, children: s.to }),
|
|
105
127
|
/* @__PURE__ */ e("td", { className: "ss-dbg-c-sql", children: s.subject }),
|
|
106
|
-
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("span", { className: `ss-dbg-email-status ${
|
|
128
|
+
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("span", { className: `ss-dbg-email-status ${T[s.status] || ""}`, children: s.status }) }),
|
|
107
129
|
/* @__PURE__ */ e("td", { className: "ss-dbg-c-muted", children: s.mailer }),
|
|
108
130
|
/* @__PURE__ */ e("td", { className: "ss-dbg-c-dim", style: { textAlign: "center" }, children: s.attachmentCount > 0 ? s.attachmentCount : "-" }),
|
|
109
131
|
/* @__PURE__ */ e(
|
|
110
132
|
"td",
|
|
111
133
|
{
|
|
112
134
|
className: "ss-dbg-event-time",
|
|
113
|
-
title:
|
|
135
|
+
title: S(
|
|
114
136
|
s.timestamp || s.created_at || s.createdAt
|
|
115
137
|
),
|
|
116
|
-
children:
|
|
138
|
+
children: k(
|
|
117
139
|
s.timestamp || s.created_at || s.createdAt
|
|
118
140
|
)
|
|
119
141
|
}
|
|
@@ -126,6 +148,6 @@ function k({ options: b }) {
|
|
|
126
148
|
] });
|
|
127
149
|
}
|
|
128
150
|
export {
|
|
129
|
-
|
|
130
|
-
|
|
151
|
+
M as EmailsTab,
|
|
152
|
+
M as default
|
|
131
153
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as o, jsx as e, Fragment as g } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d, useEffect as f } from "react";
|
|
3
3
|
import { timeAgo as y, formatTime as u } from "adonisjs-server-stats/core";
|
|
4
|
-
import { a as b, J as N } from "./index-
|
|
4
|
+
import { a as b, J as N } from "./index-DDzo1bZk.js";
|
|
5
5
|
import { D as x } from "./DataTable-YyShr5B-.js";
|
|
6
6
|
import { F as P } from "./FilterBar-DQRXpWrb.js";
|
|
7
7
|
import { P as k } from "./Pagination-BkmzUDY8.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as g, useMemo as u } from "react";
|
|
3
3
|
import { timeAgo as b, formatTime as p } from "adonisjs-server-stats/core";
|
|
4
|
-
import { u as v, J as f } from "./index-
|
|
4
|
+
import { u as v, J as f } from "./index-DDzo1bZk.js";
|
|
5
5
|
import { u as N } from "./useResizableTable-CNJmACdt.js";
|
|
6
6
|
function T({ options: c }) {
|
|
7
7
|
const { data: n, isLoading: o, error: i } = v("events", c), [r, m] = g(""), d = u(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as l, jsx as a, Fragment as C } from "react/jsx-runtime";
|
|
2
2
|
import { useState as c, useCallback as D } from "react";
|
|
3
3
|
import { extractJobs as F, extractJobStats as J, JOB_STATUS_FILTERS as T, getJobStatusBadgeColor as A, formatDuration as B, timeAgo as _, formatTime as L } from "adonisjs-server-stats/core";
|
|
4
|
-
import { a as R, B as $, J as M } from "./index-
|
|
4
|
+
import { a as R, B as $, J as M } from "./index-DDzo1bZk.js";
|
|
5
5
|
import { D as O } from "./DataTable-YyShr5B-.js";
|
|
6
6
|
import { F as U } from "./FilterBar-DQRXpWrb.js";
|
|
7
7
|
import { P as E } from "./Pagination-BkmzUDY8.js";
|
|
@@ -2,7 +2,7 @@ import { jsx as s, jsxs as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as u, useMemo as T, useCallback as S } from "react";
|
|
3
3
|
import { extractJobs as j, extractJobStats as D, JOB_STATUS_FILTERS as J, getJobStatusCssClass as C, formatDuration as R, timeAgo as $, formatTime as B } from "adonisjs-server-stats/core";
|
|
4
4
|
import { u as k } from "./useDashboardApiBase-Bi36pJ2L.js";
|
|
5
|
-
import { u as F, J as L } from "./index-
|
|
5
|
+
import { u as F, J as L } from "./index-DDzo1bZk.js";
|
|
6
6
|
import { u as P } from "./useResizableTable-CNJmACdt.js";
|
|
7
7
|
function U({ options: i, dashboardPath: p }) {
|
|
8
8
|
const { dashApiBase: c, resolvedOptions: N } = k(p, i), { data: d, isLoading: y, error: m } = F("jobs", N), [r, f] = u("all"), [h, b] = u(null), n = T(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as l, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { useState as a, useCallback as c } from "react";
|
|
3
3
|
import { LOG_LEVELS as B, resolveLogLevel as G, resolveLogMessage as M, resolveLogRequestId as U, resolveLogTimestamp as z, getLogLevelCssClass as H, timeAgo as J, formatTime as Q } from "adonisjs-server-stats/core";
|
|
4
|
-
import { a as W } from "./index-
|
|
4
|
+
import { a as W } from "./index-DDzo1bZk.js";
|
|
5
5
|
import { F as X } from "./FilterBar-DQRXpWrb.js";
|
|
6
6
|
import { P as Y } from "./Pagination-BkmzUDY8.js";
|
|
7
7
|
function re({ options: E = {} }) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import { useState as m, useMemo as x, useCallback as k } from "react";
|
|
3
3
|
import { filterLogsByLevel as w, resolveLogRequestId as v, resolveLogMessage as f, LOG_LEVELS as F, resolveLogLevel as I, resolveLogTimestamp as E, getLogLevelCssClass as A, timeAgo as D, formatTime as R } from "adonisjs-server-stats/core";
|
|
4
|
-
import { u as S } from "./index-
|
|
4
|
+
import { u as S } from "./index-DDzo1bZk.js";
|
|
5
5
|
function B({ options: L }) {
|
|
6
6
|
const { data: l, isLoading: y, error: u } = S("logs", L), [d, N] = m("all"), [n, C] = m(""), [o, b] = m(""), g = x(() => {
|
|
7
7
|
let e = Array.isArray(l) ? l : l?.logs || l?.entries || [];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s, jsxs as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as E, useRef as X, useEffect as P, useCallback as z } from "react";
|
|
3
3
|
import { formatDuration as $, timeAgo as ss, formatTime as es, durationSeverity as as } from "adonisjs-server-stats/core";
|
|
4
|
-
import { a as B, S } from "./index-
|
|
4
|
+
import { a as B, S } from "./index-DDzo1bZk.js";
|
|
5
5
|
const ls = [
|
|
6
6
|
{ value: "5m", label: "5m" },
|
|
7
7
|
{ value: "15m", label: "15m" },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t, jsxs as r, Fragment as b } from "react/jsx-runtime";
|
|
2
2
|
import { useState as y, useCallback as $, useEffect as V, useMemo as P } from "react";
|
|
3
3
|
import { durationSeverity as _, timeAgo as B, formatTime as G, SLOW_DURATION_MS as X } from "adonisjs-server-stats/core";
|
|
4
|
-
import { a as Y } from "./index-
|
|
4
|
+
import { a as Y } from "./index-DDzo1bZk.js";
|
|
5
5
|
import { D as I } from "./DataTable-YyShr5B-.js";
|
|
6
6
|
import { F as Z } from "./FilterBar-DQRXpWrb.js";
|
|
7
7
|
import { P as ee } from "./Pagination-BkmzUDY8.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as m, useMemo as i, useCallback as v } from "react";
|
|
3
3
|
import { filterQueries as C, countDuplicateQueries as D, computeQuerySummary as S, formatDuration as p, durationSeverity as g, timeAgo as Q, formatTime as T } from "adonisjs-server-stats/core";
|
|
4
|
-
import { u as $ } from "./index-
|
|
4
|
+
import { u as $ } from "./index-DDzo1bZk.js";
|
|
5
5
|
import { u as E } from "./useResizableTable-CNJmACdt.js";
|
|
6
6
|
function R({ options: b }) {
|
|
7
7
|
const { data: n, isLoading: y, error: u } = $("queries", b), [o, N] = m(""), [w, x] = m(null), d = i(() => n?.queries || [], [n]), a = i(() => C(d, o), [d, o]), l = i(() => D(d), [d]), r = i(
|
|
@@ -2,7 +2,7 @@ import { jsxs as r, jsx as t, Fragment as L } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as n, useEffect as P, useCallback as v } from "react";
|
|
3
3
|
import { normalizeTraceFields as R, durationSeverity as y, timeAgo as B, formatTime as M } from "adonisjs-server-stats/core";
|
|
4
4
|
import { u as $ } from "./useApiClient-BVtNCmnL.js";
|
|
5
|
-
import { a as E, M as C, b as x } from "./index-
|
|
5
|
+
import { a as E, M as C, b as x } from "./index-DDzo1bZk.js";
|
|
6
6
|
import { D as j } from "./DataTable-YyShr5B-.js";
|
|
7
7
|
import { F as z } from "./FilterBar-DQRXpWrb.js";
|
|
8
8
|
import { P as U } from "./Pagination-BkmzUDY8.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as m, jsx as r, Fragment as p } from "react/jsx-runtime";
|
|
2
2
|
import { useState as y } from "react";
|
|
3
|
-
import { a as u, M as f } from "./index-
|
|
3
|
+
import { a as u, M as f } from "./index-DDzo1bZk.js";
|
|
4
4
|
import { D as w } from "./DataTable-YyShr5B-.js";
|
|
5
5
|
import { F as b } from "./FilterBar-DQRXpWrb.js";
|
|
6
6
|
function A({ options: n = {} }) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as u, useMemo as p } from "react";
|
|
3
|
-
import { u as b } from "./index-
|
|
3
|
+
import { u as b } from "./index-DDzo1bZk.js";
|
|
4
4
|
import { u as w } from "./useResizableTable-CNJmACdt.js";
|
|
5
5
|
function C({ options: o, currentPath: n }) {
|
|
6
6
|
const { data: c, isLoading: h, error: i } = b("routes", o), [r, m] = u(""), l = p(() => {
|
|
@@ -2,7 +2,7 @@ import { jsx as a, jsxs as t, Fragment as T } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as n, useEffect as B, useCallback as L } from "react";
|
|
3
3
|
import { normalizeTraceFields as P, durationSeverity as f, timeAgo as A, formatTime as E } from "adonisjs-server-stats/core";
|
|
4
4
|
import { u as M } from "./useApiClient-BVtNCmnL.js";
|
|
5
|
-
import { a as $, M as g, b } from "./index-
|
|
5
|
+
import { a as $, M as g, b } from "./index-DDzo1bZk.js";
|
|
6
6
|
import { D as j } from "./DataTable-YyShr5B-.js";
|
|
7
7
|
import { F as z } from "./FilterBar-DQRXpWrb.js";
|
|
8
8
|
import { P as I } from "./Pagination-BkmzUDY8.js";
|
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as r, useMemo as B, useEffect as I, useCallback as C } from "react";
|
|
3
3
|
import { formatDuration as u, durationSeverity as D, timeAgo as O, formatTime as j } from "adonisjs-server-stats/core";
|
|
4
4
|
import { u as F } from "./useApiClient-BVtNCmnL.js";
|
|
5
|
-
import { u as U } from "./index-
|
|
5
|
+
import { u as U } from "./index-DDzo1bZk.js";
|
|
6
6
|
import { u as _ } from "./useResizableTable-CNJmACdt.js";
|
|
7
7
|
const L = {
|
|
8
8
|
request: "#1e3a5f",
|
|
@@ -435,7 +435,7 @@ function J({
|
|
|
435
435
|
}
|
|
436
436
|
);
|
|
437
437
|
}
|
|
438
|
-
const ge = T(() => import("./QueriesTab-
|
|
438
|
+
const ge = T(() => import("./QueriesTab-GrHRAREt.js")), ve = T(() => import("./EventsTab-CCzWEKrk.js")), fe = T(() => import("./EmailsTab-DVPHRx0L.js")), we = T(() => import("./RoutesTab-rugjhCPH.js")), ke = T(() => import("./LogsTab-QouH4NPQ.js")), Ne = T(() => import("./TimelineTab-Dvpf-I5C.js")), ye = T(() => import("./CacheTab-F1MkWSZl.js")), Ce = T(() => import("./JobsTab-CATUyb9V.js")), Se = T(() => import("./ConfigTab-Bsj7v9JW.js")), Le = T(() => import("./InternalsTab-Oij0A2fN.js")), Te = T(() => import("./CustomPaneTab-gzdtDEvz.js"));
|
|
439
439
|
function Je(s) {
|
|
440
440
|
const {
|
|
441
441
|
defaultOpen: i = !1,
|
|
@@ -673,7 +673,7 @@ const $e = [
|
|
|
673
673
|
"jobs",
|
|
674
674
|
"config",
|
|
675
675
|
"internals"
|
|
676
|
-
], xe = T(() => import("./OverviewSection-
|
|
676
|
+
], xe = T(() => import("./OverviewSection-ae5AO2RG.js")), Ie = T(() => import("./RequestsSection-DtwnJOnM.js")), Be = T(() => import("./QueriesSection-DFFr9Tbb.js")), Me = T(() => import("./EventsSection-ClIByDSk.js")), Re = T(() => import("./RoutesSection-F7nANhF0.js")), Oe = T(() => import("./LogsSection-hAsLaKOC.js")), _e = T(() => import("./EmailsSection-ndH3cvJk.js")), De = T(() => import("./TimelineSection-F5ThmTdy.js")), je = T(() => import("./CacheSection-D5J5moz7.js")), He = T(() => import("./JobsSection-CVMyAs7O.js")), Pe = T(() => import("./ConfigSection-DerLBu4o.js")), qe = T(() => import("./InternalsSection-t7ihcWO-.js"));
|
|
677
677
|
function W(s) {
|
|
678
678
|
return s === "timeline" ? "dashboard-timeline" : s;
|
|
679
679
|
}
|
package/dist/react/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as s, D as t, c as r, J as u, M as g, d as o, d, b as D, T as h, e as B, a as S, u as b, f as T, g as l, h as m } from "./index-
|
|
1
|
+
import { B as s, D as t, c as r, J as u, M as g, d as o, d, b as D, T as h, e as B, a as S, u as b, f as T, g as l, h as m } from "./index-DDzo1bZk.js";
|
|
2
2
|
export {
|
|
3
3
|
s as Badge,
|
|
4
4
|
t as DashboardPage,
|