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"
|
2025-08-14 12:53:19 +03:00
|
|
|
:collapse="collapse"
|
2026-06-30 06:17:17 +03:00
|
|
|
:in-conversation="inConversation"
|
2025-02-04 14:14:31 +02:00
|
|
|
@parse-ready="$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>
|
|
|
|
|
|
2025-08-21 17:33:57 +03:00
|
|
|
<div
|
|
|
|
|
v-else-if="status.poll && status.poll.options && compact"
|
|
|
|
|
class="poll-icon"
|
|
|
|
|
>
|
2021-08-15 18:26:37 +03:00
|
|
|
<FAIcon
|
|
|
|
|
icon="poll-h"
|
|
|
|
|
size="2x"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-06-04 18:27:09 +03:00
|
|
|
<Gallery
|
2021-06-17 16:29:46 +03:00
|
|
|
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"
|
2026-06-30 06:35:02 +03:00
|
|
|
:nsfw="status.nsfw"
|
2021-06-17 16:29:46 +03:00
|
|
|
: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"
|
2026-06-30 05:42:09 +03:00
|
|
|
@play="$emit('mediaplay')"
|
|
|
|
|
@pause="$emit('mediapause')"
|
2021-06-17 16:29:46 +03:00
|
|
|
/>
|
2020-04-27 12:53:04 +03:00
|
|
|
|
2021-06-07 18:41:55 +03:00
|
|
|
<div
|
2026-06-30 05:42:09 +03:00
|
|
|
v-if="statusCard && !compact"
|
2021-06-07 18:41:55 +03:00
|
|
|
class="link-preview media-body"
|
|
|
|
|
>
|
2026-06-30 06:35:02 +03:00
|
|
|
<LinkPreview
|
2021-06-07 18:41:55 +03:00
|
|
|
:card="status.card"
|
|
|
|
|
:size="attachmentSize"
|
2026-06-30 06:35:02 +03:00
|
|
|
:nsfw="status.nsfw"
|
2021-06-07 18:41:55 +03:00
|
|
|
/>
|
|
|
|
|
</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;
|
2025-08-15 09:49:28 +03:00
|
|
|
|
|
|
|
|
.poll-icon {
|
|
|
|
|
margin: 0.5em;
|
|
|
|
|
}
|
2020-04-27 12:53:04 +03:00
|
|
|
}
|
|
|
|
|
</style>
|