feat: use nuxt 4 structure

This commit is contained in:
Anthony Fu committed 2024-08-14 14:29:01 +02:00
1 parent 3f192323d8
commit fe3b8ce1c1
18 files changed
+7 -3

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
<script setup lang="ts">
const { data } = await useFetch('/api/pageview')
const time = useTimeAgo(() => data.value?.startAt || 0)
</script>
<template>
<div text-gray:80>
<span text-gray font-500>{{ data?.pageview }}</span>
page views since
<span text-gray>{{ time }}</span>
</div>
</template>