Browse Source

chore(nc-gui): lint issues

pull/7679/head
աɨռɢӄաօռɢ 10 months ago
parent
commit
19e26fa4cc
  1. 2
      packages/nc-gui/components/cmd-j/index.vue
  2. 9
      packages/nc-gui/components/general/NocoIcon.vue
  3. 2
      packages/nc-gui/layouts/shared-view.vue
  4. 1
      packages/nc-gui/utils/iconUtils.ts

2
packages/nc-gui/components/cmd-j/index.vue

@ -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()

9
packages/nc-gui/components/general/NocoIcon.vue

@ -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>(),
{
const props = withDefaults(defineProps<Props>(), {
size: 90,
animate: false,
},
)
})
const { size, animate } = toRefs(props)

2
packages/nc-gui/layouts/shared-view.vue

@ -1,5 +1,5 @@
<script lang="ts" setup>
import { iconMap, navigateTo, useEventListener, useRouter } from '#imports'
import { iconMap, onMounted, useEventListener, useGlobal, useRouter, useSharedView } from '#imports'
const { isLoading, appInfo } = useGlobal()

1
packages/nc-gui/utils/iconUtils.ts

@ -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

Loading…
Cancel
Save