Nachrichten-Plugin 1.0.0: Direktnachrichten, Gruppen, Anhänge, GIFs, Emojis
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
commit
2844452002
55 changed files with 5448 additions and 0 deletions
17
resources/js/components/ChatAvatar.vue
Normal file
17
resources/js/components/ChatAvatar.vue
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<script setup>
|
||||
import { Users } from '@lucide/vue';
|
||||
import { PersonAvatar } from '@inhaus/ui';
|
||||
|
||||
/** Bild eines Gesprächs: Person bei Direktnachrichten, Symbol bei Gruppen */
|
||||
defineProps({
|
||||
conversation: { type: Object, required: true },
|
||||
size: { type: String, default: 'ih:size-10' },
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<PersonAvatar v-if="conversation.person" :person="conversation.person" :class="size" />
|
||||
<span v-else class="ih:grid ih:shrink-0 ih:place-items-center ih:rounded-full ih:bg-brand-soft ih:text-brand-text" :class="size" aria-hidden="true">
|
||||
<Users class="ih:size-[45%]" />
|
||||
</span>
|
||||
</template>
|
||||
Loading…
Add table
Add a link
Reference in a new issue