fix: lint issues
@ -15,5 +15,5 @@ module.exports = {
extends: ['@antfu', 'plugin:prettier/recommended'],
plugins: ['prettier'],
rules: baseRules,
ignorePatterns: ['!*.d.ts', 'components.d.ts'],
ignorePatterns: ['!*.d.ts', 'components.d.ts', '**/typesense-docsearch.js'],
}
@ -1,6 +1,6 @@
<script setup lang="ts">
import '~/assets/js/typesense-docsearch'
declare const docsearch: any;
declare const docsearch: any
const modalEl = ref<HTMLElement | null>(null)
const { user } = useGlobal()
@ -1,18 +1,15 @@
<script lang="ts" setup>
import { autoResetRef, useThrottleFn, toRefs } from '#imports'
import { autoResetRef, toRefs, useThrottleFn } from '#imports'
interface Props {
size?: number
animate?: boolean
const props = withDefaults(
defineProps<Props>(),
{
size: 90,
animate: false,
},
)
const props = withDefaults(defineProps<Props>(), {
})
const { size, animate } = toRefs(props)
@ -1,5 +1,5 @@
import { iconMap, navigateTo, useEventListener, useRouter } from '#imports'
import { iconMap, onMounted, useEventListener, useGlobal, useRouter, useSharedView } from '#imports'
const { isLoading, appInfo } = useGlobal()
@ -121,7 +121,6 @@ import NcArrowUp from '~icons/nc-icons/arrow-up'
import NcArrowDown from '~icons/nc-icons/arrow-down'
import NcUpload from '~icons/nc-icons/upload'
import NcDownload from '~icons/nc-icons/download'
import NcProjectGray from '~icons/nc-icons/project-gray'
import NcPhoneCall from '~icons/nc-icons/phone-call'
// keep it for reference