quote support
This commit is contained in:
parent
f16aff06f6
commit
c4a88dd19f
3 changed files with 22 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
import { mapState as mapPiniaState } from 'pinia'
|
import { mapState as mapPiniaState } from 'pinia'
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
|
import { defineAsyncComponent } from 'vue'
|
||||||
|
|
||||||
import Attachment from 'src/components/attachment/attachment.vue'
|
import Attachment from 'src/components/attachment/attachment.vue'
|
||||||
import MentionLink from 'src/components/mention_link/mention_link.vue'
|
import MentionLink from 'src/components/mention_link/mention_link.vue'
|
||||||
|
|
@ -59,6 +60,7 @@ const ChatMessage = {
|
||||||
UserPopover,
|
UserPopover,
|
||||||
StatusPopover,
|
StatusPopover,
|
||||||
MentionLink,
|
MentionLink,
|
||||||
|
Quote: defineAsyncComponent(() => import('src/components/quote/quote.vue')),
|
||||||
Timeago,
|
Timeago,
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -115,6 +117,15 @@ const ChatMessage = {
|
||||||
return user ? user.statusnet_profile_url : 'NOT_FOUND'
|
return user ? user.statusnet_profile_url : 'NOT_FOUND'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
quoteId() {
|
||||||
|
return this.message.quote_id
|
||||||
|
},
|
||||||
|
quoteUrl() {
|
||||||
|
return this.message.quote_url
|
||||||
|
},
|
||||||
|
quoteVisible() {
|
||||||
|
return this.message.quote_visible
|
||||||
|
},
|
||||||
messageForStatusContent() {
|
messageForStatusContent() {
|
||||||
return {
|
return {
|
||||||
summary: '',
|
summary: '',
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,10 @@
|
||||||
min-width: 30em;
|
min-width: 30em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.quoted-post {
|
||||||
|
margin-bottom: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
.chat-message-toolbar {
|
.chat-message-toolbar {
|
||||||
transition: opacity 0.1s;
|
transition: opacity 0.1s;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
|
|
||||||
|
|
@ -146,6 +146,13 @@
|
||||||
>
|
>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<EmojiReactions :status="message" />
|
<EmojiReactions :status="message" />
|
||||||
|
<Quote
|
||||||
|
class="quoted-post"
|
||||||
|
:status-id="quoteId"
|
||||||
|
:status-url="quoteUrl"
|
||||||
|
:status-visible="quoteVisible"
|
||||||
|
initially-expanded
|
||||||
|
/>
|
||||||
<span
|
<span
|
||||||
class="created-at"
|
class="created-at"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue