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.
Files changed (69) hide show
  1. package/README.md +24 -8
  2. package/dist/core/index.js +248 -245
  3. package/dist/core/log-utils.d.ts +14 -0
  4. package/dist/react/{CacheSection-DGxMDlWK.js → CacheSection-xH75hwXu.js} +1 -1
  5. package/dist/react/{CacheTab-CnVW5PLs.js → CacheTab-DYmsZJJ1.js} +1 -1
  6. package/dist/react/{ConfigSection-DPcrfqXY.js → ConfigSection-D8BO1Ry9.js} +1 -1
  7. package/dist/react/{ConfigTab-BSWq_o2p.js → ConfigTab-CcN-tfjv.js} +1 -1
  8. package/dist/react/{CustomPaneTab-xjkYwTvH.js → CustomPaneTab-D7_o3Ec6.js} +1 -1
  9. package/dist/react/{EmailsSection-CSyTg1aX.js → EmailsSection-BzlsTdPs.js} +1 -1
  10. package/dist/react/{EmailsTab-Dh2YSa_f.js → EmailsTab-Uh2CQY3o.js} +44 -22
  11. package/dist/react/{EventsSection-C1pbJDfW.js → EventsSection-CGQWiIdV.js} +1 -1
  12. package/dist/react/{EventsTab-eCh02cdd.js → EventsTab-CC6DQzEm.js} +1 -1
  13. package/dist/react/{JobsSection-CLAin5vU.js → JobsSection-D7AHQmZi.js} +1 -1
  14. package/dist/react/{JobsTab-Dl5nrj2z.js → JobsTab-B3Lfdqed.js} +1 -1
  15. package/dist/react/LogsSection-Cly1dpvS.js +227 -0
  16. package/dist/react/LogsTab-BbYK-iyh.js +103 -0
  17. package/dist/react/{OverviewSection-nm3xdACz.js → OverviewSection-CkBGFEWq.js} +1 -1
  18. package/dist/react/{QueriesSection-DB12HMfQ.js → QueriesSection-CfCpnNUD.js} +1 -1
  19. package/dist/react/{QueriesTab-fyBB1u_Y.js → QueriesTab-DbBmAqzO.js} +1 -1
  20. package/dist/react/{RequestsSection-DTqB81ac.js → RequestsSection-Cb5a6MlT.js} +1 -1
  21. package/dist/react/{RoutesSection-DJWa4NPV.js → RoutesSection-CRqF-cNM.js} +1 -1
  22. package/dist/react/{RoutesTab-D3l8TOpu.js → RoutesTab-Bwreij3e.js} +1 -1
  23. package/dist/react/{TimelineSection-C4d-jRX1.js → TimelineSection-B2y06kRE.js} +1 -1
  24. package/dist/react/{TimelineTab-C5TFaSmQ.js → TimelineTab-6hthfdBB.js} +1 -1
  25. package/dist/react/{index-UdTfSvtO.js → index-CecA4IdQ.js} +394 -393
  26. package/dist/react/index.js +1 -1
  27. package/dist/react/react/components/shared/JsonViewer.d.ts +2 -1
  28. package/dist/react/style.css +1 -1
  29. package/dist/src/controller/debug_controller.js +10 -9
  30. package/dist/src/dashboard/dashboard_store.js +10 -6
  31. package/dist/src/data/data_access.js +12 -1
  32. package/dist/src/debug/email_collector.d.ts +11 -1
  33. package/dist/src/debug/email_collector.js +31 -1
  34. package/dist/src/debug/types.d.ts +1 -1
  35. package/dist/src/edge/client/dashboard.js +2 -2
  36. package/dist/src/edge/client/debug-panel-deferred.js +1 -1
  37. package/dist/src/edge/client-vue/dashboard.js +4 -4
  38. package/dist/src/edge/client-vue/debug-panel-deferred.js +3 -3
  39. package/dist/src/provider/server_stats_provider.d.ts +31 -0
  40. package/dist/src/provider/server_stats_provider.js +244 -5
  41. package/dist/src/routes/register_routes.js +2 -2
  42. package/dist/src/styles/components.css +84 -0
  43. package/dist/vue/{CacheSection-C788Yfai.js → CacheSection-Cx-hj09X.js} +2 -2
  44. package/dist/vue/{ConfigSection-CRzYxqW2.js → ConfigSection-CMXyryf6.js} +1 -1
  45. package/dist/vue/{EmailsSection-C8JFMtW7.js → EmailsSection-DgKl9xGT.js} +1 -1
  46. package/dist/vue/EmailsTab-CNyEODVB.js +177 -0
  47. package/dist/vue/{EventsSection-C4wXUgxG.js → EventsSection-BNMCAim1.js} +2 -2
  48. package/dist/vue/{EventsTab-DQ4Nd6AK.js → EventsTab-BBM7olXF.js} +1 -1
  49. package/dist/vue/{JobsSection-CsKWTjgN.js → JobsSection-CCMgMlxd.js} +2 -2
  50. package/dist/vue/{JobsTab-BCvhOARO.js → JobsTab-WFnxPdN7.js} +1 -1
  51. 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
  52. package/dist/vue/LogsSection-CvOnTxUu.js +252 -0
  53. package/dist/vue/LogsTab-Bg3o0Mm6.js +147 -0
  54. package/dist/vue/{OverviewSection-CbMdAido.js → OverviewSection-CHgaKtUR.js} +1 -1
  55. package/dist/vue/{QueriesSection-BPiv7u3r.js → QueriesSection-BnHRD98z.js} +1 -1
  56. package/dist/vue/{RequestsSection-LtImH4rD.js → RequestsSection-B-uSlM0f.js} +1 -1
  57. package/dist/vue/{RoutesSection-CrxOxmzx.js → RoutesSection-BrceOcKQ.js} +1 -1
  58. package/dist/vue/{TimelineSection-DLxMW2J_.js → TimelineSection-CfvnA2Oo.js} +1 -1
  59. package/dist/vue/components/DebugPanel/tabs/EmailsTab.vue.d.ts +2 -0
  60. package/dist/vue/components/shared/JsonViewer.vue.d.ts +3 -0
  61. package/dist/vue/{index-qCQpBftQ.js → index-oLxS08vN.js} +56 -54
  62. package/dist/vue/index.js +1 -1
  63. package/dist/vue/style.css +1 -1
  64. package/package.json +1 -1
  65. package/dist/react/LogsSection-C1p81fXO.js +0 -212
  66. package/dist/react/LogsTab-D-kR7PjX.js +0 -88
  67. package/dist/vue/EmailsTab-DhFhoNmU.js +0 -157
  68. package/dist/vue/LogsSection-BFVjSZ24.js +0 -227
  69. 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 _e, withCtx as he, resolveDynamicComponent as Ce } from "vue";
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, _ = v(null), k = oe({}), x = v(!1), P = v(!1), U = v(null), C = v(!1), h = v(!1), b = v(!1);
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(() => C.value ? "disconnected" : h.value ? "live" : b.value ? "polling" : "disconnected");
12
+ const r = m(() => _.value ? "disconnected" : h.value ? "live" : b.value ? "polling" : "disconnected");
13
13
  return X(() => {
14
- C.value || (u = new Ee({
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
- _.value = p;
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
- C.value = p;
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: C,
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, _) => (t(), o("div", {
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), _ = v(null), k = v(null), x = v(null), P = v({
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
- _.value && (x.value = _.value.closest(".ss-bar"));
192
+ C.value && (x.value = C.value.closest(".ss-bar"));
193
193
  });
194
194
  function U() {
195
- const L = _.value, F = k.value, Z = x.value;
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 C = m(() => i.value || f.value);
216
- ee(C, (L) => {
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
- C.value && U();
221
+ _.value && U();
222
222
  }
223
223
  function u() {
224
- C.value && U();
224
+ _.value && U();
225
225
  }
226
226
  X(() => {
227
- h = _.value?.closest(".ss-bar-scroll") ?? null, h?.addEventListener("scroll", b), window.addEventListener("resize", u);
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
- _.value && !_.value.contains(F) && k.value && !k.value.contains(F) && (f.value = !1);
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
- C.value && x.value ? (t(), V(ye, {
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: _, isUnauthorized: k, isConnected: x, connectionMode: P } = Ae({
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: C } = le(), h = v(!0), b = v(null);
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(() => C.value);
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), C = new fe({
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
- C.stop(), g.start(c);
527
+ _.stop(), g.start(c);
528
528
  } else
529
- h?.stop(), C.start(c);
529
+ h?.stop(), _.start(c);
530
530
  }
531
531
  function r() {
532
- C.stop(), h?.stop();
532
+ _.stop(), h?.stop();
533
533
  }
534
534
  async function p(c, g = !1) {
535
- await C.fetchCustomPane(c, g);
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() : C.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"), _ = m(
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(_.value),
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" }, _t = ["onClick"], Ct = ["viewBox", "innerHTML"], Et = { class: "ss-dbg-tabs-right" }, St = ["title"], xt = ["href"], $t = ["viewBox", "innerHTML"], Lt = { class: "ss-dbg-content" }, Bt = {
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-DQ4Nd6AK.js")), i = $(() => import("./EmailsTab-DhFhoNmU.js")), f = $(() => import("./RoutesTab-Dz0MkZuF.js")), _ = $(() => import("./LogsTab-DpEQ7euu.js")), k = $(() => import("./TimelineTab-Db6lKKsD.js")), x = $(() => import("./CacheTab-BPisYYiQ.js")), P = $(() => import("./JobsTab-BCvhOARO.js")), U = $(() => import("./ConfigTab-C8cafGUj.js")), C = $(() => import("./InternalsTab-DEMjqtlw.js")), h = $(() => import("./CustomPaneTab-BJxT5Dp7.js")), b = e, u = v(b.defaultOpen), r = v("queries"), { theme: p } = le(), { features: y } = ce({
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, Ct)) : E("", !0),
695
+ }, null, 8, _t)) : E("", !0),
696
696
  Te(" " + M(n.label), 1)
697
- ], 10, _t))), 128))
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
- }, null, 8, ["data", "dashboard-path"])) : r.value === "routes" ? (t(), V(s(f), {
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(C), {
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), C = v("1h"), h = oe({
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
- C.value = n, A();
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") ? C.value : void 0
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
- }), _ && ee(_, () => {
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: C,
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-CbMdAido.js")), a = $(() => import("./RequestsSection-LtImH4rD.js")), S = $(() => import("./QueriesSection-BPiv7u3r.js")), i = $(() => import("./EventsSection-C4wXUgxG.js")), f = $(() => import("./RoutesSection-CrxOxmzx.js")), _ = $(() => import("./LogsSection-BFVjSZ24.js")), k = $(() => import("./EmailsSection-C8JFMtW7.js")), x = $(() => import("./TimelineSection-DLxMW2J_.js")), P = $(() => import("./CacheSection-C788Yfai.js")), U = $(() => import("./JobsSection-CsKWTjgN.js")), C = $(() => import("./ConfigSection-CRzYxqW2.js")), h = $(() => import("./InternalsSection-BJUXE-5F.js")), b = [
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: C,
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(_e, null, {
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(Ce(A.value), { key: 0 })) : (t(), o("div", ts, "Unknown section"))
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
@@ -1,4 +1,4 @@
1
- import { a as s, b as r, c as u, u as t, d as D, e as b, f as g, g as o } from "./index-qCQpBftQ.js";
1
+ import { a as s, b as r, c as u, u as t, d as D, e as b, f as g, g as o } from "./index-oLxS08vN.js";
2
2
  export {
3
3
  s as DashboardPage,
4
4
  r as DebugPanel,