2020-01-30 04:37:25 +09: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-25 01:21:41 +09:00
|
|
|
<MkA class="reply" v-if="note.replyId" :to="`/notes/${note.replyId}`"><Fa :icon="faReply"/></MkA>
|
2020-12-19 10:55:52 +09:00
|
|
|
<Mfm v-if="note.text" :text="note.text" :author="note.user" :i="$i" :custom-emojis="note.emojis"/>
|
2020-10-25 01:21:41 +09:00
|
|
|
<MkA class="rp" v-if="note.renoteId" :to="`/notes/${note.renoteId}`">RN: ...</MkA>
|
2020-01-30 04:37:25 +09:00
|
|
|
</div>
|
|
|
|
<details v-if="note.files.length > 0">
|
|
|
|
<summary>({{ $t('withNFiles', { n: note.files.length }) }})</summary>
|
2020-10-17 20:12:00 +09:00
|
|
|
<XMediaList :media-list="note.files"/>
|
2020-01-30 04:37:25 +09:00
|
|
|
</details>
|
|
|
|
<details v-if="note.poll">
|
2020-07-25 01:56:52 +09:00
|
|
|
<summary>{{ $t('poll') }}</summary>
|
2020-10-17 20:12:00 +09:00
|
|
|
<XPoll :note="note"/>
|
2020-01-30 04:37:25 +09:00
|
|
|
</details>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2020-10-17 20:12:00 +09:00
|
|
|
import { defineComponent } from 'vue';
|
2020-01-30 04:37:25 +09:00
|
|
|
import { faReply } from '@fortawesome/free-solid-svg-icons';
|
|
|
|
import XPoll from './poll.vue';
|
|
|
|
import XMediaList from './media-list.vue';
|
2020-10-17 20:12:00 +09:00
|
|
|
import * as os from '@/os';
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2020-10-17 20:12:00 +09:00
|
|
|
export default defineComponent({
|
2020-01-30 04:37:25 +09: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>
|