adonisjs-server-stats 1.5.4 → 1.6.2

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 (527) hide show
  1. package/README.md +351 -171
  2. package/dist/configure.d.ts.map +1 -1
  3. package/dist/core/api-client.d.ts +73 -0
  4. package/dist/core/api-client.d.ts.map +1 -0
  5. package/dist/core/config-utils.d.ts +109 -0
  6. package/dist/core/config-utils.d.ts.map +1 -0
  7. package/dist/core/constants.d.ts +11 -0
  8. package/dist/core/constants.d.ts.map +1 -0
  9. package/dist/core/dashboard-api.d.ts +65 -0
  10. package/dist/core/dashboard-api.d.ts.map +1 -0
  11. package/dist/core/dashboard-data-controller.d.ts +157 -0
  12. package/dist/core/dashboard-data-controller.d.ts.map +1 -0
  13. package/dist/core/debug-data-controller.d.ts +89 -0
  14. package/dist/core/debug-data-controller.d.ts.map +1 -0
  15. package/dist/core/feature-detect.d.ts +67 -0
  16. package/dist/core/feature-detect.d.ts.map +1 -0
  17. package/dist/core/formatters.d.ts +189 -0
  18. package/dist/core/formatters.d.ts.map +1 -0
  19. package/dist/core/history-buffer.d.ts +23 -0
  20. package/dist/core/history-buffer.d.ts.map +1 -0
  21. package/dist/core/icons.d.ts +36 -0
  22. package/dist/core/icons.d.ts.map +1 -0
  23. package/dist/core/index.d.ts +39 -0
  24. package/dist/core/index.d.ts.map +1 -0
  25. package/dist/core/index.js +1961 -0
  26. package/dist/core/internals-utils.d.ts +71 -0
  27. package/dist/core/internals-utils.d.ts.map +1 -0
  28. package/dist/core/job-utils.d.ts +45 -0
  29. package/dist/core/job-utils.d.ts.map +1 -0
  30. package/dist/core/log-utils.d.ts +34 -0
  31. package/dist/core/log-utils.d.ts.map +1 -0
  32. package/dist/core/metrics.d.ts +41 -0
  33. package/dist/core/metrics.d.ts.map +1 -0
  34. package/dist/core/pagination.d.ts +128 -0
  35. package/dist/core/pagination.d.ts.map +1 -0
  36. package/dist/core/query-utils.d.ts +35 -0
  37. package/dist/core/query-utils.d.ts.map +1 -0
  38. package/dist/core/resizable-columns.d.ts +18 -0
  39. package/dist/core/resizable-columns.d.ts.map +1 -0
  40. package/dist/core/routes.d.ts +12 -0
  41. package/dist/core/routes.d.ts.map +1 -0
  42. package/dist/core/server-stats-controller.d.ts +106 -0
  43. package/dist/core/server-stats-controller.d.ts.map +1 -0
  44. package/dist/core/sparkline.d.ts +80 -0
  45. package/dist/core/sparkline.d.ts.map +1 -0
  46. package/dist/core/theme.d.ts +42 -0
  47. package/dist/core/theme.d.ts.map +1 -0
  48. package/dist/core/trace-utils.d.ts +62 -0
  49. package/dist/core/trace-utils.d.ts.map +1 -0
  50. package/dist/core/transmit-adapter.d.ts +59 -0
  51. package/dist/core/transmit-adapter.d.ts.map +1 -0
  52. package/dist/core/types.d.ts +619 -0
  53. package/dist/core/types.d.ts.map +1 -0
  54. package/dist/react/CacheSection-DGxMDlWK.js +146 -0
  55. package/dist/react/CacheTab-CnVW5PLs.js +123 -0
  56. package/dist/react/ConfigContent-CnsEI4j3.js +397 -0
  57. package/dist/react/ConfigSection-DPcrfqXY.js +11 -0
  58. package/dist/react/ConfigTab-BSWq_o2p.js +15 -0
  59. package/dist/react/CustomPaneTab-xjkYwTvH.js +104 -0
  60. package/dist/react/DataTable-YyShr5B-.js +55 -0
  61. package/dist/react/EmailsSection-CSyTg1aX.js +262 -0
  62. package/dist/react/EmailsTab-Dh2YSa_f.js +131 -0
  63. package/dist/react/EventsSection-C1pbJDfW.js +86 -0
  64. package/dist/react/EventsTab-eCh02cdd.js +63 -0
  65. package/dist/react/FilterBar-DQRXpWrb.js +50 -0
  66. package/dist/react/InternalsContent-DBzsI0CG.js +346 -0
  67. package/dist/react/InternalsSection-t7ihcWO-.js +32 -0
  68. package/dist/react/InternalsTab-Oij0A2fN.js +30 -0
  69. package/dist/react/JobsSection-CLAin5vU.js +187 -0
  70. package/dist/react/JobsTab-Dl5nrj2z.js +141 -0
  71. package/dist/react/LogsSection-C1p81fXO.js +212 -0
  72. package/dist/react/LogsTab-D-kR7PjX.js +88 -0
  73. package/dist/react/OverviewSection-nm3xdACz.js +539 -0
  74. package/dist/react/Pagination-BkmzUDY8.js +64 -0
  75. package/dist/react/QueriesSection-DB12HMfQ.js +461 -0
  76. package/dist/react/QueriesTab-fyBB1u_Y.js +90 -0
  77. package/dist/react/RequestsSection-DTqB81ac.js +209 -0
  78. package/dist/react/RoutesSection-DJWa4NPV.js +74 -0
  79. package/dist/react/RoutesTab-D3l8TOpu.js +74 -0
  80. package/dist/react/TimelineSection-C4d-jRX1.js +158 -0
  81. package/dist/react/TimelineTab-C5TFaSmQ.js +193 -0
  82. package/dist/react/WaterfallChart-Cj73WdfM.js +100 -0
  83. package/dist/react/core/api-client.d.ts +73 -0
  84. package/dist/react/core/api-client.d.ts.map +1 -0
  85. package/dist/react/core/config-utils.d.ts +109 -0
  86. package/dist/react/core/config-utils.d.ts.map +1 -0
  87. package/dist/react/core/constants.d.ts +11 -0
  88. package/dist/react/core/constants.d.ts.map +1 -0
  89. package/dist/react/core/dashboard-api.d.ts +65 -0
  90. package/dist/react/core/dashboard-api.d.ts.map +1 -0
  91. package/dist/react/core/dashboard-data-controller.d.ts +157 -0
  92. package/dist/react/core/dashboard-data-controller.d.ts.map +1 -0
  93. package/dist/react/core/debug-data-controller.d.ts +89 -0
  94. package/dist/react/core/debug-data-controller.d.ts.map +1 -0
  95. package/dist/react/core/feature-detect.d.ts +67 -0
  96. package/dist/react/core/feature-detect.d.ts.map +1 -0
  97. package/dist/react/core/formatters.d.ts +189 -0
  98. package/dist/react/core/formatters.d.ts.map +1 -0
  99. package/dist/react/core/history-buffer.d.ts +23 -0
  100. package/dist/react/core/history-buffer.d.ts.map +1 -0
  101. package/dist/react/core/icons.d.ts +36 -0
  102. package/dist/react/core/icons.d.ts.map +1 -0
  103. package/dist/react/core/index.d.ts +39 -0
  104. package/dist/react/core/index.d.ts.map +1 -0
  105. package/dist/react/core/internals-utils.d.ts +71 -0
  106. package/dist/react/core/internals-utils.d.ts.map +1 -0
  107. package/dist/react/core/job-utils.d.ts +45 -0
  108. package/dist/react/core/job-utils.d.ts.map +1 -0
  109. package/dist/react/core/log-utils.d.ts +34 -0
  110. package/dist/react/core/log-utils.d.ts.map +1 -0
  111. package/dist/react/core/metrics.d.ts +41 -0
  112. package/dist/react/core/metrics.d.ts.map +1 -0
  113. package/dist/react/core/pagination.d.ts +128 -0
  114. package/dist/react/core/pagination.d.ts.map +1 -0
  115. package/dist/react/core/query-utils.d.ts +35 -0
  116. package/dist/react/core/query-utils.d.ts.map +1 -0
  117. package/dist/react/core/resizable-columns.d.ts +18 -0
  118. package/dist/react/core/resizable-columns.d.ts.map +1 -0
  119. package/dist/react/core/routes.d.ts +12 -0
  120. package/dist/react/core/routes.d.ts.map +1 -0
  121. package/dist/react/core/server-stats-controller.d.ts +106 -0
  122. package/dist/react/core/server-stats-controller.d.ts.map +1 -0
  123. package/dist/react/core/sparkline.d.ts +80 -0
  124. package/dist/react/core/sparkline.d.ts.map +1 -0
  125. package/dist/react/core/theme.d.ts +42 -0
  126. package/dist/react/core/theme.d.ts.map +1 -0
  127. package/dist/react/core/trace-utils.d.ts +62 -0
  128. package/dist/react/core/trace-utils.d.ts.map +1 -0
  129. package/dist/react/core/transmit-adapter.d.ts +59 -0
  130. package/dist/react/core/transmit-adapter.d.ts.map +1 -0
  131. package/dist/react/core/types.d.ts +619 -0
  132. package/dist/react/core/types.d.ts.map +1 -0
  133. package/dist/react/index-UdTfSvtO.js +1074 -0
  134. package/dist/react/index.js +18 -0
  135. package/dist/react/react/components/Dashboard/DashboardPage.d.ts +17 -0
  136. package/dist/react/react/components/Dashboard/DashboardPage.d.ts.map +1 -0
  137. package/dist/react/react/components/Dashboard/sections/CacheSection.d.ts +7 -0
  138. package/dist/react/react/components/Dashboard/sections/CacheSection.d.ts.map +1 -0
  139. package/dist/react/react/components/Dashboard/sections/ConfigSection.d.ts +7 -0
  140. package/dist/react/react/components/Dashboard/sections/ConfigSection.d.ts.map +1 -0
  141. package/dist/react/react/components/Dashboard/sections/EmailsSection.d.ts +7 -0
  142. package/dist/react/react/components/Dashboard/sections/EmailsSection.d.ts.map +1 -0
  143. package/dist/react/react/components/Dashboard/sections/EventsSection.d.ts +7 -0
  144. package/dist/react/react/components/Dashboard/sections/EventsSection.d.ts.map +1 -0
  145. package/dist/react/react/components/Dashboard/sections/InternalsSection.d.ts +14 -0
  146. package/dist/react/react/components/Dashboard/sections/InternalsSection.d.ts.map +1 -0
  147. package/dist/react/react/components/Dashboard/sections/JobsSection.d.ts +7 -0
  148. package/dist/react/react/components/Dashboard/sections/JobsSection.d.ts.map +1 -0
  149. package/dist/react/react/components/Dashboard/sections/LogsSection.d.ts +7 -0
  150. package/dist/react/react/components/Dashboard/sections/LogsSection.d.ts.map +1 -0
  151. package/dist/react/react/components/Dashboard/sections/OverviewSection.d.ts +7 -0
  152. package/dist/react/react/components/Dashboard/sections/OverviewSection.d.ts.map +1 -0
  153. package/dist/react/react/components/Dashboard/sections/QueriesSection.d.ts +7 -0
  154. package/dist/react/react/components/Dashboard/sections/QueriesSection.d.ts.map +1 -0
  155. package/dist/react/react/components/Dashboard/sections/RequestsSection.d.ts +7 -0
  156. package/dist/react/react/components/Dashboard/sections/RequestsSection.d.ts.map +1 -0
  157. package/dist/react/react/components/Dashboard/sections/RoutesSection.d.ts +7 -0
  158. package/dist/react/react/components/Dashboard/sections/RoutesSection.d.ts.map +1 -0
  159. package/dist/react/react/components/Dashboard/sections/TimelineSection.d.ts +9 -0
  160. package/dist/react/react/components/Dashboard/sections/TimelineSection.d.ts.map +1 -0
  161. package/dist/react/react/components/Dashboard/shared/DataTable.d.ts +27 -0
  162. package/dist/react/react/components/Dashboard/shared/DataTable.d.ts.map +1 -0
  163. package/dist/react/react/components/Dashboard/shared/FilterBar.d.ts +17 -0
  164. package/dist/react/react/components/Dashboard/shared/FilterBar.d.ts.map +1 -0
  165. package/dist/react/react/components/Dashboard/shared/Pagination.d.ts +13 -0
  166. package/dist/react/react/components/Dashboard/shared/Pagination.d.ts.map +1 -0
  167. package/dist/react/react/components/Dashboard/shared/TimeRangeSelector.d.ts +12 -0
  168. package/dist/react/react/components/Dashboard/shared/TimeRangeSelector.d.ts.map +1 -0
  169. package/dist/react/react/components/Dashboard/shared/WaterfallChart.d.ts +16 -0
  170. package/dist/react/react/components/Dashboard/shared/WaterfallChart.d.ts.map +1 -0
  171. package/dist/react/react/components/DebugPanel/DebugPanel.d.ts +16 -0
  172. package/dist/react/react/components/DebugPanel/DebugPanel.d.ts.map +1 -0
  173. package/dist/react/react/components/DebugPanel/tabs/CacheTab.d.ts +8 -0
  174. package/dist/react/react/components/DebugPanel/tabs/CacheTab.d.ts.map +1 -0
  175. package/dist/react/react/components/DebugPanel/tabs/ConfigTab.d.ts +8 -0
  176. package/dist/react/react/components/DebugPanel/tabs/ConfigTab.d.ts.map +1 -0
  177. package/dist/react/react/components/DebugPanel/tabs/CustomPaneTab.d.ts +14 -0
  178. package/dist/react/react/components/DebugPanel/tabs/CustomPaneTab.d.ts.map +1 -0
  179. package/dist/react/react/components/DebugPanel/tabs/EmailsTab.d.ts +7 -0
  180. package/dist/react/react/components/DebugPanel/tabs/EmailsTab.d.ts.map +1 -0
  181. package/dist/react/react/components/DebugPanel/tabs/EventsTab.d.ts +7 -0
  182. package/dist/react/react/components/DebugPanel/tabs/EventsTab.d.ts.map +1 -0
  183. package/dist/react/react/components/DebugPanel/tabs/InternalsTab.d.ts +12 -0
  184. package/dist/react/react/components/DebugPanel/tabs/InternalsTab.d.ts.map +1 -0
  185. package/dist/react/react/components/DebugPanel/tabs/JobsTab.d.ts +9 -0
  186. package/dist/react/react/components/DebugPanel/tabs/JobsTab.d.ts.map +1 -0
  187. package/dist/react/react/components/DebugPanel/tabs/LogsTab.d.ts +7 -0
  188. package/dist/react/react/components/DebugPanel/tabs/LogsTab.d.ts.map +1 -0
  189. package/dist/react/react/components/DebugPanel/tabs/QueriesTab.d.ts +7 -0
  190. package/dist/react/react/components/DebugPanel/tabs/QueriesTab.d.ts.map +1 -0
  191. package/dist/react/react/components/DebugPanel/tabs/RoutesTab.d.ts +8 -0
  192. package/dist/react/react/components/DebugPanel/tabs/RoutesTab.d.ts.map +1 -0
  193. package/dist/react/react/components/DebugPanel/tabs/TimelineTab.d.ts +7 -0
  194. package/dist/react/react/components/DebugPanel/tabs/TimelineTab.d.ts.map +1 -0
  195. package/dist/react/react/components/StatsBar/MetricCard.d.ts +21 -0
  196. package/dist/react/react/components/StatsBar/MetricCard.d.ts.map +1 -0
  197. package/dist/react/react/components/StatsBar/Sparkline.d.ts +15 -0
  198. package/dist/react/react/components/StatsBar/Sparkline.d.ts.map +1 -0
  199. package/dist/react/react/components/StatsBar/StatsBar.d.ts +22 -0
  200. package/dist/react/react/components/StatsBar/StatsBar.d.ts.map +1 -0
  201. package/dist/react/react/components/shared/Badge.d.ts +32 -0
  202. package/dist/react/react/components/shared/Badge.d.ts.map +1 -0
  203. package/dist/react/react/components/shared/ConfigContent.d.ts +13 -0
  204. package/dist/react/react/components/shared/ConfigContent.d.ts.map +1 -0
  205. package/dist/react/react/components/shared/InternalsContent.d.ts +10 -0
  206. package/dist/react/react/components/shared/InternalsContent.d.ts.map +1 -0
  207. package/dist/react/react/components/shared/JsonViewer.d.ts +12 -0
  208. package/dist/react/react/components/shared/JsonViewer.d.ts.map +1 -0
  209. package/dist/react/react/components/shared/ThemeToggle.d.ts +13 -0
  210. package/dist/react/react/components/shared/ThemeToggle.d.ts.map +1 -0
  211. package/dist/react/react/components/shared/Tooltip.d.ts +16 -0
  212. package/dist/react/react/components/shared/Tooltip.d.ts.map +1 -0
  213. package/dist/react/react/hooks/useApiClient.d.ts +10 -0
  214. package/dist/react/react/hooks/useApiClient.d.ts.map +1 -0
  215. package/dist/react/react/hooks/useDashboardApiBase.d.ts +19 -0
  216. package/dist/react/react/hooks/useDashboardApiBase.d.ts.map +1 -0
  217. package/dist/react/react/hooks/useDashboardData.d.ts +27 -0
  218. package/dist/react/react/hooks/useDashboardData.d.ts.map +1 -0
  219. package/dist/react/react/hooks/useDebugData.d.ts +17 -0
  220. package/dist/react/react/hooks/useDebugData.d.ts.map +1 -0
  221. package/dist/react/react/hooks/useFeatures.d.ts +13 -0
  222. package/dist/react/react/hooks/useFeatures.d.ts.map +1 -0
  223. package/dist/react/react/hooks/useResizableTable.d.ts +13 -0
  224. package/dist/react/react/hooks/useResizableTable.d.ts.map +1 -0
  225. package/dist/react/react/hooks/useServerStats.d.ts +21 -0
  226. package/dist/react/react/hooks/useServerStats.d.ts.map +1 -0
  227. package/dist/react/react/hooks/useTheme.d.ts +12 -0
  228. package/dist/react/react/hooks/useTheme.d.ts.map +1 -0
  229. package/dist/react/react/index.d.ts +14 -0
  230. package/dist/react/react/index.d.ts.map +1 -0
  231. package/dist/react/style.css +1 -0
  232. package/dist/react/useApiClient-BVtNCmnL.js +9 -0
  233. package/dist/react/useDashboardApiBase-Bi36pJ2L.js +14 -0
  234. package/dist/react/useResizableTable-CNJmACdt.js +13 -0
  235. package/dist/src/collectors/app_collector.d.ts.map +1 -1
  236. package/dist/src/collectors/app_collector.js +30 -2
  237. package/dist/src/collectors/auto_detect.d.ts +31 -0
  238. package/dist/src/collectors/auto_detect.d.ts.map +1 -0
  239. package/dist/src/collectors/auto_detect.js +120 -0
  240. package/dist/src/collectors/collector.d.ts +17 -0
  241. package/dist/src/collectors/collector.d.ts.map +1 -1
  242. package/dist/src/collectors/db_pool_collector.d.ts.map +1 -1
  243. package/dist/src/collectors/db_pool_collector.js +35 -1
  244. package/dist/src/collectors/http_collector.d.ts +4 -3
  245. package/dist/src/collectors/http_collector.d.ts.map +1 -1
  246. package/dist/src/collectors/http_collector.js +28 -11
  247. package/dist/src/collectors/index.d.ts +2 -0
  248. package/dist/src/collectors/index.d.ts.map +1 -1
  249. package/dist/src/collectors/index.js +1 -0
  250. package/dist/src/collectors/log_collector.d.ts +11 -4
  251. package/dist/src/collectors/log_collector.d.ts.map +1 -1
  252. package/dist/src/collectors/log_collector.js +51 -5
  253. package/dist/src/collectors/process_collector.d.ts.map +1 -1
  254. package/dist/src/collectors/process_collector.js +4 -0
  255. package/dist/src/collectors/queue_collector.d.ts.map +1 -1
  256. package/dist/src/collectors/queue_collector.js +55 -1
  257. package/dist/src/collectors/redis_collector.d.ts.map +1 -1
  258. package/dist/src/collectors/redis_collector.js +42 -3
  259. package/dist/src/collectors/system_collector.d.ts.map +1 -1
  260. package/dist/src/collectors/system_collector.js +4 -0
  261. package/dist/src/controller/api_controller.d.ts +101 -0
  262. package/dist/src/controller/api_controller.d.ts.map +1 -0
  263. package/dist/src/controller/api_controller.js +131 -0
  264. package/dist/src/controller/debug_controller.d.ts +19 -10
  265. package/dist/src/controller/debug_controller.d.ts.map +1 -1
  266. package/dist/src/controller/debug_controller.js +118 -101
  267. package/dist/src/core/theme.d.ts +42 -0
  268. package/dist/src/core/theme.d.ts.map +1 -0
  269. package/dist/src/core/theme.js +115 -0
  270. package/dist/src/dashboard/chart_aggregator.d.ts.map +1 -1
  271. package/dist/src/dashboard/chart_aggregator.js +3 -2
  272. package/dist/src/dashboard/dashboard_controller.d.ts +10 -14
  273. package/dist/src/dashboard/dashboard_controller.d.ts.map +1 -1
  274. package/dist/src/dashboard/dashboard_controller.js +132 -250
  275. package/dist/src/dashboard/dashboard_store.d.ts +62 -19
  276. package/dist/src/dashboard/dashboard_store.d.ts.map +1 -1
  277. package/dist/src/dashboard/dashboard_store.js +242 -53
  278. package/dist/src/dashboard/integrations/cache_inspector.d.ts +19 -1
  279. package/dist/src/dashboard/integrations/cache_inspector.d.ts.map +1 -1
  280. package/dist/src/dashboard/integrations/config_inspector.d.ts +1 -1
  281. package/dist/src/dashboard/integrations/config_inspector.d.ts.map +1 -1
  282. package/dist/src/dashboard/integrations/config_inspector.js +3 -2
  283. package/dist/src/dashboard/integrations/queue_inspector.d.ts +55 -10
  284. package/dist/src/dashboard/integrations/queue_inspector.d.ts.map +1 -1
  285. package/dist/src/dashboard/integrations/queue_inspector.js +70 -24
  286. package/dist/src/dashboard/migrator.d.ts +5 -0
  287. package/dist/src/dashboard/migrator.d.ts.map +1 -1
  288. package/dist/src/dashboard/migrator.js +44 -9
  289. package/dist/src/dashboard/models/stats_event.d.ts +1 -1
  290. package/dist/src/dashboard/models/stats_event.d.ts.map +1 -1
  291. package/dist/src/dashboard/models/stats_log.d.ts +1 -1
  292. package/dist/src/dashboard/models/stats_log.d.ts.map +1 -1
  293. package/dist/src/dashboard/models/stats_query.d.ts +1 -1
  294. package/dist/src/dashboard/models/stats_query.d.ts.map +1 -1
  295. package/dist/src/dashboard/models/stats_saved_filter.d.ts +1 -1
  296. package/dist/src/dashboard/models/stats_saved_filter.d.ts.map +1 -1
  297. package/dist/src/dashboard/models/stats_trace.d.ts +2 -1
  298. package/dist/src/dashboard/models/stats_trace.d.ts.map +1 -1
  299. package/dist/src/data/data_access.d.ts +105 -0
  300. package/dist/src/data/data_access.d.ts.map +1 -0
  301. package/dist/src/data/data_access.js +310 -0
  302. package/dist/src/data/index.d.ts +3 -0
  303. package/dist/src/data/index.d.ts.map +1 -0
  304. package/dist/src/data/index.js +1 -0
  305. package/dist/src/debug/debug_store.d.ts +20 -1
  306. package/dist/src/debug/debug_store.d.ts.map +1 -1
  307. package/dist/src/debug/debug_store.js +43 -15
  308. package/dist/src/debug/email_collector.d.ts +6 -2
  309. package/dist/src/debug/email_collector.d.ts.map +1 -1
  310. package/dist/src/debug/email_collector.js +3 -0
  311. package/dist/src/debug/event_collector.d.ts +6 -2
  312. package/dist/src/debug/event_collector.d.ts.map +1 -1
  313. package/dist/src/debug/event_collector.js +12 -8
  314. package/dist/src/debug/query_collector.d.ts +6 -2
  315. package/dist/src/debug/query_collector.d.ts.map +1 -1
  316. package/dist/src/debug/query_collector.js +3 -0
  317. package/dist/src/debug/ring_buffer.d.ts +1 -0
  318. package/dist/src/debug/ring_buffer.d.ts.map +1 -1
  319. package/dist/src/debug/ring_buffer.js +5 -2
  320. package/dist/src/debug/route_inspector.d.ts +2 -2
  321. package/dist/src/debug/route_inspector.d.ts.map +1 -1
  322. package/dist/src/debug/route_inspector.js +4 -3
  323. package/dist/src/debug/trace_collector.d.ts +7 -3
  324. package/dist/src/debug/trace_collector.d.ts.map +1 -1
  325. package/dist/src/debug/trace_collector.js +7 -5
  326. package/dist/src/debug/types.d.ts +107 -2
  327. package/dist/src/debug/types.d.ts.map +1 -1
  328. package/dist/src/debug/types.js +1 -1
  329. package/dist/src/define_config.d.ts +49 -5
  330. package/dist/src/define_config.d.ts.map +1 -1
  331. package/dist/src/define_config.js +361 -4
  332. package/dist/src/edge/bootstrap.d.ts +17 -0
  333. package/dist/src/edge/bootstrap.d.ts.map +1 -0
  334. package/dist/src/edge/bootstrap.js +29 -0
  335. package/dist/src/edge/client/dashboard.js +2 -3619
  336. package/dist/src/edge/client/debug-panel-deferred.js +1 -0
  337. package/dist/src/edge/client/debug-panel.js +1 -2140
  338. package/dist/src/edge/client/stats-bar.js +1 -801
  339. package/dist/src/edge/client-vue/dashboard.js +5 -0
  340. package/dist/src/edge/client-vue/debug-panel-deferred.js +4 -0
  341. package/dist/src/edge/client-vue/debug-panel.js +4 -0
  342. package/dist/src/edge/client-vue/stats-bar.js +4 -0
  343. package/dist/src/edge/plugin.d.ts +35 -2
  344. package/dist/src/edge/plugin.d.ts.map +1 -1
  345. package/dist/src/edge/plugin.js +30 -66
  346. package/dist/src/edge/types.d.ts +46 -0
  347. package/dist/src/edge/types.d.ts.map +1 -0
  348. package/dist/src/edge/types.js +4 -0
  349. package/dist/src/edge/views/dashboard.edge +1 -358
  350. package/dist/src/edge/views/debug-panel.edge +2 -154
  351. package/dist/src/edge/views/stats-bar.edge +15 -48
  352. package/dist/src/engine/stats_engine.d.ts +18 -0
  353. package/dist/src/engine/stats_engine.d.ts.map +1 -1
  354. package/dist/src/engine/stats_engine.js +45 -2
  355. package/dist/src/index.d.ts +1 -1
  356. package/dist/src/index.d.ts.map +1 -1
  357. package/dist/src/log_stream/log_stream_provider.d.ts.map +1 -1
  358. package/dist/src/log_stream/log_stream_provider.js +21 -4
  359. package/dist/src/log_stream/log_stream_service.d.ts +8 -1
  360. package/dist/src/log_stream/log_stream_service.d.ts.map +1 -1
  361. package/dist/src/log_stream/log_stream_service.js +27 -3
  362. package/dist/src/middleware/request_tracking_middleware.d.ts +1 -1
  363. package/dist/src/middleware/request_tracking_middleware.d.ts.map +1 -1
  364. package/dist/src/middleware/request_tracking_middleware.js +21 -6
  365. package/dist/src/prometheus/prometheus_collector.d.ts +2 -1
  366. package/dist/src/prometheus/prometheus_collector.d.ts.map +1 -1
  367. package/dist/src/provider/server_stats_provider.d.ts +100 -0
  368. package/dist/src/provider/server_stats_provider.d.ts.map +1 -1
  369. package/dist/src/provider/server_stats_provider.js +460 -104
  370. package/dist/src/routes/access_middleware.d.ts +2 -1
  371. package/dist/src/routes/access_middleware.d.ts.map +1 -1
  372. package/dist/src/routes/access_middleware.js +7 -1
  373. package/dist/src/routes/index.d.ts +4 -0
  374. package/dist/src/routes/index.d.ts.map +1 -0
  375. package/dist/src/routes/index.js +1 -0
  376. package/dist/src/routes/register_routes.d.ts +103 -0
  377. package/dist/src/routes/register_routes.d.ts.map +1 -0
  378. package/dist/src/routes/register_routes.js +356 -0
  379. package/dist/src/routes/router_types.d.ts +29 -0
  380. package/dist/src/routes/router_types.d.ts.map +1 -0
  381. package/dist/src/routes/router_types.js +1 -0
  382. package/dist/src/stubs/config.stub +12 -32
  383. package/dist/src/styles/components.css +1048 -0
  384. package/dist/src/{edge/client → styles}/dashboard.css +299 -736
  385. package/dist/src/{edge/client → styles}/debug-panel.css +117 -633
  386. package/dist/src/{edge/client → styles}/stats-bar.css +28 -10
  387. package/dist/src/styles/tokens.css +153 -0
  388. package/dist/src/styles/utilities.css +75 -0
  389. package/dist/src/types.d.ts +119 -16
  390. package/dist/src/types.d.ts.map +1 -1
  391. package/dist/src/utils/app_import.d.ts +23 -0
  392. package/dist/src/utils/app_import.d.ts.map +1 -0
  393. package/dist/src/utils/app_import.js +44 -0
  394. package/dist/src/utils/json_helpers.d.ts +2 -2
  395. package/dist/src/utils/json_helpers.d.ts.map +1 -1
  396. package/dist/src/utils/logger.d.ts +17 -0
  397. package/dist/src/utils/logger.d.ts.map +1 -0
  398. package/dist/src/utils/logger.js +27 -0
  399. package/dist/src/utils/mail_helpers.d.ts +1 -1
  400. package/dist/src/utils/mail_helpers.d.ts.map +1 -1
  401. package/dist/src/utils/mail_helpers.js +1 -1
  402. package/dist/vue/CacheSection-C788Yfai.js +149 -0
  403. package/dist/vue/CacheTab-BPisYYiQ.js +104 -0
  404. package/dist/vue/ConfigSection-CRzYxqW2.js +576 -0
  405. package/dist/vue/ConfigTab-C8cafGUj.js +361 -0
  406. package/dist/vue/CustomPaneTab-BJxT5Dp7.js +172 -0
  407. package/dist/vue/EmailsSection-C8JFMtW7.js +206 -0
  408. package/dist/vue/EmailsTab-DhFhoNmU.js +157 -0
  409. package/dist/vue/EventsSection-C4wXUgxG.js +107 -0
  410. package/dist/vue/EventsTab-DQ4Nd6AK.js +97 -0
  411. package/dist/vue/FilterBar.vue_vue_type_script_setup_true_lang-ClJ37hhT.js +62 -0
  412. package/dist/vue/InternalsSection-BJUXE-5F.js +468 -0
  413. package/dist/vue/InternalsTab-DEMjqtlw.js +471 -0
  414. package/dist/vue/JobsSection-CsKWTjgN.js +187 -0
  415. package/dist/vue/JobsTab-BCvhOARO.js +117 -0
  416. package/dist/vue/JsonViewer.vue_vue_type_script_setup_true_lang-Vsqar1zx.js +67 -0
  417. package/dist/vue/LogsSection-BFVjSZ24.js +227 -0
  418. package/dist/vue/LogsTab-DpEQ7euu.js +122 -0
  419. package/dist/vue/OverviewSection-CbMdAido.js +849 -0
  420. package/dist/vue/PaginationControls.vue_vue_type_script_setup_true_lang-CuN7g_8Z.js +50 -0
  421. package/dist/vue/QueriesSection-BPiv7u3r.js +429 -0
  422. package/dist/vue/QueriesTab-C8_7oprC.js +107 -0
  423. package/dist/vue/RequestsSection-LtImH4rD.js +243 -0
  424. package/dist/vue/RoutesSection-CrxOxmzx.js +106 -0
  425. package/dist/vue/RoutesTab-Dz0MkZuF.js +80 -0
  426. package/dist/vue/TimelineSection-DLxMW2J_.js +186 -0
  427. package/dist/vue/TimelineTab-Db6lKKsD.js +250 -0
  428. package/dist/vue/WaterfallChart.vue_vue_type_script_setup_true_lang-tZ13cNj1.js +118 -0
  429. package/dist/vue/components/Dashboard/DashboardPage.vue.d.ts +18 -0
  430. package/dist/vue/components/Dashboard/DashboardPage.vue.d.ts.map +1 -0
  431. package/dist/vue/components/Dashboard/sections/CacheSection.vue.d.ts +5 -0
  432. package/dist/vue/components/Dashboard/sections/CacheSection.vue.d.ts.map +1 -0
  433. package/dist/vue/components/Dashboard/sections/ConfigSection.vue.d.ts +3 -0
  434. package/dist/vue/components/Dashboard/sections/ConfigSection.vue.d.ts.map +1 -0
  435. package/dist/vue/components/Dashboard/sections/EmailsSection.vue.d.ts +5 -0
  436. package/dist/vue/components/Dashboard/sections/EmailsSection.vue.d.ts.map +1 -0
  437. package/dist/vue/components/Dashboard/sections/EventsSection.vue.d.ts +5 -0
  438. package/dist/vue/components/Dashboard/sections/EventsSection.vue.d.ts.map +1 -0
  439. package/dist/vue/components/Dashboard/sections/InternalsSection.vue.d.ts +3 -0
  440. package/dist/vue/components/Dashboard/sections/InternalsSection.vue.d.ts.map +1 -0
  441. package/dist/vue/components/Dashboard/sections/JobsSection.vue.d.ts +5 -0
  442. package/dist/vue/components/Dashboard/sections/JobsSection.vue.d.ts.map +1 -0
  443. package/dist/vue/components/Dashboard/sections/LogsSection.vue.d.ts +3 -0
  444. package/dist/vue/components/Dashboard/sections/LogsSection.vue.d.ts.map +1 -0
  445. package/dist/vue/components/Dashboard/sections/OverviewSection.vue.d.ts +5 -0
  446. package/dist/vue/components/Dashboard/sections/OverviewSection.vue.d.ts.map +1 -0
  447. package/dist/vue/components/Dashboard/sections/QueriesSection.vue.d.ts +45 -0
  448. package/dist/vue/components/Dashboard/sections/QueriesSection.vue.d.ts.map +1 -0
  449. package/dist/vue/components/Dashboard/sections/RequestsSection.vue.d.ts +5 -0
  450. package/dist/vue/components/Dashboard/sections/RequestsSection.vue.d.ts.map +1 -0
  451. package/dist/vue/components/Dashboard/sections/RoutesSection.vue.d.ts +5 -0
  452. package/dist/vue/components/Dashboard/sections/RoutesSection.vue.d.ts.map +1 -0
  453. package/dist/vue/components/Dashboard/sections/TimelineSection.vue.d.ts +11 -0
  454. package/dist/vue/components/Dashboard/sections/TimelineSection.vue.d.ts.map +1 -0
  455. package/dist/vue/components/Dashboard/shared/FilterBar.vue.d.ts +29 -0
  456. package/dist/vue/components/Dashboard/shared/FilterBar.vue.d.ts.map +1 -0
  457. package/dist/vue/components/Dashboard/shared/PaginationControls.vue.d.ts +12 -0
  458. package/dist/vue/components/Dashboard/shared/PaginationControls.vue.d.ts.map +1 -0
  459. package/dist/vue/components/Dashboard/shared/TimeRangeSelector.vue.d.ts +11 -0
  460. package/dist/vue/components/Dashboard/shared/TimeRangeSelector.vue.d.ts.map +1 -0
  461. package/dist/vue/components/Dashboard/shared/WaterfallChart.vue.d.ts +10 -0
  462. package/dist/vue/components/Dashboard/shared/WaterfallChart.vue.d.ts.map +1 -0
  463. package/dist/vue/components/DebugPanel/DebugPanel.vue.d.ts +21 -0
  464. package/dist/vue/components/DebugPanel/DebugPanel.vue.d.ts.map +1 -0
  465. package/dist/vue/components/DebugPanel/tabs/CacheTab.vue.d.ts +12 -0
  466. package/dist/vue/components/DebugPanel/tabs/CacheTab.vue.d.ts.map +1 -0
  467. package/dist/vue/components/DebugPanel/tabs/ConfigTab.vue.d.ts +11 -0
  468. package/dist/vue/components/DebugPanel/tabs/ConfigTab.vue.d.ts.map +1 -0
  469. package/dist/vue/components/DebugPanel/tabs/CustomPaneTab.vue.d.ts +11 -0
  470. package/dist/vue/components/DebugPanel/tabs/CustomPaneTab.vue.d.ts.map +1 -0
  471. package/dist/vue/components/DebugPanel/tabs/EmailsTab.vue.d.ts +12 -0
  472. package/dist/vue/components/DebugPanel/tabs/EmailsTab.vue.d.ts.map +1 -0
  473. package/dist/vue/components/DebugPanel/tabs/EventsTab.vue.d.ts +12 -0
  474. package/dist/vue/components/DebugPanel/tabs/EventsTab.vue.d.ts.map +1 -0
  475. package/dist/vue/components/DebugPanel/tabs/InternalsTab.vue.d.ts +11 -0
  476. package/dist/vue/components/DebugPanel/tabs/InternalsTab.vue.d.ts.map +1 -0
  477. package/dist/vue/components/DebugPanel/tabs/JobsTab.vue.d.ts +13 -0
  478. package/dist/vue/components/DebugPanel/tabs/JobsTab.vue.d.ts.map +1 -0
  479. package/dist/vue/components/DebugPanel/tabs/LogsTab.vue.d.ts +15 -0
  480. package/dist/vue/components/DebugPanel/tabs/LogsTab.vue.d.ts.map +1 -0
  481. package/dist/vue/components/DebugPanel/tabs/QueriesTab.vue.d.ts +12 -0
  482. package/dist/vue/components/DebugPanel/tabs/QueriesTab.vue.d.ts.map +1 -0
  483. package/dist/vue/components/DebugPanel/tabs/RoutesTab.vue.d.ts +12 -0
  484. package/dist/vue/components/DebugPanel/tabs/RoutesTab.vue.d.ts.map +1 -0
  485. package/dist/vue/components/DebugPanel/tabs/TimelineTab.vue.d.ts +15 -0
  486. package/dist/vue/components/DebugPanel/tabs/TimelineTab.vue.d.ts.map +1 -0
  487. package/dist/vue/components/StatsBar/MetricCard.vue.d.ts +19 -0
  488. package/dist/vue/components/StatsBar/MetricCard.vue.d.ts.map +1 -0
  489. package/dist/vue/components/StatsBar/Sparkline.vue.d.ts +17 -0
  490. package/dist/vue/components/StatsBar/Sparkline.vue.d.ts.map +1 -0
  491. package/dist/vue/components/StatsBar/StatsBar.vue.d.ts +22 -0
  492. package/dist/vue/components/StatsBar/StatsBar.vue.d.ts.map +1 -0
  493. package/dist/vue/components/shared/JsonViewer.vue.d.ts +13 -0
  494. package/dist/vue/components/shared/JsonViewer.vue.d.ts.map +1 -0
  495. package/dist/vue/components/shared/ThemeToggle.vue.d.ts +8 -0
  496. package/dist/vue/components/shared/ThemeToggle.vue.d.ts.map +1 -0
  497. package/dist/vue/composables/useApiClient.d.ts +9 -0
  498. package/dist/vue/composables/useApiClient.d.ts.map +1 -0
  499. package/dist/vue/composables/useDashboardData.d.ts +53 -0
  500. package/dist/vue/composables/useDashboardData.d.ts.map +1 -0
  501. package/dist/vue/composables/useDebugData.d.ts +25 -0
  502. package/dist/vue/composables/useDebugData.d.ts.map +1 -0
  503. package/dist/vue/composables/useFeatures.d.ts +80 -0
  504. package/dist/vue/composables/useFeatures.d.ts.map +1 -0
  505. package/dist/vue/composables/useResizableTable.d.ts +16 -0
  506. package/dist/vue/composables/useResizableTable.d.ts.map +1 -0
  507. package/dist/vue/composables/useServerStats.d.ts +104 -0
  508. package/dist/vue/composables/useServerStats.d.ts.map +1 -0
  509. package/dist/vue/composables/useTheme.d.ts +6 -0
  510. package/dist/vue/composables/useTheme.d.ts.map +1 -0
  511. package/dist/vue/index-qCQpBftQ.js +1233 -0
  512. package/dist/vue/index.d.ts +10 -0
  513. package/dist/vue/index.d.ts.map +1 -0
  514. package/dist/vue/index.js +11 -0
  515. package/dist/vue/style.css +1 -0
  516. package/dist/vue/useApiClient-BQQ9CF-q.js +10 -0
  517. package/dist/vue/useResizableTable-BoivAevK.js +17 -0
  518. package/package.json +72 -10
  519. package/dist/src/dashboard/dashboard_routes.d.ts +0 -16
  520. package/dist/src/dashboard/dashboard_routes.d.ts.map +0 -1
  521. package/dist/src/dashboard/dashboard_routes.js +0 -77
  522. package/dist/src/routes/debug_routes.d.ts +0 -14
  523. package/dist/src/routes/debug_routes.d.ts.map +0 -1
  524. package/dist/src/routes/debug_routes.js +0 -42
  525. package/dist/src/routes/stats_routes.d.ts +0 -14
  526. package/dist/src/routes/stats_routes.d.ts.map +0 -1
  527. package/dist/src/routes/stats_routes.js +0 -27
@@ -0,0 +1,206 @@
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
+ import { formatTime as R, timeAgo as z } from "adonisjs-server-stats/core";
3
+ import { u as L } from "./index-qCQpBftQ.js";
4
+ import { u as M } from "./useResizableTable-BoivAevK.js";
5
+ import { _ as U } from "./FilterBar.vue_vue_type_script_setup_true_lang-ClJ37hhT.js";
6
+ import { _ as q } from "./PaginationControls.vue_vue_type_script_setup_true_lang-CuN7g_8Z.js";
7
+ const H = {
8
+ key: 0,
9
+ class: "ss-dash-email-preview",
10
+ id: "ss-dash-email-preview"
11
+ }, I = { class: "ss-dash-email-preview-header" }, K = {
12
+ class: "ss-dash-email-preview-meta",
13
+ id: "ss-dash-email-preview-meta"
14
+ }, G = ["srcdoc"], J = {
15
+ key: 0,
16
+ class: "ss-dash-empty"
17
+ }, O = { class: "ss-dash-table-wrap" }, Q = ["onClick"], W = { style: { color: "var(--ss-dim)" } }, X = ["title"], Y = ["title"], Z = ["title"], tt = {
18
+ key: 0,
19
+ style: { color: "var(--ss-dim)", "text-align": "center", display: "block" }
20
+ }, et = {
21
+ key: 1,
22
+ style: { color: "var(--ss-dim)", "text-align": "center", display: "block" }
23
+ }, lt = ["title"], st = ["title"], at = {
24
+ key: 1,
25
+ class: "ss-dash-empty"
26
+ }, vt = /* @__PURE__ */ V({
27
+ __name: "EmailsSection",
28
+ setup(ot) {
29
+ const b = h("ss-refresh-key", f(0)), g = h("ss-dashboard-endpoint", "/__stats/api"), k = h("ss-auth-token", void 0), x = h("ss-base-url", ""), { data: p, loading: C, pagination: m, goToPage: T, setSearch: P, fetchEmailPreview: S } = L(
30
+ () => "emails",
31
+ {
32
+ baseUrl: x,
33
+ dashboardEndpoint: g,
34
+ authToken: k,
35
+ refreshKey: b
36
+ }
37
+ ), w = f(""), s = f(null), v = f(null), a = A(() => {
38
+ if (!p.value) return [];
39
+ const d = p.value;
40
+ return d.data || d.emails || p.value || [];
41
+ });
42
+ function j(d) {
43
+ w.value = d, P(d);
44
+ }
45
+ async function E(d) {
46
+ if (d.html) {
47
+ s.value = d.id, v.value = d.html;
48
+ return;
49
+ }
50
+ const l = await S(d.id);
51
+ s.value = d.id, v.value = l;
52
+ }
53
+ function $() {
54
+ s.value = null, v.value = null;
55
+ }
56
+ const { tableRef: N } = M(() => a.value);
57
+ return (d, l) => (o(), i("div", null, [
58
+ s.value && v.value ? (o(), i("div", H, [
59
+ e("div", I, [
60
+ e("div", K, [
61
+ a.value.find((t) => t.id === s.value) ? (o(), i(c, { key: 0 }, [
62
+ l[4] || (l[4] = e("strong", null, "Subject:", -1)),
63
+ u(" " + n(a.value.find((t) => t.id === s.value)?.subject) + "   |  ", 1),
64
+ l[5] || (l[5] = e("strong", null, "From:", -1)),
65
+ u(" " + n(a.value.find((t) => t.id === s.value)?.from_addr || a.value.find((t) => t.id === s.value)?.from) + "   |  ", 1),
66
+ l[6] || (l[6] = e("strong", null, "To:", -1)),
67
+ u(" " + n(a.value.find((t) => t.id === s.value)?.to_addr || a.value.find((t) => t.id === s.value)?.to) + " ", 1),
68
+ a.value.find((t) => t.id === s.value)?.cc || a.value.find((t) => t.id === s.value)?.cc_addr ? (o(), i(c, { key: 0 }, [
69
+ l[0] || (l[0] = u("   |  ", -1)),
70
+ l[1] || (l[1] = e("strong", null, "CC:", -1)),
71
+ u(" " + n(a.value.find((t) => t.id === s.value)?.cc || a.value.find((t) => t.id === s.value)?.cc_addr), 1)
72
+ ], 64)) : y("", !0),
73
+ l[7] || (l[7] = u("   |  ", -1)),
74
+ l[8] || (l[8] = e("strong", null, "Status:", -1)),
75
+ e("span", {
76
+ class: _(`ss-dash-badge ss-dash-email-status-${a.value.find((t) => t.id === s.value)?.status}`)
77
+ }, n(a.value.find((t) => t.id === s.value)?.status), 3),
78
+ a.value.find((t) => t.id === s.value)?.mailer ? (o(), i(c, { key: 1 }, [
79
+ l[2] || (l[2] = u("   |  ", -1)),
80
+ l[3] || (l[3] = e("strong", null, "Mailer:", -1)),
81
+ u(" " + n(a.value.find((t) => t.id === s.value)?.mailer), 1)
82
+ ], 64)) : y("", !0)
83
+ ], 64)) : y("", !0)
84
+ ]),
85
+ e("button", {
86
+ type: "button",
87
+ class: "ss-dash-btn",
88
+ id: "ss-dash-email-preview-close",
89
+ onClick: $
90
+ }, " Close ")
91
+ ]),
92
+ e("iframe", {
93
+ class: "ss-dash-email-iframe",
94
+ id: "ss-dash-email-iframe",
95
+ srcdoc: v.value,
96
+ title: "Email preview",
97
+ sandbox: ""
98
+ }, null, 8, G)
99
+ ])) : (o(), i(c, { key: 1 }, [
100
+ F(U, {
101
+ "model-value": w.value,
102
+ placeholder: "Filter emails...",
103
+ summary: `${r(m).total ?? 0} emails`,
104
+ "onUpdate:modelValue": j
105
+ }, null, 8, ["model-value", "summary"]),
106
+ r(C) && !r(p) ? (o(), i("div", J, "Loading emails...")) : (o(), i(c, { key: 1 }, [
107
+ e("div", O, [
108
+ a.value.length > 0 ? (o(), i("table", {
109
+ key: 0,
110
+ ref_key: "tableRef",
111
+ ref: N,
112
+ class: "ss-dash-table"
113
+ }, [
114
+ l[9] || (l[9] = e("colgroup", null, [
115
+ e("col", { style: { width: "40px" } }),
116
+ e("col", { style: { width: "150px" } }),
117
+ e("col", { style: { width: "150px" } }),
118
+ e("col"),
119
+ e("col", { style: { width: "80px" } }),
120
+ e("col", { style: { width: "40px" } }),
121
+ e("col", { style: { width: "70px" } }),
122
+ e("col", { style: { width: "80px" } })
123
+ ], -1)),
124
+ l[10] || (l[10] = e("thead", null, [
125
+ e("tr", null, [
126
+ e("th", null, "#"),
127
+ e("th", null, "From"),
128
+ e("th", null, "To"),
129
+ e("th", null, "Subject"),
130
+ e("th", null, "Status"),
131
+ e("th", null, "ATT"),
132
+ e("th", null, "Mailer"),
133
+ e("th", null, "Time")
134
+ ])
135
+ ], -1)),
136
+ e("tbody", null, [
137
+ (o(!0), i(c, null, B(a.value, (t) => (o(), i("tr", {
138
+ key: t.id,
139
+ class: "ss-dash-clickable ss-dash-email-row",
140
+ onClick: (it) => E(t)
141
+ }, [
142
+ e("td", null, [
143
+ e("span", W, n(t.id), 1)
144
+ ]),
145
+ e("td", null, [
146
+ e("span", {
147
+ title: t.from_addr || t.from || "",
148
+ style: { color: "var(--ss-text-secondary)", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap", display: "block" }
149
+ }, n(t.from_addr || t.from || ""), 9, X)
150
+ ]),
151
+ e("td", null, [
152
+ e("span", {
153
+ title: t.to_addr || t.to || "",
154
+ style: { color: "var(--ss-text-secondary)", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap", display: "block" }
155
+ }, n(t.to_addr || t.to || ""), 9, Y)
156
+ ]),
157
+ e("td", null, [
158
+ e("span", {
159
+ title: t.subject || "",
160
+ style: { color: "var(--ss-sql-color)", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap", display: "block" }
161
+ }, n(t.subject || ""), 9, Z)
162
+ ]),
163
+ e("td", null, [
164
+ e("span", {
165
+ class: _(`ss-dash-badge ss-dash-email-status-${t.status || ""}`)
166
+ }, n(t.status), 3)
167
+ ]),
168
+ e("td", null, [
169
+ (t.attachment_count || t.attachmentCount || 0) > 0 ? (o(), i("span", tt, n(t.attachment_count || t.attachmentCount || 0), 1)) : (o(), i("span", et, "-"))
170
+ ]),
171
+ e("td", null, [
172
+ e("span", {
173
+ title: t.mailer || "",
174
+ style: { color: "var(--ss-muted)", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap", display: "block" }
175
+ }, n(t.mailer || ""), 9, lt)
176
+ ]),
177
+ e("td", null, [
178
+ e("span", {
179
+ class: "ss-dash-event-time",
180
+ style: { "white-space": "nowrap" },
181
+ title: r(R)(
182
+ t.createdAt || t.created_at || t.timestamp
183
+ )
184
+ }, n(r(z)(
185
+ t.createdAt || t.created_at || t.timestamp
186
+ )), 9, st)
187
+ ])
188
+ ], 8, Q))), 128))
189
+ ])
190
+ ], 512)) : (o(), i("div", at, "No emails captured yet"))
191
+ ]),
192
+ r(m).totalPages > 1 ? (o(), D(q, {
193
+ key: 0,
194
+ page: r(m).page,
195
+ "last-page": r(m).totalPages,
196
+ total: r(m).total,
197
+ onPageChange: r(T)
198
+ }, null, 8, ["page", "last-page", "total", "onPageChange"])) : y("", !0)
199
+ ], 64))
200
+ ], 64))
201
+ ]));
202
+ }
203
+ });
204
+ export {
205
+ vt as default
206
+ };
@@ -0,0 +1,157 @@
1
+ import { defineComponent as L, ref as g, computed as p, openBlock as n, createElementBlock as i, createElementVNode as s, createTextVNode as u, toDisplayString as a, createCommentVNode as m, normalizeClass as h, Fragment as _, withDirectives as x, vModelText as A, renderList as j, unref as f } from "vue";
2
+ import { formatTime as N, timeAgo as S } from "adonisjs-server-stats/core";
3
+ import { u as E } from "./useResizableTable-BoivAevK.js";
4
+ const F = { style: { position: "relative", height: "100%" } }, V = {
5
+ key: 0,
6
+ class: "ss-dbg-email-preview"
7
+ }, q = { class: "ss-dbg-email-preview-header" }, M = { class: "ss-dbg-email-preview-meta" }, P = { key: 0 }, R = ["srcdoc"], z = {
8
+ key: 1,
9
+ class: "ss-dbg-empty"
10
+ }, B = { class: "ss-dbg-search-bar" }, D = { class: "ss-dbg-summary" }, $ = {
11
+ key: 0,
12
+ class: "ss-dbg-empty"
13
+ }, H = ["onClick"], U = {
14
+ class: "ss-dbg-c-dim",
15
+ style: { "white-space": "nowrap" }
16
+ }, G = ["title"], I = ["title"], J = { class: "ss-dbg-c-sql" }, K = { class: "ss-dbg-c-muted" }, O = {
17
+ class: "ss-dbg-c-dim",
18
+ style: { "text-align": "center" }
19
+ }, Q = ["title"], Z = /* @__PURE__ */ L({
20
+ __name: "EmailsTab",
21
+ props: {
22
+ data: {},
23
+ dashboardPath: {}
24
+ },
25
+ setup(y) {
26
+ const v = y, d = g(""), o = g(null), c = p(() => {
27
+ const l = v.data, e = l ? (Array.isArray(l) ? l : l.emails) || [] : [];
28
+ if (!d.value.trim()) return e;
29
+ const t = d.value.toLowerCase();
30
+ return e.filter(
31
+ (r) => r.subject.toLowerCase().includes(t) || r.from.toLowerCase().includes(t) || r.to.toLowerCase().includes(t) || r.mailer && r.mailer.toLowerCase().includes(t)
32
+ );
33
+ }), C = p(() => {
34
+ const l = v.data;
35
+ return `${(l ? (Array.isArray(l) ? l : l.emails) || [] : []).length} emails`;
36
+ });
37
+ function b(l) {
38
+ return {
39
+ sent: "ss-dbg-email-status-sent",
40
+ sending: "ss-dbg-email-status-sending",
41
+ queued: "ss-dbg-email-status-queued",
42
+ failed: "ss-dbg-email-status-failed"
43
+ }[l] || "";
44
+ }
45
+ function w(l) {
46
+ o.value = l;
47
+ }
48
+ function k() {
49
+ o.value = null;
50
+ }
51
+ const { tableRef: T } = E(() => c.value);
52
+ return (l, e) => (n(), i("div", F, [
53
+ o.value ? (n(), i("div", V, [
54
+ s("div", q, [
55
+ s("div", M, [
56
+ s("div", null, [
57
+ e[1] || (e[1] = s("strong", null, "From:", -1)),
58
+ u(" " + a(o.value.from), 1)
59
+ ]),
60
+ s("div", null, [
61
+ e[2] || (e[2] = s("strong", null, "To:", -1)),
62
+ u(" " + a(o.value.to), 1)
63
+ ]),
64
+ o.value.cc ? (n(), i("div", P, [
65
+ e[3] || (e[3] = s("strong", null, "CC:", -1)),
66
+ u(" " + a(o.value.cc), 1)
67
+ ])) : m("", !0),
68
+ s("div", null, [
69
+ e[4] || (e[4] = s("strong", null, "Subject:", -1)),
70
+ u(" " + a(o.value.subject), 1)
71
+ ]),
72
+ s("div", null, [
73
+ e[5] || (e[5] = s("strong", null, "Status:", -1)),
74
+ s("span", {
75
+ class: h(["ss-dbg-email-status", b(o.value.status)])
76
+ }, a(o.value.status), 3)
77
+ ])
78
+ ]),
79
+ s("button", {
80
+ type: "button",
81
+ class: "ss-dbg-btn-clear",
82
+ onClick: k
83
+ }, "×")
84
+ ]),
85
+ o.value.html ? (n(), i("iframe", {
86
+ key: 0,
87
+ class: "ss-dbg-email-iframe",
88
+ srcdoc: o.value.html
89
+ }, null, 8, R)) : (n(), i("div", z, "No HTML content"))
90
+ ])) : m("", !0),
91
+ o.value ? m("", !0) : (n(), i(_, { key: 1 }, [
92
+ s("div", B, [
93
+ x(s("input", {
94
+ "onUpdate:modelValue": e[0] || (e[0] = (t) => d.value = t),
95
+ class: "ss-dbg-search",
96
+ placeholder: "Filter emails...",
97
+ type: "text"
98
+ }, null, 512), [
99
+ [A, d.value]
100
+ ]),
101
+ s("span", D, a(C.value), 1)
102
+ ]),
103
+ c.value.length === 0 ? (n(), i("div", $, "No emails captured")) : (n(), i("table", {
104
+ key: 1,
105
+ ref_key: "tableRef",
106
+ ref: T,
107
+ class: "ss-dbg-table"
108
+ }, [
109
+ e[6] || (e[6] = s("thead", null, [
110
+ s("tr", null, [
111
+ s("th", null, "#"),
112
+ s("th", null, "From"),
113
+ s("th", null, "To"),
114
+ s("th", null, "Subject"),
115
+ s("th", null, "Status"),
116
+ s("th", null, "Mailer"),
117
+ s("th", { title: "Attachments" }, "📎"),
118
+ s("th", null, "Time")
119
+ ])
120
+ ], -1)),
121
+ s("tbody", null, [
122
+ (n(!0), i(_, null, j(c.value, (t) => (n(), i("tr", {
123
+ key: t.id,
124
+ class: "ss-dbg-email-row",
125
+ onClick: (r) => w(t)
126
+ }, [
127
+ s("td", U, a(t.id), 1),
128
+ s("td", {
129
+ class: "ss-dbg-c-secondary",
130
+ title: t.from
131
+ }, a(t.from), 9, G),
132
+ s("td", {
133
+ class: "ss-dbg-c-secondary",
134
+ title: t.to
135
+ }, a(t.to), 9, I),
136
+ s("td", J, a(t.subject), 1),
137
+ s("td", null, [
138
+ s("span", {
139
+ class: h(["ss-dbg-email-status", b(t.status)])
140
+ }, a(t.status), 3)
141
+ ]),
142
+ s("td", K, a(t.mailer), 1),
143
+ s("td", O, a(t.attachmentCount > 0 ? t.attachmentCount : "-"), 1),
144
+ s("td", {
145
+ class: "ss-dbg-event-time",
146
+ title: f(N)(t.timestamp)
147
+ }, a(f(S)(t.timestamp)), 9, Q)
148
+ ], 8, H))), 128))
149
+ ])
150
+ ], 512))
151
+ ], 64))
152
+ ]));
153
+ }
154
+ });
155
+ export {
156
+ Z as default
157
+ };
@@ -0,0 +1,107 @@
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
+ import { formatTime as S, timeAgo as V } from "adonisjs-server-stats/core";
3
+ import { u as $ } from "./index-qCQpBftQ.js";
4
+ import { u as A } from "./useResizableTable-BoivAevK.js";
5
+ import { _ as B } from "./FilterBar.vue_vue_type_script_setup_true_lang-ClJ37hhT.js";
6
+ import { _ as R } from "./PaginationControls.vue_vue_type_script_setup_true_lang-CuN7g_8Z.js";
7
+ import { _ as F } from "./JsonViewer.vue_vue_type_script_setup_true_lang-Vsqar1zx.js";
8
+ const L = {
9
+ key: 0,
10
+ class: "ss-dash-empty"
11
+ }, U = { class: "ss-dash-table-wrap" }, j = { style: { color: "var(--ss-dim)" } }, z = ["title"], K = ["title"], q = {
12
+ key: 1,
13
+ class: "ss-dash-empty"
14
+ }, X = /* @__PURE__ */ E({
15
+ __name: "EventsSection",
16
+ setup(G) {
17
+ const _ = i("ss-refresh-key", p(0)), f = i("ss-dashboard-endpoint", "/__stats/api"), g = i("ss-auth-token", void 0), y = i("ss-base-url", ""), { data: r, loading: b, pagination: o, goToPage: k, setSearch: w } = $(() => "events", {
18
+ baseUrl: y,
19
+ dashboardEndpoint: f,
20
+ authToken: g,
21
+ refreshKey: _
22
+ }), m = p(""), u = P(() => {
23
+ if (!r.value) return [];
24
+ const n = r.value;
25
+ return n.data || n.events || r.value || [];
26
+ });
27
+ function N(n) {
28
+ m.value = n, w(n);
29
+ }
30
+ const { tableRef: x } = A(() => u.value);
31
+ return (n, d) => (s(), l("div", null, [
32
+ v(B, {
33
+ "model-value": m.value,
34
+ placeholder: "Filter events...",
35
+ summary: `${a(o).total ?? 0} events`,
36
+ "onUpdate:modelValue": N
37
+ }, null, 8, ["model-value", "summary"]),
38
+ a(b) && !a(r) ? (s(), l("div", L, "Loading events...")) : (s(), l(h, { key: 1 }, [
39
+ e("div", U, [
40
+ u.value.length > 0 ? (s(), l("table", {
41
+ key: 0,
42
+ ref_key: "tableRef",
43
+ ref: x,
44
+ class: "ss-dash-table"
45
+ }, [
46
+ d[0] || (d[0] = e("colgroup", null, [
47
+ e("col", { style: { width: "40px" } }),
48
+ e("col"),
49
+ e("col"),
50
+ e("col", { style: { width: "80px" } })
51
+ ], -1)),
52
+ d[1] || (d[1] = e("thead", null, [
53
+ e("tr", null, [
54
+ e("th", null, "#"),
55
+ e("th", null, "Event"),
56
+ e("th", null, "Data"),
57
+ e("th", null, "Time")
58
+ ])
59
+ ], -1)),
60
+ e("tbody", null, [
61
+ (s(!0), l(h, null, T(u.value, (t) => (s(), l("tr", {
62
+ key: t.id
63
+ }, [
64
+ e("td", null, [
65
+ e("span", j, c(t.id), 1)
66
+ ]),
67
+ e("td", null, [
68
+ e("span", {
69
+ class: "ss-dash-event-name",
70
+ title: t.event_name || t.eventName || t.event || "",
71
+ style: { overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap", display: "block" }
72
+ }, c(t.event_name || t.eventName || t.event || ""), 9, z)
73
+ ]),
74
+ e("td", null, [
75
+ v(F, {
76
+ value: t.data,
77
+ class: "ss-dash-event-data"
78
+ }, null, 8, ["value"])
79
+ ]),
80
+ e("td", null, [
81
+ e("span", {
82
+ class: "ss-dash-event-time",
83
+ title: a(S)(
84
+ t.createdAt || t.created_at || t.timestamp
85
+ )
86
+ }, c(a(V)(
87
+ t.createdAt || t.created_at || t.timestamp
88
+ )), 9, K)
89
+ ])
90
+ ]))), 128))
91
+ ])
92
+ ], 512)) : (s(), l("div", q, "No events recorded yet"))
93
+ ]),
94
+ a(o).totalPages > 1 ? (s(), C(R, {
95
+ key: 0,
96
+ page: a(o).page,
97
+ "last-page": a(o).totalPages,
98
+ total: a(o).total,
99
+ onPageChange: a(k)
100
+ }, null, 8, ["page", "last-page", "total", "onPageChange"])) : D("", !0)
101
+ ], 64))
102
+ ]));
103
+ }
104
+ });
105
+ export {
106
+ X as default
107
+ };
@@ -0,0 +1,97 @@
1
+ import { defineComponent as _, ref as f, computed as v, openBlock as n, createElementBlock as r, createElementVNode as e, withDirectives as g, vModelText as y, toDisplayString as o, Fragment as k, renderList as w, createTextVNode as x, unref as d, createCommentVNode as T, createVNode as C } from "vue";
2
+ import { TAB_ICONS as h, formatTime as A, timeAgo as B } from "adonisjs-server-stats/core";
3
+ import { u as L } from "./useResizableTable-BoivAevK.js";
4
+ import { _ as N } from "./JsonViewer.vue_vue_type_script_setup_true_lang-Vsqar1zx.js";
5
+ const V = { class: "ss-dbg-search-bar" }, E = { class: "ss-dbg-summary" }, $ = {
6
+ key: 0,
7
+ class: "ss-dbg-empty"
8
+ }, D = {
9
+ class: "ss-dbg-c-dim",
10
+ style: { "white-space": "nowrap" }
11
+ }, M = { class: "ss-dbg-event-name" }, P = ["href"], R = ["viewBox", "innerHTML"], F = { class: "ss-dbg-event-data" }, H = ["title"], O = /* @__PURE__ */ _({
12
+ __name: "EventsTab",
13
+ props: {
14
+ data: {},
15
+ dashboardPath: {}
16
+ },
17
+ setup(i) {
18
+ const m = i, l = f(""), c = v(() => {
19
+ const s = m.data, a = s ? (Array.isArray(s) ? s : s.events) || [] : [];
20
+ if (!l.value.trim()) return a;
21
+ const t = l.value.toLowerCase();
22
+ return a.filter(
23
+ (u) => u.event.toLowerCase().includes(t) || u.data && u.data.toLowerCase().includes(t)
24
+ );
25
+ }), p = v(() => {
26
+ const s = m.data;
27
+ return `${(s ? (Array.isArray(s) ? s : s.events) || [] : []).length} events`;
28
+ }), { tableRef: b } = L(() => c.value);
29
+ return (s, a) => (n(), r("div", null, [
30
+ e("div", V, [
31
+ g(e("input", {
32
+ "onUpdate:modelValue": a[0] || (a[0] = (t) => l.value = t),
33
+ class: "ss-dbg-search",
34
+ placeholder: "Filter events...",
35
+ type: "text"
36
+ }, null, 512), [
37
+ [y, l.value]
38
+ ]),
39
+ e("span", E, o(p.value), 1)
40
+ ]),
41
+ c.value.length === 0 ? (n(), r("div", $, "No events captured")) : (n(), r("table", {
42
+ key: 1,
43
+ ref_key: "tableRef",
44
+ ref: b,
45
+ class: "ss-dbg-table"
46
+ }, [
47
+ a[1] || (a[1] = e("thead", null, [
48
+ e("tr", null, [
49
+ e("th", null, "#"),
50
+ e("th", null, "Event"),
51
+ e("th", null, "Data"),
52
+ e("th", null, "Time")
53
+ ])
54
+ ], -1)),
55
+ e("tbody", null, [
56
+ (n(!0), r(k, null, w(c.value, (t) => (n(), r("tr", {
57
+ key: t.id
58
+ }, [
59
+ e("td", D, o(t.id), 1),
60
+ e("td", M, [
61
+ x(o(t.event) + " ", 1),
62
+ i.dashboardPath ? (n(), r("a", {
63
+ key: 0,
64
+ href: `${i.dashboardPath}#events?id=${t.id}`,
65
+ target: "_blank",
66
+ class: "ss-dbg-deeplink"
67
+ }, [
68
+ (n(), r("svg", {
69
+ width: "12",
70
+ height: "12",
71
+ viewBox: d(h)["open-external"].viewBox,
72
+ fill: "none",
73
+ stroke: "currentColor",
74
+ "stroke-width": "2",
75
+ innerHTML: d(h)["open-external"].elements.join("")
76
+ }, null, 8, R))
77
+ ], 8, P)) : T("", !0)
78
+ ]),
79
+ e("td", F, [
80
+ C(N, {
81
+ value: t.data,
82
+ "class-prefix": "ss-dbg"
83
+ }, null, 8, ["value"])
84
+ ]),
85
+ e("td", {
86
+ class: "ss-dbg-event-time",
87
+ title: d(A)(t.timestamp)
88
+ }, o(d(B)(t.timestamp)), 9, H)
89
+ ]))), 128))
90
+ ])
91
+ ], 512))
92
+ ]));
93
+ }
94
+ });
95
+ export {
96
+ O as default
97
+ };
@@ -0,0 +1,62 @@
1
+ import { defineComponent as h, openBlock as s, createElementBlock as t, toDisplayString as m, createCommentVNode as l, createElementVNode as r, unref as n, renderSlot as p } from "vue";
2
+ import { TAB_ICONS as c } from "adonisjs-server-stats/core";
3
+ const f = { class: "ss-dash-filter-bar" }, k = {
4
+ key: 0,
5
+ class: "ss-dash-summary"
6
+ }, v = { class: "ss-dash-search-wrapper" }, y = ["viewBox", "innerHTML"], _ = ["value", "placeholder"], V = {
7
+ key: 1,
8
+ class: "ss-dash-filter-controls"
9
+ }, g = /* @__PURE__ */ h({
10
+ __name: "FilterBar",
11
+ props: {
12
+ modelValue: {},
13
+ placeholder: {},
14
+ summary: {}
15
+ },
16
+ emits: ["update:modelValue", "clear"],
17
+ setup(e, { emit: d }) {
18
+ const o = d;
19
+ function i(a) {
20
+ o("update:modelValue", a.target.value);
21
+ }
22
+ function u() {
23
+ o("update:modelValue", ""), o("clear");
24
+ }
25
+ return (a, B) => (s(), t("div", f, [
26
+ e.summary ? (s(), t("span", k, m(e.summary), 1)) : l("", !0),
27
+ r("div", v, [
28
+ (s(), t("svg", {
29
+ class: "ss-dash-search-icon",
30
+ viewBox: n(c).search.viewBox,
31
+ width: "14",
32
+ height: "14",
33
+ fill: "none",
34
+ stroke: "currentColor",
35
+ "stroke-width": "2",
36
+ "stroke-linecap": "round",
37
+ "stroke-linejoin": "round",
38
+ innerHTML: n(c).search.elements.join("")
39
+ }, null, 8, y)),
40
+ r("input", {
41
+ class: "ss-dash-search",
42
+ type: "text",
43
+ value: e.modelValue,
44
+ placeholder: e.placeholder || "Search...",
45
+ onInput: i
46
+ }, null, 40, _),
47
+ e.modelValue ? (s(), t("button", {
48
+ key: 0,
49
+ type: "button",
50
+ class: "ss-dash-search-clear",
51
+ onClick: u
52
+ }, " × ")) : l("", !0)
53
+ ]),
54
+ a.$slots.default ? (s(), t("div", V, [
55
+ p(a.$slots, "default")
56
+ ])) : l("", !0)
57
+ ]));
58
+ }
59
+ });
60
+ export {
61
+ g as _
62
+ };