From c1955a33016bf63b601eff580fddb3e34c82ef04 Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Mon, 16 Jun 2025 09:07:36 -0700 Subject: [PATCH] feat: supports nested arrays and objects (#3979) --- .../components/LogViewer/ComplexLogItem.vue | 57 +++++++++++++------ assets/components/LogViewer/LogActions.vue | 5 +- assets/components/LogViewer/LogDetails.vue | 2 +- assets/components/LogViewer/LogLevel.vue | 22 +++++-- 4 files changed, 62 insertions(+), 24 deletions(-) diff --git a/assets/components/LogViewer/ComplexLogItem.vue b/assets/components/LogViewer/ComplexLogItem.vue index 5b7b6fd7..3210660f 100644 --- a/assets/components/LogViewer/ComplexLogItem.vue +++ b/assets/components/LogViewer/ComplexLogItem.vue @@ -1,21 +1,30 @@ @@ -31,6 +40,8 @@ const { logEntry } = defineProps<{ const { containers } = useLoggingContext(); +const [DefineTemplate, ReuseTemplate] = createReusableTemplate(); + const validValues = computed(() => { return Object.fromEntries(Object.entries(logEntry.message).filter(([_, value]) => value !== undefined)); }); @@ -45,7 +56,19 @@ function preventDefaultOnLinks(event: MouseEvent) { diff --git a/assets/components/LogViewer/LogActions.vue b/assets/components/LogViewer/LogActions.vue index a0c6fe89..2d8a17dd 100644 --- a/assets/components/LogViewer/LogActions.vue +++ b/assets/components/LogViewer/LogActions.vue @@ -61,6 +61,7 @@ @@ -53,4 +63,8 @@ defineProps<{ [data-level="warn"] { @apply !bg-orange; } + +[data-level="unknown"].show-unknown { + @apply !bg-base-300; +}