mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-15 13:23:08 +02:00
af1087aed4
* (add) ファイルビューア * Update Changelog * 既存のAPIを利用 * run api extratctor * Change i18n * (add) ページに関する説明を追加 * Update CHANGELOG * (fix) design, classes
33 lines
784 B
Vue
33 lines
784 B
Vue
<!--
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
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>
|