2020-04-27 12:53:04 +03:00
|
|
|
<template>
|
2021-06-22 20:47:35 +03:00
|
|
|
<div
|
|
|
|
|
class="StatusContent"
|
|
|
|
|
:class="{ '-compact': compact }"
|
|
|
|
|
>
|
2020-04-27 12:53:04 +03:00
|
|
|
<slot name="header" />
|
2021-06-07 19:51:04 +03:00
|
|
|
<StatusBody
|
|
|
|
|
:status="status"
|
2021-06-14 02:52:41 +03:00
|
|
|
:compact="compact"
|
2021-06-07 19:51:04 +03:00
|
|
|
:single-line="singleLine"
|
2021-09-09 00:03:10 -04:00
|
|
|
:showing-tall="showingTall"
|
|
|
|
|
:expanding-subject="expandingSubject"
|
|
|
|
|
:showing-long-subject="showingLongSubject"
|
|
|
|
|
:toggle-showing-tall="toggleShowingTall"
|
|
|
|
|
:toggle-expanding-subject="toggleExpandingSubject"
|
|
|
|
|
:toggle-showing-long-subject="toggleShowingLongSubject"
|
2021-06-14 10:30:08 +03:00
|
|
|
@parseReady="$emit('parseReady', $event)"
|
2021-06-07 19:51:04 +03:00
|
|
|
>
|
2021-08-15 18:26:37 +03:00
|
|
|
<div v-if="status.poll && status.poll.options && !compact">
|
2021-08-13 13:06:42 +03:00
|
|
|
<Poll
|
|
|
|
|
:base-poll="status.poll"
|
|
|
|
|
:emoji="status.emojis"
|
|
|
|
|
/>
|
2021-06-07 18:41:55 +03:00
|
|
|
</div>
|
|
|
|
|
|
2021-08-15 18:26:37 +03:00
|
|
|
<div v-else-if="status.poll && status.poll.options && compact">
|
|
|
|
|
<FAIcon
|
|
|
|
|
icon="poll-h"
|
|
|
|
|
size="2x"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
2021-06-17 16:29:46 +03:00
|
|
|
<gallery
|
|
|
|
|
v-if="status.attachments.length !== 0"
|
2021-06-22 20:47:35 +03:00
|
|
|
class="attachments media-body"
|
2023-01-14 23:20:28 -05:00
|
|
|
:compact="compact"
|
2021-06-17 16:29:46 +03:00
|
|
|
:nsfw="nsfwClickthrough"
|
|
|
|
|
:attachments="status.attachments"
|
2021-06-22 20:47:35 +03:00
|
|
|
:limit="compact ? 1 : 0"
|
2021-06-17 16:29:46 +03:00
|
|
|
:size="attachmentSize"
|
|
|
|
|
@play="$emit('mediaplay', attachment.id)"
|
|
|
|
|
@pause="$emit('mediapause', attachment.id)"
|
|
|
|
|
/>
|
2020-04-27 12:53:04 +03:00
|
|
|
|
2021-06-07 18:41:55 +03:00
|
|
|
<div
|
2021-06-14 02:52:41 +03:00
|
|
|
v-if="status.card && !noHeading && !compact"
|
2021-06-07 18:41:55 +03:00
|
|
|
class="link-preview media-body"
|
|
|
|
|
>
|
|
|
|
|
<link-preview
|
|
|
|
|
:card="status.card"
|
|
|
|
|
:size="attachmentSize"
|
|
|
|
|
:nsfw="nsfwClickthrough"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2021-06-07 19:50:26 +03:00
|
|
|
</StatusBody>
|
2020-04-27 12:53:04 +03:00
|
|
|
<slot name="footer" />
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
2022-07-31 12:35:48 +03:00
|
|
|
<script src="./status_content.js"></script>
|
2020-04-27 12:53:04 +03:00
|
|
|
<style lang="scss">
|
2020-07-28 01:27:11 +03:00
|
|
|
.StatusContent {
|
2020-04-27 12:53:04 +03:00
|
|
|
flex: 1;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
}
|
|
|
|
|
</style>
|