mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-12 14:46:44 -06:00
864827f788
* feat(backend,misskey-js): hard mute storage in backend * fix(backend,misskey-js): mute word record type * chore(frontend): generalize XWordMute * feat(frontend): configure hard mute * feat(frontend): hard mute notes on the timelines * lint(backend,frontend): fix lint failure * chore(misskey-js): update api.md * fix(backend): test failure * chore(frontend): check word mute for reply * chore: limit hard mute count
74 lines
1.7 KiB
Vue
74 lines
1.7 KiB
Vue
<!--
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
-->
|
|
|
|
<template>
|
|
<MkPagination ref="pagingComponent" :pagination="pagination" :disableAutoLoad="disableAutoLoad">
|
|
<template #empty>
|
|
<div class="_fullinfo">
|
|
<img :src="infoImageUrl" class="_ghost"/>
|
|
<div>{{ i18n.ts.noNotes }}</div>
|
|
</div>
|
|
</template>
|
|
|
|
<template #default="{ items: notes }">
|
|
<div :class="[$style.root, { [$style.noGap]: noGap }]">
|
|
<MkDateSeparatedList
|
|
ref="notes"
|
|
v-slot="{ item: note }"
|
|
:items="notes"
|
|
:direction="pagination.reversed ? 'up' : 'down'"
|
|
:reversed="pagination.reversed"
|
|
:noGap="noGap"
|
|
:ad="true"
|
|
:class="$style.notes"
|
|
>
|
|
<MkNote :key="note._featuredId_ || note._prId_ || note.id" :class="$style.note" :note="note" :withHardMute="true"/>
|
|
</MkDateSeparatedList>
|
|
</div>
|
|
</template>
|
|
</MkPagination>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { shallowRef } from 'vue';
|
|
import MkNote from '@/components/MkNote.vue';
|
|
import MkDateSeparatedList from '@/components/MkDateSeparatedList.vue';
|
|
import MkPagination, { Paging } from '@/components/MkPagination.vue';
|
|
import { i18n } from '@/i18n.js';
|
|
import { infoImageUrl } from '@/instance.js';
|
|
|
|
const props = defineProps<{
|
|
pagination: Paging;
|
|
noGap?: boolean;
|
|
disableAutoLoad?: boolean;
|
|
}>();
|
|
|
|
const pagingComponent = shallowRef<InstanceType<typeof MkPagination>>();
|
|
|
|
defineExpose({
|
|
pagingComponent,
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss" module>
|
|
.root {
|
|
&.noGap {
|
|
> .notes {
|
|
background: var(--panel);
|
|
}
|
|
}
|
|
|
|
&:not(.noGap) {
|
|
> .notes {
|
|
background: var(--bg);
|
|
|
|
.note {
|
|
background: var(--panel);
|
|
border-radius: var(--radius);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|