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
@@ -1,18 +1,18 @@
1
- import { defineComponent as I, computed as x, openBlock as l, createElementBlock as o, normalizeClass as p, createElementVNode as s, Fragment as f, renderList as B, normalizeStyle as U, toDisplayString as d, createTextVNode as k, createCommentVNode as v, inject as L, ref as m, watch as es, nextTick as as, onUnmounted as ls, createVNode as j, createBlock as G, unref as r } from "vue";
2
- import { initSplitPane as ns, formatTime as os, timeAgo as is, normalizeTraceFields as ds, durationSeverity as rs } from "adonisjs-server-stats/core";
3
- import { u as us } from "./useApiClient-BQQ9CF-q.js";
4
- import { u as cs } from "./index-Dtgysd26.js";
5
- import { u as hs } from "./useResizableTable-BoivAevK.js";
6
- import { _ as ms } from "./FilterBar.vue_vue_type_script_setup_true_lang-ClJ37hhT.js";
7
- import { _ as vs } from "./PaginationControls.vue_vue_type_script_setup_true_lang-CuN7g_8Z.js";
8
- import { _ as ps } from "./RelatedLogs.vue_vue_type_script_setup_true_lang-CB2_TzYW.js";
9
- const fs = {
1
+ import { defineComponent as I, computed as x, openBlock as l, createElementBlock as o, normalizeClass as v, createElementVNode as t, Fragment as f, renderList as B, normalizeStyle as U, toDisplayString as d, createTextVNode as k, createCommentVNode as p, inject as S, ref as m, watch as et, nextTick as at, onUnmounted as lt, createVNode as j, createBlock as G, unref as r } from "vue";
2
+ import { initSplitPane as nt, formatTime as ot, timeAgo as it, normalizeTraceFields as dt, durationClassName as rt } from "adonisjs-server-stats/core";
3
+ import { u as ut } from "./useApiClient-BQQ9CF-q.js";
4
+ import { u as ct } from "./index-CM3yNVUR.js";
5
+ import { u as ht } from "./useResizableTable-BoivAevK.js";
6
+ import { _ as mt } from "./FilterBar.vue_vue_type_script_setup_true_lang-ClJ37hhT.js";
7
+ import { _ as pt } from "./PaginationControls.vue_vue_type_script_setup_true_lang-CuN7g_8Z.js";
8
+ import { _ as vt } from "./RelatedLogs.vue_vue_type_script_setup_true_lang-Py1iu9GU.js";
9
+ const ft = {
10
10
  key: 0,
11
11
  class: "ss-dash-empty"
12
- }, gs = { class: "ss-dash-tl-legend" }, ys = ["title"], _s = { class: "ss-dash-tl-track" }, ks = ["title"], ws = { class: "ss-dash-tl-dur" }, bs = {
12
+ }, gt = { class: "ss-dash-tl-legend" }, yt = ["title"], _t = { class: "ss-dash-tl-track" }, kt = ["title"], wt = { class: "ss-dash-tl-dur" }, bt = {
13
13
  key: 0,
14
14
  class: "ss-dash-tl-warnings"
15
- }, Cs = { class: "ss-dash-tl-warnings-title" }, H = /* @__PURE__ */ I({
15
+ }, Ct = { class: "ss-dash-tl-warnings-title" }, H = /* @__PURE__ */ I({
16
16
  __name: "WaterfallChart",
17
17
  props: {
18
18
  spans: {},
@@ -67,92 +67,92 @@ const fs = {
67
67
  return u ? `${a.label} (${a.duration.toFixed(2)}ms)
68
68
  ${u}` : `${a.label} (${a.duration.toFixed(2)}ms)`;
69
69
  }
70
- return (a, u) => C.value.length === 0 ? (l(), o("div", fs, "No spans recorded")) : (l(), o("div", {
70
+ return (a, u) => C.value.length === 0 ? (l(), o("div", ft, "No spans recorded")) : (l(), o("div", {
71
71
  key: 1,
72
- class: p(`ss-dash-tl-waterfall ${g.className || ""}`)
72
+ class: v(`ss-dash-tl-waterfall ${g.className || ""}`)
73
73
  }, [
74
- s("div", gs, [
75
- (l(), o(f, null, B(R, (i, n) => s("div", {
74
+ t("div", gt, [
75
+ (l(), o(f, null, B(R, (i, n) => t("div", {
76
76
  key: n,
77
77
  class: "ss-dash-tl-legend-item"
78
78
  }, [
79
- s("span", {
79
+ t("span", {
80
80
  class: "ss-dash-tl-legend-dot",
81
81
  style: U({ background: b[n] || b.custom })
82
82
  }, null, 4),
83
- s("span", null, d(i), 1)
83
+ t("span", null, d(i), 1)
84
84
  ])), 64))
85
85
  ]),
86
86
  (l(!0), o(f, null, B(y.value, (i) => (l(), o("div", {
87
87
  key: i.id,
88
88
  class: "ss-dash-tl-row"
89
89
  }, [
90
- s("div", {
90
+ t("div", {
91
91
  class: "ss-dash-tl-label",
92
92
  title: q(i),
93
93
  style: U({ paddingLeft: 8 + (T.value[i.id] || 0) * 16 + "px" })
94
94
  }, [
95
- s("span", {
96
- class: p(`ss-dash-badge ss-dash-badge-${N(i.category)}`),
95
+ t("span", {
96
+ class: v(`ss-dash-badge ss-dash-badge-${N(i.category)}`),
97
97
  style: { "font-size": "9px", "margin-right": "4px" }
98
98
  }, d(F(i.category)), 3),
99
99
  k(" " + d(h(i.label)), 1)
100
- ], 12, ys),
101
- s("div", _s, [
102
- s("div", {
103
- class: p(`ss-dash-tl-bar ss-dash-tl-bar-${i.category || "custom"}`),
100
+ ], 12, yt),
101
+ t("div", _t, [
102
+ t("div", {
103
+ class: v(`ss-dash-tl-bar ss-dash-tl-bar-${i.category || "custom"}`),
104
104
  style: U({
105
105
  left: A(i),
106
106
  width: _(i)
107
107
  }),
108
108
  title: q(i)
109
- }, null, 14, ks)
109
+ }, null, 14, kt)
110
110
  ]),
111
- s("span", ws, d(i.duration.toFixed(2)) + "ms", 1)
111
+ t("span", wt, d(i.duration.toFixed(2)) + "ms", 1)
112
112
  ]))), 128)),
113
- g.warnings && g.warnings.length > 0 ? (l(), o("div", bs, [
114
- s("div", Cs, "Warnings (" + d(g.warnings.length) + ")", 1),
113
+ g.warnings && g.warnings.length > 0 ? (l(), o("div", bt, [
114
+ t("div", Ct, "Warnings (" + d(g.warnings.length) + ")", 1),
115
115
  (l(!0), o(f, null, B(g.warnings, (i, n) => (l(), o("div", {
116
116
  key: n,
117
117
  class: "ss-dash-tl-warning"
118
118
  }, d(i), 1))), 128))
119
- ])) : v("", !0)
119
+ ])) : p("", !0)
120
120
  ], 2));
121
121
  }
122
- }), $s = { class: "ss-dash-tl-detail-header" }, xs = { style: { color: "var(--ss-text)" } }, Rs = { class: "ss-dash-tl-meta" }, qs = { class: "ss-dash-tl-detail-header" }, Ds = {
122
+ }), $t = { class: "ss-dash-tl-detail-header" }, xt = { style: { color: "var(--ss-text)" } }, Rt = { class: "ss-dash-tl-meta" }, qt = { class: "ss-dash-tl-detail-header" }, Dt = {
123
123
  key: 0,
124
124
  class: "ss-dash-empty"
125
- }, Ss = {
125
+ }, Lt = {
126
126
  key: 1,
127
127
  class: "ss-dash-empty"
128
- }, Ls = { class: "ss-dash-table-wrap" }, Bs = {
128
+ }, St = { class: "ss-dash-table-wrap" }, Bt = {
129
129
  key: 0,
130
130
  class: "ss-dash-sort-arrow"
131
- }, Ts = {
131
+ }, Tt = {
132
132
  key: 0,
133
133
  class: "ss-dash-sort-arrow"
134
- }, As = {
134
+ }, At = {
135
135
  key: 0,
136
136
  class: "ss-dash-sort-arrow"
137
- }, Fs = {
137
+ }, Ft = {
138
138
  key: 0,
139
139
  class: "ss-dash-sort-arrow"
140
- }, Ns = {
140
+ }, Nt = {
141
141
  key: 0,
142
142
  class: "ss-dash-sort-arrow"
143
- }, Os = ["onClick"], Ps = { style: { color: "var(--ss-dim)" } }, Es = ["title"], Ms = { style: { color: "var(--ss-muted)", "text-align": "center" } }, Vs = {
143
+ }, Ot = ["onClick"], Pt = { style: { color: "var(--ss-dim)" } }, Et = ["title"], Mt = { style: { color: "var(--ss-muted)", "text-align": "center" } }, Vt = {
144
144
  key: 0,
145
145
  style: { color: "var(--ss-amber-fg)", "text-align": "center", display: "block" }
146
- }, zs = {
146
+ }, zt = {
147
147
  key: 1,
148
148
  style: { color: "var(--ss-dim)", "text-align": "center", display: "block" }
149
- }, Us = ["title"], js = {
149
+ }, Ut = ["title"], jt = {
150
150
  key: 1,
151
151
  class: "ss-dash-empty"
152
- }, Xs = /* @__PURE__ */ I({
152
+ }, Xt = /* @__PURE__ */ I({
153
153
  __name: "RequestsSection",
154
154
  setup(g) {
155
- const w = L("ss-refresh-key", m(0)), b = L("ss-dashboard-endpoint", "/__stats/api"), R = L("ss-auth-token", void 0), C = L("ss-base-url", ""), { data: y, loading: T, error: A, pagination: _, sort: h, goToPage: F, setSearch: N, setSort: q } = cs(
155
+ const w = S("ss-refresh-key", m(0)), b = S("ss-dashboard-endpoint", "/__stats/api"), R = S("ss-auth-token", void 0), C = S("ss-base-url", ""), { data: y, loading: T, error: A, pagination: _, sort: h, goToPage: F, setSearch: N, setSort: q } = ct(
156
156
  () => "requests",
157
157
  {
158
158
  baseUrl: C,
@@ -164,13 +164,13 @@ ${u}` : `${a.label} (${a.duration.toFixed(2)}ms)`;
164
164
  if (!y.value) return [];
165
165
  const c = y.value;
166
166
  return c.data || c.requests || y.value || [];
167
- }), K = us(C, R);
167
+ }), K = ut(C, R);
168
168
  async function Y(c) {
169
- const t = c.id;
169
+ const e = c.id;
170
170
  i.value = !0;
171
171
  try {
172
- const e = b || "/__stats/api", S = await K().fetch(`${e}/requests/${t}`), W = S.trace, ts = W ? { ...S, ...W, logs: S.logs } : S;
173
- n.value = ds(ts), u.value = c;
172
+ const s = b || "/__stats/api", L = await K().fetch(`${s}/requests/${e}`), W = L.trace, st = W ? { ...L, ...W, logs: L.logs } : L;
173
+ n.value = dt(st), u.value = c;
174
174
  } catch {
175
175
  } finally {
176
176
  i.value = !1;
@@ -186,38 +186,37 @@ ${u}` : `${a.label} (${a.duration.toFixed(2)}ms)`;
186
186
  q(c);
187
187
  }
188
188
  function X(c) {
189
- const t = rs(c);
190
- return t === "very-slow" ? "ss-dash-very-slow" : t === "slow" ? "ss-dash-slow" : "";
189
+ return rt(c, "ss-dash");
191
190
  }
192
- const { tableRef: Z } = hs(() => O.value), P = m(null), E = m(null), M = m(null), V = m(null);
191
+ const { tableRef: Z } = ht(() => O.value), P = m(null), E = m(null), M = m(null), V = m(null);
193
192
  let D = null;
194
193
  const z = x(() => n.value ? n.value.logs || [] : []);
195
- return es([() => u.value, () => n.value], async () => {
196
- D?.(), D = null, n.value && z.value.length > 0 && (await as(), P.value && E.value && M.value && V.value && (D = ns({
194
+ return et([() => u.value, () => n.value], async () => {
195
+ D?.(), D = null, n.value && z.value.length > 0 && (await at(), P.value && E.value && M.value && V.value && (D = nt({
197
196
  container: P.value,
198
197
  handle: E.value,
199
198
  topPane: M.value,
200
199
  bottomPane: V.value,
201
200
  storageKey: "ss-requests-split"
202
201
  })));
203
- }), ls(() => {
202
+ }), lt(() => {
204
203
  D?.();
205
- }), (c, t) => (l(), o("div", null, [
204
+ }), (c, e) => (l(), o("div", null, [
206
205
  n.value && u.value ? (l(), o(f, { key: 0 }, [
207
- s("div", $s, [
208
- s("button", {
206
+ t("div", $t, [
207
+ t("button", {
209
208
  type: "button",
210
209
  class: "ss-dash-btn",
211
210
  onClick: J
212
211
  }, " ← Back to Requests "),
213
- s("span", {
214
- class: p(`ss-dash-method ss-dash-method-${(n.value.method || "").toLowerCase()}`)
212
+ t("span", {
213
+ class: v(`ss-dash-method ss-dash-method-${(n.value.method || "").toLowerCase()}`)
215
214
  }, d(n.value.method), 3),
216
- s("span", xs, d(n.value.url), 1),
217
- s("span", {
218
- class: p(`ss-dash-status ss-dash-status-${Math.floor((n.value.statusCode || 200) / 100)}xx`)
215
+ t("span", xt, d(n.value.url), 1),
216
+ t("span", {
217
+ class: v(`ss-dash-status ss-dash-status-${Math.floor((n.value.statusCode || 200) / 100)}xx`)
219
218
  }, d(n.value.statusCode), 3),
220
- s("span", Rs, d(n.value.totalDuration.toFixed(1)) + "ms · " + d(n.value.spanCount) + " spans ", 1)
219
+ t("span", Rt, d(n.value.totalDuration.toFixed(1)) + "ms · " + d(n.value.spanCount) + " spans ", 1)
221
220
  ]),
222
221
  z.value.length > 0 ? (l(), o("div", {
223
222
  key: 0,
@@ -225,7 +224,7 @@ ${u}` : `${a.label} (${a.duration.toFixed(2)}ms)`;
225
224
  ref: P,
226
225
  class: "ss-dash-split-container"
227
226
  }, [
228
- s("div", {
227
+ t("div", {
229
228
  ref_key: "splitTopRef",
230
229
  ref: M,
231
230
  class: "ss-dash-split-top"
@@ -236,20 +235,17 @@ ${u}` : `${a.label} (${a.duration.toFixed(2)}ms)`;
236
235
  warnings: n.value.warnings
237
236
  }, null, 8, ["spans", "total-duration", "warnings"])
238
237
  ], 512),
239
- s("div", {
238
+ t("div", {
240
239
  ref_key: "splitHandleRef",
241
240
  ref: E,
242
241
  class: "ss-dash-split-handle"
243
242
  }, null, 512),
244
- s("div", {
243
+ t("div", {
245
244
  ref_key: "splitBottomRef",
246
245
  ref: V,
247
246
  class: "ss-dash-split-bottom"
248
247
  }, [
249
- j(ps, {
250
- logs: z.value,
251
- "class-prefix": "ss-dash"
252
- }, null, 8, ["logs"])
248
+ j(vt, { logs: z.value }, null, 8, ["logs"])
253
249
  ], 512)
254
250
  ], 512)) : (l(), G(H, {
255
251
  key: 1,
@@ -258,144 +254,144 @@ ${u}` : `${a.label} (${a.duration.toFixed(2)}ms)`;
258
254
  warnings: n.value.warnings
259
255
  }, null, 8, ["spans", "total-duration", "warnings"]))
260
256
  ], 64)) : i.value ? (l(), o(f, { key: 1 }, [
261
- s("div", qs, [
262
- s("button", {
257
+ t("div", qt, [
258
+ t("button", {
263
259
  type: "button",
264
260
  class: "ss-dash-btn",
265
- onClick: t[0] || (t[0] = (e) => i.value = !1)
261
+ onClick: e[0] || (e[0] = (s) => i.value = !1)
266
262
  }, " ← Back to Requests ")
267
263
  ]),
268
- t[6] || (t[6] = s("div", { class: "ss-dash-empty" }, "Loading request detail...", -1))
264
+ e[6] || (e[6] = t("div", { class: "ss-dash-empty" }, "Loading request detail...", -1))
269
265
  ], 64)) : (l(), o(f, { key: 2 }, [
270
- j(ms, {
266
+ j(mt, {
271
267
  "model-value": a.value,
272
268
  placeholder: "Filter requests...",
273
269
  summary: `${r(_).total ?? 0} requests`,
274
270
  "onUpdate:modelValue": Q
275
271
  }, null, 8, ["model-value", "summary"]),
276
- r(A) ? (l(), o("div", Ds, "Failed to load requests")) : v("", !0),
277
- r(T) && !r(y) ? (l(), o("div", Ss, "Loading requests...")) : (l(), o(f, { key: 2 }, [
278
- s("div", Ls, [
272
+ r(A) ? (l(), o("div", Dt, "Failed to load requests")) : p("", !0),
273
+ r(T) && !r(y) ? (l(), o("div", Lt, "Loading requests...")) : (l(), o(f, { key: 2 }, [
274
+ t("div", St, [
279
275
  O.value.length > 0 ? (l(), o("table", {
280
276
  key: 0,
281
277
  ref_key: "tableRef",
282
278
  ref: Z,
283
279
  class: "ss-dash-table"
284
280
  }, [
285
- t[15] || (t[15] = s("colgroup", null, [
286
- s("col", { style: { width: "40px" } }),
287
- s("col", { style: { width: "70px" } }),
288
- s("col"),
289
- s("col", { style: { width: "60px" } }),
290
- s("col", { style: { width: "80px" } }),
291
- s("col", { style: { width: "50px" } }),
292
- s("col", { style: { width: "40px" } }),
293
- s("col", { style: { width: "80px" } })
281
+ e[15] || (e[15] = t("colgroup", null, [
282
+ t("col", { style: { width: "40px" } }),
283
+ t("col", { style: { width: "70px" } }),
284
+ t("col"),
285
+ t("col", { style: { width: "60px" } }),
286
+ t("col", { style: { width: "80px" } }),
287
+ t("col", { style: { width: "50px" } }),
288
+ t("col", { style: { width: "40px" } }),
289
+ t("col", { style: { width: "80px" } })
294
290
  ], -1)),
295
- s("thead", null, [
296
- s("tr", null, [
297
- t[12] || (t[12] = s("th", null, "#", -1)),
298
- s("th", {
291
+ t("thead", null, [
292
+ t("tr", null, [
293
+ e[12] || (e[12] = t("th", null, "#", -1)),
294
+ t("th", {
299
295
  class: "ss-dash-sortable",
300
- onClick: t[1] || (t[1] = (e) => $("method"))
296
+ onClick: e[1] || (e[1] = (s) => $("method"))
301
297
  }, [
302
- t[7] || (t[7] = k(" Method ", -1)),
303
- r(h).column === "method" ? (l(), o("span", Bs, d(r(h).direction === "asc" ? " ▲" : " ▼"), 1)) : v("", !0)
298
+ e[7] || (e[7] = k(" Method ", -1)),
299
+ r(h).column === "method" ? (l(), o("span", Bt, d(r(h).direction === "asc" ? " ▲" : " ▼"), 1)) : p("", !0)
304
300
  ]),
305
- s("th", {
301
+ t("th", {
306
302
  class: "ss-dash-sortable",
307
- onClick: t[2] || (t[2] = (e) => $("url"))
303
+ onClick: e[2] || (e[2] = (s) => $("url"))
308
304
  }, [
309
- t[8] || (t[8] = k(" URL ", -1)),
310
- r(h).column === "url" ? (l(), o("span", Ts, d(r(h).direction === "asc" ? " ▲" : " ▼"), 1)) : v("", !0)
305
+ e[8] || (e[8] = k(" URL ", -1)),
306
+ r(h).column === "url" ? (l(), o("span", Tt, d(r(h).direction === "asc" ? " ▲" : " ▼"), 1)) : p("", !0)
311
307
  ]),
312
- s("th", {
308
+ t("th", {
313
309
  class: "ss-dash-sortable",
314
- onClick: t[3] || (t[3] = (e) => $("statusCode"))
310
+ onClick: e[3] || (e[3] = (s) => $("statusCode"))
315
311
  }, [
316
- t[9] || (t[9] = k(" Status ", -1)),
317
- r(h).column === "statusCode" ? (l(), o("span", As, d(r(h).direction === "asc" ? " ▲" : " ▼"), 1)) : v("", !0)
312
+ e[9] || (e[9] = k(" Status ", -1)),
313
+ r(h).column === "statusCode" ? (l(), o("span", At, d(r(h).direction === "asc" ? " ▲" : " ▼"), 1)) : p("", !0)
318
314
  ]),
319
- s("th", {
315
+ t("th", {
320
316
  class: "ss-dash-sortable",
321
- onClick: t[4] || (t[4] = (e) => $("duration"))
317
+ onClick: e[4] || (e[4] = (s) => $("duration"))
322
318
  }, [
323
- t[10] || (t[10] = k(" Duration ", -1)),
324
- r(h).column === "duration" ? (l(), o("span", Fs, d(r(h).direction === "asc" ? " ▲" : " ▼"), 1)) : v("", !0)
319
+ e[10] || (e[10] = k(" Duration ", -1)),
320
+ r(h).column === "duration" ? (l(), o("span", Ft, d(r(h).direction === "asc" ? " ▲" : " ▼"), 1)) : p("", !0)
325
321
  ]),
326
- t[13] || (t[13] = s("th", null, "Spans", -1)),
327
- t[14] || (t[14] = s("th", null, "⚠", -1)),
328
- s("th", {
322
+ e[13] || (e[13] = t("th", null, "Spans", -1)),
323
+ e[14] || (e[14] = t("th", null, "⚠", -1)),
324
+ t("th", {
329
325
  class: "ss-dash-sortable",
330
- onClick: t[5] || (t[5] = (e) => $("createdAt"))
326
+ onClick: e[5] || (e[5] = (s) => $("createdAt"))
331
327
  }, [
332
- t[11] || (t[11] = k(" Time ", -1)),
333
- r(h).column === "createdAt" ? (l(), o("span", Ns, d(r(h).direction === "asc" ? " ▲" : " ▼"), 1)) : v("", !0)
328
+ e[11] || (e[11] = k(" Time ", -1)),
329
+ r(h).column === "createdAt" ? (l(), o("span", Nt, d(r(h).direction === "asc" ? " ▲" : " ▼"), 1)) : p("", !0)
334
330
  ])
335
331
  ])
336
332
  ]),
337
- s("tbody", null, [
338
- (l(!0), o(f, null, B(O.value, (e) => (l(), o("tr", {
339
- key: e.id,
333
+ t("tbody", null, [
334
+ (l(!0), o(f, null, B(O.value, (s) => (l(), o("tr", {
335
+ key: s.id,
340
336
  class: "ss-dash-clickable",
341
- onClick: (ss) => Y(e)
337
+ onClick: (tt) => Y(s)
342
338
  }, [
343
- s("td", null, [
344
- s("span", Ps, d(e.id), 1)
339
+ t("td", null, [
340
+ t("span", Pt, d(s.id), 1)
345
341
  ]),
346
- s("td", null, [
347
- s("span", {
348
- class: p(`ss-dash-method ss-dash-method-${(e.method || "").toLowerCase()}`)
349
- }, d(e.method), 3)
342
+ t("td", null, [
343
+ t("span", {
344
+ class: v(`ss-dash-method ss-dash-method-${(s.method || "").toLowerCase()}`)
345
+ }, d(s.method), 3)
350
346
  ]),
351
- s("td", null, [
352
- s("span", {
347
+ t("td", null, [
348
+ t("span", {
353
349
  style: { color: "var(--ss-text)", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" },
354
- title: e.url
355
- }, d(e.url), 9, Es)
350
+ title: s.url
351
+ }, d(s.url), 9, Et)
356
352
  ]),
357
- s("td", null, [
358
- s("span", {
359
- class: p(`ss-dash-status ss-dash-status-${Math.floor((e.status_code || e.statusCode || 200) / 100)}xx`)
360
- }, d(e.status_code || e.statusCode), 3)
353
+ t("td", null, [
354
+ t("span", {
355
+ class: v(`ss-dash-status ss-dash-status-${Math.floor((s.status_code || s.statusCode || 200) / 100)}xx`)
356
+ }, d(s.status_code || s.statusCode), 3)
361
357
  ]),
362
- s("td", null, [
363
- s("span", {
364
- class: p(`ss-dash-duration ${X(e.total_duration || e.totalDuration || e.duration || 0)}`)
365
- }, d((e.total_duration || e.totalDuration || e.duration || 0).toFixed(1)) + "ms ", 3)
358
+ t("td", null, [
359
+ t("span", {
360
+ class: v(`ss-dash-duration ${X(s.total_duration || s.totalDuration || s.duration || 0)}`)
361
+ }, d((s.total_duration || s.totalDuration || s.duration || 0).toFixed(1)) + "ms ", 3)
366
362
  ]),
367
- s("td", null, [
368
- s("span", Ms, d(e.span_count || e.spanCount || 0), 1)
363
+ t("td", null, [
364
+ t("span", Mt, d(s.span_count || s.spanCount || 0), 1)
369
365
  ]),
370
- s("td", null, [
371
- (e.warning_count || e.warningCount || 0) > 0 ? (l(), o("span", Vs, d(e.warning_count || e.warningCount || 0), 1)) : (l(), o("span", zs, "-"))
366
+ t("td", null, [
367
+ (s.warning_count || s.warningCount || 0) > 0 ? (l(), o("span", Vt, d(s.warning_count || s.warningCount || 0), 1)) : (l(), o("span", zt, "-"))
372
368
  ]),
373
- s("td", null, [
374
- s("span", {
369
+ t("td", null, [
370
+ t("span", {
375
371
  class: "ss-dash-event-time",
376
- title: r(os)(
377
- e.createdAt || e.created_at || e.timestamp || ""
372
+ title: r(ot)(
373
+ s.createdAt || s.created_at || s.timestamp || ""
378
374
  )
379
- }, d(r(is)(
380
- e.createdAt || e.created_at || e.timestamp || ""
381
- )), 9, Us)
375
+ }, d(r(it)(
376
+ s.createdAt || s.created_at || s.timestamp || ""
377
+ )), 9, Ut)
382
378
  ])
383
- ], 8, Os))), 128))
379
+ ], 8, Ot))), 128))
384
380
  ])
385
- ], 512)) : (l(), o("div", js, "No requests recorded yet"))
381
+ ], 512)) : (l(), o("div", jt, "No requests recorded yet"))
386
382
  ]),
387
- r(_).totalPages > 1 ? (l(), G(vs, {
383
+ r(_).totalPages > 1 ? (l(), G(pt, {
388
384
  key: 0,
389
385
  page: r(_).page,
390
386
  "last-page": r(_).totalPages,
391
387
  total: r(_).total,
392
388
  onPageChange: r(F)
393
- }, null, 8, ["page", "last-page", "total", "onPageChange"])) : v("", !0)
389
+ }, null, 8, ["page", "last-page", "total", "onPageChange"])) : p("", !0)
394
390
  ], 64))
395
391
  ], 64))
396
392
  ]));
397
393
  }
398
394
  });
399
395
  export {
400
- Xs as default
396
+ Xt as default
401
397
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as g, inject as d, ref as c, computed as A, openBlock as l, createElementBlock as o, createVNode as N, unref as u, createElementVNode as e, Fragment as R, renderList as S, normalizeClass as j, toDisplayString as a } from "vue";
2
- import { u as z } from "./index-Dtgysd26.js";
2
+ import { u as z } from "./index-CM3yNVUR.js";
3
3
  import { u as C } from "./useResizableTable-BoivAevK.js";
4
4
  import { _ as D } from "./FilterBar.vue_vue_type_script_setup_true_lang-ClJ37hhT.js";
5
5
  const E = {