ea357b71a0
https://maniakey.com/notes/9rsfrmqm1a
66a2d2fa5c
Co-authored-by: naskya <m@naskya.net>
24 lines
528 B
Vue
24 lines
528 B
Vue
<template>
|
|
<template v-for="file in note.files">
|
|
<XNoteMedia
|
|
v-if="
|
|
file.type.startsWith('video') ||
|
|
file.type.startsWith('image')
|
|
"
|
|
:key="file.id"
|
|
:class="{ image: file.type.startsWith('image') }"
|
|
:data-id="file.id"
|
|
:media="file"
|
|
:note="note"
|
|
/>
|
|
</template>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import type { entities } from "firefish-js";
|
|
import XNoteMedia from "@/components/MkNoteMedia.vue";
|
|
|
|
defineProps<{
|
|
note: entities.Note;
|
|
}>();
|
|
</script>
|