adonisjs-server-stats 1.6.14 → 1.9.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/core/log-utils.d.ts +14 -0
- package/dist/react/{CacheSection-DGxMDlWK.js → CacheSection-xH75hwXu.js} +1 -1
- package/dist/react/{CacheTab-CnVW5PLs.js → CacheTab-DYmsZJJ1.js} +1 -1
- package/dist/react/{ConfigSection-DPcrfqXY.js → ConfigSection-D8BO1Ry9.js} +1 -1
- package/dist/react/{ConfigTab-BSWq_o2p.js → ConfigTab-CcN-tfjv.js} +1 -1
- package/dist/react/{CustomPaneTab-xjkYwTvH.js → CustomPaneTab-D7_o3Ec6.js} +1 -1
- package/dist/react/{EmailsSection-CSyTg1aX.js → EmailsSection-BzlsTdPs.js} +1 -1
- package/dist/react/{EmailsTab-Dh2YSa_f.js → EmailsTab-Uh2CQY3o.js} +44 -22
- package/dist/react/{EventsSection-C1pbJDfW.js → EventsSection-CGQWiIdV.js} +1 -1
- package/dist/react/{EventsTab-eCh02cdd.js → EventsTab-CC6DQzEm.js} +1 -1
- package/dist/react/{JobsSection-CLAin5vU.js → JobsSection-D7AHQmZi.js} +1 -1
- package/dist/react/{JobsTab-Dl5nrj2z.js → JobsTab-B3Lfdqed.js} +1 -1
- package/dist/react/LogsSection-Cly1dpvS.js +227 -0
- package/dist/react/LogsTab-BbYK-iyh.js +103 -0
- package/dist/react/{OverviewSection-nm3xdACz.js → OverviewSection-CkBGFEWq.js} +1 -1
- package/dist/react/{QueriesSection-DB12HMfQ.js → QueriesSection-CfCpnNUD.js} +1 -1
- package/dist/react/{QueriesTab-fyBB1u_Y.js → QueriesTab-DbBmAqzO.js} +1 -1
- package/dist/react/{RequestsSection-DTqB81ac.js → RequestsSection-Cb5a6MlT.js} +1 -1
- package/dist/react/{RoutesSection-DJWa4NPV.js → RoutesSection-CRqF-cNM.js} +1 -1
- package/dist/react/{RoutesTab-D3l8TOpu.js → RoutesTab-Bwreij3e.js} +1 -1
- package/dist/react/{TimelineSection-C4d-jRX1.js → TimelineSection-B2y06kRE.js} +1 -1
- package/dist/react/{TimelineTab-C5TFaSmQ.js → TimelineTab-6hthfdBB.js} +1 -1
- package/dist/react/{index-UdTfSvtO.js → index-CecA4IdQ.js} +394 -393
- package/dist/react/index.js +1 -1
- package/dist/react/react/components/shared/JsonViewer.d.ts +2 -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 +84 -0
- package/dist/vue/{CacheSection-C788Yfai.js → CacheSection-Cx-hj09X.js} +2 -2
- package/dist/vue/{ConfigSection-CRzYxqW2.js → ConfigSection-CMXyryf6.js} +1 -1
- package/dist/vue/{EmailsSection-C8JFMtW7.js → EmailsSection-DgKl9xGT.js} +1 -1
- package/dist/vue/EmailsTab-CNyEODVB.js +177 -0
- package/dist/vue/{EventsSection-C4wXUgxG.js → EventsSection-BNMCAim1.js} +2 -2
- package/dist/vue/{EventsTab-DQ4Nd6AK.js → EventsTab-BBM7olXF.js} +1 -1
- package/dist/vue/{JobsSection-CsKWTjgN.js → JobsSection-CCMgMlxd.js} +2 -2
- package/dist/vue/{JobsTab-BCvhOARO.js → JobsTab-WFnxPdN7.js} +1 -1
- package/dist/vue/{JsonViewer.vue_vue_type_script_setup_true_lang-Vsqar1zx.js → JsonViewer.vue_vue_type_script_setup_true_lang-Bid05zpm.js} +25 -23
- package/dist/vue/LogsSection-CvOnTxUu.js +252 -0
- package/dist/vue/LogsTab-Bg3o0Mm6.js +147 -0
- package/dist/vue/{OverviewSection-CbMdAido.js → OverviewSection-CHgaKtUR.js} +1 -1
- package/dist/vue/{QueriesSection-BPiv7u3r.js → QueriesSection-BnHRD98z.js} +1 -1
- package/dist/vue/{RequestsSection-LtImH4rD.js → RequestsSection-B-uSlM0f.js} +1 -1
- package/dist/vue/{RoutesSection-CrxOxmzx.js → RoutesSection-BrceOcKQ.js} +1 -1
- package/dist/vue/{TimelineSection-DLxMW2J_.js → TimelineSection-CfvnA2Oo.js} +1 -1
- package/dist/vue/components/DebugPanel/tabs/EmailsTab.vue.d.ts +2 -0
- package/dist/vue/components/shared/JsonViewer.vue.d.ts +3 -0
- package/dist/vue/{index-qCQpBftQ.js → index-oLxS08vN.js} +56 -54
- package/dist/vue/index.js +1 -1
- package/dist/vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/react/LogsSection-C1p81fXO.js +0 -212
- package/dist/react/LogsTab-D-kR7PjX.js +0 -88
- package/dist/vue/EmailsTab-DhFhoNmU.js +0 -157
- package/dist/vue/LogsSection-BFVjSZ24.js +0 -227
- package/dist/vue/LogsTab-DpEQ7euu.js +0 -122
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as v, reactive as oe, computed as m, onMounted as X, onUnmounted as te, defineComponent as se, openBlock as t, createElementBlock as o, normalizeStyle as pe, Fragment as W, createElementVNode as l, watch as ee, nextTick as ke, onBeforeUnmount as de, normalizeClass as z, toDisplayString as M, createCommentVNode as E, createBlock as V, Teleport as ye, withModifiers as we, unref as s, createVNode as ue, renderList as ae, defineAsyncComponent as $, createTextVNode as Te, provide as ne, Suspense as
|
|
1
|
+
import { ref as v, reactive as oe, computed as m, onMounted as X, onUnmounted as te, defineComponent as se, openBlock as t, createElementBlock as o, normalizeStyle as pe, Fragment as W, createElementVNode as l, watch as ee, nextTick as ke, onBeforeUnmount as de, normalizeClass as z, toDisplayString as M, createCommentVNode as E, createBlock as V, Teleport as ye, withModifiers as we, unref as s, createVNode as ue, renderList as ae, defineAsyncComponent as $, createTextVNode as Te, provide as ne, Suspense as Ce, withCtx as he, resolveDynamicComponent as _e } from "vue";
|
|
2
2
|
import { ServerStatsController as Ee, DEFAULT_FEATURES as Se, detectFeatures as xe, getTheme as ve, onThemeChange as $e, toggleTheme as Le, buildSparklineData as Be, computeStats as Me, formatStatNum as re, detectMetricGroupsFromStats as Pe, getVisibleMetricGroups as Ue, getMetricsByGroup as Re, TAB_ICONS as j, DebugDataController as fe, DashboardDataController as De, UnauthorizedError as je, subscribeToChannel as He } from "adonisjs-server-stats/core";
|
|
3
3
|
function Ae(e = {}) {
|
|
4
4
|
const {
|
|
@@ -7,18 +7,18 @@ function Ae(e = {}) {
|
|
|
7
7
|
channelName: S = "admin/server-stats",
|
|
8
8
|
authToken: i,
|
|
9
9
|
pollInterval: f = 3e3
|
|
10
|
-
} = e,
|
|
10
|
+
} = e, C = v(null), k = oe({}), x = v(!1), P = v(!1), U = v(null), _ = v(!1), h = v(!1), b = v(!1);
|
|
11
11
|
let u = null;
|
|
12
|
-
const r = m(() =>
|
|
12
|
+
const r = m(() => _.value ? "disconnected" : h.value ? "live" : b.value ? "polling" : "disconnected");
|
|
13
13
|
return X(() => {
|
|
14
|
-
|
|
14
|
+
_.value || (u = new Ee({
|
|
15
15
|
baseUrl: T,
|
|
16
16
|
endpoint: a,
|
|
17
17
|
channelName: S,
|
|
18
18
|
authToken: i,
|
|
19
19
|
pollInterval: f,
|
|
20
20
|
onStatsUpdate: (p) => {
|
|
21
|
-
|
|
21
|
+
C.value = p;
|
|
22
22
|
},
|
|
23
23
|
onConnectionChange: (p) => {
|
|
24
24
|
x.value = p;
|
|
@@ -30,7 +30,7 @@ function Ae(e = {}) {
|
|
|
30
30
|
U.value = p;
|
|
31
31
|
},
|
|
32
32
|
onUnauthorizedChange: (p) => {
|
|
33
|
-
|
|
33
|
+
_.value = p;
|
|
34
34
|
},
|
|
35
35
|
onHistoryChange: (p) => {
|
|
36
36
|
for (const y of Object.keys(p))
|
|
@@ -46,11 +46,11 @@ function Ae(e = {}) {
|
|
|
46
46
|
}), te(() => {
|
|
47
47
|
u?.stop(), u = null;
|
|
48
48
|
}), {
|
|
49
|
-
stats:
|
|
49
|
+
stats: C,
|
|
50
50
|
history: k,
|
|
51
51
|
isConnected: x,
|
|
52
52
|
isStale: P,
|
|
53
|
-
isUnauthorized:
|
|
53
|
+
isUnauthorized: _,
|
|
54
54
|
error: U,
|
|
55
55
|
connectionMode: r
|
|
56
56
|
};
|
|
@@ -99,7 +99,7 @@ const Ie = ["width", "height", "viewBox"], qe = ["id"], Oe = ["stop-color"], ze
|
|
|
99
99
|
color: T.color
|
|
100
100
|
})
|
|
101
101
|
), S = m(() => a.value !== null), i = m(() => `sg-${T.color.replace("#", "")}`);
|
|
102
|
-
return (f,
|
|
102
|
+
return (f, C) => (t(), o("div", {
|
|
103
103
|
class: "ss-dash-sparkline",
|
|
104
104
|
style: pe({ "--ss-accent": e.color })
|
|
105
105
|
}, [
|
|
@@ -181,7 +181,7 @@ const Ie = ["width", "height", "viewBox"], qe = ["id"], Oe = ["stop-color"], ze
|
|
|
181
181
|
},
|
|
182
182
|
emits: ["pin"],
|
|
183
183
|
setup(e, { emit: T }) {
|
|
184
|
-
const a = e, S = T, i = v(!1), f = v(!1),
|
|
184
|
+
const a = e, S = T, i = v(!1), f = v(!1), C = v(null), k = v(null), x = v(null), P = v({
|
|
185
185
|
position: "absolute",
|
|
186
186
|
bottom: "100%",
|
|
187
187
|
left: "0",
|
|
@@ -189,10 +189,10 @@ const Ie = ["width", "height", "viewBox"], qe = ["id"], Oe = ["stop-color"], ze
|
|
|
189
189
|
zIndex: "180"
|
|
190
190
|
});
|
|
191
191
|
X(() => {
|
|
192
|
-
|
|
192
|
+
C.value && (x.value = C.value.closest(".ss-bar"));
|
|
193
193
|
});
|
|
194
194
|
function U() {
|
|
195
|
-
const L =
|
|
195
|
+
const L = C.value, F = k.value, Z = x.value;
|
|
196
196
|
if (!L || !F || !Z) return;
|
|
197
197
|
const K = L.getBoundingClientRect(), G = Z.getBoundingClientRect(), J = K.left - G.left + K.width / 2;
|
|
198
198
|
P.value = {
|
|
@@ -212,19 +212,19 @@ const Ie = ["width", "height", "viewBox"], qe = ["id"], Oe = ["stop-color"], ze
|
|
|
212
212
|
});
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
|
-
const
|
|
216
|
-
ee(
|
|
215
|
+
const _ = m(() => i.value || f.value);
|
|
216
|
+
ee(_, (L) => {
|
|
217
217
|
L && ke(U);
|
|
218
218
|
});
|
|
219
219
|
let h = null;
|
|
220
220
|
function b() {
|
|
221
|
-
|
|
221
|
+
_.value && U();
|
|
222
222
|
}
|
|
223
223
|
function u() {
|
|
224
|
-
|
|
224
|
+
_.value && U();
|
|
225
225
|
}
|
|
226
226
|
X(() => {
|
|
227
|
-
h =
|
|
227
|
+
h = C.value?.closest(".ss-bar-scroll") ?? null, h?.addEventListener("scroll", b), window.addEventListener("resize", u);
|
|
228
228
|
}), de(() => {
|
|
229
229
|
h?.removeEventListener("scroll", b), window.removeEventListener("resize", u);
|
|
230
230
|
});
|
|
@@ -251,7 +251,7 @@ const Ie = ["width", "height", "viewBox"], qe = ["id"], Oe = ["stop-color"], ze
|
|
|
251
251
|
}
|
|
252
252
|
function N(L) {
|
|
253
253
|
const F = L.target;
|
|
254
|
-
|
|
254
|
+
C.value && !C.value.contains(F) && k.value && !k.value.contains(F) && (f.value = !1);
|
|
255
255
|
}
|
|
256
256
|
function Q(L) {
|
|
257
257
|
L.key === "Escape" && (f.value = !1);
|
|
@@ -264,7 +264,7 @@ const Ie = ["width", "height", "viewBox"], qe = ["id"], Oe = ["stop-color"], ze
|
|
|
264
264
|
y.value ? (t(), o("div", {
|
|
265
265
|
key: 0,
|
|
266
266
|
ref_key: "badgeRef",
|
|
267
|
-
ref:
|
|
267
|
+
ref: C,
|
|
268
268
|
id: `ss-b-${e.metric.id}`,
|
|
269
269
|
class: z(["ss-badge", { "ss-pinned": f.value }]),
|
|
270
270
|
role: "button",
|
|
@@ -279,7 +279,7 @@ const Ie = ["width", "height", "viewBox"], qe = ["id"], Oe = ["stop-color"], ze
|
|
|
279
279
|
class: z(["ss-value", `ss-${p.value}`])
|
|
280
280
|
}, M(r.value), 3)
|
|
281
281
|
], 42, Qe)) : E("", !0),
|
|
282
|
-
|
|
282
|
+
_.value && x.value ? (t(), V(ye, {
|
|
283
283
|
key: 1,
|
|
284
284
|
to: x.value
|
|
285
285
|
}, [
|
|
@@ -350,7 +350,7 @@ const Ie = ["width", "height", "viewBox"], qe = ["id"], Oe = ["stop-color"], ze
|
|
|
350
350
|
},
|
|
351
351
|
emits: ["openDebugPanel", "connectionChange"],
|
|
352
352
|
setup(e, { emit: T }) {
|
|
353
|
-
const a = e, S = T, { stats: i, history: f, isStale:
|
|
353
|
+
const a = e, S = T, { stats: i, history: f, isStale: C, isUnauthorized: k, isConnected: x, connectionMode: P } = Ae({
|
|
354
354
|
baseUrl: a.baseUrl,
|
|
355
355
|
endpoint: a.endpoint,
|
|
356
356
|
channelName: a.channelName,
|
|
@@ -364,7 +364,7 @@ const Ie = ["width", "height", "viewBox"], qe = ["id"], Oe = ["stop-color"], ze
|
|
|
364
364
|
baseUrl: a.baseUrl,
|
|
365
365
|
debugEndpoint: a.debugEndpoint,
|
|
366
366
|
authToken: a.authToken
|
|
367
|
-
}), { theme:
|
|
367
|
+
}), { theme: _ } = le(), h = v(!0), b = v(null);
|
|
368
368
|
X(() => {
|
|
369
369
|
h.value = localStorage.getItem(be) !== "hidden";
|
|
370
370
|
const g = b.value;
|
|
@@ -391,7 +391,7 @@ const Ie = ["width", "height", "viewBox"], qe = ["id"], Oe = ["stop-color"], ze
|
|
|
391
391
|
function y(g) {
|
|
392
392
|
return g ? f[g] || [] : [];
|
|
393
393
|
}
|
|
394
|
-
const R = m(() => i.value ? `${i.value.cpuPercent.toFixed(0)}%` : "..."), q = m(() => i.value ? i.value.memHeapUsed !== void 0 ? Math.round(i.value.memHeapUsed / (1024 * 1024)) + "M" : "-" : "..."), D = m(() => i.value ? i.value.redisOk ? "✓" : "✗" : "..."), c = m(() =>
|
|
394
|
+
const R = m(() => i.value ? `${i.value.cpuPercent.toFixed(0)}%` : "..."), q = m(() => i.value ? i.value.memHeapUsed !== void 0 ? Math.round(i.value.memHeapUsed / (1024 * 1024)) + "M" : "-" : "..."), D = m(() => i.value ? i.value.redisOk ? "✓" : "✗" : "..."), c = m(() => _.value);
|
|
395
395
|
return (g, O) => (t(), o(W, null, [
|
|
396
396
|
s(k) ? E("", !0) : (t(), o("div", {
|
|
397
397
|
key: 0,
|
|
@@ -421,7 +421,7 @@ const Ie = ["width", "height", "viewBox"], qe = ["id"], Oe = ["stop-color"], ze
|
|
|
421
421
|
}, null, 8, rt))
|
|
422
422
|
], 2)) : E("", !0),
|
|
423
423
|
l("div", {
|
|
424
|
-
class: z(["ss-dot", { "ss-stale": s(
|
|
424
|
+
class: z(["ss-dot", { "ss-stale": s(C) }])
|
|
425
425
|
}, null, 2)
|
|
426
426
|
]),
|
|
427
427
|
l("div", {
|
|
@@ -479,12 +479,12 @@ function gt(e, T = {}) {
|
|
|
479
479
|
debugEndpoint: S = "/admin/api/debug",
|
|
480
480
|
dashboardEndpoint: i,
|
|
481
481
|
authToken: f,
|
|
482
|
-
refreshInterval:
|
|
483
|
-
} = T, k = v(null), x = v(!1), P = v(null), U = v(!1),
|
|
482
|
+
refreshInterval: C
|
|
483
|
+
} = T, k = v(null), x = v(!1), P = v(null), U = v(!1), _ = new fe({
|
|
484
484
|
baseUrl: a,
|
|
485
485
|
endpoint: S,
|
|
486
486
|
authToken: f,
|
|
487
|
-
refreshInterval:
|
|
487
|
+
refreshInterval: C,
|
|
488
488
|
onData: (c) => {
|
|
489
489
|
k.value = c;
|
|
490
490
|
},
|
|
@@ -504,7 +504,7 @@ function gt(e, T = {}) {
|
|
|
504
504
|
baseUrl: a,
|
|
505
505
|
endpoint: i,
|
|
506
506
|
authToken: f,
|
|
507
|
-
refreshInterval:
|
|
507
|
+
refreshInterval: C,
|
|
508
508
|
onData: (c) => {
|
|
509
509
|
k.value = c;
|
|
510
510
|
},
|
|
@@ -524,15 +524,15 @@ function gt(e, T = {}) {
|
|
|
524
524
|
if (c && !c.startsWith("custom-"))
|
|
525
525
|
if (ge.has(c) && i) {
|
|
526
526
|
const g = b();
|
|
527
|
-
|
|
527
|
+
_.stop(), g.start(c);
|
|
528
528
|
} else
|
|
529
|
-
h?.stop(),
|
|
529
|
+
h?.stop(), _.start(c);
|
|
530
530
|
}
|
|
531
531
|
function r() {
|
|
532
|
-
|
|
532
|
+
_.stop(), h?.stop();
|
|
533
533
|
}
|
|
534
534
|
async function p(c, g = !1) {
|
|
535
|
-
await
|
|
535
|
+
await _.fetchCustomPane(c, g);
|
|
536
536
|
}
|
|
537
537
|
function y() {
|
|
538
538
|
u();
|
|
@@ -542,7 +542,7 @@ function gt(e, T = {}) {
|
|
|
542
542
|
}
|
|
543
543
|
function q() {
|
|
544
544
|
const c = e();
|
|
545
|
-
ge.has(c) && i && h ? h.refresh() :
|
|
545
|
+
ge.has(c) && i && h ? h.refresh() : _.refresh();
|
|
546
546
|
}
|
|
547
547
|
function D() {
|
|
548
548
|
k.value = null;
|
|
@@ -571,12 +571,12 @@ const pt = ["title", "aria-label"], mt = ["viewBox", "innerHTML"], kt = ["viewBo
|
|
|
571
571
|
classPrefix: { default: "ss-dbg" }
|
|
572
572
|
},
|
|
573
573
|
setup(e) {
|
|
574
|
-
const T = e, { theme: a, toggleTheme: S } = le(), i = m(() => a.value === "dark"), f = m(() => i.value ? "Switch to light theme" : "Switch to dark theme"),
|
|
574
|
+
const T = e, { theme: a, toggleTheme: S } = le(), i = m(() => a.value === "dark"), f = m(() => i.value ? "Switch to light theme" : "Switch to dark theme"), C = m(
|
|
575
575
|
() => T.classPrefix === "ss-dbg" ? "ss-dbg-theme-toggle" : "ss-dash-theme-btn"
|
|
576
576
|
);
|
|
577
577
|
return (k, x) => (t(), o("button", {
|
|
578
578
|
type: "button",
|
|
579
|
-
class: z(
|
|
579
|
+
class: z(C.value),
|
|
580
580
|
title: f.value,
|
|
581
581
|
"aria-label": f.value,
|
|
582
582
|
onClick: x[0] || (x[0] = //@ts-ignore
|
|
@@ -607,7 +607,7 @@ const pt = ["title", "aria-label"], mt = ["viewBox", "innerHTML"], kt = ["viewBo
|
|
|
607
607
|
}, null, 8, kt))
|
|
608
608
|
], 10, pt));
|
|
609
609
|
}
|
|
610
|
-
}), yt = ["data-ss-theme"], wt = { class: "ss-dbg-tabs" }, Tt = { class: "ss-dbg-tabs-scroll" },
|
|
610
|
+
}), yt = ["data-ss-theme"], wt = { class: "ss-dbg-tabs" }, Tt = { class: "ss-dbg-tabs-scroll" }, Ct = ["onClick"], _t = ["viewBox", "innerHTML"], Et = { class: "ss-dbg-tabs-right" }, St = ["title"], xt = ["href"], $t = ["viewBox", "innerHTML"], Lt = { class: "ss-dbg-content" }, Bt = {
|
|
611
611
|
key: 0,
|
|
612
612
|
class: "ss-dbg-empty"
|
|
613
613
|
}, Mt = {
|
|
@@ -627,7 +627,7 @@ const pt = ["title", "aria-label"], mt = ["viewBox", "innerHTML"], kt = ["viewBo
|
|
|
627
627
|
defaultOpen: { type: Boolean, default: !1 }
|
|
628
628
|
},
|
|
629
629
|
setup(e, { expose: T }) {
|
|
630
|
-
const a = $(() => import("./QueriesTab-C8_7oprC.js")), S = $(() => import("./EventsTab-
|
|
630
|
+
const a = $(() => import("./QueriesTab-C8_7oprC.js")), S = $(() => import("./EventsTab-BBM7olXF.js")), i = $(() => import("./EmailsTab-CNyEODVB.js")), f = $(() => import("./RoutesTab-Dz0MkZuF.js")), C = $(() => import("./LogsTab-Bg3o0Mm6.js")), k = $(() => import("./TimelineTab-Db6lKKsD.js")), x = $(() => import("./CacheTab-BPisYYiQ.js")), P = $(() => import("./JobsTab-WFnxPdN7.js")), U = $(() => import("./ConfigTab-C8cafGUj.js")), _ = $(() => import("./InternalsTab-DEMjqtlw.js")), h = $(() => import("./CustomPaneTab-BJxT5Dp7.js")), b = e, u = v(b.defaultOpen), r = v("queries"), { theme: p } = le(), { features: y } = ce({
|
|
631
631
|
baseUrl: b.baseUrl,
|
|
632
632
|
debugEndpoint: b.debugEndpoint,
|
|
633
633
|
authToken: b.authToken
|
|
@@ -692,9 +692,9 @@ const pt = ["title", "aria-label"], mt = ["viewBox", "innerHTML"], kt = ["viewBo
|
|
|
692
692
|
class: "ss-dbg-tab-icon",
|
|
693
693
|
viewBox: s(j)[n.id].viewBox,
|
|
694
694
|
innerHTML: s(j)[n.id].elements.join("")
|
|
695
|
-
}, null, 8,
|
|
695
|
+
}, null, 8, _t)) : E("", !0),
|
|
696
696
|
Te(" " + M(n.label), 1)
|
|
697
|
-
], 10,
|
|
697
|
+
], 10, Ct))), 128))
|
|
698
698
|
]),
|
|
699
699
|
l("div", Et, [
|
|
700
700
|
l("span", {
|
|
@@ -743,11 +743,13 @@ const pt = ["title", "aria-label"], mt = ["viewBox", "innerHTML"], kt = ["viewBo
|
|
|
743
743
|
}, null, 8, ["data", "dashboard-path"])) : r.value === "emails" ? (t(), V(s(i), {
|
|
744
744
|
key: 2,
|
|
745
745
|
data: s(c),
|
|
746
|
-
"dashboard-path": e.dashboardPath
|
|
747
|
-
|
|
746
|
+
"dashboard-path": e.dashboardPath,
|
|
747
|
+
"debug-endpoint": e.debugEndpoint,
|
|
748
|
+
"auth-token": e.authToken
|
|
749
|
+
}, null, 8, ["data", "dashboard-path", "debug-endpoint", "auth-token"])) : r.value === "routes" ? (t(), V(s(f), {
|
|
748
750
|
key: 3,
|
|
749
751
|
data: s(c)
|
|
750
|
-
}, null, 8, ["data"])) : r.value === "logs" ? (t(), V(s(
|
|
752
|
+
}, null, 8, ["data"])) : r.value === "logs" ? (t(), V(s(C), {
|
|
751
753
|
key: 4,
|
|
752
754
|
data: s(c),
|
|
753
755
|
"dashboard-path": e.dashboardPath
|
|
@@ -767,7 +769,7 @@ const pt = ["title", "aria-label"], mt = ["viewBox", "innerHTML"], kt = ["viewBo
|
|
|
767
769
|
}, null, 8, ["data"])) : r.value === "config" ? (t(), V(s(U), {
|
|
768
770
|
key: 8,
|
|
769
771
|
data: s(c)
|
|
770
|
-
}, null, 8, ["data"])) : r.value === "internals" ? (t(), V(s(
|
|
772
|
+
}, null, 8, ["data"])) : r.value === "internals" ? (t(), V(s(_), {
|
|
771
773
|
key: 9,
|
|
772
774
|
data: s(c),
|
|
773
775
|
"base-url": e.baseUrl,
|
|
@@ -790,8 +792,8 @@ function Pt(e, T = {}) {
|
|
|
790
792
|
dashboardEndpoint: S = "/__stats/api",
|
|
791
793
|
authToken: i,
|
|
792
794
|
perPage: f = 50,
|
|
793
|
-
refreshKey:
|
|
794
|
-
} = T, k = v(null), x = v(!1), P = v(null), U = v(!1),
|
|
795
|
+
refreshKey: C
|
|
796
|
+
} = T, k = v(null), x = v(!1), P = v(null), U = v(!1), _ = v("1h"), h = oe({
|
|
795
797
|
page: 1,
|
|
796
798
|
perPage: f,
|
|
797
799
|
total: 0,
|
|
@@ -882,7 +884,7 @@ function Pt(e, T = {}) {
|
|
|
882
884
|
u.column === n && !d ? u.direction = u.direction === "asc" ? "desc" : "asc" : (u.column = n, u.direction = d || "desc"), A();
|
|
883
885
|
}
|
|
884
886
|
function L(n) {
|
|
885
|
-
|
|
887
|
+
_.value = n, A();
|
|
886
888
|
}
|
|
887
889
|
async function F(n, d = "post", I) {
|
|
888
890
|
return r.mutate(n, d, I);
|
|
@@ -911,7 +913,7 @@ function Pt(e, T = {}) {
|
|
|
911
913
|
sort: u.column || void 0,
|
|
912
914
|
sortDir: u.column ? u.direction : void 0,
|
|
913
915
|
filters: Object.keys(d).length > 0 ? d : void 0,
|
|
914
|
-
timeRange: n.startsWith("overview") ?
|
|
916
|
+
timeRange: n.startsWith("overview") ? _.value : void 0
|
|
915
917
|
});
|
|
916
918
|
}
|
|
917
919
|
function A() {
|
|
@@ -922,7 +924,7 @@ function Pt(e, T = {}) {
|
|
|
922
924
|
for (const n of Object.keys(b))
|
|
923
925
|
n === "search" ? b.search = "" : delete b[n];
|
|
924
926
|
u.column = "", k.value = null, r.setSection(e()), w();
|
|
925
|
-
}),
|
|
927
|
+
}), C && ee(C, () => {
|
|
926
928
|
w(), r.handleRefreshSignal();
|
|
927
929
|
}), X(() => {
|
|
928
930
|
w(), r.start();
|
|
@@ -936,7 +938,7 @@ function Pt(e, T = {}) {
|
|
|
936
938
|
pagination: h,
|
|
937
939
|
filter: b,
|
|
938
940
|
sort: u,
|
|
939
|
-
timeRange:
|
|
941
|
+
timeRange: _,
|
|
940
942
|
goToPage: H,
|
|
941
943
|
setSearch: Y,
|
|
942
944
|
setFilter: N,
|
|
@@ -971,7 +973,7 @@ const Ut = ["data-theme"], Rt = { class: "ss-dash-header" }, Dt = { class: "ss-d
|
|
|
971
973
|
channelName: { default: "server-stats/dashboard" }
|
|
972
974
|
},
|
|
973
975
|
setup(e) {
|
|
974
|
-
const T = $(() => import("./OverviewSection-
|
|
976
|
+
const T = $(() => import("./OverviewSection-CHgaKtUR.js")), a = $(() => import("./RequestsSection-B-uSlM0f.js")), S = $(() => import("./QueriesSection-BnHRD98z.js")), i = $(() => import("./EventsSection-BNMCAim1.js")), f = $(() => import("./RoutesSection-BrceOcKQ.js")), C = $(() => import("./LogsSection-CvOnTxUu.js")), k = $(() => import("./EmailsSection-DgKl9xGT.js")), x = $(() => import("./TimelineSection-CfvnA2Oo.js")), P = $(() => import("./CacheSection-Cx-hj09X.js")), U = $(() => import("./JobsSection-CCMgMlxd.js")), _ = $(() => import("./ConfigSection-CMXyryf6.js")), h = $(() => import("./InternalsSection-BJUXE-5F.js")), b = [
|
|
975
977
|
"overview",
|
|
976
978
|
"requests",
|
|
977
979
|
"queries",
|
|
@@ -1072,12 +1074,12 @@ const Ut = ["data-theme"], Rt = { class: "ss-dash-header" }, Dt = { class: "ss-d
|
|
|
1072
1074
|
queries: S,
|
|
1073
1075
|
events: i,
|
|
1074
1076
|
routes: f,
|
|
1075
|
-
logs:
|
|
1077
|
+
logs: C,
|
|
1076
1078
|
emails: k,
|
|
1077
1079
|
timeline: x,
|
|
1078
1080
|
cache: P,
|
|
1079
1081
|
jobs: U,
|
|
1080
|
-
config:
|
|
1082
|
+
config: _,
|
|
1081
1083
|
internals: h
|
|
1082
1084
|
}, A = m(() => w[R.value] || null);
|
|
1083
1085
|
function n(d) {
|
|
@@ -1204,12 +1206,12 @@ const Ut = ["data-theme"], Rt = { class: "ss-dash-header" }, Dt = { class: "ss-d
|
|
|
1204
1206
|
id: `ss-dash-pane-${R.value}`
|
|
1205
1207
|
}, [
|
|
1206
1208
|
l("div", es, [
|
|
1207
|
-
(t(), V(
|
|
1209
|
+
(t(), V(Ce, null, {
|
|
1208
1210
|
fallback: he(() => [...I[1] || (I[1] = [
|
|
1209
1211
|
l("div", { class: "ss-dash-empty" }, "Loading...", -1)
|
|
1210
1212
|
])]),
|
|
1211
1213
|
default: he(() => [
|
|
1212
|
-
A.value ? (t(), V(
|
|
1214
|
+
A.value ? (t(), V(_e(A.value), { key: 0 })) : (t(), o("div", ts, "Unknown section"))
|
|
1213
1215
|
]),
|
|
1214
1216
|
_: 1
|
|
1215
1217
|
}))
|
package/dist/vue/index.js
CHANGED