Files
portfolio/app/error.vue
Nicholas Kalar 0def745b98
Some checks failed
ci / ci (22, ubuntu-latest) (push) Failing after 42s
initial commit
2025-12-02 23:50:28 -05:00

68 lines
1.2 KiB
Vue

<script setup lang="ts">
import type { NuxtError } from '#app'
defineProps({
error: {
type: Object as PropType<NuxtError>,
required: true
}
})
useHead({
htmlAttrs: {
lang: 'en'
}
})
useSeoMeta({
title: 'Page not found',
description: 'We are sorry but this page could not be found.'
})
const [{ data: navigation }, { data: files }] = await Promise.all([
useAsyncData('navigation', () => {
return Promise.all([
queryCollectionNavigation('blog')
])
}, {
transform: data => data.flat()
}),
useLazyAsyncData('search', () => {
return Promise.all([
queryCollectionSearchSections('blog')
])
}, {
server: false,
transform: data => data.flat()
})
])
</script>
<template>
<div>
<AppHeader :links="navLinks" />
<UMain>
<UContainer>
<UPage>
<UError :error="error" />
</UPage>
</UContainer>
</UMain>
<AppFooter />
<ClientOnly>
<LazyUContentSearch
:files="files"
shortcut="meta_k"
:navigation="navigation"
:links="navLinks"
:fuse="{ resultLimit: 42 }"
/>
</ClientOnly>
<UToaster />
</div>
</template>