c2370a1be6
* chore: Add the SPDX information to each file Add copyright and licensing information as defined in version 3.0 of the REUSE Specification. * tweak format --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
24 lines
742 B
Vue
24 lines
742 B
Vue
<!--
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
-->
|
|
|
|
<template>
|
|
<div>
|
|
<ImgWithBlurhash v-if="image" style="max-width: 100%;" :hash="image.blurhash" :src="image.url" :alt="image.comment" :title="image.comment" :width="image.properties.width" :height="image.properties.height" :cover="false"/>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { } from 'vue';
|
|
import * as Misskey from 'misskey-js';
|
|
import { ImageBlock } from './block.type';
|
|
import ImgWithBlurhash from '@/components/MkImgWithBlurhash.vue';
|
|
|
|
const props = defineProps<{
|
|
block: ImageBlock,
|
|
page: Misskey.entities.Page,
|
|
}>();
|
|
|
|
const image = props.page.attachedFiles.find(x => x.id === props.block.fileId);
|
|
</script>
|