-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
accce7d
commit e6ae87e
Showing
12 changed files
with
357 additions
and
314 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<script setup lang="ts"> | ||
import type { Conversation } from '@/types' | ||
import ConversationTypeIcon from './ConversationTypeIcon.vue' | ||
import FormatDateString from './FormatDateString.vue' | ||
import { useKoreroStore } from '@/stores/korero' | ||
const { conversation, iconWidth } = defineProps<{ | ||
conversation: Conversation | ||
iconWidth?: string | ||
}>() | ||
const koreroStore = useKoreroStore() | ||
</script> | ||
|
||
<template> | ||
<div class="flex gap-4 items-center"> | ||
<ConversationTypeIcon :type="conversation.type" class="flex-shrink-0" :width="iconWidth" /> | ||
<div> | ||
<h2 class="card-title"> | ||
<!-- could make this not a link when on the conversation view --> | ||
<RouterLink :to="{ name: 'conversation', params: { conversationId: conversation.id } }">{{ | ||
conversation.title | ||
}}</RouterLink> | ||
</h2> | ||
<div class="italic text-xs"> | ||
By {{ koreroStore.getUser(conversation.authorId).name }} on | ||
<FormatDateString :dateString="conversation.created" :defaultCss="false" /> in | ||
<RouterLink | ||
:to="{ name: 'channel', params: { channelId: conversation.channelId } }" | ||
class="link" | ||
>{{ koreroStore.getChannelName(conversation.channelId) }}</RouterLink | ||
> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.