documentation
This commit is contained in:
parent
afce78a597
commit
cf53cc4e6b
4 changed files with 46 additions and 17 deletions
|
|
@ -1,8 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<conversation
|
<Conversation
|
||||||
:collapsable="false"
|
|
||||||
is-page="true"
|
|
||||||
:status-id="statusId"
|
:status-id="statusId"
|
||||||
|
is-page
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,15 +55,46 @@ const sortAndFilterConversation = (conversation, statusoid) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const conversation = {
|
const conversation = {
|
||||||
props: [
|
props: {
|
||||||
'statusId',
|
statusId: {
|
||||||
'collapsable',
|
// Main thing
|
||||||
'isPage',
|
type: String,
|
||||||
'pinnedStatusIdsObject',
|
required: true,
|
||||||
'inProfile',
|
},
|
||||||
'profileUserId',
|
collapsable: {
|
||||||
'virtualHidden',
|
// Whether conversation can be collapsed
|
||||||
],
|
// i.e. when it's not a page
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
|
isPage: {
|
||||||
|
// Whether conversation is rendered as a standalone page
|
||||||
|
// as opposed to embedded into a timeline
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
|
pinnedStatusIdsObject: {
|
||||||
|
// Used for user profile, map of pinned statuses
|
||||||
|
type: Object,
|
||||||
|
default: null,
|
||||||
|
},
|
||||||
|
inProfile: {
|
||||||
|
// Whether conversation is rendered in a user profile
|
||||||
|
// used for overriding muted status
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
|
profileUserId: {
|
||||||
|
// used with inProfile, user id of the profile
|
||||||
|
type: String,
|
||||||
|
default: null,
|
||||||
|
},
|
||||||
|
virtualHidden: {
|
||||||
|
// Whether conversation is suspended. Controls rendering of statuses
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
highlight: null,
|
highlight: null,
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,6 @@
|
||||||
<Status
|
<Status
|
||||||
v-for="status in visibleStatuses"
|
v-for="status in visibleStatuses"
|
||||||
:key="status.id"
|
:key="status.id"
|
||||||
:collapsable="false"
|
|
||||||
:expandable="false"
|
:expandable="false"
|
||||||
:compact="false"
|
:compact="false"
|
||||||
class="search-result"
|
class="search-result"
|
||||||
|
|
|
||||||
|
|
@ -71,27 +71,27 @@
|
||||||
class="timeline"
|
class="timeline"
|
||||||
role="feed"
|
role="feed"
|
||||||
>
|
>
|
||||||
<conversation
|
<Conversation
|
||||||
v-for="statusId in filteredPinnedStatusIds"
|
v-for="statusId in filteredPinnedStatusIds"
|
||||||
:key="statusId + '-pinned'"
|
:key="statusId + '-pinned'"
|
||||||
role="listitem"
|
role="listitem"
|
||||||
class="status-fadein"
|
class="status-fadein"
|
||||||
:status-id="statusId"
|
:status-id="statusId"
|
||||||
:collapsable="true"
|
|
||||||
:pinned-status-ids-object="pinnedStatusIdsObject"
|
:pinned-status-ids-object="pinnedStatusIdsObject"
|
||||||
:in-profile="inProfile"
|
:in-profile="inProfile"
|
||||||
:profile-user-id="userId"
|
:profile-user-id="userId"
|
||||||
|
collapsable
|
||||||
/>
|
/>
|
||||||
<conversation
|
<Conversation
|
||||||
v-for="status in filteredVisibleStatuses"
|
v-for="status in filteredVisibleStatuses"
|
||||||
:key="status.id"
|
:key="status.id"
|
||||||
role="listitem"
|
role="listitem"
|
||||||
class="status-fadein"
|
class="status-fadein"
|
||||||
:status-id="status.id"
|
:status-id="status.id"
|
||||||
:collapsable="true"
|
|
||||||
:in-profile="inProfile"
|
:in-profile="inProfile"
|
||||||
:profile-user-id="userId"
|
:profile-user-id="userId"
|
||||||
:virtual-hidden="virtualScrollingEnabled && !statusesToDisplay.includes(status.id)"
|
:virtual-hidden="virtualScrollingEnabled && !statusesToDisplay.includes(status.id)"
|
||||||
|
collapsable
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue