mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-25 09:20:36 +01:00
docs: ts errors
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { withoutTrailingSlash } from 'ufo'
|
import { withoutTrailingSlash } from 'ufo'
|
||||||
// import { debounce } from 'perfect-debounce'
|
// import { debounce } from 'perfect-debounce'
|
||||||
import type { ContentSearchFile } from '@nuxt/ui-pro'
|
// import type { ContentSearchFile } from '@nuxt/ui-pro'
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
// const colorMode = useColorMode()
|
// const colorMode = useColorMode()
|
||||||
@@ -9,7 +9,7 @@ const runtimeConfig = useRuntimeConfig()
|
|||||||
const { integrity, api } = runtimeConfig.public.content
|
const { integrity, api } = runtimeConfig.public.content
|
||||||
|
|
||||||
const { data: navigation } = await useAsyncData('navigation', () => fetchContentNavigation(), { default: () => [] })
|
const { data: navigation } = await useAsyncData('navigation', () => fetchContentNavigation(), { default: () => [] })
|
||||||
const { data: files } = await useLazyFetch<ContentSearchFile[]>(`${api.baseURL}/search${integrity ? '.' + integrity : ''}`, { default: () => [] })
|
const { data: files } = await useLazyFetch<any[]>(`${api.baseURL}/search${integrity ? '.' + integrity : ''}`, { default: () => [] })
|
||||||
|
|
||||||
const searchTerm = ref('')
|
const searchTerm = ref('')
|
||||||
|
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ const optionsValues = ref(props.options?.reduce((acc, option) => {
|
|||||||
acc[option.name] = option.default
|
acc[option.name] = option.default
|
||||||
}
|
}
|
||||||
return acc
|
return acc
|
||||||
}, {}))
|
}, {} as Record<string, any>) || {})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { NuxtError } from '#app'
|
import type { NuxtError } from '#app'
|
||||||
import type { ContentSearchFile } from '@nuxt/ui-pro'
|
// import type { ContentSearchFile } from '@nuxt/ui-pro'
|
||||||
|
|
||||||
useSeoMeta({
|
useSeoMeta({
|
||||||
title: 'Page not found',
|
title: 'Page not found',
|
||||||
@@ -18,7 +18,7 @@ const runtimeConfig = useRuntimeConfig()
|
|||||||
const { integrity, api } = runtimeConfig.public.content
|
const { integrity, api } = runtimeConfig.public.content
|
||||||
|
|
||||||
const { data: navigation } = await useAsyncData('navigation', () => fetchContentNavigation(), { default: () => [] })
|
const { data: navigation } = await useAsyncData('navigation', () => fetchContentNavigation(), { default: () => [] })
|
||||||
const { data: files } = await useLazyFetch<ContentSearchFile[]>(`${api.baseURL}/search${integrity ? '.' + integrity : ''}`, { default: () => [] })
|
const { data: files } = await useLazyFetch<any[]>(`${api.baseURL}/search${integrity ? '.' + integrity : ''}`, { default: () => [] })
|
||||||
|
|
||||||
// Computed
|
// Computed
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user