Files
home/Projects/kompose/docs/app/error.vue

49 lines
777 B
Vue
Raw Normal View History

2025-10-09 00:30:31 +02:00
<script setup lang="ts">
2025-10-10 16:43:21 +02:00
import type { NuxtError } from "#app";
2025-10-09 00:30:31 +02:00
defineProps<{
2025-10-10 16:43:21 +02:00
error: NuxtError;
}>();
2025-10-09 00:30:31 +02:00
useHead({
2025-10-10 16:43:21 +02:00
htmlAttrs: {
lang: "en",
},
});
2025-10-09 00:30:31 +02:00
useSeoMeta({
2025-10-10 16:43:21 +02:00
title: "Page not found",
description: "We are sorry but this page could not be found.",
});
const { data: navigation } = await useAsyncData("navigation", () =>
queryCollectionNavigation("docs"),
);
const { data: files } = useLazyAsyncData(
"search",
() => queryCollectionSearchSections("docs"),
{
server: false,
},
);
provide("navigation", navigation);
2025-10-09 00:30:31 +02:00
</script>
<template>
<UApp>
<AppHeader />
<UError :error="error" />
<AppFooter />
<ClientOnly>
<LazyUContentSearch
:files="files"
:navigation="navigation"
/>
</ClientOnly>
</UApp>
</template>