1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-23 14:13:56 +01:00
Files
dozzle/assets/components/LogViewer/LogViewer.vue

19 lines
467 B
Vue

<template>
<LogList :messages="visibleMessages" />
</template>
<script lang="ts" setup>
import { type JSONObject, LogEntry } from "@/models/LogEntry";
const props = defineProps<{
messages: LogEntry<string | JSONObject>[];
visibleKeys: Map<string[], boolean>;
}>();
const { messages, visibleKeys } = toRefs(props);
const { filteredPayload } = useVisibleFilter(visibleKeys);
const visibleMessages = filteredPayload(messages);
</script>
<style scoped></style>