mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-23 22:18:26 +01:00
* Cleans up log viewer and adds zigzag line for skipped logs * Updates components * Cleans up css * Cleans up more css * Fixes tests * Fixes typing * Fixes typescript errors * Fixes selected color
25 lines
476 B
Vue
25 lines
476 B
Vue
<template>
|
|
<span class="text" :data-event="logEntry.event" v-html="logEntry.message"></span>
|
|
</template>
|
|
<script lang="ts" setup>
|
|
import { DockerEventLogEntry } from "@/models/LogEntry";
|
|
|
|
defineProps<{
|
|
logEntry: DockerEventLogEntry;
|
|
}>();
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
span {
|
|
&[data-event="container-stopped"] {
|
|
color: #f14668;
|
|
}
|
|
&[data-event="container-started"] {
|
|
color: hsl(141, 53%, 53%);
|
|
}
|
|
&.text {
|
|
white-space: pre-wrap;
|
|
}
|
|
}
|
|
</style>
|