This commit is contained in:
syuilo 2023-05-14 10:50:21 +09:00
parent a979fb9207
commit 238d0fa667
13 changed files with 92 additions and 1043 deletions

View file

@ -5,15 +5,15 @@
</template>
<script lang="ts" setup>
import { PropType } from 'vue';
import { } from 'vue';
import * as Misskey from 'misskey-js';
import { ImageBlock } from './block.type';
import ImgWithBlurhash from '@/components/MkImgWithBlurhash.vue';
import { ImageBlock } from '@/scripts/hpml/block';
import { Hpml } from '@/scripts/hpml/evaluator';
const props = defineProps<{
block: PropType<ImageBlock>,
hpml: PropType<Hpml>,
block: ImageBlock,
page: Misskey.entities.Page,
}>();
const image = props.hpml.page.attachedFiles.find(x => x.id === props.block.fileId);
const image = props.page.attachedFiles.find(x => x.id === props.block.fileId);
</script>