2020-01-29 19:37:25 +00:00
|
|
|
<template>
|
|
|
|
<div class="wrmlmaau">
|
|
|
|
<div class="body">
|
|
|
|
<span v-if="note.isHidden" style="opacity: 0.5">({{ $t('private') }})</span>
|
|
|
|
<span v-if="note.deletedAt" style="opacity: 0.5">({{ $t('deleted') }})</span>
|
2020-10-24 16:21:41 +00:00
|
|
|
<MkA class="reply" v-if="note.replyId" :to="`/notes/${note.replyId}`"><Fa :icon="faReply"/></MkA>
|
2020-12-19 01:55:52 +00:00
|
|
|
<Mfm v-if="note.text" :text="note.text" :author="note.user" :i="$i" :custom-emojis="note.emojis"/>
|
2020-10-24 16:21:41 +00:00
|
|
|
<MkA class="rp" v-if="note.renoteId" :to="`/notes/${note.renoteId}`">RN: ...</MkA>
|
2020-01-29 19:37:25 +00:00
|
|
|
</div>
|
|
|
|
<details v-if="note.files.length > 0">
|
|
|
|
<summary>({{ $t('withNFiles', { n: note.files.length }) }})</summary>
|
2020-10-17 11:12:00 +00:00
|
|
|
<XMediaList :media-list="note.files"/>
|
2020-01-29 19:37:25 +00:00
|
|
|
</details>
|
|
|
|
<details v-if="note.poll">
|
2020-07-24 16:56:52 +00:00
|
|
|
<summary>{{ $t('poll') }}</summary>
|
2020-10-17 11:12:00 +00:00
|
|
|
<XPoll :note="note"/>
|
2020-01-29 19:37:25 +00:00
|
|
|
</details>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2020-10-17 11:12:00 +00:00
|
|
|
import { defineComponent } from 'vue';
|
2020-01-29 19:37:25 +00:00
|
|
|
import { faReply } from '@fortawesome/free-solid-svg-icons';
|
|
|
|
import XPoll from './poll.vue';
|
|
|
|
import XMediaList from './media-list.vue';
|
2020-10-17 11:12:00 +00:00
|
|
|
import * as os from '@/os';
|
2020-01-29 19:37:25 +00:00
|
|
|
|
2020-10-17 11:12:00 +00:00
|
|
|
export default defineComponent({
|
2020-01-29 19:37:25 +00:00
|
|
|
components: {
|
|
|
|
XPoll,
|
|
|
|
XMediaList,
|
|
|
|
},
|
|
|
|
props: {
|
|
|
|
note: {
|
|
|
|
type: Object,
|
|
|
|
required: true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
faReply
|
|
|
|
};
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.wrmlmaau {
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
|
|
|
|
> .body {
|
|
|
|
> .reply {
|
|
|
|
margin-right: 6px;
|
|
|
|
color: var(--accent);
|
|
|
|
}
|
|
|
|
|
|
|
|
> .rp {
|
|
|
|
margin-left: 4px;
|
|
|
|
font-style: oblique;
|
|
|
|
color: var(--renote);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|