chore: add wrangler dependency to package.json

This commit is contained in:
2025-10-03 20:32:05 +02:00
parent 22c93c509d
commit 48e6043205
32 changed files with 182 additions and 32 deletions

View File

@@ -23,7 +23,7 @@ const props = defineProps<{
message: ChatMessage
}>()
const { locale, t } = useI18n()
const { locale, t } = useI18n({ useScope: 'global' })
const formatDate = computed(() => useDateFormat(props.message.createdAt, 'D MMMM YYYY, HH:mm', { locales: locale.value ?? 'en' }).value)
const componentMap: Record<ChatType, Component | undefined> = {
@@ -66,9 +66,19 @@ const dynamicComponent = computed(() => componentMap[props.message.type])
</UCard>
<UCard
v-else
v-motion
variant="soft"
class="mt-1 w-full max-w-none bg-transparent"
:ui="{ body: 'p-0 sm:p-0', header: 'p-0 sm:p-0', footer: 'p-0 sm:p-0' }"
:initial="{
opacity: 0,
y: 20,
}"
:enter="{
opacity: 1,
y: 0,
transition: { ease: 'easeInOut', duration: 300, delay: 500 },
}"
>
<component
:is="dynamicComponent"