mirror of
https://github.com/ArthurDanjou/artchat.git
synced 2026-01-25 11:52:31 +01:00
feat: enhance chat message handling; add createdAt timestamp to messages and implement dynamic component rendering for various chat types
This commit is contained in:
26
app/components/tool/UsesProxy.vue
Normal file
26
app/components/tool/UsesProxy.vue
Normal file
@@ -0,0 +1,26 @@
|
||||
<script lang="ts" setup>
|
||||
import { ChatType } from '~~/types'
|
||||
|
||||
const props = defineProps<{
|
||||
type: ChatType
|
||||
}>()
|
||||
|
||||
const category = computed(() => {
|
||||
switch (props.type) {
|
||||
case ChatType.HARDWARE:
|
||||
return 'hardware'
|
||||
case ChatType.SOFTWARE:
|
||||
return 'software'
|
||||
case ChatType.HOMELAB:
|
||||
return 'homelab'
|
||||
case ChatType.IDE:
|
||||
return 'ide'
|
||||
default:
|
||||
return 'unknown'
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ToolUses :category="category" />
|
||||
</template>
|
||||
Reference in New Issue
Block a user