mirror of
https://github.com/ArthurDanjou/artchat.git
synced 2026-01-14 15:54:03 +01:00
feat: enhance chat UI and add location component with images
This commit is contained in:
@@ -49,16 +49,16 @@ const commandPaletteUi = {
|
||||
<UModal v-model:open="openMessageModal" :ui="modalUi">
|
||||
<UButton
|
||||
:label="loading ? t('cmd.sending') : t('cmd.send')"
|
||||
variant="solid"
|
||||
variant="outline"
|
||||
color="neutral"
|
||||
size="xl"
|
||||
icon="i-ph-paper-plane-tilt-duotone"
|
||||
class="rounded-full"
|
||||
class="rounded-full cursor-pointer"
|
||||
:disabled="loading"
|
||||
>
|
||||
<template #trailing>
|
||||
<UKbd value="meta" />
|
||||
<UKbd value="enter" />
|
||||
<UKbd value="meta" color="neutral" />
|
||||
<UKbd value="enter" color="neutral" />
|
||||
</template>
|
||||
</UButton>
|
||||
|
||||
@@ -106,7 +106,7 @@ const commandPaletteUi = {
|
||||
>
|
||||
<UButton
|
||||
:label="t('clear.button')"
|
||||
variant="solid"
|
||||
variant="subtle"
|
||||
color="error"
|
||||
leading-icon="i-ph-trash-duotone"
|
||||
size="xl"
|
||||
@@ -114,8 +114,8 @@ const commandPaletteUi = {
|
||||
:disabled="storeMessages.length === 0"
|
||||
>
|
||||
<template #trailing>
|
||||
<UKbd value="meta" />
|
||||
<UKbd value="D" />
|
||||
<UKbd value="meta" color="error" />
|
||||
<UKbd value="D" color="error" />
|
||||
</template>
|
||||
</UButton>
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ const formatted = computed(() => useDateFormat(useNow(), 'D MMMM YYYY, HH:mm', {
|
||||
{{ formatted }}
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
<div v-else class="group space-y-2">
|
||||
<div class="flex flex-col-reverse gap-4 items-start md:flex-row-reverse">
|
||||
<UCard
|
||||
v-if="message.state === ChatState.LOADING && message.fetchStates && message.fetchStates.length > 0"
|
||||
@@ -69,6 +69,9 @@ const formatted = computed(() => useDateFormat(useNow(), 'D MMMM YYYY, HH:mm', {
|
||||
<div v-else-if="message.type === ChatType.WEATHER">
|
||||
<ToolWeather />
|
||||
</div>
|
||||
<div v-else-if="message.type === ChatType.LOCATION">
|
||||
<ToolLocation />
|
||||
</div>
|
||||
<div v-else>
|
||||
{{ message }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user