remove warnings due to type checks

This commit is contained in:
isUnknown 2025-09-09 09:37:34 +02:00
parent ff4f62870f
commit 6291f3259a
7 changed files with 63 additions and 56 deletions

View file

@ -4,20 +4,27 @@
v-model:visible="isOpen"
modal
:draggable="false"
dismissableMask="true"
:dismissableMask="true"
class="dialog"
:closeOnEscape="true"
:style="'--cover: url('+physicalSample.cover+')'"
:style="'--cover: url(' + physicalSample.cover + ')'"
>
<template #header>
<h2 class="text-lg font-serif">{{ physicalSample.title }}</h2>
<time class="font-medium text-sm py-8" :datetime="physicalSample.date">{{ physicalSample.date }}</time>
<template #header>
<h2 class="text-lg font-serif">{{ physicalSample.title }}</h2>
<time class="font-medium text-sm py-8" :datetime="physicalSample.date">{{
physicalSample.date
}}</time>
<p>{{ physicalSample.description }}</p>
</template>
</template>
<div class="overflow-y h-full mt-32 pb-32">
<div class="masonry flow pb-32">
<template v-for="(item, index) in physicalSample.files" :key="item.id">
<img class="rounded-xl" :src="item.url" :alt="item.alt" :data-id="item.id" />
<img
class="rounded-xl"
:src="item.url"
:alt="item.alt"
:data-id="item.id"
/>
</template>
</div>
</div>
@ -25,11 +32,11 @@
</template>
<script setup>
import Dialog from "primevue/dialog";
import { ref, watch } from "vue";
import { useDialogStore } from "../../stores/dialog";
import { useRoute, useRouter } from "vue-router";
import { usePageStore } from "../../stores/page.js";
import Dialog from 'primevue/dialog';
import { ref, watch } from 'vue';
import { useDialogStore } from '../../stores/dialog';
import { useRoute, useRouter } from 'vue-router';
import { usePageStore } from '../../stores/page.js';
// Variables
const router = useRouter();