1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-06-13 23:45:24 +02:00

refactor: pageBlockTypesをjson-schemaに移植

This commit is contained in:
yukineko
2024-01-03 23:59:29 +09:00
parent 6e99fd5224
commit 02b9c7aecc
14 changed files with 152 additions and 54 deletions

View File

@@ -13,19 +13,19 @@ SPDX-License-Identifier: AGPL-3.0-only
<script lang="ts" setup>
import { onMounted, ref } from 'vue';
import * as Misskey from 'misskey-js';
import { NoteBlock } from './block.type.js';
import MkNote from '@/components/MkNote.vue';
import MkNoteDetailed from '@/components/MkNoteDetailed.vue';
import * as os from '@/os.js';
const props = defineProps<{
block: NoteBlock,
block: Misskey.entities.PageBlock,
page: Misskey.entities.Page,
}>();
const note = ref<Misskey.entities.Note | null>(null);
onMounted(() => {
if (props.block.note == null) return;
os.api('notes/show', { noteId: props.block.note })
.then(result => {
note.value = result;