mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-21 13:23:07 +01:00
24 lines
525 B
Vue
24 lines
525 B
Vue
<template>
|
|
<LogItem :logEntry>
|
|
<div class="whitespace-pre-wrap" :data-event="logEntry.event" v-html="logEntry.message"></div>
|
|
</LogItem>
|
|
</template>
|
|
<script lang="ts" setup>
|
|
import { ContainerEventLogEntry } from "@/models/LogEntry";
|
|
|
|
const { logEntry } = defineProps<{
|
|
logEntry: ContainerEventLogEntry;
|
|
showContainerName?: boolean;
|
|
}>();
|
|
</script>
|
|
|
|
<style scoped>
|
|
@reference "@/main.css";
|
|
[data-event="container-stopped"] {
|
|
@apply text-red;
|
|
}
|
|
[data-event="container-started"] {
|
|
@apply text-green;
|
|
}
|
|
</style>
|