mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-19 21:23:28 +01:00
79ffbf95db
* wip * wip * Refactor * Refactor * wip * wip * wip * wip * Refactor * Refactor * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Clean up * Update misskey-flavored-markdown.ts * wip * wip * wip * wip * Update parser.ts * wip * Add new test * wip * Add new test * Add new test * wip * Refactor * Update parse.ts * Refactor * Update parser.ts * wip
48 lines
1.2 KiB
Vue
48 lines
1.2 KiB
Vue
<template>
|
|
<div class="mk-sub-note-content">
|
|
<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>
|
|
<a class="reply" v-if="note.replyId"><fa icon="reply"/></a>
|
|
<misskey-flavored-markdown v-if="note.text" :text="note.text" :author="note.user" :i="$store.state.i" :custom-emojis="note.emojis"/>
|
|
<a class="rp" v-if="note.renoteId" :href="`/notes/${note.renoteId}`">RN: ...</a>
|
|
</div>
|
|
<details v-if="note.files.length > 0">
|
|
<summary>({{ this.$t('media-count').replace('{}', note.files.length) }})</summary>
|
|
<mk-media-list :media-list="note.files"/>
|
|
</details>
|
|
<details v-if="note.poll">
|
|
<summary>{{ $t('poll') }}</summary>
|
|
<mk-poll :note="note"/>
|
|
</details>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import Vue from 'vue';
|
|
import i18n from '../../../i18n';
|
|
|
|
export default Vue.extend({
|
|
i18n: i18n('desktop/views/components/sub-note-content.vue'),
|
|
props: ['note']
|
|
});
|
|
</script>
|
|
|
|
<style lang="stylus" scoped>
|
|
.mk-sub-note-content
|
|
overflow-wrap break-word
|
|
|
|
> .body
|
|
> .reply
|
|
margin-right 6px
|
|
color #717171
|
|
|
|
> .rp
|
|
margin-left 4px
|
|
font-style oblique
|
|
color var(--renoteText)
|
|
|
|
mk-poll
|
|
font-size 80%
|
|
|
|
</style>
|