diff options
| author | かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> | 2023-10-10 10:43:43 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-10 10:43:43 +0900 |
| commit | af1087aed4afd0a34206faaab93f7598bc10e4f2 (patch) | |
| tree | 1a78985d9113362da0ae0d689d1eed11f238b8b1 /packages/frontend/src/pages/drive.file.notes.vue | |
| parent | fix of 0bb0c32908 (diff) | |
| download | misskey-af1087aed4afd0a34206faaab93f7598bc10e4f2.tar.gz misskey-af1087aed4afd0a34206faaab93f7598bc10e4f2.tar.bz2 misskey-af1087aed4afd0a34206faaab93f7598bc10e4f2.zip | |
Feat:「ファイルの詳細」ページを追加 (#11995)
* (add) ファイルビューア
* Update Changelog
* 既存のAPIを利用
* run api extratctor
* Change i18n
* (add) ページに関する説明を追加
* Update CHANGELOG
* (fix) design, classes
Diffstat (limited to 'packages/frontend/src/pages/drive.file.notes.vue')
| -rw-r--r-- | packages/frontend/src/pages/drive.file.notes.vue | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/packages/frontend/src/pages/drive.file.notes.vue b/packages/frontend/src/pages/drive.file.notes.vue new file mode 100644 index 0000000000..ee1a0ee9b0 --- /dev/null +++ b/packages/frontend/src/pages/drive.file.notes.vue @@ -0,0 +1,33 @@ +<!-- +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> |