@antelopejs/dms-api 0.1.7 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +99 -8
- package/dist/automation/get-api-health.js +4 -3
- package/dist/automation/get-api-health.js.map +1 -1
- package/dist/automation/route-unhealthy.js +2 -2
- package/dist/automation/route-unhealthy.js.map +1 -1
- package/dist/automation/scope.d.ts +0 -1
- package/dist/automation/scope.js +0 -7
- package/dist/automation/scope.js.map +1 -1
- package/dist/config.d.ts +4 -0
- package/dist/config.js +15 -9
- package/dist/config.js.map +1 -1
- package/dist/db/models/request_log.model.d.ts +37 -2
- package/dist/db/models/request_log.model.js +130 -35
- package/dist/db/models/request_log.model.js.map +1 -1
- package/dist/db/models/request_log.search.d.ts +5 -0
- package/dist/db/models/request_log.search.js +35 -0
- package/dist/db/models/request_log.search.js.map +1 -0
- package/dist/db/models/request_log.status.d.ts +5 -0
- package/dist/db/models/request_log.status.js +9 -0
- package/dist/db/models/request_log.status.js.map +1 -0
- package/dist/db/models/routes.model.d.ts +1 -0
- package/dist/db/models/routes.model.js +5 -1
- package/dist/db/models/routes.model.js.map +1 -1
- package/dist/db/models/routes_statistics.model.js +1 -1
- package/dist/db/models/routes_statistics.model.js.map +1 -1
- package/dist/db/tables/api_settings.table.d.ts +1 -0
- package/dist/db/tables/api_settings.table.js +4 -0
- package/dist/db/tables/api_settings.table.js.map +1 -1
- package/dist/db/tables/request_log.table.d.ts +18 -3
- package/dist/db/tables/request_log.table.js +34 -1
- package/dist/db/tables/request_log.table.js.map +1 -1
- package/dist/db/tables/routes.table.d.ts +1 -2
- package/dist/db/tables/routes.table.js.map +1 -1
- package/dist/db/tables/routes_statistics.table.d.ts +4 -3
- package/dist/db/tables/routes_statistics.table.js +5 -1
- package/dist/db/tables/routes_statistics.table.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/memo.d.ts +5 -0
- package/dist/memo.js +36 -0
- package/dist/memo.js.map +1 -0
- package/dist/pages/blocks.d.ts +3 -0
- package/dist/pages/blocks.js +31 -0
- package/dist/pages/blocks.js.map +1 -0
- package/dist/pages/displays.d.ts +7 -0
- package/dist/pages/displays.js +23 -0
- package/dist/pages/displays.js.map +1 -0
- package/dist/pages/index.d.ts +5 -2
- package/dist/pages/index.js +5 -2
- package/dist/pages/index.js.map +1 -1
- package/dist/pages/logs.d.ts +18 -0
- package/dist/pages/logs.js +112 -0
- package/dist/pages/logs.js.map +1 -0
- package/dist/pages/module.d.ts +3 -0
- package/dist/pages/module.js +102 -6
- package/dist/pages/module.js.map +1 -1
- package/dist/pages/overview.d.ts +14 -0
- package/dist/pages/overview.js +215 -0
- package/dist/pages/overview.js.map +1 -0
- package/dist/pages/period.d.ts +9 -0
- package/dist/pages/period.js +24 -0
- package/dist/pages/period.js.map +1 -0
- package/dist/pages/request-table.d.ts +11 -0
- package/dist/pages/request-table.js +187 -0
- package/dist/pages/request-table.js.map +1 -0
- package/dist/pages/routes.d.ts +15 -0
- package/dist/pages/routes.js +269 -0
- package/dist/pages/routes.js.map +1 -0
- package/dist/pages/scope-chip.d.ts +9 -0
- package/dist/pages/scope-chip.js +28 -0
- package/dist/pages/scope-chip.js.map +1 -0
- package/dist/pages/{logs/page.d.ts → settings.d.ts} +3 -3
- package/dist/pages/settings.js +218 -0
- package/dist/pages/settings.js.map +1 -0
- package/dist/pages/toolbar.d.ts +9 -0
- package/dist/pages/toolbar.js +33 -0
- package/dist/pages/toolbar.js.map +1 -0
- package/dist/realtime.d.ts +2 -0
- package/dist/realtime.js +21 -0
- package/dist/realtime.js.map +1 -0
- package/dist/routes/index.d.ts +2 -2
- package/dist/routes/index.js +2 -2
- package/dist/routes/index.js.map +1 -1
- package/dist/routes/logs.d.ts +173 -2
- package/dist/routes/logs.js +177 -86
- package/dist/routes/logs.js.map +1 -1
- package/dist/routes/overview.d.ts +27 -0
- package/dist/routes/overview.js +131 -0
- package/dist/routes/overview.js.map +1 -0
- package/dist/routes/routes.d.ts +92 -28
- package/dist/routes/routes.js +165 -97
- package/dist/routes/routes.js.map +1 -1
- package/dist/routes/settings.d.ts +16 -11
- package/dist/routes/settings.js +62 -54
- package/dist/routes/settings.js.map +1 -1
- package/dist/routes/tester.d.ts +7 -0
- package/dist/routes/tester.js +34 -0
- package/dist/routes/tester.js.map +1 -0
- package/dist/services/activity.d.ts +49 -0
- package/dist/services/activity.js +207 -0
- package/dist/services/activity.js.map +1 -0
- package/dist/services/aggregate-cache.d.ts +3 -0
- package/dist/services/aggregate-cache.js +16 -0
- package/dist/services/aggregate-cache.js.map +1 -0
- package/dist/services/api-origin.d.ts +1 -0
- package/dist/services/api-origin.js +9 -0
- package/dist/services/api-origin.js.map +1 -0
- package/dist/services/attention.d.ts +45 -0
- package/dist/services/attention.js +203 -0
- package/dist/services/attention.js.map +1 -0
- package/dist/services/composed-text.d.ts +6 -0
- package/dist/services/composed-text.js +23 -0
- package/dist/services/composed-text.js.map +1 -0
- package/dist/services/health-rules.d.ts +49 -0
- package/dist/services/health-rules.js +233 -0
- package/dist/services/health-rules.js.map +1 -0
- package/dist/services/index.d.ts +1 -3
- package/dist/services/index.js +3 -3
- package/dist/services/index.js.map +1 -1
- package/dist/services/introspection/decorators.d.ts +14 -0
- package/dist/services/introspection/decorators.js +192 -0
- package/dist/services/introspection/decorators.js.map +1 -0
- package/dist/services/introspection/errors.js +4 -4
- package/dist/services/introspection/errors.js.map +1 -1
- package/dist/services/introspection/index.d.ts +6 -8
- package/dist/services/introspection/index.js +96 -32
- package/dist/services/introspection/index.js.map +1 -1
- package/dist/services/introspection/probe.d.ts +2 -1
- package/dist/services/introspection/probe.js +11 -0
- package/dist/services/introspection/probe.js.map +1 -1
- package/dist/services/links.d.ts +25 -0
- package/dist/services/links.js +72 -0
- package/dist/services/links.js.map +1 -0
- package/dist/services/live-feed.d.ts +6 -0
- package/dist/services/live-feed.js +18 -0
- package/dist/services/live-feed.js.map +1 -0
- package/dist/services/live.d.ts +16 -0
- package/dist/services/live.js +32 -0
- package/dist/services/live.js.map +1 -0
- package/dist/services/overview.d.ts +122 -0
- package/dist/services/overview.js +324 -0
- package/dist/services/overview.js.map +1 -0
- package/dist/services/period.d.ts +0 -9
- package/dist/services/period.js +5 -52
- package/dist/services/period.js.map +1 -1
- package/dist/services/request-log/access.d.ts +5 -0
- package/dist/services/request-log/access.js +21 -0
- package/dist/services/request-log/access.js.map +1 -0
- package/dist/services/request-log/capture.d.ts +30 -0
- package/dist/services/request-log/capture.js +216 -39
- package/dist/services/request-log/capture.js.map +1 -1
- package/dist/services/request-log/list.d.ts +36 -0
- package/dist/services/request-log/list.js +201 -0
- package/dist/services/request-log/list.js.map +1 -0
- package/dist/services/request-log/read.d.ts +15 -2
- package/dist/services/request-log/read.js +47 -4
- package/dist/services/request-log/read.js.map +1 -1
- package/dist/services/request-log/redaction.d.ts +16 -3
- package/dist/services/request-log/redaction.js +149 -27
- package/dist/services/request-log/redaction.js.map +1 -1
- package/dist/services/request-log/util.d.ts +10 -3
- package/dist/services/request-log/util.js +39 -22
- package/dist/services/request-log/util.js.map +1 -1
- package/dist/services/route-catalog.d.ts +62 -0
- package/dist/services/route-catalog.js +163 -0
- package/dist/services/route-catalog.js.map +1 -0
- package/dist/services/route-contract.d.ts +66 -0
- package/dist/services/route-contract.js +266 -0
- package/dist/services/route-contract.js.map +1 -0
- package/dist/services/route-health.d.ts +35 -0
- package/dist/services/route-health.js +179 -0
- package/dist/services/route-health.js.map +1 -0
- package/dist/services/route-statistics.d.ts +68 -0
- package/dist/services/route-statistics.js +277 -0
- package/dist/services/route-statistics.js.map +1 -0
- package/dist/services/routes-sync.d.ts +7 -3
- package/dist/services/routes-sync.js +96 -20
- package/dist/services/routes-sync.js.map +1 -1
- package/dist/services/scope.d.ts +0 -1
- package/dist/services/scope.js +4 -17
- package/dist/services/scope.js.map +1 -1
- package/dist/services/settings-form.d.ts +131 -0
- package/dist/services/settings-form.js +210 -0
- package/dist/services/settings-form.js.map +1 -0
- package/dist/services/settings.d.ts +2 -0
- package/dist/services/settings.js +5 -0
- package/dist/services/settings.js.map +1 -1
- package/dist/services/statistics-aggregate.d.ts +6 -41
- package/dist/services/statistics-aggregate.js +55 -280
- package/dist/services/statistics-aggregate.js.map +1 -1
- package/dist/services/statistics-utils.d.ts +7 -12
- package/dist/services/statistics-utils.js +36 -51
- package/dist/services/statistics-utils.js.map +1 -1
- package/dist/services/statistics-write.js +64 -22
- package/dist/services/statistics-write.js.map +1 -1
- package/dist/services/tester-source.d.ts +11 -0
- package/dist/services/tester-source.js +48 -0
- package/dist/services/tester-source.js.map +1 -0
- package/dist/services/traffic-samples.d.ts +18 -0
- package/dist/services/traffic-samples.js +134 -0
- package/dist/services/traffic-samples.js.map +1 -0
- package/dist/services/traffic.d.ts +43 -0
- package/dist/services/traffic.js +270 -0
- package/dist/services/traffic.js.map +1 -0
- package/dist/services/window.d.ts +48 -0
- package/dist/services/window.js +179 -0
- package/dist/services/window.js.map +1 -0
- package/dist/types/constants.d.ts +11 -20
- package/dist/types/constants.js +15 -25
- package/dist/types/constants.js.map +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.js +0 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/statistics.d.ts +5 -3
- package/dist/types/statistics.js +5 -0
- package/dist/types/statistics.js.map +1 -1
- package/frontend-vue/app/components/blocks/BetaBadge.vue +20 -0
- package/frontend-vue/app/components/blocks/HealthHero.vue +708 -0
- package/frontend-vue/app/components/blocks/LiveTraffic.vue +356 -0
- package/frontend-vue/app/components/blocks/LogsEmptyState.vue +228 -0
- package/frontend-vue/app/components/blocks/LogsFilters.vue +279 -0
- package/frontend-vue/app/components/blocks/RequestDetail.vue +722 -0
- package/frontend-vue/app/components/blocks/RetentionInput.vue +227 -0
- package/frontend-vue/app/components/blocks/RouteDocumentation.vue +611 -0
- package/frontend-vue/app/components/blocks/RouteHeader.vue +320 -0
- package/frontend-vue/app/components/blocks/RouteTester.vue +1879 -0
- package/frontend-vue/app/components/blocks/RouteTree.vue +676 -0
- package/frontend-vue/app/components/blocks/ScopeChip.vue +89 -0
- package/frontend-vue/app/components/blocks/SettingNumberInput.vue +65 -0
- package/frontend-vue/app/components/blocks/SplitLayout.vue +41 -0
- package/frontend-vue/app/components/internal/ApiBody.vue +129 -0
- package/frontend-vue/app/components/internal/ApiJsonTree.vue +82 -0
- package/frontend-vue/app/components/internal/ApiKeyValues.vue +41 -0
- package/frontend-vue/app/components/internal/ApiMethodBadge.vue +19 -19
- package/frontend-vue/app/components/internal/ApiPath.vue +33 -0
- package/frontend-vue/app/components/internal/ApiStatusBadge.vue +20 -15
- package/frontend-vue/app/components/internal/ApiTesterBadge.vue +17 -0
- package/frontend-vue/app/composables/useApiOrigin.ts +19 -0
- package/frontend-vue/app/composables/useApiPeriod.ts +19 -0
- package/frontend-vue/app/composables/useApiResource.ts +92 -0
- package/frontend-vue/app/composables/useDateFormat.ts +23 -0
- package/frontend-vue/app/composables/useLiveMissedErrors.ts +33 -0
- package/frontend-vue/app/composables/useRouteDetail.ts +253 -0
- package/frontend-vue/app/composables/useRouteSelection.ts +43 -0
- package/frontend-vue/app/config/shortcuts-registry.ts +30 -0
- package/frontend-vue/app/plugins/displays.ts +92 -0
- package/frontend-vue/app/utils/format.ts +281 -0
- package/frontend-vue/app/utils/http.ts +127 -0
- package/frontend-vue/app/utils/logsQuery.ts +261 -0
- package/frontend-vue/app/utils/minuteHistogram.ts +116 -0
- package/frontend-vue/app/utils/requestDrawer.ts +257 -0
- package/frontend-vue/app/utils/routeExplorer.ts +206 -0
- package/frontend-vue/app/utils/search.ts +45 -0
- package/frontend-vue/app/utils/settingsForm.ts +119 -0
- package/frontend-vue/app/utils/snippets.ts +501 -0
- package/frontend-vue/app/utils/testerHistory.ts +354 -0
- package/frontend-vue/app/utils/testerRequest.ts +632 -11
- package/frontend-vue/dms.frontend.build.ts +7 -0
- package/frontend-vue/dms.frontend.ts +10 -3
- package/frontend-vue/i18n/locales/api-en-GB.json +866 -0
- package/frontend-vue/i18n/locales/api-fr-FR.json +866 -0
- package/frontend-vue/package.json +2 -6
- package/frontend-vue/pnpm-lock.yaml +97 -3375
- package/frontend-vue/tests/format.test.ts +180 -0
- package/frontend-vue/tests/http.test.ts +61 -0
- package/frontend-vue/tests/logsQuery.test.ts +255 -0
- package/frontend-vue/tests/minuteHistogram.test.ts +94 -0
- package/frontend-vue/tests/registration.test.ts +24 -7
- package/frontend-vue/tests/requestDrawer.test.ts +179 -0
- package/frontend-vue/tests/routeExplorer.test.ts +206 -0
- package/frontend-vue/tests/settingsForm.test.ts +155 -0
- package/frontend-vue/tests/snippets.test.ts +285 -0
- package/frontend-vue/tests/testerHistory.test.ts +295 -0
- package/frontend-vue/tests/testerRequest.test.ts +471 -76
- package/package.json +9 -9
- package/dist/middlewares/index.d.ts +0 -1
- package/dist/middlewares/index.js +0 -18
- package/dist/middlewares/index.js.map +0 -1
- package/dist/middlewares/request-log-capture.d.ts +0 -1
- package/dist/middlewares/request-log-capture.js +0 -6
- package/dist/middlewares/request-log-capture.js.map +0 -1
- package/dist/pages/all.d.ts +0 -4
- package/dist/pages/all.js +0 -21
- package/dist/pages/all.js.map +0 -1
- package/dist/pages/logs/page.js +0 -29
- package/dist/pages/logs/page.js.map +0 -1
- package/dist/pages/routes/page.d.ts +0 -9
- package/dist/pages/routes/page.js +0 -29
- package/dist/pages/routes/page.js.map +0 -1
- package/dist/pages/settings/form.d.ts +0 -3
- package/dist/pages/settings/form.js +0 -80
- package/dist/pages/settings/form.js.map +0 -1
- package/dist/pages/settings/page.d.ts +0 -9
- package/dist/pages/settings/page.js +0 -26
- package/dist/pages/settings/page.js.map +0 -1
- package/dist/pages/summary/page.d.ts +0 -9
- package/dist/pages/summary/page.js +0 -29
- package/dist/pages/summary/page.js.map +0 -1
- package/dist/routes/monitoring.d.ts +0 -17
- package/dist/routes/monitoring.js +0 -101
- package/dist/routes/monitoring.js.map +0 -1
- package/dist/routes/summary.d.ts +0 -32
- package/dist/routes/summary.js +0 -181
- package/dist/routes/summary.js.map +0 -1
- package/dist/services/request-log/index.d.ts +0 -3
- package/dist/services/request-log/index.js +0 -12
- package/dist/services/request-log/index.js.map +0 -1
- package/dist/services/statistics-read.d.ts +0 -4
- package/dist/services/statistics-read.js +0 -48
- package/dist/services/statistics-read.js.map +0 -1
- package/dist/services/tree.d.ts +0 -10
- package/dist/services/tree.js +0 -128
- package/dist/services/tree.js.map +0 -1
- package/dist/types/charts.d.ts +0 -9
- package/dist/types/charts.js +0 -3
- package/dist/types/charts.js.map +0 -1
- package/frontend-vue/app/components/ConfigurationView.vue +0 -187
- package/frontend-vue/app/components/DocumentationView.vue +0 -224
- package/frontend-vue/app/components/LogDetailDrawer.vue +0 -178
- package/frontend-vue/app/components/LogsView.vue +0 -347
- package/frontend-vue/app/components/RouteDetailTabs.vue +0 -179
- package/frontend-vue/app/components/RouteTree.vue +0 -196
- package/frontend-vue/app/components/RoutesView.vue +0 -79
- package/frontend-vue/app/components/StatsView.vue +0 -268
- package/frontend-vue/app/components/SummaryView.vue +0 -657
- package/frontend-vue/app/components/TesterPanel.vue +0 -499
- package/frontend-vue/app/components/internal/PeriodSelect.vue +0 -58
- package/frontend-vue/app/components/internal/RouteTreeNode.vue +0 -168
- package/frontend-vue/app/components/internal/StatusBreakdownBars.vue +0 -162
- package/frontend-vue/app/components/internal/StatusDonut.vue +0 -84
- package/frontend-vue/app/components/internal/UnitAreaChart.vue +0 -73
- package/frontend-vue/app/composables/useApiIntrospection.ts +0 -350
- package/frontend-vue/app/composables/useLogDetailDrawer.ts +0 -50
- package/frontend-vue/app/composables/useSelectedPeriod.ts +0 -107
- package/frontend-vue/app/composables/useStatsPeriods.ts +0 -139
- package/frontend-vue/app/custom-layouts/.gitkeep +0 -0
- package/frontend-vue/app/custom-pages/.gitkeep +0 -0
- package/frontend-vue/app/utils/httpMethod.ts +0 -49
- package/frontend-vue/app/utils/statusClass.ts +0 -49
- package/frontend-vue/i18n/locales/en-GB.json +0 -240
- package/frontend-vue/i18n/locales/fr-FR.json +0 -240
- package/frontend-vue/public/.gitkeep +0 -0
- package/frontend-vue/server/.gitkeep +0 -0
- package/frontend-vue/tests/periods.test.ts +0 -145
- package/frontend-vue/tests/persistence.test.ts +0 -45
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { computed } from 'vue'
|
|
3
|
-
import type { FullRequestLog } from '../composables/useApiIntrospection'
|
|
4
|
-
import { httpMethodColor } from '../utils/httpMethod'
|
|
5
|
-
|
|
6
|
-
const props = defineProps<{
|
|
7
|
-
log: FullRequestLog
|
|
8
|
-
}>()
|
|
9
|
-
|
|
10
|
-
const statusColor = computed(() => {
|
|
11
|
-
const s = props.log.statusCode
|
|
12
|
-
if (s >= 500) return 'error'
|
|
13
|
-
if (s >= 400) return 'warning'
|
|
14
|
-
if (s >= 300) return 'info'
|
|
15
|
-
return 'success'
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
const methodColor = computed(() => httpMethodColor(props.log.method))
|
|
19
|
-
|
|
20
|
-
const formattedTimestamp = computed(() =>
|
|
21
|
-
new Date(props.log.timestamp).toLocaleString(),
|
|
22
|
-
)
|
|
23
|
-
|
|
24
|
-
const responseTimeMs = computed(
|
|
25
|
-
() => Math.round(props.log.responseTimeMs * 100) / 100,
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
function prettyJson(text?: string): string {
|
|
29
|
-
if (!text) return ''
|
|
30
|
-
try {
|
|
31
|
-
return JSON.stringify(JSON.parse(text), null, 2)
|
|
32
|
-
} catch {
|
|
33
|
-
return text
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function entries(rec?: Record<string, unknown>): Array<[string, string]> {
|
|
38
|
-
if (!rec) return []
|
|
39
|
-
return Object.entries(rec).map(([k, v]) => [
|
|
40
|
-
k,
|
|
41
|
-
Array.isArray(v) ? v.join(', ') : String(v),
|
|
42
|
-
])
|
|
43
|
-
}
|
|
44
|
-
</script>
|
|
45
|
-
|
|
46
|
-
<template>
|
|
47
|
-
<div class="flex flex-col gap-4 p-1">
|
|
48
|
-
<!-- Top: method + uri + timestamp + status + duration -->
|
|
49
|
-
<div class="flex flex-col gap-2">
|
|
50
|
-
<div class="flex flex-wrap items-center gap-2">
|
|
51
|
-
<UBadge :color="methodColor" variant="solid">
|
|
52
|
-
{{ log.method.toUpperCase() }}
|
|
53
|
-
</UBadge>
|
|
54
|
-
<code class="rounded bg-elevated px-2 py-1 text-sm font-mono text-highlighted">
|
|
55
|
-
{{ log.uri }}
|
|
56
|
-
</code>
|
|
57
|
-
</div>
|
|
58
|
-
<div class="flex flex-wrap items-center gap-2">
|
|
59
|
-
<UBadge :color="statusColor" variant="subtle">
|
|
60
|
-
{{ log.statusCode }}
|
|
61
|
-
</UBadge>
|
|
62
|
-
<span class="text-xs text-dimmed">{{ responseTimeMs }} ms</span>
|
|
63
|
-
<span class="text-xs text-dimmed">·</span>
|
|
64
|
-
<span class="text-xs text-dimmed">{{ formattedTimestamp }}</span>
|
|
65
|
-
<span v-if="log.ip" class="text-xs text-dimmed">· {{ log.ip }}</span>
|
|
66
|
-
</div>
|
|
67
|
-
<p
|
|
68
|
-
v-if="log.rawPath && log.rawPath !== log.uri"
|
|
69
|
-
class="text-xs text-muted"
|
|
70
|
-
>
|
|
71
|
-
{{ $t('page.api.routes.stats.raw_path') }}:
|
|
72
|
-
<code class="font-mono">{{ log.rawPath }}</code>
|
|
73
|
-
</p>
|
|
74
|
-
</div>
|
|
75
|
-
|
|
76
|
-
<USeparator />
|
|
77
|
-
|
|
78
|
-
<!-- Error -->
|
|
79
|
-
<section v-if="log.error" class="flex flex-col gap-2">
|
|
80
|
-
<h4 class="text-sm font-semibold text-error">
|
|
81
|
-
{{ $t('page.api.routes.stats.detail_error') }}
|
|
82
|
-
</h4>
|
|
83
|
-
<p class="text-sm">{{ log.error.message }}</p>
|
|
84
|
-
<pre
|
|
85
|
-
v-if="log.error.stack"
|
|
86
|
-
class="max-h-48 overflow-auto rounded bg-elevated p-2 text-[10px]"
|
|
87
|
-
>{{ log.error.stack }}</pre>
|
|
88
|
-
</section>
|
|
89
|
-
|
|
90
|
-
<!-- Request -->
|
|
91
|
-
<section class="flex flex-col gap-3">
|
|
92
|
-
<h4 class="text-sm font-semibold text-highlighted">
|
|
93
|
-
{{ $t('page.api.routes.stats.detail_request') }}
|
|
94
|
-
</h4>
|
|
95
|
-
|
|
96
|
-
<div v-if="entries(log.pathParams).length > 0" class="flex flex-col gap-1">
|
|
97
|
-
<p class="text-xs uppercase text-dimmed">
|
|
98
|
-
{{ $t('page.api.routes.stats.detail_path_params') }}
|
|
99
|
-
</p>
|
|
100
|
-
<dl class="grid grid-cols-[max-content_1fr] gap-x-4 gap-y-1 text-xs">
|
|
101
|
-
<template v-for="[k, v] in entries(log.pathParams)" :key="k">
|
|
102
|
-
<dt class="font-mono text-muted">{{ k }}</dt>
|
|
103
|
-
<dd class="font-mono">{{ v }}</dd>
|
|
104
|
-
</template>
|
|
105
|
-
</dl>
|
|
106
|
-
</div>
|
|
107
|
-
|
|
108
|
-
<div v-if="entries(log.query).length > 0" class="flex flex-col gap-1">
|
|
109
|
-
<p class="text-xs uppercase text-dimmed">
|
|
110
|
-
{{ $t('page.api.routes.stats.detail_query') }}
|
|
111
|
-
</p>
|
|
112
|
-
<dl class="grid grid-cols-[max-content_1fr] gap-x-4 gap-y-1 text-xs">
|
|
113
|
-
<template v-for="[k, v] in entries(log.query)" :key="k">
|
|
114
|
-
<dt class="font-mono text-muted">{{ k }}</dt>
|
|
115
|
-
<dd class="font-mono">{{ v }}</dd>
|
|
116
|
-
</template>
|
|
117
|
-
</dl>
|
|
118
|
-
</div>
|
|
119
|
-
|
|
120
|
-
<div v-if="entries(log.requestHeaders).length > 0" class="flex flex-col gap-1">
|
|
121
|
-
<p class="text-xs uppercase text-dimmed">
|
|
122
|
-
{{ $t('page.api.routes.stats.detail_headers') }}
|
|
123
|
-
</p>
|
|
124
|
-
<dl class="grid grid-cols-[max-content_1fr] gap-x-4 gap-y-1 text-xs">
|
|
125
|
-
<template v-for="[k, v] in entries(log.requestHeaders)" :key="k">
|
|
126
|
-
<dt class="font-mono text-muted">{{ k }}</dt>
|
|
127
|
-
<dd class="font-mono break-all">{{ v }}</dd>
|
|
128
|
-
</template>
|
|
129
|
-
</dl>
|
|
130
|
-
</div>
|
|
131
|
-
|
|
132
|
-
<div v-if="log.requestBody" class="flex flex-col gap-1">
|
|
133
|
-
<p class="text-xs uppercase text-dimmed">
|
|
134
|
-
{{ $t('page.api.routes.stats.detail_body') }}
|
|
135
|
-
<span v-if="log.requestBodyTruncated" class="text-warning">
|
|
136
|
-
({{ $t('page.api.routes.stats.truncated') }})
|
|
137
|
-
</span>
|
|
138
|
-
</p>
|
|
139
|
-
<pre class="max-h-48 overflow-auto rounded bg-elevated p-2 text-[10px]">{{ prettyJson(log.requestBody) }}</pre>
|
|
140
|
-
</div>
|
|
141
|
-
</section>
|
|
142
|
-
|
|
143
|
-
<USeparator />
|
|
144
|
-
|
|
145
|
-
<!-- Response -->
|
|
146
|
-
<section class="flex flex-col gap-3">
|
|
147
|
-
<h4 class="text-sm font-semibold text-highlighted">
|
|
148
|
-
{{ $t('page.api.routes.stats.detail_response') }}
|
|
149
|
-
</h4>
|
|
150
|
-
|
|
151
|
-
<div v-if="entries(log.responseHeaders).length > 0" class="flex flex-col gap-1">
|
|
152
|
-
<p class="text-xs uppercase text-dimmed">
|
|
153
|
-
{{ $t('page.api.routes.stats.detail_headers') }}
|
|
154
|
-
</p>
|
|
155
|
-
<dl class="grid grid-cols-[max-content_1fr] gap-x-4 gap-y-1 text-xs">
|
|
156
|
-
<template v-for="[k, v] in entries(log.responseHeaders)" :key="k">
|
|
157
|
-
<dt class="font-mono text-muted">{{ k }}</dt>
|
|
158
|
-
<dd class="font-mono break-all">{{ v }}</dd>
|
|
159
|
-
</template>
|
|
160
|
-
</dl>
|
|
161
|
-
</div>
|
|
162
|
-
|
|
163
|
-
<div v-if="log.responseBody" class="flex flex-col gap-1">
|
|
164
|
-
<p class="text-xs uppercase text-dimmed">
|
|
165
|
-
{{ $t('page.api.routes.stats.detail_body') }}
|
|
166
|
-
<span v-if="log.responseBodyTruncated" class="text-warning">
|
|
167
|
-
({{ $t('page.api.routes.stats.truncated') }})
|
|
168
|
-
</span>
|
|
169
|
-
</p>
|
|
170
|
-
<pre class="max-h-64 overflow-auto rounded bg-elevated p-2 text-[10px]">{{ prettyJson(log.responseBody) }}</pre>
|
|
171
|
-
</div>
|
|
172
|
-
|
|
173
|
-
<p v-if="!log.responseBody" class="text-xs italic text-dimmed">
|
|
174
|
-
{{ $t('page.api.routes.stats.detail_no_body') }}
|
|
175
|
-
</p>
|
|
176
|
-
</section>
|
|
177
|
-
</div>
|
|
178
|
-
</template>
|
|
@@ -1,347 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { computed, onUnmounted, reactive, ref, watch } from 'vue'
|
|
3
|
-
import type {
|
|
4
|
-
LogFilters,
|
|
5
|
-
RequestLogSummary,
|
|
6
|
-
} from '../composables/useApiIntrospection'
|
|
7
|
-
import {
|
|
8
|
-
ANY_FILTER,
|
|
9
|
-
httpMethodColor,
|
|
10
|
-
httpMethodFilterItems,
|
|
11
|
-
} from '../utils/httpMethod'
|
|
12
|
-
import PeriodSelect from './internal/PeriodSelect.vue'
|
|
13
|
-
|
|
14
|
-
const { getLogs } = useApiIntrospection()
|
|
15
|
-
const { loadingDetailId, openLogDetail } = useLogDetailDrawer()
|
|
16
|
-
|
|
17
|
-
const PAGE_SIZE = 50
|
|
18
|
-
const POLL_INTERVAL_MS = 5_000
|
|
19
|
-
// Live mode keeps only the newest N rows in memory so long sessions don't grow
|
|
20
|
-
// unbounded.
|
|
21
|
-
const LIVE_LOG_CAP = 500
|
|
22
|
-
|
|
23
|
-
const route = useDmsRoute()
|
|
24
|
-
|
|
25
|
-
// Deep link from the overview cards: /logs?search=<uri>&period=<value> lands
|
|
26
|
-
// pre-filtered on the route URI and the window the user was looking at.
|
|
27
|
-
function queryString(key: string): string | undefined {
|
|
28
|
-
const value = route.query[key]
|
|
29
|
-
return typeof value === 'string' && value ? value : undefined
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
const deepLinkPeriod = queryString('period')
|
|
33
|
-
|
|
34
|
-
// The window is owned by <PeriodSelect> (shared with the Overview and Routes
|
|
35
|
-
// pages) and stays null until it resolves one, so nothing fetches before the
|
|
36
|
-
// log retention is known. The other three filters start unfiltered.
|
|
37
|
-
const period = ref<string | null>(null)
|
|
38
|
-
|
|
39
|
-
const filters = reactive<{
|
|
40
|
-
method: string
|
|
41
|
-
status: string
|
|
42
|
-
search: string
|
|
43
|
-
}>({
|
|
44
|
-
method: ANY_FILTER,
|
|
45
|
-
status: ANY_FILTER,
|
|
46
|
-
search: queryString('search') ?? '',
|
|
47
|
-
})
|
|
48
|
-
|
|
49
|
-
// buildFilters() below strips the ANY_FILTER sentinel so the backend sees no
|
|
50
|
-
// filter for that field.
|
|
51
|
-
const ANY = ANY_FILTER
|
|
52
|
-
|
|
53
|
-
const { t } = useI18n()
|
|
54
|
-
|
|
55
|
-
const methodOptions = computed(() =>
|
|
56
|
-
httpMethodFilterItems(t('page.api.filters.all_methods')),
|
|
57
|
-
)
|
|
58
|
-
|
|
59
|
-
// "slow" piggybacks on the status select: it maps onto the backend's
|
|
60
|
-
// tab=slow filter (requests above the slowness threshold), which lost its
|
|
61
|
-
// UI entry point when the tab bar was removed.
|
|
62
|
-
const SLOW = 'slow'
|
|
63
|
-
|
|
64
|
-
const statusOptions = computed(() => [
|
|
65
|
-
{ value: ANY, label: t('page.api.filters.all_statuses') },
|
|
66
|
-
{ value: 'success', label: t('page.api.filters.status_success') },
|
|
67
|
-
{ value: 'client-error', label: t('page.api.filters.status_client') },
|
|
68
|
-
{ value: 'server-error', label: t('page.api.filters.status_server') },
|
|
69
|
-
{ value: SLOW, label: t('page.api.filters.slow_only') },
|
|
70
|
-
])
|
|
71
|
-
|
|
72
|
-
const rows = ref<RequestLogSummary[]>([])
|
|
73
|
-
const nextCursor = ref<string | null>(null)
|
|
74
|
-
// Starts true: the list is waiting on <PeriodSelect> to name a window, and
|
|
75
|
-
// rendering "no logs match the current filters" during that reads as a broken
|
|
76
|
-
// page rather than a loading one.
|
|
77
|
-
const loading = ref(true)
|
|
78
|
-
const loadingMore = ref(false)
|
|
79
|
-
const error = ref<string | null>(null)
|
|
80
|
-
const live = ref(false)
|
|
81
|
-
let pollHandle: ReturnType<typeof setInterval> | undefined
|
|
82
|
-
|
|
83
|
-
function buildFilters(extra: Partial<LogFilters> = {}): LogFilters {
|
|
84
|
-
const f: LogFilters = { limit: PAGE_SIZE, ...extra }
|
|
85
|
-
if (period.value) f.period = period.value
|
|
86
|
-
if (filters.method && filters.method !== ANY) f.method = filters.method
|
|
87
|
-
if (filters.status === SLOW) f.tab = 'slow'
|
|
88
|
-
else if (filters.status && filters.status !== ANY) f.status = filters.status
|
|
89
|
-
if (filters.search) f.search = filters.search
|
|
90
|
-
return f
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Every first-page fetch takes a ticket. A slower response from an earlier
|
|
94
|
-
// filter would otherwise land last and pair its rows with the newer request's
|
|
95
|
-
// cursor, so Load more would append entries from a different query.
|
|
96
|
-
let requestGeneration = 0
|
|
97
|
-
|
|
98
|
-
async function loadFirst() {
|
|
99
|
-
if (!period.value) return
|
|
100
|
-
const generation = ++requestGeneration
|
|
101
|
-
loading.value = true
|
|
102
|
-
error.value = null
|
|
103
|
-
try {
|
|
104
|
-
const page = await getLogs(buildFilters())
|
|
105
|
-
if (generation !== requestGeneration) return
|
|
106
|
-
rows.value = page.results
|
|
107
|
-
nextCursor.value = page.nextCursor
|
|
108
|
-
} catch (e) {
|
|
109
|
-
if (generation !== requestGeneration) return
|
|
110
|
-
error.value = e instanceof Error ? e.message : String(e)
|
|
111
|
-
} finally {
|
|
112
|
-
if (generation === requestGeneration) loading.value = false
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
async function loadMore() {
|
|
117
|
-
if (!nextCursor.value || loadingMore.value) return
|
|
118
|
-
loadingMore.value = true
|
|
119
|
-
try {
|
|
120
|
-
const page = await getLogs(buildFilters({ cursor: nextCursor.value }))
|
|
121
|
-
rows.value = rows.value.concat(page.results)
|
|
122
|
-
nextCursor.value = page.nextCursor
|
|
123
|
-
} catch (e) {
|
|
124
|
-
error.value = e instanceof Error ? e.message : String(e)
|
|
125
|
-
} finally {
|
|
126
|
-
loadingMore.value = false
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
async function pollLatest() {
|
|
131
|
-
try {
|
|
132
|
-
const page = await getLogs(buildFilters())
|
|
133
|
-
if (page.results.length === 0) return
|
|
134
|
-
const existing = new Set(rows.value.map((r) => r._id))
|
|
135
|
-
const fresh = page.results.filter((r) => !existing.has(r._id))
|
|
136
|
-
if (fresh.length > 0) {
|
|
137
|
-
rows.value = fresh.concat(rows.value).slice(0, LIVE_LOG_CAP)
|
|
138
|
-
}
|
|
139
|
-
} catch {
|
|
140
|
-
/* polling errors are silent */
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
function stopPolling() {
|
|
145
|
-
if (pollHandle) {
|
|
146
|
-
clearInterval(pollHandle)
|
|
147
|
-
pollHandle = undefined
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
function toggleLive() {
|
|
152
|
-
live.value = !live.value
|
|
153
|
-
if (live.value) {
|
|
154
|
-
pollHandle = setInterval(pollLatest, POLL_INTERVAL_MS)
|
|
155
|
-
} else {
|
|
156
|
-
stopPolling()
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
let searchDebounce: ReturnType<typeof setTimeout> | undefined
|
|
161
|
-
function onSearchInput() {
|
|
162
|
-
if (searchDebounce) clearTimeout(searchDebounce)
|
|
163
|
-
searchDebounce = setTimeout(() => void loadFirst(), 250)
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
// The window and the two selects all re-run the query. Immediate, so the first
|
|
167
|
-
// fetch is the one that follows <PeriodSelect> resolving its window — nothing
|
|
168
|
-
// fires while it is still null.
|
|
169
|
-
watch(
|
|
170
|
-
() => [period.value, filters.method, filters.status],
|
|
171
|
-
() => void loadFirst(),
|
|
172
|
-
{ immediate: true },
|
|
173
|
-
)
|
|
174
|
-
|
|
175
|
-
onUnmounted(stopPolling)
|
|
176
|
-
|
|
177
|
-
// Level labels mirror the module's status terminology ("4xx client" /
|
|
178
|
-
// "5xx server" filters, Client/Server breakdown) — a 4xx is a client error,
|
|
179
|
-
// not a warning.
|
|
180
|
-
function statusLevel(s: number): { label: string; color: string } {
|
|
181
|
-
if (s >= 500) return { label: 'SERVER', color: 'text-error' }
|
|
182
|
-
if (s >= 400) return { label: 'CLIENT', color: 'text-warning' }
|
|
183
|
-
if (s >= 300) return { label: 'INFO', color: 'text-info' }
|
|
184
|
-
return { label: 'INFO', color: 'text-success' }
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
function fmtTimestamp(ts: string): string {
|
|
188
|
-
const d = new Date(ts)
|
|
189
|
-
return `${d.toLocaleTimeString()}.${String(d.getMilliseconds()).padStart(3, '0')}`
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
function fmtRequestId(id: string): string {
|
|
193
|
-
return `req_${id.slice(0, 8)}`
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
const counts = computed(() => {
|
|
197
|
-
let info = 0
|
|
198
|
-
let client = 0
|
|
199
|
-
let server = 0
|
|
200
|
-
for (const r of rows.value) {
|
|
201
|
-
if (r.statusCode >= 500) server++
|
|
202
|
-
else if (r.statusCode >= 400) client++
|
|
203
|
-
else info++
|
|
204
|
-
}
|
|
205
|
-
return { info, client, server }
|
|
206
|
-
})
|
|
207
|
-
</script>
|
|
208
|
-
|
|
209
|
-
<template>
|
|
210
|
-
<!-- The page fills the panel (`fillHeight` in src/pages/logs/page.ts): the
|
|
211
|
-
log list takes the height left and scrolls inside the card. -->
|
|
212
|
-
<div class="flex min-h-0 w-full flex-1 flex-col gap-5 p-6">
|
|
213
|
-
<header class="flex flex-wrap items-center gap-4">
|
|
214
|
-
<div
|
|
215
|
-
class="grid size-11 shrink-0 place-items-center rounded-xl bg-primary/10 text-primary"
|
|
216
|
-
>
|
|
217
|
-
<UIcon name="i-ph-list-magnifying-glass" class="size-[22px]" />
|
|
218
|
-
</div>
|
|
219
|
-
<div class="min-w-0 flex-1">
|
|
220
|
-
<h1 class="text-2xl font-semibold tracking-tight text-highlighted">
|
|
221
|
-
{{ $t('page.api.logs.title') }}
|
|
222
|
-
</h1>
|
|
223
|
-
<p class="text-sm text-muted">
|
|
224
|
-
{{ $t('page.api.logs.description') }}
|
|
225
|
-
</p>
|
|
226
|
-
</div>
|
|
227
|
-
<div class="flex items-center gap-2">
|
|
228
|
-
<UButton
|
|
229
|
-
:icon="live ? 'i-ph-pause' : 'i-ph-play'"
|
|
230
|
-
:color="live ? 'warning' : 'neutral'"
|
|
231
|
-
variant="ghost"
|
|
232
|
-
size="sm"
|
|
233
|
-
@click="toggleLive"
|
|
234
|
-
>
|
|
235
|
-
{{ live ? $t('page.api.logs.pause') : $t('page.api.logs.live') }}
|
|
236
|
-
</UButton>
|
|
237
|
-
<UButton
|
|
238
|
-
icon="i-ph-arrow-clockwise"
|
|
239
|
-
variant="ghost"
|
|
240
|
-
size="sm"
|
|
241
|
-
:loading="loading"
|
|
242
|
-
@click="loadFirst"
|
|
243
|
-
>
|
|
244
|
-
{{ $t('page.api.logs.refresh') }}
|
|
245
|
-
</UButton>
|
|
246
|
-
</div>
|
|
247
|
-
</header>
|
|
248
|
-
|
|
249
|
-
<DmsCard :padded="false" class="flex min-h-0 flex-1 flex-col overflow-hidden">
|
|
250
|
-
<!-- Filter toolbar -->
|
|
251
|
-
<div
|
|
252
|
-
class="flex flex-wrap items-center gap-2 border-b border-default px-4 py-3"
|
|
253
|
-
>
|
|
254
|
-
<UInput
|
|
255
|
-
v-model="filters.search"
|
|
256
|
-
size="sm"
|
|
257
|
-
icon="i-ph-magnifying-glass"
|
|
258
|
-
:placeholder="$t('page.api.logs.search_placeholder')"
|
|
259
|
-
class="grow"
|
|
260
|
-
@update:model-value="onSearchInput"
|
|
261
|
-
/>
|
|
262
|
-
<PeriodSelect v-model="period" kind="logs" :deep-link="deepLinkPeriod" />
|
|
263
|
-
<USelect v-model="filters.method" :items="methodOptions" size="sm" />
|
|
264
|
-
<USelect v-model="filters.status" :items="statusOptions" size="sm" />
|
|
265
|
-
</div>
|
|
266
|
-
|
|
267
|
-
<div
|
|
268
|
-
v-if="error"
|
|
269
|
-
class="m-4 rounded-lg border border-error bg-error/10 p-3 text-sm text-error"
|
|
270
|
-
>
|
|
271
|
-
{{ error }}
|
|
272
|
-
</div>
|
|
273
|
-
|
|
274
|
-
<!-- Console-style log list. The row list scrolls internally so the
|
|
275
|
-
toolbar and footer stay pinned. -->
|
|
276
|
-
<div class="flex min-h-0 flex-1 flex-col overflow-hidden font-mono text-xs">
|
|
277
|
-
<div v-if="rows.length === 0 && !loading" class="p-8 text-center text-muted">
|
|
278
|
-
{{ $t('page.api.logs.empty') }}
|
|
279
|
-
</div>
|
|
280
|
-
|
|
281
|
-
<div v-else class="flex-1 overflow-y-auto">
|
|
282
|
-
<div
|
|
283
|
-
v-for="row in rows"
|
|
284
|
-
:key="row._id"
|
|
285
|
-
class="grid cursor-pointer grid-cols-[148px_56px_64px_1fr_56px_64px_104px] items-center gap-2 border-b border-default/40 px-4 py-1.5 hover:bg-elevated/50"
|
|
286
|
-
:class="{
|
|
287
|
-
'bg-error/5': row.statusCode >= 500,
|
|
288
|
-
'bg-warning/5': row.statusCode >= 400 && row.statusCode < 500,
|
|
289
|
-
}"
|
|
290
|
-
@click="openLogDetail(row)"
|
|
291
|
-
>
|
|
292
|
-
<span class="text-dimmed">[{{ fmtTimestamp(row.timestamp) }}]</span>
|
|
293
|
-
<span class="font-semibold" :class="statusLevel(row.statusCode).color">
|
|
294
|
-
{{ statusLevel(row.statusCode).label }}
|
|
295
|
-
</span>
|
|
296
|
-
<span class="font-semibold" :class="`text-${httpMethodColor(row.method)}`">
|
|
297
|
-
{{ row.method.toUpperCase() }}
|
|
298
|
-
</span>
|
|
299
|
-
<span class="truncate text-toned">{{ row.uri }}</span>
|
|
300
|
-
<span class="text-right" :class="statusLevel(row.statusCode).color">
|
|
301
|
-
{{ row.statusCode }}
|
|
302
|
-
</span>
|
|
303
|
-
<span class="text-right text-dimmed">
|
|
304
|
-
{{ Math.round(row.responseTimeMs) }}ms
|
|
305
|
-
</span>
|
|
306
|
-
<span class="truncate text-right text-dimmed">
|
|
307
|
-
{{ fmtRequestId(row._id) }}
|
|
308
|
-
<UIcon
|
|
309
|
-
v-if="loadingDetailId === row._id"
|
|
310
|
-
name="i-ph-spinner"
|
|
311
|
-
class="ml-1 animate-spin"
|
|
312
|
-
/>
|
|
313
|
-
</span>
|
|
314
|
-
</div>
|
|
315
|
-
|
|
316
|
-
<div v-if="nextCursor" class="p-2 text-center">
|
|
317
|
-
<UButton size="xs" variant="ghost" :loading="loadingMore" @click="loadMore">
|
|
318
|
-
{{ $t('page.api.logs.load_more') }}
|
|
319
|
-
</UButton>
|
|
320
|
-
</div>
|
|
321
|
-
</div>
|
|
322
|
-
|
|
323
|
-
<div v-if="loading && rows.length === 0" class="space-y-1 p-4">
|
|
324
|
-
<USkeleton v-for="i in 8" :key="i" class="h-5 w-full" />
|
|
325
|
-
</div>
|
|
326
|
-
</div>
|
|
327
|
-
|
|
328
|
-
<!-- Status bar (foot) -->
|
|
329
|
-
<div
|
|
330
|
-
class="flex items-center justify-between border-t border-default px-4 py-2.5 text-xs text-dimmed"
|
|
331
|
-
>
|
|
332
|
-
<div class="flex items-center gap-3">
|
|
333
|
-
<span v-if="live" class="flex items-center gap-1.5 text-success">
|
|
334
|
-
<span class="inline-block size-2 animate-pulse rounded-full bg-success" />
|
|
335
|
-
{{ $t('page.api.logs.live_status') }}
|
|
336
|
-
</span>
|
|
337
|
-
<span>{{ rows.length }} {{ $t('page.api.logs.entries') }}</span>
|
|
338
|
-
</div>
|
|
339
|
-
<div class="flex items-center gap-3 font-mono">
|
|
340
|
-
<span>INFO: <b class="text-toned">{{ counts.info }}</b></span>
|
|
341
|
-
<span class="text-warning">CLIENT: <b>{{ counts.client }}</b></span>
|
|
342
|
-
<span class="text-error">SERVER: <b>{{ counts.server }}</b></span>
|
|
343
|
-
</div>
|
|
344
|
-
</div>
|
|
345
|
-
</DmsCard>
|
|
346
|
-
</div>
|
|
347
|
-
</template>
|