feat: basic conversations (#15)
This commit is contained in:
parent
4fc6e405e0
commit
1aa81a3a0a
7 changed files with 82 additions and 13 deletions
17
components/conversation/ConversationCard.vue
Normal file
17
components/conversation/ConversationCard.vue
Normal file
|
@ -0,0 +1,17 @@
|
|||
<script setup lang="ts">
|
||||
import type { Conversation } from 'masto'
|
||||
|
||||
const props = defineProps<{
|
||||
conversation: Conversation
|
||||
}>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div flex flex-col gap-2>
|
||||
<div flex gap-2>
|
||||
With
|
||||
<AccountInlineInfo v-for="account in conversation.accounts" :key="account.id" :account="account" />
|
||||
</div>
|
||||
<StatusCard v-if="conversation.lastStatus" :status="conversation.lastStatus" :actions="false" />
|
||||
</div>
|
||||
</template>
|
21
components/conversation/ConversationPaginator.client.vue
Normal file
21
components/conversation/ConversationPaginator.client.vue
Normal file
|
@ -0,0 +1,21 @@
|
|||
<script setup lang="ts">
|
||||
import type { Conversation, Paginator } from 'masto'
|
||||
|
||||
const { paginator } = defineProps<{
|
||||
paginator: Paginator<any, Conversation[]>
|
||||
}>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<CommonPaginator
|
||||
:paginator="paginator"
|
||||
border="t border"
|
||||
>
|
||||
<template #default="{ item }">
|
||||
<ConversationCard
|
||||
:conversation="item"
|
||||
border="b border" py-1
|
||||
/>
|
||||
</template>
|
||||
</CommonPaginator>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue