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