| 1 | <template> |
| 2 | <CardEntity> |
| 3 | <template #headerMain>{{ message.caller }}</template> |
| 4 | <template #headerExtra>{{ formatDate(message.timestamp, dFormats.datetimesec) }}</template> |
| 5 | <template #default>{{ message.content }}</template> |
| 6 | </CardEntity> |
| 7 | </template> |
| 8 | |
| 9 | <script setup lang="ts"> |
| 10 | import type { Message } from "@/types/graylog/messages.d" |
| 11 | import CardEntity from "@/components/common/cards/CardEntity.vue" |
| 12 | import { useSettingsStore } from "@/stores/settings" |
| 13 | import { formatDate } from "@/utils/format" |
| 14 | |
| 15 | const { message } = defineProps<{ message: Message }>() |
| 16 | |
| 17 | const dFormats = useSettingsStore().dateFormat |
| 18 | </script> |