2020-04-27 09:53:04 +00:00
|
|
|
<template>
|
2020-07-27 22:27:11 +00:00
|
|
|
<div class="StatusContent">
|
2020-04-27 09:53:04 +00:00
|
|
|
<slot name="header" />
|
2021-06-07 16:51:04 +00:00
|
|
|
<StatusBody
|
|
|
|
:status="status"
|
|
|
|
:single-line="singleLine"
|
2021-06-11 00:11:58 +00:00
|
|
|
:hide-mentions="hideMentions"
|
2021-06-14 07:30:08 +00:00
|
|
|
@parseReady="$emit('parseReady', $event)"
|
2021-06-07 16:51:04 +00:00
|
|
|
>
|
2021-06-07 15:41:55 +00:00
|
|
|
<div v-if="status.poll && status.poll.options">
|
|
|
|
<poll :base-poll="status.poll" />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div
|
|
|
|
v-if="status.attachments.length !== 0"
|
|
|
|
class="attachments media-body"
|
2020-06-26 11:07:39 +00:00
|
|
|
>
|
2021-06-07 15:41:55 +00:00
|
|
|
<attachment
|
|
|
|
v-for="attachment in nonGalleryAttachments"
|
|
|
|
:key="attachment.id"
|
|
|
|
class="non-gallery"
|
|
|
|
:size="attachmentSize"
|
|
|
|
:nsfw="nsfwClickthrough"
|
|
|
|
:attachment="attachment"
|
|
|
|
:allow-play="true"
|
|
|
|
:set-media="setMedia()"
|
|
|
|
@play="$emit('mediaplay', attachment.id)"
|
|
|
|
@pause="$emit('mediapause', attachment.id)"
|
2020-07-06 11:01:03 +00:00
|
|
|
/>
|
2021-06-07 15:41:55 +00:00
|
|
|
<gallery
|
|
|
|
v-if="galleryAttachments.length > 0"
|
|
|
|
:nsfw="nsfwClickthrough"
|
|
|
|
:attachments="galleryAttachments"
|
|
|
|
:set-media="setMedia()"
|
2020-08-31 08:50:26 +00:00
|
|
|
/>
|
2021-06-07 15:41:55 +00:00
|
|
|
</div>
|
2020-04-27 09:53:04 +00:00
|
|
|
|
2021-06-07 15:41:55 +00:00
|
|
|
<div
|
|
|
|
v-if="status.card && !noHeading"
|
|
|
|
class="link-preview media-body"
|
|
|
|
>
|
|
|
|
<link-preview
|
|
|
|
:card="status.card"
|
|
|
|
:size="attachmentSize"
|
|
|
|
:nsfw="nsfwClickthrough"
|
|
|
|
/>
|
|
|
|
</div>
|
2021-06-07 16:50:26 +00:00
|
|
|
</StatusBody>
|
2020-04-27 09:53:04 +00:00
|
|
|
<slot name="footer" />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./status_content.js" ></script>
|
|
|
|
<style lang="scss">
|
|
|
|
@import '../../_variables.scss';
|
|
|
|
|
|
|
|
$status-margin: 0.75em;
|
|
|
|
|
2020-07-27 22:27:11 +00:00
|
|
|
.StatusContent {
|
2020-04-27 09:53:04 +00:00
|
|
|
flex: 1;
|
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
</style>
|