chore: upgrade to nuxt 4

This commit is contained in:
eggy committed 2025-10-19 15:32:55 +08:00
1 parent e814c77333
commit 21c717ed79
50 files changed
+3353 -4155

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
<script setup lang="ts">
const { src, alt = "" } = defineProps<{ src: string; alt?: string }>();
const imgSrc =
src.startsWith("http://") || src.startsWith("https://")
? src
: `/images/posts/${src}`;
</script>
<template>
<figure class="flex flex-col items-center">
<img :src="imgSrc" class="drop-shadow-lg" :alt="alt" />
<figcaption class="text-center" v-if="alt">{{ alt }}</figcaption>
</figure>
</template>