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.
- package/README.md +351 -171
- package/dist/configure.d.ts.map +1 -1
- package/dist/core/api-client.d.ts +73 -0
- package/dist/core/api-client.d.ts.map +1 -0
- package/dist/core/config-utils.d.ts +109 -0
- package/dist/core/config-utils.d.ts.map +1 -0
- package/dist/core/constants.d.ts +11 -0
- package/dist/core/constants.d.ts.map +1 -0
- package/dist/core/dashboard-api.d.ts +65 -0
- package/dist/core/dashboard-api.d.ts.map +1 -0
- package/dist/core/dashboard-data-controller.d.ts +157 -0
- package/dist/core/dashboard-data-controller.d.ts.map +1 -0
- package/dist/core/debug-data-controller.d.ts +89 -0
- package/dist/core/debug-data-controller.d.ts.map +1 -0
- package/dist/core/feature-detect.d.ts +67 -0
- package/dist/core/feature-detect.d.ts.map +1 -0
- package/dist/core/formatters.d.ts +189 -0
- package/dist/core/formatters.d.ts.map +1 -0
- package/dist/core/history-buffer.d.ts +23 -0
- package/dist/core/history-buffer.d.ts.map +1 -0
- package/dist/core/icons.d.ts +36 -0
- package/dist/core/icons.d.ts.map +1 -0
- package/dist/core/index.d.ts +39 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +1961 -0
- package/dist/core/internals-utils.d.ts +71 -0
- package/dist/core/internals-utils.d.ts.map +1 -0
- package/dist/core/job-utils.d.ts +45 -0
- package/dist/core/job-utils.d.ts.map +1 -0
- package/dist/core/log-utils.d.ts +34 -0
- package/dist/core/log-utils.d.ts.map +1 -0
- package/dist/core/metrics.d.ts +41 -0
- package/dist/core/metrics.d.ts.map +1 -0
- package/dist/core/pagination.d.ts +128 -0
- package/dist/core/pagination.d.ts.map +1 -0
- package/dist/core/query-utils.d.ts +35 -0
- package/dist/core/query-utils.d.ts.map +1 -0
- package/dist/core/resizable-columns.d.ts +18 -0
- package/dist/core/resizable-columns.d.ts.map +1 -0
- package/dist/core/routes.d.ts +12 -0
- package/dist/core/routes.d.ts.map +1 -0
- package/dist/core/server-stats-controller.d.ts +106 -0
- package/dist/core/server-stats-controller.d.ts.map +1 -0
- package/dist/core/sparkline.d.ts +80 -0
- package/dist/core/sparkline.d.ts.map +1 -0
- package/dist/core/theme.d.ts +42 -0
- package/dist/core/theme.d.ts.map +1 -0
- package/dist/core/trace-utils.d.ts +62 -0
- package/dist/core/trace-utils.d.ts.map +1 -0
- package/dist/core/transmit-adapter.d.ts +59 -0
- package/dist/core/transmit-adapter.d.ts.map +1 -0
- package/dist/core/types.d.ts +619 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/react/CacheSection-DGxMDlWK.js +146 -0
- package/dist/react/CacheTab-CnVW5PLs.js +123 -0
- package/dist/react/ConfigContent-CnsEI4j3.js +397 -0
- package/dist/react/ConfigSection-DPcrfqXY.js +11 -0
- package/dist/react/ConfigTab-BSWq_o2p.js +15 -0
- package/dist/react/CustomPaneTab-xjkYwTvH.js +104 -0
- package/dist/react/DataTable-YyShr5B-.js +55 -0
- package/dist/react/EmailsSection-CSyTg1aX.js +262 -0
- package/dist/react/EmailsTab-Dh2YSa_f.js +131 -0
- package/dist/react/EventsSection-C1pbJDfW.js +86 -0
- package/dist/react/EventsTab-eCh02cdd.js +63 -0
- package/dist/react/FilterBar-DQRXpWrb.js +50 -0
- package/dist/react/InternalsContent-DBzsI0CG.js +346 -0
- package/dist/react/InternalsSection-t7ihcWO-.js +32 -0
- package/dist/react/InternalsTab-Oij0A2fN.js +30 -0
- package/dist/react/JobsSection-CLAin5vU.js +187 -0
- package/dist/react/JobsTab-Dl5nrj2z.js +141 -0
- package/dist/react/LogsSection-C1p81fXO.js +212 -0
- package/dist/react/LogsTab-D-kR7PjX.js +88 -0
- package/dist/react/OverviewSection-nm3xdACz.js +539 -0
- package/dist/react/Pagination-BkmzUDY8.js +64 -0
- package/dist/react/QueriesSection-DB12HMfQ.js +461 -0
- package/dist/react/QueriesTab-fyBB1u_Y.js +90 -0
- package/dist/react/RequestsSection-DTqB81ac.js +209 -0
- package/dist/react/RoutesSection-DJWa4NPV.js +74 -0
- package/dist/react/RoutesTab-D3l8TOpu.js +74 -0
- package/dist/react/TimelineSection-C4d-jRX1.js +158 -0
- package/dist/react/TimelineTab-C5TFaSmQ.js +193 -0
- package/dist/react/WaterfallChart-Cj73WdfM.js +100 -0
- package/dist/react/core/api-client.d.ts +73 -0
- package/dist/react/core/api-client.d.ts.map +1 -0
- package/dist/react/core/config-utils.d.ts +109 -0
- package/dist/react/core/config-utils.d.ts.map +1 -0
- package/dist/react/core/constants.d.ts +11 -0
- package/dist/react/core/constants.d.ts.map +1 -0
- package/dist/react/core/dashboard-api.d.ts +65 -0
- package/dist/react/core/dashboard-api.d.ts.map +1 -0
- package/dist/react/core/dashboard-data-controller.d.ts +157 -0
- package/dist/react/core/dashboard-data-controller.d.ts.map +1 -0
- package/dist/react/core/debug-data-controller.d.ts +89 -0
- package/dist/react/core/debug-data-controller.d.ts.map +1 -0
- package/dist/react/core/feature-detect.d.ts +67 -0
- package/dist/react/core/feature-detect.d.ts.map +1 -0
- package/dist/react/core/formatters.d.ts +189 -0
- package/dist/react/core/formatters.d.ts.map +1 -0
- package/dist/react/core/history-buffer.d.ts +23 -0
- package/dist/react/core/history-buffer.d.ts.map +1 -0
- package/dist/react/core/icons.d.ts +36 -0
- package/dist/react/core/icons.d.ts.map +1 -0
- package/dist/react/core/index.d.ts +39 -0
- package/dist/react/core/index.d.ts.map +1 -0
- package/dist/react/core/internals-utils.d.ts +71 -0
- package/dist/react/core/internals-utils.d.ts.map +1 -0
- package/dist/react/core/job-utils.d.ts +45 -0
- package/dist/react/core/job-utils.d.ts.map +1 -0
- package/dist/react/core/log-utils.d.ts +34 -0
- package/dist/react/core/log-utils.d.ts.map +1 -0
- package/dist/react/core/metrics.d.ts +41 -0
- package/dist/react/core/metrics.d.ts.map +1 -0
- package/dist/react/core/pagination.d.ts +128 -0
- package/dist/react/core/pagination.d.ts.map +1 -0
- package/dist/react/core/query-utils.d.ts +35 -0
- package/dist/react/core/query-utils.d.ts.map +1 -0
- package/dist/react/core/resizable-columns.d.ts +18 -0
- package/dist/react/core/resizable-columns.d.ts.map +1 -0
- package/dist/react/core/routes.d.ts +12 -0
- package/dist/react/core/routes.d.ts.map +1 -0
- package/dist/react/core/server-stats-controller.d.ts +106 -0
- package/dist/react/core/server-stats-controller.d.ts.map +1 -0
- package/dist/react/core/sparkline.d.ts +80 -0
- package/dist/react/core/sparkline.d.ts.map +1 -0
- package/dist/react/core/theme.d.ts +42 -0
- package/dist/react/core/theme.d.ts.map +1 -0
- package/dist/react/core/trace-utils.d.ts +62 -0
- package/dist/react/core/trace-utils.d.ts.map +1 -0
- package/dist/react/core/transmit-adapter.d.ts +59 -0
- package/dist/react/core/transmit-adapter.d.ts.map +1 -0
- package/dist/react/core/types.d.ts +619 -0
- package/dist/react/core/types.d.ts.map +1 -0
- package/dist/react/index-UdTfSvtO.js +1074 -0
- package/dist/react/index.js +18 -0
- package/dist/react/react/components/Dashboard/DashboardPage.d.ts +17 -0
- package/dist/react/react/components/Dashboard/DashboardPage.d.ts.map +1 -0
- package/dist/react/react/components/Dashboard/sections/CacheSection.d.ts +7 -0
- package/dist/react/react/components/Dashboard/sections/CacheSection.d.ts.map +1 -0
- package/dist/react/react/components/Dashboard/sections/ConfigSection.d.ts +7 -0
- package/dist/react/react/components/Dashboard/sections/ConfigSection.d.ts.map +1 -0
- package/dist/react/react/components/Dashboard/sections/EmailsSection.d.ts +7 -0
- package/dist/react/react/components/Dashboard/sections/EmailsSection.d.ts.map +1 -0
- package/dist/react/react/components/Dashboard/sections/EventsSection.d.ts +7 -0
- package/dist/react/react/components/Dashboard/sections/EventsSection.d.ts.map +1 -0
- package/dist/react/react/components/Dashboard/sections/InternalsSection.d.ts +14 -0
- package/dist/react/react/components/Dashboard/sections/InternalsSection.d.ts.map +1 -0
- package/dist/react/react/components/Dashboard/sections/JobsSection.d.ts +7 -0
- package/dist/react/react/components/Dashboard/sections/JobsSection.d.ts.map +1 -0
- package/dist/react/react/components/Dashboard/sections/LogsSection.d.ts +7 -0
- package/dist/react/react/components/Dashboard/sections/LogsSection.d.ts.map +1 -0
- package/dist/react/react/components/Dashboard/sections/OverviewSection.d.ts +7 -0
- package/dist/react/react/components/Dashboard/sections/OverviewSection.d.ts.map +1 -0
- package/dist/react/react/components/Dashboard/sections/QueriesSection.d.ts +7 -0
- package/dist/react/react/components/Dashboard/sections/QueriesSection.d.ts.map +1 -0
- package/dist/react/react/components/Dashboard/sections/RequestsSection.d.ts +7 -0
- package/dist/react/react/components/Dashboard/sections/RequestsSection.d.ts.map +1 -0
- package/dist/react/react/components/Dashboard/sections/RoutesSection.d.ts +7 -0
- package/dist/react/react/components/Dashboard/sections/RoutesSection.d.ts.map +1 -0
- package/dist/react/react/components/Dashboard/sections/TimelineSection.d.ts +9 -0
- package/dist/react/react/components/Dashboard/sections/TimelineSection.d.ts.map +1 -0
- package/dist/react/react/components/Dashboard/shared/DataTable.d.ts +27 -0
- package/dist/react/react/components/Dashboard/shared/DataTable.d.ts.map +1 -0
- package/dist/react/react/components/Dashboard/shared/FilterBar.d.ts +17 -0
- package/dist/react/react/components/Dashboard/shared/FilterBar.d.ts.map +1 -0
- package/dist/react/react/components/Dashboard/shared/Pagination.d.ts +13 -0
- package/dist/react/react/components/Dashboard/shared/Pagination.d.ts.map +1 -0
- package/dist/react/react/components/Dashboard/shared/TimeRangeSelector.d.ts +12 -0
- package/dist/react/react/components/Dashboard/shared/TimeRangeSelector.d.ts.map +1 -0
- package/dist/react/react/components/Dashboard/shared/WaterfallChart.d.ts +16 -0
- package/dist/react/react/components/Dashboard/shared/WaterfallChart.d.ts.map +1 -0
- package/dist/react/react/components/DebugPanel/DebugPanel.d.ts +16 -0
- package/dist/react/react/components/DebugPanel/DebugPanel.d.ts.map +1 -0
- package/dist/react/react/components/DebugPanel/tabs/CacheTab.d.ts +8 -0
- package/dist/react/react/components/DebugPanel/tabs/CacheTab.d.ts.map +1 -0
- package/dist/react/react/components/DebugPanel/tabs/ConfigTab.d.ts +8 -0
- package/dist/react/react/components/DebugPanel/tabs/ConfigTab.d.ts.map +1 -0
- package/dist/react/react/components/DebugPanel/tabs/CustomPaneTab.d.ts +14 -0
- package/dist/react/react/components/DebugPanel/tabs/CustomPaneTab.d.ts.map +1 -0
- package/dist/react/react/components/DebugPanel/tabs/EmailsTab.d.ts +7 -0
- package/dist/react/react/components/DebugPanel/tabs/EmailsTab.d.ts.map +1 -0
- package/dist/react/react/components/DebugPanel/tabs/EventsTab.d.ts +7 -0
- package/dist/react/react/components/DebugPanel/tabs/EventsTab.d.ts.map +1 -0
- package/dist/react/react/components/DebugPanel/tabs/InternalsTab.d.ts +12 -0
- package/dist/react/react/components/DebugPanel/tabs/InternalsTab.d.ts.map +1 -0
- package/dist/react/react/components/DebugPanel/tabs/JobsTab.d.ts +9 -0
- package/dist/react/react/components/DebugPanel/tabs/JobsTab.d.ts.map +1 -0
- package/dist/react/react/components/DebugPanel/tabs/LogsTab.d.ts +7 -0
- package/dist/react/react/components/DebugPanel/tabs/LogsTab.d.ts.map +1 -0
- package/dist/react/react/components/DebugPanel/tabs/QueriesTab.d.ts +7 -0
- package/dist/react/react/components/DebugPanel/tabs/QueriesTab.d.ts.map +1 -0
- package/dist/react/react/components/DebugPanel/tabs/RoutesTab.d.ts +8 -0
- package/dist/react/react/components/DebugPanel/tabs/RoutesTab.d.ts.map +1 -0
- package/dist/react/react/components/DebugPanel/tabs/TimelineTab.d.ts +7 -0
- package/dist/react/react/components/DebugPanel/tabs/TimelineTab.d.ts.map +1 -0
- package/dist/react/react/components/StatsBar/MetricCard.d.ts +21 -0
- package/dist/react/react/components/StatsBar/MetricCard.d.ts.map +1 -0
- package/dist/react/react/components/StatsBar/Sparkline.d.ts +15 -0
- package/dist/react/react/components/StatsBar/Sparkline.d.ts.map +1 -0
- package/dist/react/react/components/StatsBar/StatsBar.d.ts +22 -0
- package/dist/react/react/components/StatsBar/StatsBar.d.ts.map +1 -0
- package/dist/react/react/components/shared/Badge.d.ts +32 -0
- package/dist/react/react/components/shared/Badge.d.ts.map +1 -0
- package/dist/react/react/components/shared/ConfigContent.d.ts +13 -0
- package/dist/react/react/components/shared/ConfigContent.d.ts.map +1 -0
- package/dist/react/react/components/shared/InternalsContent.d.ts +10 -0
- package/dist/react/react/components/shared/InternalsContent.d.ts.map +1 -0
- package/dist/react/react/components/shared/JsonViewer.d.ts +12 -0
- package/dist/react/react/components/shared/JsonViewer.d.ts.map +1 -0
- package/dist/react/react/components/shared/ThemeToggle.d.ts +13 -0
- package/dist/react/react/components/shared/ThemeToggle.d.ts.map +1 -0
- package/dist/react/react/components/shared/Tooltip.d.ts +16 -0
- package/dist/react/react/components/shared/Tooltip.d.ts.map +1 -0
- package/dist/react/react/hooks/useApiClient.d.ts +10 -0
- package/dist/react/react/hooks/useApiClient.d.ts.map +1 -0
- package/dist/react/react/hooks/useDashboardApiBase.d.ts +19 -0
- package/dist/react/react/hooks/useDashboardApiBase.d.ts.map +1 -0
- package/dist/react/react/hooks/useDashboardData.d.ts +27 -0
- package/dist/react/react/hooks/useDashboardData.d.ts.map +1 -0
- package/dist/react/react/hooks/useDebugData.d.ts +17 -0
- package/dist/react/react/hooks/useDebugData.d.ts.map +1 -0
- package/dist/react/react/hooks/useFeatures.d.ts +13 -0
- package/dist/react/react/hooks/useFeatures.d.ts.map +1 -0
- package/dist/react/react/hooks/useResizableTable.d.ts +13 -0
- package/dist/react/react/hooks/useResizableTable.d.ts.map +1 -0
- package/dist/react/react/hooks/useServerStats.d.ts +21 -0
- package/dist/react/react/hooks/useServerStats.d.ts.map +1 -0
- package/dist/react/react/hooks/useTheme.d.ts +12 -0
- package/dist/react/react/hooks/useTheme.d.ts.map +1 -0
- package/dist/react/react/index.d.ts +14 -0
- package/dist/react/react/index.d.ts.map +1 -0
- package/dist/react/style.css +1 -0
- package/dist/react/useApiClient-BVtNCmnL.js +9 -0
- package/dist/react/useDashboardApiBase-Bi36pJ2L.js +14 -0
- package/dist/react/useResizableTable-CNJmACdt.js +13 -0
- package/dist/src/collectors/app_collector.d.ts.map +1 -1
- package/dist/src/collectors/app_collector.js +30 -2
- package/dist/src/collectors/auto_detect.d.ts +31 -0
- package/dist/src/collectors/auto_detect.d.ts.map +1 -0
- package/dist/src/collectors/auto_detect.js +120 -0
- package/dist/src/collectors/collector.d.ts +17 -0
- package/dist/src/collectors/collector.d.ts.map +1 -1
- package/dist/src/collectors/db_pool_collector.d.ts.map +1 -1
- package/dist/src/collectors/db_pool_collector.js +35 -1
- package/dist/src/collectors/http_collector.d.ts +4 -3
- package/dist/src/collectors/http_collector.d.ts.map +1 -1
- package/dist/src/collectors/http_collector.js +28 -11
- package/dist/src/collectors/index.d.ts +2 -0
- package/dist/src/collectors/index.d.ts.map +1 -1
- package/dist/src/collectors/index.js +1 -0
- package/dist/src/collectors/log_collector.d.ts +11 -4
- package/dist/src/collectors/log_collector.d.ts.map +1 -1
- package/dist/src/collectors/log_collector.js +51 -5
- package/dist/src/collectors/process_collector.d.ts.map +1 -1
- package/dist/src/collectors/process_collector.js +4 -0
- package/dist/src/collectors/queue_collector.d.ts.map +1 -1
- package/dist/src/collectors/queue_collector.js +55 -1
- package/dist/src/collectors/redis_collector.d.ts.map +1 -1
- package/dist/src/collectors/redis_collector.js +42 -3
- package/dist/src/collectors/system_collector.d.ts.map +1 -1
- package/dist/src/collectors/system_collector.js +4 -0
- package/dist/src/controller/api_controller.d.ts +101 -0
- package/dist/src/controller/api_controller.d.ts.map +1 -0
- package/dist/src/controller/api_controller.js +131 -0
- package/dist/src/controller/debug_controller.d.ts +19 -10
- package/dist/src/controller/debug_controller.d.ts.map +1 -1
- package/dist/src/controller/debug_controller.js +118 -101
- package/dist/src/core/theme.d.ts +42 -0
- package/dist/src/core/theme.d.ts.map +1 -0
- package/dist/src/core/theme.js +115 -0
- package/dist/src/dashboard/chart_aggregator.d.ts.map +1 -1
- package/dist/src/dashboard/chart_aggregator.js +3 -2
- package/dist/src/dashboard/dashboard_controller.d.ts +10 -14
- package/dist/src/dashboard/dashboard_controller.d.ts.map +1 -1
- package/dist/src/dashboard/dashboard_controller.js +132 -250
- package/dist/src/dashboard/dashboard_store.d.ts +62 -19
- package/dist/src/dashboard/dashboard_store.d.ts.map +1 -1
- package/dist/src/dashboard/dashboard_store.js +242 -53
- package/dist/src/dashboard/integrations/cache_inspector.d.ts +19 -1
- package/dist/src/dashboard/integrations/cache_inspector.d.ts.map +1 -1
- package/dist/src/dashboard/integrations/config_inspector.d.ts +1 -1
- package/dist/src/dashboard/integrations/config_inspector.d.ts.map +1 -1
- package/dist/src/dashboard/integrations/config_inspector.js +3 -2
- package/dist/src/dashboard/integrations/queue_inspector.d.ts +55 -10
- package/dist/src/dashboard/integrations/queue_inspector.d.ts.map +1 -1
- package/dist/src/dashboard/integrations/queue_inspector.js +70 -24
- package/dist/src/dashboard/migrator.d.ts +5 -0
- package/dist/src/dashboard/migrator.d.ts.map +1 -1
- package/dist/src/dashboard/migrator.js +44 -9
- package/dist/src/dashboard/models/stats_event.d.ts +1 -1
- package/dist/src/dashboard/models/stats_event.d.ts.map +1 -1
- package/dist/src/dashboard/models/stats_log.d.ts +1 -1
- package/dist/src/dashboard/models/stats_log.d.ts.map +1 -1
- package/dist/src/dashboard/models/stats_query.d.ts +1 -1
- package/dist/src/dashboard/models/stats_query.d.ts.map +1 -1
- package/dist/src/dashboard/models/stats_saved_filter.d.ts +1 -1
- package/dist/src/dashboard/models/stats_saved_filter.d.ts.map +1 -1
- package/dist/src/dashboard/models/stats_trace.d.ts +2 -1
- package/dist/src/dashboard/models/stats_trace.d.ts.map +1 -1
- package/dist/src/data/data_access.d.ts +105 -0
- package/dist/src/data/data_access.d.ts.map +1 -0
- package/dist/src/data/data_access.js +310 -0
- package/dist/src/data/index.d.ts +3 -0
- package/dist/src/data/index.d.ts.map +1 -0
- package/dist/src/data/index.js +1 -0
- package/dist/src/debug/debug_store.d.ts +20 -1
- package/dist/src/debug/debug_store.d.ts.map +1 -1
- package/dist/src/debug/debug_store.js +43 -15
- package/dist/src/debug/email_collector.d.ts +6 -2
- package/dist/src/debug/email_collector.d.ts.map +1 -1
- package/dist/src/debug/email_collector.js +3 -0
- package/dist/src/debug/event_collector.d.ts +6 -2
- package/dist/src/debug/event_collector.d.ts.map +1 -1
- package/dist/src/debug/event_collector.js +12 -8
- package/dist/src/debug/query_collector.d.ts +6 -2
- package/dist/src/debug/query_collector.d.ts.map +1 -1
- package/dist/src/debug/query_collector.js +3 -0
- package/dist/src/debug/ring_buffer.d.ts +1 -0
- package/dist/src/debug/ring_buffer.d.ts.map +1 -1
- package/dist/src/debug/ring_buffer.js +5 -2
- package/dist/src/debug/route_inspector.d.ts +2 -2
- package/dist/src/debug/route_inspector.d.ts.map +1 -1
- package/dist/src/debug/route_inspector.js +4 -3
- package/dist/src/debug/trace_collector.d.ts +7 -3
- package/dist/src/debug/trace_collector.d.ts.map +1 -1
- package/dist/src/debug/trace_collector.js +7 -5
- package/dist/src/debug/types.d.ts +107 -2
- package/dist/src/debug/types.d.ts.map +1 -1
- package/dist/src/debug/types.js +1 -1
- package/dist/src/define_config.d.ts +49 -5
- package/dist/src/define_config.d.ts.map +1 -1
- package/dist/src/define_config.js +361 -4
- package/dist/src/edge/bootstrap.d.ts +17 -0
- package/dist/src/edge/bootstrap.d.ts.map +1 -0
- package/dist/src/edge/bootstrap.js +29 -0
- package/dist/src/edge/client/dashboard.js +2 -3619
- package/dist/src/edge/client/debug-panel-deferred.js +1 -0
- package/dist/src/edge/client/debug-panel.js +1 -2140
- package/dist/src/edge/client/stats-bar.js +1 -801
- package/dist/src/edge/client-vue/dashboard.js +5 -0
- package/dist/src/edge/client-vue/debug-panel-deferred.js +4 -0
- package/dist/src/edge/client-vue/debug-panel.js +4 -0
- package/dist/src/edge/client-vue/stats-bar.js +4 -0
- package/dist/src/edge/plugin.d.ts +35 -2
- package/dist/src/edge/plugin.d.ts.map +1 -1
- package/dist/src/edge/plugin.js +30 -66
- package/dist/src/edge/types.d.ts +46 -0
- package/dist/src/edge/types.d.ts.map +1 -0
- package/dist/src/edge/types.js +4 -0
- package/dist/src/edge/views/dashboard.edge +1 -358
- package/dist/src/edge/views/debug-panel.edge +2 -154
- package/dist/src/edge/views/stats-bar.edge +15 -48
- package/dist/src/engine/stats_engine.d.ts +18 -0
- package/dist/src/engine/stats_engine.d.ts.map +1 -1
- package/dist/src/engine/stats_engine.js +45 -2
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/log_stream/log_stream_provider.d.ts.map +1 -1
- package/dist/src/log_stream/log_stream_provider.js +21 -4
- package/dist/src/log_stream/log_stream_service.d.ts +8 -1
- package/dist/src/log_stream/log_stream_service.d.ts.map +1 -1
- package/dist/src/log_stream/log_stream_service.js +27 -3
- package/dist/src/middleware/request_tracking_middleware.d.ts +1 -1
- package/dist/src/middleware/request_tracking_middleware.d.ts.map +1 -1
- package/dist/src/middleware/request_tracking_middleware.js +21 -6
- package/dist/src/prometheus/prometheus_collector.d.ts +2 -1
- package/dist/src/prometheus/prometheus_collector.d.ts.map +1 -1
- package/dist/src/provider/server_stats_provider.d.ts +100 -0
- package/dist/src/provider/server_stats_provider.d.ts.map +1 -1
- package/dist/src/provider/server_stats_provider.js +460 -104
- package/dist/src/routes/access_middleware.d.ts +2 -1
- package/dist/src/routes/access_middleware.d.ts.map +1 -1
- package/dist/src/routes/access_middleware.js +7 -1
- package/dist/src/routes/index.d.ts +4 -0
- package/dist/src/routes/index.d.ts.map +1 -0
- package/dist/src/routes/index.js +1 -0
- package/dist/src/routes/register_routes.d.ts +103 -0
- package/dist/src/routes/register_routes.d.ts.map +1 -0
- package/dist/src/routes/register_routes.js +356 -0
- package/dist/src/routes/router_types.d.ts +29 -0
- package/dist/src/routes/router_types.d.ts.map +1 -0
- package/dist/src/routes/router_types.js +1 -0
- package/dist/src/stubs/config.stub +12 -32
- package/dist/src/styles/components.css +1048 -0
- package/dist/src/{edge/client → styles}/dashboard.css +299 -736
- package/dist/src/{edge/client → styles}/debug-panel.css +117 -633
- package/dist/src/{edge/client → styles}/stats-bar.css +28 -10
- package/dist/src/styles/tokens.css +153 -0
- package/dist/src/styles/utilities.css +75 -0
- package/dist/src/types.d.ts +119 -16
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/app_import.d.ts +23 -0
- package/dist/src/utils/app_import.d.ts.map +1 -0
- package/dist/src/utils/app_import.js +44 -0
- package/dist/src/utils/json_helpers.d.ts +2 -2
- package/dist/src/utils/json_helpers.d.ts.map +1 -1
- package/dist/src/utils/logger.d.ts +17 -0
- package/dist/src/utils/logger.d.ts.map +1 -0
- package/dist/src/utils/logger.js +27 -0
- package/dist/src/utils/mail_helpers.d.ts +1 -1
- package/dist/src/utils/mail_helpers.d.ts.map +1 -1
- package/dist/src/utils/mail_helpers.js +1 -1
- package/dist/vue/CacheSection-C788Yfai.js +149 -0
- package/dist/vue/CacheTab-BPisYYiQ.js +104 -0
- package/dist/vue/ConfigSection-CRzYxqW2.js +576 -0
- package/dist/vue/ConfigTab-C8cafGUj.js +361 -0
- package/dist/vue/CustomPaneTab-BJxT5Dp7.js +172 -0
- package/dist/vue/EmailsSection-C8JFMtW7.js +206 -0
- package/dist/vue/EmailsTab-DhFhoNmU.js +157 -0
- package/dist/vue/EventsSection-C4wXUgxG.js +107 -0
- package/dist/vue/EventsTab-DQ4Nd6AK.js +97 -0
- package/dist/vue/FilterBar.vue_vue_type_script_setup_true_lang-ClJ37hhT.js +62 -0
- package/dist/vue/InternalsSection-BJUXE-5F.js +468 -0
- package/dist/vue/InternalsTab-DEMjqtlw.js +471 -0
- package/dist/vue/JobsSection-CsKWTjgN.js +187 -0
- package/dist/vue/JobsTab-BCvhOARO.js +117 -0
- package/dist/vue/JsonViewer.vue_vue_type_script_setup_true_lang-Vsqar1zx.js +67 -0
- package/dist/vue/LogsSection-BFVjSZ24.js +227 -0
- package/dist/vue/LogsTab-DpEQ7euu.js +122 -0
- package/dist/vue/OverviewSection-CbMdAido.js +849 -0
- package/dist/vue/PaginationControls.vue_vue_type_script_setup_true_lang-CuN7g_8Z.js +50 -0
- package/dist/vue/QueriesSection-BPiv7u3r.js +429 -0
- package/dist/vue/QueriesTab-C8_7oprC.js +107 -0
- package/dist/vue/RequestsSection-LtImH4rD.js +243 -0
- package/dist/vue/RoutesSection-CrxOxmzx.js +106 -0
- package/dist/vue/RoutesTab-Dz0MkZuF.js +80 -0
- package/dist/vue/TimelineSection-DLxMW2J_.js +186 -0
- package/dist/vue/TimelineTab-Db6lKKsD.js +250 -0
- package/dist/vue/WaterfallChart.vue_vue_type_script_setup_true_lang-tZ13cNj1.js +118 -0
- package/dist/vue/components/Dashboard/DashboardPage.vue.d.ts +18 -0
- package/dist/vue/components/Dashboard/DashboardPage.vue.d.ts.map +1 -0
- package/dist/vue/components/Dashboard/sections/CacheSection.vue.d.ts +5 -0
- package/dist/vue/components/Dashboard/sections/CacheSection.vue.d.ts.map +1 -0
- package/dist/vue/components/Dashboard/sections/ConfigSection.vue.d.ts +3 -0
- package/dist/vue/components/Dashboard/sections/ConfigSection.vue.d.ts.map +1 -0
- package/dist/vue/components/Dashboard/sections/EmailsSection.vue.d.ts +5 -0
- package/dist/vue/components/Dashboard/sections/EmailsSection.vue.d.ts.map +1 -0
- package/dist/vue/components/Dashboard/sections/EventsSection.vue.d.ts +5 -0
- package/dist/vue/components/Dashboard/sections/EventsSection.vue.d.ts.map +1 -0
- package/dist/vue/components/Dashboard/sections/InternalsSection.vue.d.ts +3 -0
- package/dist/vue/components/Dashboard/sections/InternalsSection.vue.d.ts.map +1 -0
- package/dist/vue/components/Dashboard/sections/JobsSection.vue.d.ts +5 -0
- package/dist/vue/components/Dashboard/sections/JobsSection.vue.d.ts.map +1 -0
- package/dist/vue/components/Dashboard/sections/LogsSection.vue.d.ts +3 -0
- package/dist/vue/components/Dashboard/sections/LogsSection.vue.d.ts.map +1 -0
- package/dist/vue/components/Dashboard/sections/OverviewSection.vue.d.ts +5 -0
- package/dist/vue/components/Dashboard/sections/OverviewSection.vue.d.ts.map +1 -0
- package/dist/vue/components/Dashboard/sections/QueriesSection.vue.d.ts +45 -0
- package/dist/vue/components/Dashboard/sections/QueriesSection.vue.d.ts.map +1 -0
- package/dist/vue/components/Dashboard/sections/RequestsSection.vue.d.ts +5 -0
- package/dist/vue/components/Dashboard/sections/RequestsSection.vue.d.ts.map +1 -0
- package/dist/vue/components/Dashboard/sections/RoutesSection.vue.d.ts +5 -0
- package/dist/vue/components/Dashboard/sections/RoutesSection.vue.d.ts.map +1 -0
- package/dist/vue/components/Dashboard/sections/TimelineSection.vue.d.ts +11 -0
- package/dist/vue/components/Dashboard/sections/TimelineSection.vue.d.ts.map +1 -0
- package/dist/vue/components/Dashboard/shared/FilterBar.vue.d.ts +29 -0
- package/dist/vue/components/Dashboard/shared/FilterBar.vue.d.ts.map +1 -0
- package/dist/vue/components/Dashboard/shared/PaginationControls.vue.d.ts +12 -0
- package/dist/vue/components/Dashboard/shared/PaginationControls.vue.d.ts.map +1 -0
- package/dist/vue/components/Dashboard/shared/TimeRangeSelector.vue.d.ts +11 -0
- package/dist/vue/components/Dashboard/shared/TimeRangeSelector.vue.d.ts.map +1 -0
- package/dist/vue/components/Dashboard/shared/WaterfallChart.vue.d.ts +10 -0
- package/dist/vue/components/Dashboard/shared/WaterfallChart.vue.d.ts.map +1 -0
- package/dist/vue/components/DebugPanel/DebugPanel.vue.d.ts +21 -0
- package/dist/vue/components/DebugPanel/DebugPanel.vue.d.ts.map +1 -0
- package/dist/vue/components/DebugPanel/tabs/CacheTab.vue.d.ts +12 -0
- package/dist/vue/components/DebugPanel/tabs/CacheTab.vue.d.ts.map +1 -0
- package/dist/vue/components/DebugPanel/tabs/ConfigTab.vue.d.ts +11 -0
- package/dist/vue/components/DebugPanel/tabs/ConfigTab.vue.d.ts.map +1 -0
- package/dist/vue/components/DebugPanel/tabs/CustomPaneTab.vue.d.ts +11 -0
- package/dist/vue/components/DebugPanel/tabs/CustomPaneTab.vue.d.ts.map +1 -0
- package/dist/vue/components/DebugPanel/tabs/EmailsTab.vue.d.ts +12 -0
- package/dist/vue/components/DebugPanel/tabs/EmailsTab.vue.d.ts.map +1 -0
- package/dist/vue/components/DebugPanel/tabs/EventsTab.vue.d.ts +12 -0
- package/dist/vue/components/DebugPanel/tabs/EventsTab.vue.d.ts.map +1 -0
- package/dist/vue/components/DebugPanel/tabs/InternalsTab.vue.d.ts +11 -0
- package/dist/vue/components/DebugPanel/tabs/InternalsTab.vue.d.ts.map +1 -0
- package/dist/vue/components/DebugPanel/tabs/JobsTab.vue.d.ts +13 -0
- package/dist/vue/components/DebugPanel/tabs/JobsTab.vue.d.ts.map +1 -0
- package/dist/vue/components/DebugPanel/tabs/LogsTab.vue.d.ts +15 -0
- package/dist/vue/components/DebugPanel/tabs/LogsTab.vue.d.ts.map +1 -0
- package/dist/vue/components/DebugPanel/tabs/QueriesTab.vue.d.ts +12 -0
- package/dist/vue/components/DebugPanel/tabs/QueriesTab.vue.d.ts.map +1 -0
- package/dist/vue/components/DebugPanel/tabs/RoutesTab.vue.d.ts +12 -0
- package/dist/vue/components/DebugPanel/tabs/RoutesTab.vue.d.ts.map +1 -0
- package/dist/vue/components/DebugPanel/tabs/TimelineTab.vue.d.ts +15 -0
- package/dist/vue/components/DebugPanel/tabs/TimelineTab.vue.d.ts.map +1 -0
- package/dist/vue/components/StatsBar/MetricCard.vue.d.ts +19 -0
- package/dist/vue/components/StatsBar/MetricCard.vue.d.ts.map +1 -0
- package/dist/vue/components/StatsBar/Sparkline.vue.d.ts +17 -0
- package/dist/vue/components/StatsBar/Sparkline.vue.d.ts.map +1 -0
- package/dist/vue/components/StatsBar/StatsBar.vue.d.ts +22 -0
- package/dist/vue/components/StatsBar/StatsBar.vue.d.ts.map +1 -0
- package/dist/vue/components/shared/JsonViewer.vue.d.ts +13 -0
- package/dist/vue/components/shared/JsonViewer.vue.d.ts.map +1 -0
- package/dist/vue/components/shared/ThemeToggle.vue.d.ts +8 -0
- package/dist/vue/components/shared/ThemeToggle.vue.d.ts.map +1 -0
- package/dist/vue/composables/useApiClient.d.ts +9 -0
- package/dist/vue/composables/useApiClient.d.ts.map +1 -0
- package/dist/vue/composables/useDashboardData.d.ts +53 -0
- package/dist/vue/composables/useDashboardData.d.ts.map +1 -0
- package/dist/vue/composables/useDebugData.d.ts +25 -0
- package/dist/vue/composables/useDebugData.d.ts.map +1 -0
- package/dist/vue/composables/useFeatures.d.ts +80 -0
- package/dist/vue/composables/useFeatures.d.ts.map +1 -0
- package/dist/vue/composables/useResizableTable.d.ts +16 -0
- package/dist/vue/composables/useResizableTable.d.ts.map +1 -0
- package/dist/vue/composables/useServerStats.d.ts +104 -0
- package/dist/vue/composables/useServerStats.d.ts.map +1 -0
- package/dist/vue/composables/useTheme.d.ts +6 -0
- package/dist/vue/composables/useTheme.d.ts.map +1 -0
- package/dist/vue/index-qCQpBftQ.js +1233 -0
- package/dist/vue/index.d.ts +10 -0
- package/dist/vue/index.d.ts.map +1 -0
- package/dist/vue/index.js +11 -0
- package/dist/vue/style.css +1 -0
- package/dist/vue/useApiClient-BQQ9CF-q.js +10 -0
- package/dist/vue/useResizableTable-BoivAevK.js +17 -0
- package/package.json +72 -10
- package/dist/src/dashboard/dashboard_routes.d.ts +0 -16
- package/dist/src/dashboard/dashboard_routes.d.ts.map +0 -1
- package/dist/src/dashboard/dashboard_routes.js +0 -77
- package/dist/src/routes/debug_routes.d.ts +0 -14
- package/dist/src/routes/debug_routes.d.ts.map +0 -1
- package/dist/src/routes/debug_routes.js +0 -42
- package/dist/src/routes/stats_routes.d.ts +0 -14
- package/dist/src/routes/stats_routes.d.ts.map +0 -1
- package/dist/src/routes/stats_routes.js +0 -27
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { defineComponent as M, inject as _, ref as h, computed as U, openBlock as o, createElementBlock as l, Fragment as m, createElementVNode as s, normalizeClass as v, toDisplayString as n, createVNode as D, unref as a, createCommentVNode as u, createTextVNode as y, renderList as j, createBlock as K } from "vue";
|
|
2
|
+
import { formatTime as G, timeAgo as H, normalizeTraceFields as I, durationSeverity as J } from "adonisjs-server-stats/core";
|
|
3
|
+
import { u as O } from "./useApiClient-BQQ9CF-q.js";
|
|
4
|
+
import { u as Q } from "./index-qCQpBftQ.js";
|
|
5
|
+
import { u as W } from "./useResizableTable-BoivAevK.js";
|
|
6
|
+
import { _ as X } from "./FilterBar.vue_vue_type_script_setup_true_lang-ClJ37hhT.js";
|
|
7
|
+
import { _ as Y } from "./PaginationControls.vue_vue_type_script_setup_true_lang-CuN7g_8Z.js";
|
|
8
|
+
import { _ as Z } from "./WaterfallChart.vue_vue_type_script_setup_true_lang-tZ13cNj1.js";
|
|
9
|
+
const ss = { class: "ss-dash-tl-detail-header" }, ts = { style: { color: "var(--ss-text)" } }, es = { class: "ss-dash-tl-meta" }, as = { class: "ss-dash-tl-detail-header" }, os = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "ss-dash-empty"
|
|
12
|
+
}, ls = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "ss-dash-empty"
|
|
15
|
+
}, ns = { class: "ss-dash-table-wrap" }, ds = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "ss-dash-sort-arrow"
|
|
18
|
+
}, is = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "ss-dash-sort-arrow"
|
|
21
|
+
}, rs = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "ss-dash-sort-arrow"
|
|
24
|
+
}, us = {
|
|
25
|
+
key: 0,
|
|
26
|
+
class: "ss-dash-sort-arrow"
|
|
27
|
+
}, cs = {
|
|
28
|
+
key: 0,
|
|
29
|
+
class: "ss-dash-sort-arrow"
|
|
30
|
+
}, ps = ["onClick"], hs = { style: { color: "var(--ss-dim)" } }, ms = ["title"], vs = { style: { color: "var(--ss-muted)", "text-align": "center" } }, ys = {
|
|
31
|
+
key: 0,
|
|
32
|
+
style: { color: "var(--ss-amber-fg)", "text-align": "center", display: "block" }
|
|
33
|
+
}, fs = {
|
|
34
|
+
key: 1,
|
|
35
|
+
style: { color: "var(--ss-dim)", "text-align": "center", display: "block" }
|
|
36
|
+
}, ks = ["title"], _s = {
|
|
37
|
+
key: 1,
|
|
38
|
+
class: "ss-dash-empty"
|
|
39
|
+
}, Rs = /* @__PURE__ */ M({
|
|
40
|
+
__name: "RequestsSection",
|
|
41
|
+
setup(gs) {
|
|
42
|
+
const S = _("ss-refresh-key", h(0)), C = _("ss-dashboard-endpoint", "/__stats/api"), b = _("ss-auth-token", void 0), x = _("ss-base-url", ""), { data: f, loading: R, error: T, pagination: c, sort: r, goToPage: L, setSearch: A, setSort: B } = Q(
|
|
43
|
+
() => "requests",
|
|
44
|
+
{
|
|
45
|
+
baseUrl: x,
|
|
46
|
+
dashboardEndpoint: C,
|
|
47
|
+
authToken: b,
|
|
48
|
+
refreshKey: S
|
|
49
|
+
}
|
|
50
|
+
), $ = h(""), g = h(null), k = h(!1), d = h(null), w = U(() => {
|
|
51
|
+
if (!f.value) return [];
|
|
52
|
+
const i = f.value;
|
|
53
|
+
return i.data || i.requests || f.value || [];
|
|
54
|
+
}), F = O(x, b);
|
|
55
|
+
async function N(i) {
|
|
56
|
+
const t = i.id;
|
|
57
|
+
k.value = !0;
|
|
58
|
+
try {
|
|
59
|
+
const e = C || "/__stats/api", q = await F().fetch(`${e}/requests/${t}`);
|
|
60
|
+
d.value = I(q), g.value = i;
|
|
61
|
+
} catch {
|
|
62
|
+
} finally {
|
|
63
|
+
k.value = !1;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function P() {
|
|
67
|
+
g.value = null, d.value = null;
|
|
68
|
+
}
|
|
69
|
+
function V(i) {
|
|
70
|
+
$.value = i, A(i);
|
|
71
|
+
}
|
|
72
|
+
function p(i) {
|
|
73
|
+
B(i);
|
|
74
|
+
}
|
|
75
|
+
function z(i) {
|
|
76
|
+
const t = J(i);
|
|
77
|
+
return t === "very-slow" ? "ss-dash-very-slow" : t === "slow" ? "ss-dash-slow" : "";
|
|
78
|
+
}
|
|
79
|
+
const { tableRef: E } = W(() => w.value);
|
|
80
|
+
return (i, t) => (o(), l("div", null, [
|
|
81
|
+
d.value && g.value ? (o(), l(m, { key: 0 }, [
|
|
82
|
+
s("div", ss, [
|
|
83
|
+
s("button", {
|
|
84
|
+
type: "button",
|
|
85
|
+
class: "ss-dash-btn",
|
|
86
|
+
onClick: P
|
|
87
|
+
}, " ← Back to Requests "),
|
|
88
|
+
s("span", {
|
|
89
|
+
class: v(`ss-dash-method ss-dash-method-${(d.value.method || "").toLowerCase()}`)
|
|
90
|
+
}, n(d.value.method), 3),
|
|
91
|
+
s("span", ts, n(d.value.url), 1),
|
|
92
|
+
s("span", {
|
|
93
|
+
class: v(`ss-dash-status ss-dash-status-${Math.floor((d.value.statusCode || 200) / 100)}xx`)
|
|
94
|
+
}, n(d.value.statusCode), 3),
|
|
95
|
+
s("span", es, n(d.value.totalDuration.toFixed(1)) + "ms · " + n(d.value.spanCount) + " spans ", 1)
|
|
96
|
+
]),
|
|
97
|
+
D(Z, {
|
|
98
|
+
spans: d.value.spans,
|
|
99
|
+
"total-duration": d.value.totalDuration,
|
|
100
|
+
warnings: d.value.warnings
|
|
101
|
+
}, null, 8, ["spans", "total-duration", "warnings"])
|
|
102
|
+
], 64)) : k.value ? (o(), l(m, { key: 1 }, [
|
|
103
|
+
s("div", as, [
|
|
104
|
+
s("button", {
|
|
105
|
+
type: "button",
|
|
106
|
+
class: "ss-dash-btn",
|
|
107
|
+
onClick: t[0] || (t[0] = (e) => k.value = !1)
|
|
108
|
+
}, " ← Back to Requests ")
|
|
109
|
+
]),
|
|
110
|
+
t[6] || (t[6] = s("div", { class: "ss-dash-empty" }, "Loading request detail...", -1))
|
|
111
|
+
], 64)) : (o(), l(m, { key: 2 }, [
|
|
112
|
+
D(X, {
|
|
113
|
+
"model-value": $.value,
|
|
114
|
+
placeholder: "Filter requests...",
|
|
115
|
+
summary: `${a(c).total ?? 0} requests`,
|
|
116
|
+
"onUpdate:modelValue": V
|
|
117
|
+
}, null, 8, ["model-value", "summary"]),
|
|
118
|
+
a(T) ? (o(), l("div", os, "Failed to load requests")) : u("", !0),
|
|
119
|
+
a(R) && !a(f) ? (o(), l("div", ls, "Loading requests...")) : (o(), l(m, { key: 2 }, [
|
|
120
|
+
s("div", ns, [
|
|
121
|
+
w.value.length > 0 ? (o(), l("table", {
|
|
122
|
+
key: 0,
|
|
123
|
+
ref_key: "tableRef",
|
|
124
|
+
ref: E,
|
|
125
|
+
class: "ss-dash-table"
|
|
126
|
+
}, [
|
|
127
|
+
t[15] || (t[15] = s("colgroup", null, [
|
|
128
|
+
s("col", { style: { width: "40px" } }),
|
|
129
|
+
s("col", { style: { width: "70px" } }),
|
|
130
|
+
s("col"),
|
|
131
|
+
s("col", { style: { width: "60px" } }),
|
|
132
|
+
s("col", { style: { width: "80px" } }),
|
|
133
|
+
s("col", { style: { width: "50px" } }),
|
|
134
|
+
s("col", { style: { width: "40px" } }),
|
|
135
|
+
s("col", { style: { width: "80px" } })
|
|
136
|
+
], -1)),
|
|
137
|
+
s("thead", null, [
|
|
138
|
+
s("tr", null, [
|
|
139
|
+
t[12] || (t[12] = s("th", null, "#", -1)),
|
|
140
|
+
s("th", {
|
|
141
|
+
class: "ss-dash-sortable",
|
|
142
|
+
onClick: t[1] || (t[1] = (e) => p("method"))
|
|
143
|
+
}, [
|
|
144
|
+
t[7] || (t[7] = y(" Method ", -1)),
|
|
145
|
+
a(r).column === "method" ? (o(), l("span", ds, n(a(r).direction === "asc" ? " ▲" : " ▼"), 1)) : u("", !0)
|
|
146
|
+
]),
|
|
147
|
+
s("th", {
|
|
148
|
+
class: "ss-dash-sortable",
|
|
149
|
+
onClick: t[2] || (t[2] = (e) => p("url"))
|
|
150
|
+
}, [
|
|
151
|
+
t[8] || (t[8] = y(" URL ", -1)),
|
|
152
|
+
a(r).column === "url" ? (o(), l("span", is, n(a(r).direction === "asc" ? " ▲" : " ▼"), 1)) : u("", !0)
|
|
153
|
+
]),
|
|
154
|
+
s("th", {
|
|
155
|
+
class: "ss-dash-sortable",
|
|
156
|
+
onClick: t[3] || (t[3] = (e) => p("statusCode"))
|
|
157
|
+
}, [
|
|
158
|
+
t[9] || (t[9] = y(" Status ", -1)),
|
|
159
|
+
a(r).column === "statusCode" ? (o(), l("span", rs, n(a(r).direction === "asc" ? " ▲" : " ▼"), 1)) : u("", !0)
|
|
160
|
+
]),
|
|
161
|
+
s("th", {
|
|
162
|
+
class: "ss-dash-sortable",
|
|
163
|
+
onClick: t[4] || (t[4] = (e) => p("duration"))
|
|
164
|
+
}, [
|
|
165
|
+
t[10] || (t[10] = y(" Duration ", -1)),
|
|
166
|
+
a(r).column === "duration" ? (o(), l("span", us, n(a(r).direction === "asc" ? " ▲" : " ▼"), 1)) : u("", !0)
|
|
167
|
+
]),
|
|
168
|
+
t[13] || (t[13] = s("th", null, "Spans", -1)),
|
|
169
|
+
t[14] || (t[14] = s("th", null, "⚠", -1)),
|
|
170
|
+
s("th", {
|
|
171
|
+
class: "ss-dash-sortable",
|
|
172
|
+
onClick: t[5] || (t[5] = (e) => p("createdAt"))
|
|
173
|
+
}, [
|
|
174
|
+
t[11] || (t[11] = y(" Time ", -1)),
|
|
175
|
+
a(r).column === "createdAt" ? (o(), l("span", cs, n(a(r).direction === "asc" ? " ▲" : " ▼"), 1)) : u("", !0)
|
|
176
|
+
])
|
|
177
|
+
])
|
|
178
|
+
]),
|
|
179
|
+
s("tbody", null, [
|
|
180
|
+
(o(!0), l(m, null, j(w.value, (e) => (o(), l("tr", {
|
|
181
|
+
key: e.id,
|
|
182
|
+
class: "ss-dash-clickable",
|
|
183
|
+
onClick: (q) => N(e)
|
|
184
|
+
}, [
|
|
185
|
+
s("td", null, [
|
|
186
|
+
s("span", hs, n(e.id), 1)
|
|
187
|
+
]),
|
|
188
|
+
s("td", null, [
|
|
189
|
+
s("span", {
|
|
190
|
+
class: v(`ss-dash-method ss-dash-method-${(e.method || "").toLowerCase()}`)
|
|
191
|
+
}, n(e.method), 3)
|
|
192
|
+
]),
|
|
193
|
+
s("td", null, [
|
|
194
|
+
s("span", {
|
|
195
|
+
style: { color: "var(--ss-text)", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" },
|
|
196
|
+
title: e.url
|
|
197
|
+
}, n(e.url), 9, ms)
|
|
198
|
+
]),
|
|
199
|
+
s("td", null, [
|
|
200
|
+
s("span", {
|
|
201
|
+
class: v(`ss-dash-status ss-dash-status-${Math.floor((e.status_code || e.statusCode || 200) / 100)}xx`)
|
|
202
|
+
}, n(e.status_code || e.statusCode), 3)
|
|
203
|
+
]),
|
|
204
|
+
s("td", null, [
|
|
205
|
+
s("span", {
|
|
206
|
+
class: v(`ss-dash-duration ${z(e.total_duration || e.totalDuration || e.duration || 0)}`)
|
|
207
|
+
}, n((e.total_duration || e.totalDuration || e.duration || 0).toFixed(1)) + "ms ", 3)
|
|
208
|
+
]),
|
|
209
|
+
s("td", null, [
|
|
210
|
+
s("span", vs, n(e.span_count || e.spanCount || 0), 1)
|
|
211
|
+
]),
|
|
212
|
+
s("td", null, [
|
|
213
|
+
(e.warning_count || e.warningCount || 0) > 0 ? (o(), l("span", ys, n(e.warning_count || e.warningCount || 0), 1)) : (o(), l("span", fs, "-"))
|
|
214
|
+
]),
|
|
215
|
+
s("td", null, [
|
|
216
|
+
s("span", {
|
|
217
|
+
class: "ss-dash-event-time",
|
|
218
|
+
title: a(G)(
|
|
219
|
+
e.createdAt || e.created_at || e.timestamp || ""
|
|
220
|
+
)
|
|
221
|
+
}, n(a(H)(
|
|
222
|
+
e.createdAt || e.created_at || e.timestamp || ""
|
|
223
|
+
)), 9, ks)
|
|
224
|
+
])
|
|
225
|
+
], 8, ps))), 128))
|
|
226
|
+
])
|
|
227
|
+
], 512)) : (o(), l("div", _s, "No requests recorded yet"))
|
|
228
|
+
]),
|
|
229
|
+
a(c).totalPages > 1 ? (o(), K(Y, {
|
|
230
|
+
key: 0,
|
|
231
|
+
page: a(c).page,
|
|
232
|
+
"last-page": a(c).totalPages,
|
|
233
|
+
total: a(c).total,
|
|
234
|
+
onPageChange: a(L)
|
|
235
|
+
}, null, 8, ["page", "last-page", "total", "onPageChange"])) : u("", !0)
|
|
236
|
+
], 64))
|
|
237
|
+
], 64))
|
|
238
|
+
]));
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
export {
|
|
242
|
+
Rs as default
|
|
243
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
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-qCQpBftQ.js";
|
|
3
|
+
import { u as C } from "./useResizableTable-BoivAevK.js";
|
|
4
|
+
import { _ as D } from "./FilterBar.vue_vue_type_script_setup_true_lang-ClJ37hhT.js";
|
|
5
|
+
const E = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "ss-dash-empty"
|
|
8
|
+
}, F = {
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "ss-dash-empty"
|
|
11
|
+
}, L = {
|
|
12
|
+
key: 2,
|
|
13
|
+
class: "ss-dash-table-wrap"
|
|
14
|
+
}, V = ["title"], $ = ["title"], B = ["title"], M = ["title"], T = {
|
|
15
|
+
key: 1,
|
|
16
|
+
class: "ss-dash-empty"
|
|
17
|
+
}, G = /* @__PURE__ */ g({
|
|
18
|
+
__name: "RoutesSection",
|
|
19
|
+
setup(U) {
|
|
20
|
+
const p = d("ss-refresh-key", c(0)), m = d("ss-dashboard-endpoint", "/__stats/api"), f = d("ss-auth-token", void 0), v = d("ss-base-url", ""), { data: i, loading: y, error: w, setSearch: _ } = z(() => "routes", {
|
|
21
|
+
baseUrl: v,
|
|
22
|
+
dashboardEndpoint: m,
|
|
23
|
+
authToken: f,
|
|
24
|
+
refreshKey: p
|
|
25
|
+
}), h = c(""), r = A(() => {
|
|
26
|
+
if (!i.value) return [];
|
|
27
|
+
const s = i.value;
|
|
28
|
+
return Array.isArray(s) ? s : Array.isArray(s.routes) ? s.routes : Array.isArray(s.data) ? s.data : [];
|
|
29
|
+
});
|
|
30
|
+
function b(s) {
|
|
31
|
+
h.value = s, _(s);
|
|
32
|
+
}
|
|
33
|
+
const { tableRef: k } = C(() => r.value);
|
|
34
|
+
return (s, n) => (l(), o("div", null, [
|
|
35
|
+
N(D, {
|
|
36
|
+
"model-value": h.value,
|
|
37
|
+
placeholder: "Filter routes...",
|
|
38
|
+
summary: `${r.value.length} routes`,
|
|
39
|
+
"onUpdate:modelValue": b
|
|
40
|
+
}, null, 8, ["model-value", "summary"]),
|
|
41
|
+
u(w) ? (l(), o("div", E, "Failed to load routes")) : u(y) && !u(i) ? (l(), o("div", F, "Loading routes...")) : (l(), o("div", L, [
|
|
42
|
+
r.value.length > 0 ? (l(), o("table", {
|
|
43
|
+
key: 0,
|
|
44
|
+
ref_key: "tableRef",
|
|
45
|
+
ref: k,
|
|
46
|
+
class: "ss-dash-table"
|
|
47
|
+
}, [
|
|
48
|
+
n[0] || (n[0] = e("colgroup", null, [
|
|
49
|
+
e("col", { style: { width: "70px" } }),
|
|
50
|
+
e("col"),
|
|
51
|
+
e("col", { style: { width: "120px" } }),
|
|
52
|
+
e("col"),
|
|
53
|
+
e("col")
|
|
54
|
+
], -1)),
|
|
55
|
+
n[1] || (n[1] = e("thead", null, [
|
|
56
|
+
e("tr", null, [
|
|
57
|
+
e("th", null, "Method"),
|
|
58
|
+
e("th", null, "Pattern"),
|
|
59
|
+
e("th", null, "Name"),
|
|
60
|
+
e("th", null, "Handler"),
|
|
61
|
+
e("th", null, "Middleware")
|
|
62
|
+
])
|
|
63
|
+
], -1)),
|
|
64
|
+
e("tbody", null, [
|
|
65
|
+
(l(!0), o(R, null, S(r.value, (t, x) => (l(), o("tr", {
|
|
66
|
+
key: t.pattern || x
|
|
67
|
+
}, [
|
|
68
|
+
e("td", null, [
|
|
69
|
+
e("span", {
|
|
70
|
+
class: j(`ss-dash-method ss-dash-method-${(t.method || "").toLowerCase()}`)
|
|
71
|
+
}, a(t.method), 3)
|
|
72
|
+
]),
|
|
73
|
+
e("td", null, [
|
|
74
|
+
e("span", {
|
|
75
|
+
style: { color: "var(--ss-text)", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" },
|
|
76
|
+
title: t.pattern
|
|
77
|
+
}, a(t.pattern), 9, V)
|
|
78
|
+
]),
|
|
79
|
+
e("td", null, [
|
|
80
|
+
e("span", {
|
|
81
|
+
style: { color: "var(--ss-muted)", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" },
|
|
82
|
+
title: t.name || "-"
|
|
83
|
+
}, a(t.name || "-"), 9, $)
|
|
84
|
+
]),
|
|
85
|
+
e("td", null, [
|
|
86
|
+
e("span", {
|
|
87
|
+
style: { color: "var(--ss-sql-color)", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" },
|
|
88
|
+
title: t.handler
|
|
89
|
+
}, a(t.handler), 9, B)
|
|
90
|
+
]),
|
|
91
|
+
e("td", null, [
|
|
92
|
+
e("span", {
|
|
93
|
+
style: { color: "var(--ss-dim)", "font-size": "10px", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" },
|
|
94
|
+
title: t.middleware?.length ? t.middleware.join(", ") : "-"
|
|
95
|
+
}, a(t.middleware?.length ? t.middleware.join(", ") : "-"), 9, M)
|
|
96
|
+
])
|
|
97
|
+
]))), 128))
|
|
98
|
+
])
|
|
99
|
+
], 512)) : (l(), o("div", T, "No routes available"))
|
|
100
|
+
]))
|
|
101
|
+
]));
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
export {
|
|
105
|
+
G as default
|
|
106
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { defineComponent as f, ref as _, computed as i, openBlock as a, createElementBlock as o, createElementVNode as e, withDirectives as y, vModelText as v, toDisplayString as n, Fragment as w, renderList as C, normalizeClass as m } from "vue";
|
|
2
|
+
import { u as L } from "./useResizableTable-BoivAevK.js";
|
|
3
|
+
const k = { class: "ss-dbg-search-bar" }, x = { class: "ss-dbg-summary" }, R = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "ss-dbg-empty"
|
|
6
|
+
}, A = { class: "ss-dbg-c-text" }, U = { class: "ss-dbg-c-muted" }, z = { class: "ss-dbg-c-sql" }, M = {
|
|
7
|
+
class: "ss-dbg-c-dim",
|
|
8
|
+
style: { "font-size": "10px" }
|
|
9
|
+
}, B = /* @__PURE__ */ f({
|
|
10
|
+
__name: "RoutesTab",
|
|
11
|
+
props: {
|
|
12
|
+
data: {},
|
|
13
|
+
currentUrl: {}
|
|
14
|
+
},
|
|
15
|
+
setup(h) {
|
|
16
|
+
const d = h, u = _(""), c = i(() => {
|
|
17
|
+
const s = d.data, r = s ? (Array.isArray(s) ? s : s.routes) || [] : [];
|
|
18
|
+
if (!u.value.trim()) return r;
|
|
19
|
+
const t = u.value.toLowerCase();
|
|
20
|
+
return r.filter(
|
|
21
|
+
(l) => l.pattern.toLowerCase().includes(t) || l.handler.toLowerCase().includes(t) || l.method.toLowerCase().includes(t) || l.name && l.name.toLowerCase().includes(t)
|
|
22
|
+
);
|
|
23
|
+
}), p = i(() => {
|
|
24
|
+
const s = d.data;
|
|
25
|
+
return `${(s ? (Array.isArray(s) ? s : s.routes) || [] : []).length} routes`;
|
|
26
|
+
});
|
|
27
|
+
function b(s) {
|
|
28
|
+
return d.currentUrl ? d.currentUrl.includes(s.pattern.replace(/:[^/]+/g, "")) : !1;
|
|
29
|
+
}
|
|
30
|
+
const { tableRef: g } = L(() => c.value);
|
|
31
|
+
return (s, r) => (a(), o("div", null, [
|
|
32
|
+
e("div", k, [
|
|
33
|
+
y(e("input", {
|
|
34
|
+
"onUpdate:modelValue": r[0] || (r[0] = (t) => u.value = t),
|
|
35
|
+
class: "ss-dbg-search",
|
|
36
|
+
placeholder: "Filter routes...",
|
|
37
|
+
type: "text"
|
|
38
|
+
}, null, 512), [
|
|
39
|
+
[v, u.value]
|
|
40
|
+
]),
|
|
41
|
+
e("span", x, n(p.value), 1)
|
|
42
|
+
]),
|
|
43
|
+
c.value.length === 0 ? (a(), o("div", R, "No routes found")) : (a(), o("table", {
|
|
44
|
+
key: 1,
|
|
45
|
+
ref_key: "tableRef",
|
|
46
|
+
ref: g,
|
|
47
|
+
class: "ss-dbg-table"
|
|
48
|
+
}, [
|
|
49
|
+
r[1] || (r[1] = e("thead", null, [
|
|
50
|
+
e("tr", null, [
|
|
51
|
+
e("th", null, "Method"),
|
|
52
|
+
e("th", null, "Pattern"),
|
|
53
|
+
e("th", null, "Name"),
|
|
54
|
+
e("th", null, "Handler"),
|
|
55
|
+
e("th", null, "Middleware")
|
|
56
|
+
])
|
|
57
|
+
], -1)),
|
|
58
|
+
e("tbody", null, [
|
|
59
|
+
(a(!0), o(w, null, C(c.value, (t, l) => (a(), o("tr", {
|
|
60
|
+
key: l,
|
|
61
|
+
class: m({ "ss-dbg-current-route": b(t) })
|
|
62
|
+
}, [
|
|
63
|
+
e("td", null, [
|
|
64
|
+
e("span", {
|
|
65
|
+
class: m(`ss-dbg-method ss-dbg-method-${t.method.toLowerCase()}`)
|
|
66
|
+
}, n(t.method), 3)
|
|
67
|
+
]),
|
|
68
|
+
e("td", A, n(t.pattern), 1),
|
|
69
|
+
e("td", U, n(t.name || "-"), 1),
|
|
70
|
+
e("td", z, n(t.handler), 1),
|
|
71
|
+
e("td", M, n(t.middleware.length > 0 ? t.middleware.join(", ") : "-"), 1)
|
|
72
|
+
], 2))), 128))
|
|
73
|
+
])
|
|
74
|
+
], 512))
|
|
75
|
+
]));
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
export {
|
|
79
|
+
B as default
|
|
80
|
+
};
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { defineComponent as M, inject as v, ref as i, computed as U, openBlock as l, createElementBlock as o, Fragment as c, createElementVNode as s, normalizeClass as h, toDisplayString as n, unref as a, createVNode as C, createCommentVNode as x, renderList as z, createBlock as j } from "vue";
|
|
2
|
+
import { parseTraceSpans as $, parseTraceWarnings as I, formatTime as K, timeAgo as W, durationSeverity as q } from "adonisjs-server-stats/core";
|
|
3
|
+
import { u as G } from "./useApiClient-BQQ9CF-q.js";
|
|
4
|
+
import { u as H } from "./index-qCQpBftQ.js";
|
|
5
|
+
import { u as J } from "./useResizableTable-BoivAevK.js";
|
|
6
|
+
import { _ as O } from "./FilterBar.vue_vue_type_script_setup_true_lang-ClJ37hhT.js";
|
|
7
|
+
import { _ as Q } from "./PaginationControls.vue_vue_type_script_setup_true_lang-CuN7g_8Z.js";
|
|
8
|
+
import { _ as X } from "./WaterfallChart.vue_vue_type_script_setup_true_lang-tZ13cNj1.js";
|
|
9
|
+
const Y = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "ss-dash-empty"
|
|
12
|
+
}, Z = { class: "ss-dash-tl-detail-header" }, ss = { style: { color: "var(--ss-text)" } }, ts = { class: "ss-dash-tl-meta" }, es = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "ss-dash-empty"
|
|
15
|
+
}, as = {
|
|
16
|
+
key: 1,
|
|
17
|
+
class: "ss-dash-empty"
|
|
18
|
+
}, ls = { class: "ss-dash-table-wrap" }, os = ["onClick"], ns = { style: { color: "var(--ss-dim)" } }, rs = ["title"], ds = { style: { color: "var(--ss-muted)", "text-align": "center" } }, us = ["title"], is = {
|
|
19
|
+
key: 1,
|
|
20
|
+
class: "ss-dash-empty"
|
|
21
|
+
}, ks = /* @__PURE__ */ M({
|
|
22
|
+
__name: "TimelineSection",
|
|
23
|
+
props: {
|
|
24
|
+
tracingEnabled: { type: Boolean, default: !0 }
|
|
25
|
+
},
|
|
26
|
+
setup(D) {
|
|
27
|
+
const T = D, S = v("ss-refresh-key", i(0)), f = v("ss-dashboard-endpoint", "/__stats/api"), g = v("ss-auth-token", void 0), k = v("ss-base-url", ""), { data: p, loading: B, error: L, pagination: u, goToPage: E, setSearch: F } = H(() => "traces", {
|
|
28
|
+
baseUrl: k,
|
|
29
|
+
dashboardEndpoint: f,
|
|
30
|
+
authToken: g,
|
|
31
|
+
refreshKey: S
|
|
32
|
+
}), b = i(""), m = i(null), e = i(null), _ = i(!1), y = U(() => {
|
|
33
|
+
if (!p.value) return [];
|
|
34
|
+
const r = p.value;
|
|
35
|
+
return r.data || r.traces || p.value || [];
|
|
36
|
+
}), P = G(k, g);
|
|
37
|
+
async function A(r) {
|
|
38
|
+
m.value = r, _.value = !0, e.value = null;
|
|
39
|
+
try {
|
|
40
|
+
const d = f || "/__stats/api", t = await P().fetch(`${d}/traces/${r}`);
|
|
41
|
+
e.value = t;
|
|
42
|
+
} catch {
|
|
43
|
+
} finally {
|
|
44
|
+
_.value = !1;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function w() {
|
|
48
|
+
m.value = null, e.value = null;
|
|
49
|
+
}
|
|
50
|
+
function N(r) {
|
|
51
|
+
b.value = r, F(r);
|
|
52
|
+
}
|
|
53
|
+
function R(r) {
|
|
54
|
+
const d = q(r);
|
|
55
|
+
return d === "very-slow" ? "ss-dash-very-slow" : d === "slow" ? "ss-dash-slow" : "";
|
|
56
|
+
}
|
|
57
|
+
const { tableRef: V } = J(() => y.value);
|
|
58
|
+
return (r, d) => (l(), o("div", null, [
|
|
59
|
+
T.tracingEnabled ? m.value && e.value ? (l(), o(c, { key: 1 }, [
|
|
60
|
+
s("div", Z, [
|
|
61
|
+
s("button", {
|
|
62
|
+
type: "button",
|
|
63
|
+
class: "ss-dash-btn",
|
|
64
|
+
onClick: w
|
|
65
|
+
}, "← Back"),
|
|
66
|
+
s("span", {
|
|
67
|
+
class: h(`ss-dash-method ss-dash-method-${(e.value.method || "").toLowerCase()}`)
|
|
68
|
+
}, n(e.value.method), 3),
|
|
69
|
+
s("span", ss, n(e.value.url), 1),
|
|
70
|
+
s("span", {
|
|
71
|
+
class: h(`ss-dash-status ss-dash-status-${Math.floor((e.value.status_code || e.value.statusCode || 0) / 100)}xx`)
|
|
72
|
+
}, n(e.value.status_code || e.value.statusCode || 0), 3),
|
|
73
|
+
s("span", ts, n((e.value.total_duration || e.value.totalDuration || 0).toFixed(1)) + "ms · " + n(e.value.spanCount ?? a($)(e.value.spans).length) + " spans ", 1)
|
|
74
|
+
]),
|
|
75
|
+
C(X, {
|
|
76
|
+
spans: a($)(e.value.spans),
|
|
77
|
+
"total-duration": e.value.total_duration || e.value.totalDuration || 0,
|
|
78
|
+
warnings: a(I)(e.value.warnings)
|
|
79
|
+
}, null, 8, ["spans", "total-duration", "warnings"])
|
|
80
|
+
], 64)) : m.value && _.value ? (l(), o(c, { key: 2 }, [
|
|
81
|
+
s("div", { class: "ss-dash-tl-detail-header" }, [
|
|
82
|
+
s("button", {
|
|
83
|
+
type: "button",
|
|
84
|
+
class: "ss-dash-btn",
|
|
85
|
+
onClick: w
|
|
86
|
+
}, "← Back")
|
|
87
|
+
]),
|
|
88
|
+
d[0] || (d[0] = s("div", { class: "ss-dash-empty" }, "Loading trace detail...", -1))
|
|
89
|
+
], 64)) : (l(), o(c, { key: 3 }, [
|
|
90
|
+
C(O, {
|
|
91
|
+
"model-value": b.value,
|
|
92
|
+
placeholder: "Filter traces...",
|
|
93
|
+
summary: `${a(u).total ?? 0} traces`,
|
|
94
|
+
"onUpdate:modelValue": N
|
|
95
|
+
}, null, 8, ["model-value", "summary"]),
|
|
96
|
+
a(L) ? (l(), o("div", es, "Failed to load traces")) : x("", !0),
|
|
97
|
+
a(B) && !a(p) ? (l(), o("div", as, "Loading traces...")) : (l(), o(c, { key: 2 }, [
|
|
98
|
+
s("div", ls, [
|
|
99
|
+
y.value.length > 0 ? (l(), o("table", {
|
|
100
|
+
key: 0,
|
|
101
|
+
ref_key: "tableRef",
|
|
102
|
+
ref: V,
|
|
103
|
+
class: "ss-dash-table"
|
|
104
|
+
}, [
|
|
105
|
+
d[1] || (d[1] = s("colgroup", null, [
|
|
106
|
+
s("col", { style: { width: "40px" } }),
|
|
107
|
+
s("col", { style: { width: "70px" } }),
|
|
108
|
+
s("col"),
|
|
109
|
+
s("col", { style: { width: "60px" } }),
|
|
110
|
+
s("col", { style: { width: "80px" } }),
|
|
111
|
+
s("col", { style: { width: "50px" } }),
|
|
112
|
+
s("col", { style: { width: "80px" } })
|
|
113
|
+
], -1)),
|
|
114
|
+
d[2] || (d[2] = s("thead", null, [
|
|
115
|
+
s("tr", null, [
|
|
116
|
+
s("th", null, "#"),
|
|
117
|
+
s("th", null, "Method"),
|
|
118
|
+
s("th", null, "URL"),
|
|
119
|
+
s("th", null, "Status"),
|
|
120
|
+
s("th", null, "Duration"),
|
|
121
|
+
s("th", null, "Spans"),
|
|
122
|
+
s("th", null, "Time")
|
|
123
|
+
])
|
|
124
|
+
], -1)),
|
|
125
|
+
s("tbody", null, [
|
|
126
|
+
(l(!0), o(c, null, z(y.value, (t) => (l(), o("tr", {
|
|
127
|
+
key: t.id,
|
|
128
|
+
class: "ss-dash-clickable",
|
|
129
|
+
onClick: (cs) => A(t.id)
|
|
130
|
+
}, [
|
|
131
|
+
s("td", null, [
|
|
132
|
+
s("span", ns, n(t.id), 1)
|
|
133
|
+
]),
|
|
134
|
+
s("td", null, [
|
|
135
|
+
s("span", {
|
|
136
|
+
class: h(`ss-dash-method ss-dash-method-${(t.method || "").toLowerCase()}`)
|
|
137
|
+
}, n(t.method), 3)
|
|
138
|
+
]),
|
|
139
|
+
s("td", null, [
|
|
140
|
+
s("span", {
|
|
141
|
+
style: { color: "var(--ss-text)", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" },
|
|
142
|
+
title: t.url
|
|
143
|
+
}, n(t.url), 9, rs)
|
|
144
|
+
]),
|
|
145
|
+
s("td", null, [
|
|
146
|
+
s("span", {
|
|
147
|
+
class: h(`ss-dash-status ss-dash-status-${Math.floor((t.statusCode || t.status_code || 0) / 100)}xx`)
|
|
148
|
+
}, n(t.statusCode || t.status_code || 0), 3)
|
|
149
|
+
]),
|
|
150
|
+
s("td", null, [
|
|
151
|
+
s("span", {
|
|
152
|
+
class: h(`ss-dash-duration ${R(t.totalDuration || t.total_duration || 0)}`)
|
|
153
|
+
}, n((t.totalDuration || t.total_duration || 0).toFixed(1)) + "ms ", 3)
|
|
154
|
+
]),
|
|
155
|
+
s("td", null, [
|
|
156
|
+
s("span", ds, n(t.spanCount || t.span_count || 0), 1)
|
|
157
|
+
]),
|
|
158
|
+
s("td", null, [
|
|
159
|
+
s("span", {
|
|
160
|
+
class: "ss-dash-event-time",
|
|
161
|
+
title: a(K)(
|
|
162
|
+
t.createdAt || t.created_at || t.timestamp
|
|
163
|
+
)
|
|
164
|
+
}, n(a(W)(
|
|
165
|
+
t.createdAt || t.created_at || t.timestamp
|
|
166
|
+
)), 9, us)
|
|
167
|
+
])
|
|
168
|
+
], 8, os))), 128))
|
|
169
|
+
])
|
|
170
|
+
], 512)) : (l(), o("div", is, "No traces recorded"))
|
|
171
|
+
]),
|
|
172
|
+
a(u).totalPages > 1 ? (l(), j(Q, {
|
|
173
|
+
key: 0,
|
|
174
|
+
page: a(u).page,
|
|
175
|
+
"last-page": a(u).totalPages,
|
|
176
|
+
total: a(u).total,
|
|
177
|
+
onPageChange: a(E)
|
|
178
|
+
}, null, 8, ["page", "last-page", "total", "onPageChange"])) : x("", !0)
|
|
179
|
+
], 64))
|
|
180
|
+
], 64)) : (l(), o("div", Y, " Tracing is not enabled. Enable tracing in your server-stats config to use the timeline. "))
|
|
181
|
+
]));
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
export {
|
|
185
|
+
ks as default
|
|
186
|
+
};
|