adonisjs-server-stats 1.10.0 → 1.11.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 (248) hide show
  1. package/README.md +23 -14
  2. package/dist/core/config-utils.d.ts +8 -0
  3. package/dist/core/constants.d.ts +4 -0
  4. package/dist/core/dashboard-data-controller.d.ts +16 -0
  5. package/dist/core/dashboard-data-helpers.d.ts +12 -0
  6. package/dist/core/debug-data-controller.d.ts +4 -0
  7. package/dist/core/define-config-helpers.d.ts +25 -0
  8. package/dist/core/feature-detect-helpers.d.ts +36 -0
  9. package/dist/core/field-resolvers.d.ts +64 -0
  10. package/dist/core/formatters-helpers.d.ts +23 -0
  11. package/dist/core/formatters.d.ts +15 -0
  12. package/dist/core/index.d.ts +1 -1
  13. package/dist/core/index.js +599 -509
  14. package/dist/core/log-utils-helpers.d.ts +13 -0
  15. package/dist/core/metrics.d.ts +3 -28
  16. package/dist/core/pagination.d.ts +0 -9
  17. package/dist/core/server-stats-controller.d.ts +6 -0
  18. package/dist/core/transmit-helpers.d.ts +7 -0
  19. package/dist/core/types-dashboard.d.ts +178 -0
  20. package/dist/core/types-diagnostics.d.ts +85 -0
  21. package/dist/core/types.d.ts +10 -442
  22. package/dist/react/CacheSection-BYN53kYO.js +135 -0
  23. package/dist/react/CacheStatsBar-CRodCOeP.js +27 -0
  24. package/dist/react/CacheTab-DOhuK05d.js +106 -0
  25. package/dist/react/{ConfigSection-DfFd-WRq.js → ConfigSection-B9EHh4Rp.js} +1 -1
  26. package/dist/react/{ConfigTab-Bdg8YMer.js → ConfigTab-C8kriE2b.js} +1 -1
  27. package/dist/react/CustomPaneTab-CvzQS_Wh.js +99 -0
  28. package/dist/react/EmailPreviewOverlay-BmXOAvqG.js +58 -0
  29. package/dist/react/EmailsSection-BJyFJf7A.js +226 -0
  30. package/dist/react/EmailsTab-Ch8jp10B.js +110 -0
  31. package/dist/react/{EventsSection-ByQ-9blq.js → EventsSection-DJPwHeT8.js} +28 -27
  32. package/dist/react/EventsTab-B-FoehXC.js +58 -0
  33. package/dist/react/{FilterBar-DQRXpWrb.js → FilterBar-CQ7bD669.js} +15 -15
  34. package/dist/react/{InternalsContent-DBzsI0CG.js → InternalsContent-O8ino9oM.js} +133 -109
  35. package/dist/react/InternalsSection-B6VlVx5f.js +22 -0
  36. package/dist/react/InternalsTab-CkEKpRMU.js +17 -0
  37. package/dist/react/JobStatsBar-C7RslAFE.js +30 -0
  38. package/dist/react/JobsSection-DWF4i1t_.js +167 -0
  39. package/dist/react/JobsTab-DqnifQXV.js +129 -0
  40. package/dist/react/LogEntryRow-CMMkqA9M.js +43 -0
  41. package/dist/react/LogsSection-C1xC5aP4.js +198 -0
  42. package/dist/react/LogsTab-CS4sLfLw.js +79 -0
  43. package/dist/react/{OverviewSection-C4T1ur51.js → OverviewSection-CxvfOR0v.js} +70 -80
  44. package/dist/react/QueriesSection-CrMdU5Ax.js +458 -0
  45. package/dist/react/{QueriesTab-osLUWd4L.js → QueriesTab-x85PjkyS.js} +38 -40
  46. package/dist/react/RequestsSection-DETN9oZb.js +321 -0
  47. package/dist/react/{RoutesSection-BUSkM6PY.js → RoutesSection-CmorkJeC.js} +2 -2
  48. package/dist/react/RoutesTab-CbzBOzpc.js +68 -0
  49. package/dist/react/SplitPaneWrapper-BiIgT4ND.js +49 -0
  50. package/dist/react/TimeAgoCell-o3KigGfM.js +8 -0
  51. package/dist/react/{TimelineTab-Covg5weo.js → TimelineTab-Ue9tUD_n.js} +76 -102
  52. package/dist/react/index-DwDK-4oX.js +1121 -0
  53. package/dist/react/index.js +6 -6
  54. package/dist/react/react/components/shared/CacheStatsBar.d.ts +13 -0
  55. package/dist/react/react/components/shared/EmailPreviewOverlay.d.ts +29 -0
  56. package/dist/react/react/components/{Dashboard/shared → shared}/FilterBar.d.ts +4 -3
  57. package/dist/react/react/components/shared/JobStatsBar.d.ts +12 -0
  58. package/dist/react/react/components/shared/LogEntryRow.d.ts +9 -0
  59. package/dist/react/react/components/shared/RelatedLogs.d.ts +2 -2
  60. package/dist/react/react/components/shared/SplitPaneWrapper.d.ts +7 -0
  61. package/dist/react/react/components/shared/TimeAgoCell.d.ts +17 -0
  62. package/dist/react/react/hooks/useDashboardData.d.ts +4 -8
  63. package/dist/react/react/hooks/useDiagnosticsData.d.ts +14 -0
  64. package/dist/react/style.css +1 -1
  65. package/dist/src/collectors/app_collector.d.ts +0 -8
  66. package/dist/src/collectors/app_collector.js +45 -52
  67. package/dist/src/collectors/auto_detect.d.ts +0 -23
  68. package/dist/src/collectors/auto_detect.js +33 -55
  69. package/dist/src/collectors/db_pool_collector.d.ts +14 -16
  70. package/dist/src/collectors/db_pool_collector.js +72 -57
  71. package/dist/src/collectors/log_collector.d.ts +0 -47
  72. package/dist/src/collectors/log_collector.js +36 -65
  73. package/dist/src/collectors/queue_collector.d.ts +0 -20
  74. package/dist/src/collectors/queue_collector.js +60 -76
  75. package/dist/src/collectors/redis_collector.d.ts +10 -10
  76. package/dist/src/collectors/redis_collector.js +69 -66
  77. package/dist/src/config/deprecation_migration.d.ts +7 -0
  78. package/dist/src/config/deprecation_migration.js +201 -0
  79. package/dist/src/controller/debug_controller.d.ts +1 -1
  80. package/dist/src/controller/debug_controller.js +87 -81
  81. package/dist/src/dashboard/cache_handlers.d.ts +14 -0
  82. package/dist/src/dashboard/cache_handlers.js +52 -0
  83. package/dist/src/dashboard/chart_aggregator.d.ts +0 -7
  84. package/dist/src/dashboard/chart_aggregator.js +68 -50
  85. package/dist/src/dashboard/coalesce_cache.d.ts +25 -0
  86. package/dist/src/dashboard/coalesce_cache.js +47 -0
  87. package/dist/src/dashboard/dashboard_controller.d.ts +11 -37
  88. package/dist/src/dashboard/dashboard_controller.js +51 -544
  89. package/dist/src/dashboard/dashboard_page_assets.d.ts +17 -0
  90. package/dist/src/dashboard/dashboard_page_assets.js +51 -0
  91. package/dist/src/dashboard/dashboard_store.d.ts +19 -218
  92. package/dist/src/dashboard/dashboard_store.js +115 -1116
  93. package/dist/src/dashboard/dashboard_types.d.ts +83 -0
  94. package/dist/src/dashboard/dashboard_types.js +4 -0
  95. package/dist/src/dashboard/detail_queries.d.ts +19 -0
  96. package/dist/src/dashboard/detail_queries.js +98 -0
  97. package/dist/src/dashboard/email_event_builder.d.ts +8 -0
  98. package/dist/src/dashboard/email_event_builder.js +65 -0
  99. package/dist/src/dashboard/explain_query.d.ts +8 -0
  100. package/dist/src/dashboard/explain_query.js +22 -0
  101. package/dist/src/dashboard/filter_handlers.d.ts +23 -0
  102. package/dist/src/dashboard/filter_handlers.js +56 -0
  103. package/dist/src/dashboard/filtered_queries.d.ts +15 -0
  104. package/dist/src/dashboard/filtered_queries.js +155 -0
  105. package/dist/src/dashboard/flush_manager.d.ts +25 -0
  106. package/dist/src/dashboard/flush_manager.js +107 -0
  107. package/dist/src/dashboard/format_helpers.d.ts +126 -0
  108. package/dist/src/dashboard/format_helpers.js +140 -0
  109. package/dist/src/dashboard/inspector_manager.d.ts +36 -0
  110. package/dist/src/dashboard/inspector_manager.js +102 -0
  111. package/dist/src/dashboard/integrations/config_inspector.js +11 -13
  112. package/dist/src/dashboard/integrations/queue_inspector.d.ts +3 -3
  113. package/dist/src/dashboard/integrations/queue_inspector.js +13 -10
  114. package/dist/src/dashboard/jobs_handlers.d.ts +14 -0
  115. package/dist/src/dashboard/jobs_handlers.js +61 -0
  116. package/dist/src/dashboard/knex_factory.d.ts +18 -0
  117. package/dist/src/dashboard/knex_factory.js +91 -0
  118. package/dist/src/dashboard/migrator.js +30 -159
  119. package/dist/src/dashboard/migrator_tables.d.ts +19 -0
  120. package/dist/src/dashboard/migrator_tables.js +153 -0
  121. package/dist/src/dashboard/overview_queries.d.ts +66 -0
  122. package/dist/src/dashboard/overview_queries.js +155 -0
  123. package/dist/src/dashboard/overview_query_runners.d.ts +25 -0
  124. package/dist/src/dashboard/overview_query_runners.js +84 -0
  125. package/dist/src/dashboard/overview_store_queries.d.ts +40 -0
  126. package/dist/src/dashboard/overview_store_queries.js +69 -0
  127. package/dist/src/dashboard/paginate_helper.d.ts +12 -0
  128. package/dist/src/dashboard/paginate_helper.js +33 -0
  129. package/dist/src/dashboard/query_explain_handler.d.ts +10 -0
  130. package/dist/src/dashboard/query_explain_handler.js +80 -0
  131. package/dist/src/dashboard/read_queries.d.ts +32 -0
  132. package/dist/src/dashboard/read_queries.js +107 -0
  133. package/dist/src/dashboard/saved_filter_queries.d.ts +10 -0
  134. package/dist/src/dashboard/saved_filter_queries.js +24 -0
  135. package/dist/src/dashboard/storage_stats.d.ts +41 -0
  136. package/dist/src/dashboard/storage_stats.js +81 -0
  137. package/dist/src/dashboard/write_queue.d.ts +106 -0
  138. package/dist/src/dashboard/write_queue.js +225 -0
  139. package/dist/src/data/data_access.d.ts +2 -39
  140. package/dist/src/data/data_access.js +17 -193
  141. package/dist/src/data/data_access_helpers.d.ts +130 -0
  142. package/dist/src/data/data_access_helpers.js +212 -0
  143. package/dist/src/debug/debug_store.js +37 -32
  144. package/dist/src/debug/email_collector.d.ts +1 -10
  145. package/dist/src/debug/email_collector.js +78 -81
  146. package/dist/src/debug/event_collector.d.ts +0 -9
  147. package/dist/src/debug/event_collector.js +79 -62
  148. package/dist/src/debug/query_collector.js +23 -19
  149. package/dist/src/debug/route_inspector.d.ts +1 -5
  150. package/dist/src/debug/route_inspector.js +50 -51
  151. package/dist/src/debug/trace_collector.d.ts +9 -1
  152. package/dist/src/debug/trace_collector.js +21 -15
  153. package/dist/src/debug/types.d.ts +1 -1
  154. package/dist/src/define_config.d.ts +0 -65
  155. package/dist/src/define_config.js +93 -333
  156. package/dist/src/edge/client/dashboard.js +2 -2
  157. package/dist/src/edge/client/debug-panel-deferred.js +1 -1
  158. package/dist/src/edge/client/stats-bar.js +1 -1
  159. package/dist/src/edge/client-vue/dashboard.js +5 -5
  160. package/dist/src/edge/client-vue/debug-panel-deferred.js +4 -4
  161. package/dist/src/edge/client-vue/stats-bar.js +3 -3
  162. package/dist/src/edge/plugin.d.ts +0 -16
  163. package/dist/src/edge/plugin.js +57 -64
  164. package/dist/src/engine/request_metrics.d.ts +1 -0
  165. package/dist/src/engine/request_metrics.js +32 -42
  166. package/dist/src/middleware/request_tracking_middleware.d.ts +2 -8
  167. package/dist/src/middleware/request_tracking_middleware.js +65 -93
  168. package/dist/src/provider/auth_middleware_detector.d.ts +16 -0
  169. package/dist/src/provider/auth_middleware_detector.js +97 -0
  170. package/dist/src/provider/boot_helpers.d.ts +20 -0
  171. package/dist/src/provider/boot_helpers.js +91 -0
  172. package/dist/src/provider/boot_initializer.d.ts +28 -0
  173. package/dist/src/provider/boot_initializer.js +35 -0
  174. package/dist/src/provider/dashboard_init.d.ts +30 -0
  175. package/dist/src/provider/dashboard_init.js +138 -0
  176. package/dist/src/provider/dashboard_setup.d.ts +25 -0
  177. package/dist/src/provider/dashboard_setup.js +78 -0
  178. package/dist/src/provider/diagnostics.d.ts +134 -0
  179. package/dist/src/provider/diagnostics.js +127 -0
  180. package/dist/src/provider/email_bridge.d.ts +43 -0
  181. package/dist/src/provider/email_bridge.js +80 -0
  182. package/dist/src/provider/email_helpers.d.ts +13 -0
  183. package/dist/src/provider/email_helpers.js +68 -0
  184. package/dist/src/provider/pino_hook.d.ts +17 -0
  185. package/dist/src/provider/pino_hook.js +35 -0
  186. package/dist/src/provider/provider_helpers_extra.d.ts +47 -0
  187. package/dist/src/provider/provider_helpers_extra.js +177 -0
  188. package/dist/src/provider/server_stats_provider.d.ts +39 -85
  189. package/dist/src/provider/server_stats_provider.js +132 -951
  190. package/dist/src/provider/shutdown_helpers.d.ts +43 -0
  191. package/dist/src/provider/shutdown_helpers.js +70 -0
  192. package/dist/src/provider/toolbar_setup.d.ts +57 -0
  193. package/dist/src/provider/toolbar_setup.js +141 -0
  194. package/dist/src/routes/dashboard_routes.d.ts +14 -0
  195. package/dist/src/routes/dashboard_routes.js +197 -0
  196. package/dist/src/routes/debug_routes.d.ts +14 -0
  197. package/dist/src/routes/debug_routes.js +101 -0
  198. package/dist/src/routes/register_routes.d.ts +0 -78
  199. package/dist/src/routes/register_routes.js +22 -352
  200. package/dist/src/routes/stats_routes.d.ts +5 -0
  201. package/dist/src/routes/stats_routes.js +14 -0
  202. package/dist/src/styles/components.css +163 -0
  203. package/dist/src/styles/dashboard.css +13 -105
  204. package/dist/src/styles/debug-panel.css +2 -53
  205. package/dist/src/styles/utilities.css +3 -1
  206. package/dist/src/types.d.ts +305 -14
  207. package/dist/vue/{CacheSection-oFAJL3mo.js → CacheSection-DT2Mwf_s.js} +1 -1
  208. package/dist/vue/{ConfigSection-BhfJ4KqL.js → ConfigSection-BwKwS9lh.js} +1 -1
  209. package/dist/vue/CustomPaneTab-Hr1IBHfz.js +172 -0
  210. package/dist/vue/{EmailsSection-BcNyhyHs.js → EmailsSection-B65g0FVS.js} +1 -1
  211. package/dist/vue/{EventsSection-r60Q5Lmu.js → EventsSection-CxqtVF-o.js} +1 -1
  212. package/dist/vue/{JobsSection-BHL-hkQw.js → JobsSection-rMIyMb-g.js} +1 -1
  213. package/dist/vue/{LogsSection-DRMGzJmg.js → LogsSection-DmmZVJ7D.js} +9 -3
  214. package/dist/vue/{LogsTab-Bg3o0Mm6.js → LogsTab-47zEK7jL.js} +4 -1
  215. package/dist/vue/{OverviewSection-CXh6Ja1B.js → OverviewSection-BMabyqw-.js} +49 -50
  216. package/dist/vue/{QueriesSection-IodIsCJ-.js → QueriesSection-BfDFwGqH.js} +44 -45
  217. package/dist/vue/{QueriesTab-C8_7oprC.js → QueriesTab-DuTG7cpC.js} +30 -31
  218. package/dist/vue/RelatedLogs.vue_vue_type_script_setup_true_lang-Py1iu9GU.js +77 -0
  219. package/dist/vue/{RequestsSection-BPuMdmMc.js → RequestsSection-CTu4jPZ_.js} +143 -147
  220. package/dist/vue/{RoutesSection-NKo3Rbq3.js → RoutesSection-zQZDedL7.js} +1 -1
  221. package/dist/vue/TimelineTab-DHfXsX7t.js +334 -0
  222. package/dist/vue/components/shared/RelatedLogs.vue.d.ts +1 -4
  223. package/dist/vue/composables/useDashboardData.d.ts +12 -23
  224. package/dist/vue/index-CM3yNVUR.js +1232 -0
  225. package/dist/vue/index.js +1 -1
  226. package/dist/vue/style.css +1 -1
  227. package/package.json +1 -1
  228. package/dist/react/CacheSection-UCMptWyn.js +0 -146
  229. package/dist/react/CacheTab-CA8LB1J5.js +0 -123
  230. package/dist/react/CustomPaneTab-Bxtv_8Rw.js +0 -104
  231. package/dist/react/EmailsSection-CM7stSyh.js +0 -262
  232. package/dist/react/EmailsTab-BDhEiomM.js +0 -153
  233. package/dist/react/EventsTab-CMfY98Rl.js +0 -63
  234. package/dist/react/InternalsSection-t7ihcWO-.js +0 -32
  235. package/dist/react/InternalsTab-Oij0A2fN.js +0 -30
  236. package/dist/react/JobsSection-DF3qEv9O.js +0 -187
  237. package/dist/react/JobsTab-BbrBWIOb.js +0 -141
  238. package/dist/react/LogsSection-DcFTZY7b.js +0 -227
  239. package/dist/react/LogsTab-CicucmVk.js +0 -103
  240. package/dist/react/QueriesSection-PswteoF9.js +0 -461
  241. package/dist/react/RelatedLogs-DFDOyUMr.js +0 -40
  242. package/dist/react/RequestsSection-Nag30rEA.js +0 -341
  243. package/dist/react/RoutesTab-DgVzd2PZ.js +0 -74
  244. package/dist/react/index-Cflz9Ebj.js +0 -1069
  245. package/dist/vue/CustomPaneTab-BJxT5Dp7.js +0 -172
  246. package/dist/vue/RelatedLogs.vue_vue_type_script_setup_true_lang-CB2_TzYW.js +0 -84
  247. package/dist/vue/TimelineTab-zj5Z5OdT.js +0 -338
  248. package/dist/vue/index-Dtgysd26.js +0 -1229
@@ -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-Dtgysd26.js";
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-Dtgysd26.js";
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-Dtgysd26.js";
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-Dtgysd26.js";
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 = {
@@ -203,7 +203,10 @@ const ke = { class: "ss-dash-log-filters" }, be = ["onClick"], Ce = ["value"], q
203
203
  key: String(e.id || c)
204
204
  }, [
205
205
  n("div", {
206
- class: $(["ss-dash-log-entry", { "ss-dash-log-entry-expandable": !!s(m)(e) }]),
206
+ class: $([
207
+ "ss-dash-log-entry",
208
+ { "ss-dash-log-entry-expandable": !!s(m)(e) }
209
+ ]),
207
210
  onClick: (I) => te(c, !!s(m)(e))
208
211
  }, [
209
212
  n("span", {
@@ -224,7 +227,10 @@ const ke = { class: "ss-dash-log-filters" }, be = ["onClick"], Ce = ["value"], q
224
227
  }, i(s(g)(e).slice(0, 8)), 41, Te)) : (a(), o("span", Re, "--")),
225
228
  s(m)(e) ? (a(), o("span", {
226
229
  key: 2,
227
- class: $(["ss-dash-log-expand-icon", { "ss-dash-log-expand-icon-open": k.value === c }])
230
+ class: $([
231
+ "ss-dash-log-expand-icon",
232
+ { "ss-dash-log-expand-icon-open": k.value === c }
233
+ ])
228
234
  }, "▶", 2)) : (a(), o("span", Ae)),
229
235
  n("span", Be, i(s(_e)(e)), 1)
230
236
  ], 10, De),
@@ -109,7 +109,10 @@ const z = { class: "ss-dbg-log-filters" }, G = ["onClick"], J = {
109
109
  }, d(s(u)(e).slice(0, 8)), 41, ee)) : (o(), l("span", se, "-")),
110
110
  s(v)(e) ? (o(), l("span", {
111
111
  key: 2,
112
- class: y(["ss-dbg-log-expand-icon", { "ss-dbg-log-expand-icon-open": p.value === r }])
112
+ class: y([
113
+ "ss-dbg-log-expand-icon",
114
+ { "ss-dbg-log-expand-icon-open": p.value === r }
115
+ ])
113
116
  }, "▶", 2)) : (o(), l("span", te)),
114
117
  a("span", ne, d(s(T)(e)), 1),
115
118
  f.dashboardPath && s(u)(e) ? (o(), l("a", {
@@ -1,6 +1,6 @@
1
- import { defineComponent as ws, openBlock as o, createElementBlock as n, Fragment as _, renderList as k, createElementVNode as s, normalizeClass as b, toDisplayString as r, inject as P, ref as D, watch as ms, computed as d, onUnmounted as Ws, unref as x, createVNode as F, createCommentVNode as v, normalizeStyle as ts, createTextVNode as gs } from "vue";
2
- import { formatDuration as N, formatTime as Os, timeAgo as Hs, durationSeverity as Ks } from "adonisjs-server-stats/core";
3
- import { u as xs, _ as U } from "./index-Dtgysd26.js";
1
+ import { defineComponent as ws, openBlock as o, createElementBlock as n, Fragment as _, renderList as k, createElementVNode as s, normalizeClass as b, toDisplayString as r, inject as P, ref as D, watch as fs, computed as d, onUnmounted as Ws, unref as x, createVNode as N, createCommentVNode as v, normalizeStyle as ts, createTextVNode as gs } from "vue";
2
+ import { formatDuration as F, formatTime as Os, timeAgo as Hs, durationClassName as Ks } from "adonisjs-server-stats/core";
3
+ import { u as xs, _ as U } from "./index-CM3yNVUR.js";
4
4
  const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ */ ws({
5
5
  __name: "TimeRangeSelector",
6
6
  props: {
@@ -18,12 +18,12 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
18
18
  { value: "7d", label: "7d" }
19
19
  ];
20
20
  return (C, I) => (o(), n("div", Gs, [
21
- (o(), n(_, null, k($, (m) => s("button", {
22
- key: m.value,
21
+ (o(), n(_, null, k($, (f) => s("button", {
22
+ key: f.value,
23
23
  type: "button",
24
- class: b(`ss-dash-btn ${S.modelValue === m.value ? "ss-dash-active" : ""}`),
25
- onClick: (ls) => w("update:modelValue", m.value)
26
- }, r(m.label), 11, Xs)), 64))
24
+ class: b(`ss-dash-btn ${S.modelValue === f.value ? "ss-dash-active" : ""}`),
25
+ onClick: (ls) => w("update:modelValue", f.value)
26
+ }, r(f.label), 11, Xs)), 64))
27
27
  ]));
28
28
  }
29
29
  }), Zs = { class: "ss-dash-overview" }, Js = {
@@ -36,7 +36,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
36
36
  key: 0,
37
37
  class: "ss-dash-empty",
38
38
  style: { "min-height": "120px" }
39
- }, he = ["viewBox"], pe = ["id"], ye = ["id"], _e = ["x1", "y1", "x2", "y2"], fe = ["x", "y"], me = ["d", "fill"], ge = ["d"], xe = ["d", "fill"], ke = ["d"], we = ["x", "y", "width", "height", "data-idx", "onMouseenter"], be = ["cx", "cy", "r", "data-idx", "opacity"], Re = ["cx", "cy", "r", "data-idx", "opacity"], $e = ["x", "y"], qe = {
39
+ }, he = ["viewBox"], pe = ["id"], ye = ["id"], _e = ["x1", "y1", "x2", "y2"], me = ["x", "y"], fe = ["d", "fill"], ge = ["d"], xe = ["d", "fill"], ke = ["d"], we = ["x", "y", "width", "height", "data-idx", "onMouseenter"], be = ["cx", "cy", "r", "data-idx", "opacity"], Re = ["cx", "cy", "r", "data-idx", "opacity"], $e = ["x", "y"], qe = {
40
40
  key: 0,
41
41
  style: { color: "var(--ss-red-fg)" }
42
42
  }, Se = {
@@ -52,7 +52,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
52
52
  }, Le = {
53
53
  key: 1,
54
54
  class: "ss-dash-secondary-list"
55
- }, De = ["href"], Fe = ["title"], Ne = { class: "ss-dash-secondary-card" }, Qe = { class: "ss-dash-secondary-list" }, je = { class: "ss-dash-secondary-list-value" }, Ae = { class: "ss-dash-secondary-list-value" }, Ve = { class: "ss-dash-secondary-list-value" }, ze = { class: "ss-dash-secondary-card" }, Be = {
55
+ }, De = ["href"], Ne = ["title"], Fe = { class: "ss-dash-secondary-card" }, Qe = { class: "ss-dash-secondary-list" }, je = { class: "ss-dash-secondary-list-value" }, Ae = { class: "ss-dash-secondary-list-value" }, Ve = { class: "ss-dash-secondary-list-value" }, ze = { class: "ss-dash-secondary-card" }, Be = {
56
56
  key: 0,
57
57
  class: "ss-dash-empty",
58
58
  style: { "min-height": "60px" }
@@ -93,7 +93,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
93
93
  }, yt = { class: "ss-dash-secondary-list" }, _t = {
94
94
  href: "#cache",
95
95
  class: "ss-dash-widget-row-link"
96
- }, ft = { class: "ss-dash-secondary-list-value" }, mt = {
96
+ }, mt = { class: "ss-dash-secondary-list-value" }, ft = {
97
97
  href: "#cache",
98
98
  class: "ss-dash-widget-row-link"
99
99
  }, gt = { class: "ss-dash-secondary-list-value" }, xt = {
@@ -117,7 +117,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
117
117
  }, Tt = { class: "ss-dash-secondary-list-value" }, Et = { class: "ss-dash-secondary-card" }, Lt = { class: "ss-dash-secondary-list" }, Dt = {
118
118
  href: "#requests?status=2xx",
119
119
  class: "ss-dash-widget-row-link"
120
- }, Ft = { class: "ss-dash-secondary-list-value" }, Nt = {
120
+ }, Nt = { class: "ss-dash-secondary-list-value" }, Ft = {
121
121
  href: "#requests?status=3xx",
122
122
  class: "ss-dash-widget-row-link"
123
123
  }, Qt = { class: "ss-dash-secondary-list-value" }, jt = {
@@ -136,7 +136,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
136
136
  }, It = ["href"], Wt = ["title"], as = 220, ks = 120, Ot = /* @__PURE__ */ ws({
137
137
  __name: "OverviewSection",
138
138
  setup(S) {
139
- const R = P("ss-refresh-key", D(0)), w = P("ss-base-url", ""), $ = P("ss-dashboard-endpoint", "/__stats/api"), C = P("ss-auth-token", void 0), I = Math.random().toString(36).slice(2, 8), m = D("1h"), { data: ls, loading: bs } = xs(() => "overview", {
139
+ const R = P("ss-refresh-key", D(0)), w = P("ss-base-url", ""), $ = P("ss-dashboard-endpoint", "/__stats/api"), C = P("ss-auth-token", void 0), I = Math.random().toString(36).slice(2, 8), f = D("1h"), { data: ls, loading: bs } = xs(() => "overview", {
140
140
  baseUrl: w,
141
141
  dashboardEndpoint: $,
142
142
  authToken: C,
@@ -150,7 +150,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
150
150
  refreshKey: R
151
151
  }
152
152
  );
153
- ms(m, (t) => {
153
+ fs(f, (t) => {
154
154
  $s(t);
155
155
  });
156
156
  const os = d(() => ls.value), l = d(() => os.value || {
@@ -188,9 +188,9 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
188
188
  ), ns = d(() => `ss-cg-total-${I}`), rs = d(() => `ss-cg-error-${I}`);
189
189
  function Ls(t, e) {
190
190
  if (t <= 0) return [0];
191
- const a = t / e, i = Math.pow(10, Math.floor(Math.log10(a))), f = a / i;
191
+ const a = t / e, i = Math.pow(10, Math.floor(Math.log10(a))), m = a / i;
192
192
  let y;
193
- f <= 1 ? y = i : f <= 2 ? y = 2 * i : f <= 5 ? y = 5 * i : y = 10 * i;
193
+ m <= 1 ? y = i : m <= 2 ? y = 2 * i : m <= 5 ? y = 5 * i : y = 10 * i;
194
194
  const B = [];
195
195
  for (let es = y; es <= t + y * 0.5; es += y) B.push(Math.round(es));
196
196
  return B.length === 0 && B.push(Math.ceil(t)), B;
@@ -211,18 +211,17 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
211
211
  if (t.length === 1) return `M${t[0].x},${t[0].y}`;
212
212
  let e = `M${t[0].x.toFixed(1)},${t[0].y.toFixed(1)}`;
213
213
  for (let a = 0; a < t.length - 1; a++) {
214
- const i = t[a], f = t[a + 1], y = (i.x + f.x) / 2;
215
- e += ` C${y.toFixed(1)},${i.y.toFixed(1)} ${y.toFixed(1)},${f.y.toFixed(1)} ${f.x.toFixed(1)},${f.y.toFixed(1)}`;
214
+ const i = t[a], m = t[a + 1], y = (i.x + m.x) / 2;
215
+ e += ` C${y.toFixed(1)},${i.y.toFixed(1)} ${y.toFixed(1)},${m.y.toFixed(1)} ${m.x.toFixed(1)},${m.y.toFixed(1)}`;
216
216
  }
217
217
  return e;
218
218
  }
219
219
  function ds(t) {
220
- const e = Ks(t);
221
- return e === "very-slow" ? "ss-dash-very-slow" : e === "slow" ? "ss-dash-slow" : "";
220
+ return Ks(t, "ss-dash");
222
221
  }
223
222
  const us = D(null), G = D(0);
224
223
  let T = null;
225
- ms(us, (t) => {
224
+ fs(us, (t) => {
226
225
  T?.disconnect(), T = null, t && (G.value = t.clientWidth, T = new ResizeObserver((e) => {
227
226
  for (const a of e)
228
227
  G.value = a.contentRect.width;
@@ -240,14 +239,14 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
240
239
  const e = t;
241
240
  return (t.errorCount ?? 0) + (Number(e.error_count) || 0);
242
241
  })
243
- ), Ds = d(() => Math.max(...V.value, 1)), vs = d(() => Math.ceil(Ds.value * 1.1)), hs = d(() => E.value.some((t) => t > 0)), z = d(() => Ls(vs.value, 4)), Fs = d(
242
+ ), Ds = d(() => Math.max(...V.value, 1)), vs = d(() => Math.ceil(Ds.value * 1.1)), hs = d(() => E.value.some((t) => t > 0)), z = d(() => Ls(vs.value, 4)), Ns = d(
244
243
  () => z.value.length > 0 ? z.value[z.value.length - 1] : vs.value
245
244
  );
246
245
  function X(t) {
247
246
  return h.left + t / Math.max(u.value.length - 1, 1) * cs.value;
248
247
  }
249
248
  function L(t) {
250
- return h.top + j.value - t / (Fs.value || 1) * j.value;
249
+ return h.top + j.value - t / (Ns.value || 1) * j.value;
251
250
  }
252
251
  const p = d(
253
252
  () => u.value.map((t, e) => ({ x: X(e), y: L(V.value[e]) }))
@@ -257,8 +256,8 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
257
256
  () => p.value.length > 1 ? `${Y.value} L${p.value[p.value.length - 1].x.toFixed(1)},${A.value} L${p.value[0].x.toFixed(1)},${A.value} Z` : ""
258
257
  ), ys = d(
259
258
  () => hs.value && q.value.length > 1 ? `${Z.value} L${q.value[q.value.length - 1].x.toFixed(1)},${A.value} L${q.value[0].x.toFixed(1)},${A.value} Z` : ""
260
- ), Ns = d(() => Math.min(10, u.value.length)), Qs = d(
261
- () => Math.max(1, Math.ceil(u.value.length / Ns.value))
259
+ ), Fs = d(() => Math.min(10, u.value.length)), Qs = d(
260
+ () => Math.max(1, Math.ceil(u.value.length / Fs.value))
262
261
  ), c = D({ visible: !1, x: 0, idx: -1 });
263
262
  function js(t) {
264
263
  const e = p.value[t].x;
@@ -288,7 +287,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
288
287
  function J(t) {
289
288
  return t.url || t.pattern || "-";
290
289
  }
291
- function fs(t) {
290
+ function ms(t) {
292
291
  return t.name || t.eventName || t.event_name || t.event || "";
293
292
  }
294
293
  function ss(t) {
@@ -301,9 +300,9 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
301
300
  e[1] || (e[1] = s("div", { class: "ss-dash-card-title" }, "Avg Response Time", -1)),
302
301
  s("div", {
303
302
  class: b(["ss-dash-card-value", Bs()])
304
- }, r(g.value ? x(N)(W.value) : "-"), 3),
303
+ }, r(g.value ? x(F)(W.value) : "-"), 3),
305
304
  s("div", te, [
306
- F(U, {
305
+ N(U, {
307
306
  data: Cs.value,
308
307
  color: "#34d399",
309
308
  width: 160,
@@ -315,9 +314,9 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
315
314
  e[2] || (e[2] = s("div", { class: "ss-dash-card-title" }, "P95 Response Time", -1)),
316
315
  s("div", {
317
316
  class: b(["ss-dash-card-value", Ps()])
318
- }, r(g.value ? x(N)(O.value) : "-"), 3),
317
+ }, r(g.value ? x(F)(O.value) : "-"), 3),
319
318
  s("div", le, [
320
- F(U, {
319
+ N(U, {
321
320
  data: Ms.value,
322
321
  color: "#60a5fa",
323
322
  width: 160,
@@ -331,7 +330,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
331
330
  class: b(["ss-dash-card-value", Us()])
332
331
  }, r(g.value ? qs.value.toFixed(1) : "-"), 3),
333
332
  s("div", ne, [
334
- F(U, {
333
+ N(U, {
335
334
  data: Ts.value,
336
335
  color: "#34d399",
337
336
  width: 160,
@@ -345,7 +344,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
345
344
  class: b(["ss-dash-card-value", Is()])
346
345
  }, r(g.value ? `${H.value.toFixed(1)}%` : "-"), 3),
347
346
  s("div", ie, [
348
- F(U, {
347
+ N(U, {
349
348
  data: Es.value,
350
349
  color: "#f87171",
351
350
  width: 160,
@@ -357,9 +356,9 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
357
356
  s("div", de, [
358
357
  s("div", ue, [
359
358
  e[5] || (e[5] = s("span", { class: "ss-dash-chart-title" }, "Request Volume", -1)),
360
- F(Ys, {
361
- "model-value": m.value,
362
- "onUpdate:modelValue": e[0] || (e[0] = (a) => m.value = a)
359
+ N(Ys, {
360
+ "model-value": f.value,
361
+ "onUpdate:modelValue": e[0] || (e[0] = (a) => f.value = a)
363
362
  }, null, 8, ["model-value"])
364
363
  ]),
365
364
  s("div", ce, [
@@ -430,13 +429,13 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
430
429
  fill: "var(--ss-dim)",
431
430
  "font-size": "9",
432
431
  "dominant-baseline": "middle"
433
- }, r(a), 9, fe)
432
+ }, r(a), 9, me)
434
433
  ]))), 128)),
435
434
  ps.value ? (o(), n("path", {
436
435
  key: 0,
437
436
  d: ps.value,
438
437
  fill: `url(#${ns.value})`
439
- }, null, 8, me)) : v("", !0),
438
+ }, null, 8, fe)) : v("", !0),
440
439
  Y.value ? (o(), n("path", {
441
440
  key: 1,
442
441
  d: Y.value,
@@ -470,7 +469,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
470
469
  fill: "transparent",
471
470
  class: "ss-dash-chart-hover-zone",
472
471
  "data-idx": i,
473
- onMouseenter: (f) => js(i),
472
+ onMouseenter: (m) => js(i),
474
473
  onMouseleave: As
475
474
  }, null, 40, we),
476
475
  V.value[i] > 0 ? (o(), n("circle", {
@@ -559,19 +558,19 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
559
558
  }, [
560
559
  s("span", {
561
560
  title: J(a)
562
- }, r(J(a)), 9, Fe),
561
+ }, r(J(a)), 9, Ne),
563
562
  s("span", {
564
563
  class: b([
565
564
  "ss-dash-secondary-list-value",
566
565
  "ss-dash-duration",
567
566
  ds(a.avgDuration)
568
567
  ])
569
- }, r(x(N)(a.avgDuration)), 3)
568
+ }, r(x(F)(a.avgDuration)), 3)
570
569
  ], 8, De)
571
570
  ]))), 128))
572
571
  ]))
573
572
  ]),
574
- s("div", Ne, [
573
+ s("div", Fe, [
575
574
  e[14] || (e[14] = s("div", { class: "ss-dash-secondary-card-title" }, [
576
575
  s("a", {
577
576
  href: "#queries",
@@ -585,7 +584,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
585
584
  ]),
586
585
  s("li", null, [
587
586
  e[12] || (e[12] = s("span", null, "Avg Duration", -1)),
588
- s("span", Ae, r(x(N)(l.value.queryStats.avgDuration)), 1)
587
+ s("span", Ae, r(x(F)(l.value.queryStats.avgDuration)), 1)
589
588
  ]),
590
589
  s("li", null, [
591
590
  e[13] || (e[13] = s("span", null, "Queries / Request", -1)),
@@ -630,10 +629,10 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
630
629
  l.value.topEvents.length === 0 ? (o(), n("div", He, " No events yet ")) : (o(), n("ul", Ke, [
631
630
  (o(!0), n(_, null, k(l.value.topEvents.slice(0, 5), (a, i) => (o(), n("li", { key: i }, [
632
631
  s("a", {
633
- href: `#events?event_name=${encodeURIComponent(fs(a))}`,
632
+ href: `#events?event_name=${encodeURIComponent(ms(a))}`,
634
633
  class: "ss-dash-widget-row-link"
635
634
  }, [
636
- s("span", null, r(fs(a)), 1),
635
+ s("span", null, r(ms(a)), 1),
637
636
  s("span", Xe, r(a.count), 1)
638
637
  ], 8, Ge)
639
638
  ]))), 128))
@@ -717,11 +716,11 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
717
716
  s("li", null, [
718
717
  s("a", _t, [
719
718
  e[26] || (e[26] = s("span", null, "Keys", -1)),
720
- s("span", ft, r(l.value.cacheStats.totalKeys), 1)
719
+ s("span", mt, r(l.value.cacheStats.totalKeys), 1)
721
720
  ])
722
721
  ]),
723
722
  s("li", null, [
724
- s("a", mt, [
723
+ s("a", ft, [
725
724
  e[27] || (e[27] = s("span", null, "Hit Rate", -1)),
726
725
  s("span", gt, r(l.value.cacheStats.hitRate.toFixed(1)) + "%", 1)
727
726
  ])
@@ -784,11 +783,11 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
784
783
  s("li", null, [
785
784
  s("a", Dt, [
786
785
  e[35] || (e[35] = s("span", { style: { color: "var(--ss-green-fg)" } }, "2xx", -1)),
787
- s("span", Ft, r(l.value.statusDistribution["2xx"]), 1)
786
+ s("span", Nt, r(l.value.statusDistribution["2xx"]), 1)
788
787
  ])
789
788
  ]),
790
789
  s("li", null, [
791
- s("a", Nt, [
790
+ s("a", Ft, [
792
791
  e[36] || (e[36] = s("span", { style: { color: "var(--ss-blue-fg)" } }, "3xx", -1)),
793
792
  s("span", Qt, r(l.value.statusDistribution["3xx"]), 1)
794
793
  ])
@@ -829,7 +828,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
829
828
  "ss-dash-duration",
830
829
  ds(a.avgDuration)
831
830
  ])
832
- }, r(x(N)(a.avgDuration)), 3)
831
+ }, r(x(F)(a.avgDuration)), 3)
833
832
  ], 8, It)
834
833
  ]))), 128))
835
834
  ]))
@@ -843,7 +842,7 @@ const Gs = { class: "ss-dash-btn-group" }, Xs = ["onClick"], Ys = /* @__PURE__ *
843
842
  for (const [$, C] of R)
844
843
  w[$] = C;
845
844
  return w;
846
- }, Yt = /* @__PURE__ */ Ht(Ot, [["__scopeId", "data-v-1e96b18b"]]);
845
+ }, Yt = /* @__PURE__ */ Ht(Ot, [["__scopeId", "data-v-6c6eb892"]]);
847
846
  export {
848
847
  Yt as default
849
848
  };