Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: header links #66

Merged
merged 3 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 1 addition & 15 deletions app.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script setup lang="ts">
import type { ParsedContent } from '@nuxt/content/types';

provideHeadlessUseId(() => useId());
const { seo } = useAppConfig();

Expand Down Expand Up @@ -33,18 +31,13 @@ useSeoMeta({
});

defineOgImageComponent('OgImageZK');

const { data: files } = useLazyFetch<ParsedContent[]>('/api/search.json', {
default: () => [],
server: false,
});
</script>

<template>
<div>
<NuxtLoadingIndicator />

<HeaderComponent :search="true" />
<HeaderComponent />

<UMain>
<NuxtLayout>
Expand All @@ -54,13 +47,6 @@ const { data: files } = useLazyFetch<ParsedContent[]>('/api/search.json', {

<FooterComponent />

<ClientOnly>
<LazyUContentSearch
:files="files"
:navigation="navigation || []"
/>
</ClientOnly>

<UNotifications />
</div>
</template>
Binary file modified bun.lockb
Binary file not shown.
14 changes: 1 addition & 13 deletions error.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script setup lang="ts">
import type { NuxtError } from '#app';
import type { ParsedContent } from '@nuxt/content/dist/runtime/types';

useSeoMeta({
title: 'Page not found',
Expand All @@ -21,17 +20,13 @@ useHead({
});

const { data: navigation } = await useAsyncData('navigation', () => fetchContentNavigation());
const { data: files } = useLazyFetch<ParsedContent[]>('/api/search.json', {
default: () => [],
server: false,
});

provide('navigation', navigation);
</script>

<template>
<div>
<HeaderComponent :search="true" />
<HeaderComponent />

<UMain>
<UContainer>
Expand All @@ -43,13 +38,6 @@ provide('navigation', navigation);

<FooterComponent />

<ClientOnly>
<LazyUContentSearch
:files="files"
:navigation="navigation"
/>
</ClientOnly>

<UNotifications />
</div>
</template>
1 change: 0 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export default defineNuxtConfig({
},
},
routeRules: {
'/api/search.json': { prerender: true },
'*-surround': { robots: false },
'/*/*-surround': { robots: false },
'/tutorials/*/_dir': { robots: false },
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
"release": "semantic-release"
},
"dependencies": {
"@matterlabs/docs-nuxt-template": "2.8.2",
"@matterlabs/docs-nuxt-template": "2.8.4",
"@iconify-json/heroicons": "^1.2.0",
"@iconify-json/simple-icons": "^1.2.1",
"@iconify-json/vscode-icons": "^1.2.0",
"@nuxt/content": "^2.13.2",
"@nuxt/eslint": "^0.5.5",
"@nuxt/fonts": "^0.7.2",
Expand Down
7 changes: 0 additions & 7 deletions server/api/search.json.get.ts

This file was deleted.

Loading