2023-10-09 18:43:43 -07:00
|
|
|
<!--
|
2024-02-13 07:50:11 -08:00
|
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
2023-10-09 18:43:43 -07:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div class="_gaps">
|
|
|
|
<MkInfo>{{ i18n.ts._fileViewer.thisPageCanBeSeenFromTheAuthor }}</MkInfo>
|
|
|
|
<MkNotes ref="tlComponent" :pagination="pagination"/>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
import { ref, computed } from 'vue';
|
|
|
|
import { i18n } from '@/i18n.js';
|
|
|
|
import { Paging } from '@/components/MkPagination.vue';
|
|
|
|
import MkInfo from '@/components/MkInfo.vue';
|
|
|
|
import MkNotes from '@/components/MkNotes.vue';
|
|
|
|
|
|
|
|
const props = defineProps<{
|
|
|
|
fileId: string;
|
|
|
|
}>();
|
|
|
|
|
|
|
|
const realFileId = computed(() => props.fileId);
|
|
|
|
|
|
|
|
const pagination = ref<Paging>({
|
|
|
|
endpoint: 'drive/files/attached-notes',
|
|
|
|
limit: 10,
|
|
|
|
params: {
|
|
|
|
fileId: realFileId.value,
|
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|