Skip to content

Commit 5e3b32c

Browse files
committed
fix(app): improve
1 parent 932e2df commit 5e3b32c

File tree

3 files changed

+12
-15
lines changed

3 files changed

+12
-15
lines changed

app/assets/css/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@import "tailwindcss";
22
@import "@nuxt/ui-pro";
33

4-
@source "../content/**/*";
4+
@source "../../../content/**/*";
55

66
@theme {
77
--font-sans: 'Public Sans', sans-serif;

app/error.vue

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
<script setup lang="ts">
22
import type { NuxtError } from '#app'
33
4-
defineProps({
5-
error: {
6-
type: Object as PropType<NuxtError>,
7-
required: true
8-
}
9-
})
4+
defineProps<{
5+
error: NuxtError
6+
}>()
107
118
useHead({
129
htmlAttrs: {
@@ -20,7 +17,9 @@ useSeoMeta({
2017
})
2118
2219
const { data: navigation } = await useAsyncData('navigation', () => queryCollectionNavigation('docs'))
23-
const { data: files } = await useAsyncData('files', () => queryCollectionSearchSections('docs', { ignoredTags: ['style'] }))
20+
const { data: files } = useLazyAsyncData('search', () => queryCollectionSearchSections('docs'), {
21+
server: false
22+
})
2423
2524
provide('navigation', navigation)
2625
</script>

app/pages/index.vue

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@ useSeoMeta({
1313
</script>
1414

1515
<template>
16-
<UContainer>
17-
<ContentRenderer
18-
v-if="page"
19-
:value="page"
20-
:prose="false"
21-
/>
22-
</UContainer>
16+
<ContentRenderer
17+
v-if="page"
18+
:value="page"
19+
:prose="false"
20+
/>
2321
</template>

0 commit comments

Comments
 (0)