lint:fix all

This commit is contained in:
2025-07-29 00:32:57 +08:00
parent 7d2f57df97
commit 1745a54eb6
34 changed files with 820 additions and 606 deletions

View File

@@ -1,37 +1,37 @@
<script setup lang="ts">
import type { NuxtError } from "#app";
import type { NuxtError } from '#app'
definePageMeta({
layout: "default",
});
layout: 'default'
})
defineProps<{
error: NuxtError;
}>();
error: NuxtError
}>()
useHead({
htmlAttrs: {
lang: "zh-CN",
},
});
lang: 'zh-CN'
}
})
useSeoMeta({
title: "Page not found",
description: "We are sorry but this page could not be found.",
});
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: navigation } = await useAsyncData('navigation', () =>
queryCollectionNavigation('docs')
)
const { data: files } = useLazyAsyncData(
"search",
() => queryCollectionSearchSections("docs"),
'search',
() => queryCollectionSearchSections('docs'),
{
server: false,
},
);
server: false
}
)
provide("navigation", navigation);
provide('navigation', navigation)
</script>
<template>
@@ -43,7 +43,7 @@ provide("navigation", navigation);
:clear="{
size: 'xl',
icon: 'lucide-arrow-left',
class: 'rounded-full',
class: 'rounded-full'
}"
redirect="/"
/>
@@ -51,7 +51,10 @@ provide("navigation", navigation);
<AppFooter />
<ClientOnly>
<LazyUContentSearch :files="files" :navigation="navigation" />
<LazyUContentSearch
:files="files"
:navigation="navigation"
/>
</ClientOnly>
</UApp>
</template>