From bda7939236ec08e071ee928c30e7c86ac30cbd23 Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Sat, 23 Sep 2023 13:39:07 +0530 Subject: [PATCH] fix: lint issues --- packages/nc-gui/components/dashboard/TreeView/CreateViewBtn.vue | 2 -- packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue | 1 - packages/nc-gui/components/dashboard/TreeView/ViewsList.vue | 2 -- packages/nc-gui/components/dlg/ViewCreate.vue | 2 +- packages/nc-gui/components/tabs/Smartsheet.vue | 2 -- 5 files changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/nc-gui/components/dashboard/TreeView/CreateViewBtn.vue b/packages/nc-gui/components/dashboard/TreeView/CreateViewBtn.vue index 467589c314..717e64a580 100644 --- a/packages/nc-gui/components/dashboard/TreeView/CreateViewBtn.vue +++ b/packages/nc-gui/components/dashboard/TreeView/CreateViewBtn.vue @@ -4,8 +4,6 @@ import { ViewTypes } from 'nocodb-sdk' const { $e } = useNuxtApp() -const router = useRouter() - const { refreshCommandPalette } = useCommandPalette() const viewsStore = useViewsStore() const { views } = storeToRefs(viewsStore) diff --git a/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue b/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue index f1cea52648..ae7297733d 100644 --- a/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue +++ b/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue @@ -11,7 +11,6 @@ import { ProjectRoleInj, ToggleDialogInj, extractSdkResponseErrorMsg, - isElementInvisible, openLink, storeToRefs, useProjects, diff --git a/packages/nc-gui/components/dashboard/TreeView/ViewsList.vue b/packages/nc-gui/components/dashboard/TreeView/ViewsList.vue index 6fcdf9d7a0..fe5d37c828 100644 --- a/packages/nc-gui/components/dashboard/TreeView/ViewsList.vue +++ b/packages/nc-gui/components/dashboard/TreeView/ViewsList.vue @@ -51,8 +51,6 @@ const views = computed(() => viewsByTable.value.get(table.value.id!)?.filter((v) const { api } = useApi() -const router = useRouter() - const { refreshCommandPalette } = useCommandPalette() const { addUndo, defineModelScope } = useUndoRedo() diff --git a/packages/nc-gui/components/dlg/ViewCreate.vue b/packages/nc-gui/components/dlg/ViewCreate.vue index 1e1ba17cad..6c347daa09 100644 --- a/packages/nc-gui/components/dlg/ViewCreate.vue +++ b/packages/nc-gui/components/dlg/ViewCreate.vue @@ -4,7 +4,7 @@ import type { Form as AntForm, SelectProps } from 'ant-design-vue' import { capitalize } from '@vue/runtime-core' import type { FormType, GalleryType, GridType, KanbanType, MapType, TableType, ViewType } from 'nocodb-sdk' import { UITypes, ViewTypes } from 'nocodb-sdk' -import { computed, message, nextTick, onBeforeMount, reactive, ref, unref, useApi, useI18n, useVModel, watch } from '#imports' +import { computed, message, nextTick, onBeforeMount, reactive, ref, useApi, useI18n, useVModel, watch } from '#imports' interface Props { modelValue: boolean diff --git a/packages/nc-gui/components/tabs/Smartsheet.vue b/packages/nc-gui/components/tabs/Smartsheet.vue index a25a9c1493..a6c70e418e 100644 --- a/packages/nc-gui/components/tabs/Smartsheet.vue +++ b/packages/nc-gui/components/tabs/Smartsheet.vue @@ -36,8 +36,6 @@ const { metas, getMeta } = useMetas() useSidebar('nc-right-sidebar') -const isPublic = inject(IsPublicInj, ref(false)) - const activeTab = toRef(props, 'activeTab') const fields = ref([])