From cd30e583618635c624fc1dbbe9afb19336939f5f Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Sat, 24 Sep 2022 13:18:12 +0200 Subject: [PATCH] chore(nc-gui): lint --- packages/nc-gui/components/smartsheet/Gallery.vue | 2 +- packages/nc-gui/components/smartsheet/expanded-form/index.vue | 2 +- packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue | 1 - packages/nc-gui/composables/useDialog/index.ts | 2 +- packages/nc-gui/composables/useViewData.ts | 2 +- packages/nc-gui/composables/useViewSorts.ts | 1 - 6 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/Gallery.vue b/packages/nc-gui/components/smartsheet/Gallery.vue index 4595f8bc47..68d7bfa774 100644 --- a/packages/nc-gui/components/smartsheet/Gallery.vue +++ b/packages/nc-gui/components/smartsheet/Gallery.vue @@ -104,7 +104,7 @@ const expandForm = (row: RowType, state?: Record) => { }) } else { expandedFormRow.value = row - expandedFormRowState.value = _state + expandedFormRowState.value = state expandedFormDlg.value = true } } diff --git a/packages/nc-gui/components/smartsheet/expanded-form/index.vue b/packages/nc-gui/components/smartsheet/expanded-form/index.vue index 9906e0bc89..f80fb5a6c5 100644 --- a/packages/nc-gui/components/smartsheet/expanded-form/index.vue +++ b/packages/nc-gui/components/smartsheet/expanded-form/index.vue @@ -3,12 +3,12 @@ import type { TableType, ViewType } from 'nocodb-sdk' import { UITypes, isSystemColumn, isVirtualCol } from 'nocodb-sdk' import type { Ref } from 'vue' import { - message, FieldsInj, IsFormInj, MetaInj, ReloadRowDataHookInj, computedInject, + message, provide, ref, toRef, diff --git a/packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue b/packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue index 0e7c6a75bf..43d3a3700e 100644 --- a/packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue +++ b/packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue @@ -13,7 +13,6 @@ import { computed, inject, ref, - resolveComponent, useNuxtApp, useViewColumns, watch, diff --git a/packages/nc-gui/composables/useDialog/index.ts b/packages/nc-gui/composables/useDialog/index.ts index a8e7669fbe..13d95a2c5d 100644 --- a/packages/nc-gui/composables/useDialog/index.ts +++ b/packages/nc-gui/composables/useDialog/index.ts @@ -1,4 +1,4 @@ -import type { DefineComponent, VNode } from '@vue/runtime-dom' +import type { VNode } from '@vue/runtime-dom' import { isVNode, render } from '@vue/runtime-dom' import type { ComponentPublicInstance } from '@vue/runtime-core' import { isClient } from '@vueuse/core' diff --git a/packages/nc-gui/composables/useViewData.ts b/packages/nc-gui/composables/useViewData.ts index b150e4cd7b..774f99434e 100644 --- a/packages/nc-gui/composables/useViewData.ts +++ b/packages/nc-gui/composables/useViewData.ts @@ -41,7 +41,7 @@ export function useViewData( const { api, isLoading, error } = useApi() -const { appInfo } = $(useGlobal()) + const { appInfo } = $(useGlobal()) const appInfoDefaultLimit = appInfo.defaultLimit || 25 const _paginationData = ref({ page: 1, pageSize: appInfoDefaultLimit }) const aggCommentCount = ref<{ row_id: string; count: number }[]>([]) diff --git a/packages/nc-gui/composables/useViewSorts.ts b/packages/nc-gui/composables/useViewSorts.ts index 667be05eb5..b5961e8c5c 100644 --- a/packages/nc-gui/composables/useViewSorts.ts +++ b/packages/nc-gui/composables/useViewSorts.ts @@ -12,7 +12,6 @@ import { useSharedView, useSmartsheetStoreOrThrow, useUIPermission, - watch, } from '#imports' export function useViewSorts(view: Ref, reloadData?: () => void) {