From 85aaabe2ccae8b7387f40bbab9d655aa55657f28 Mon Sep 17 00:00:00 2001 From: mertmit Date: Wed, 6 Sep 2023 17:24:12 +0300 Subject: [PATCH 1/4] chore(nc-gui): lint error and warnings Signed-off-by: mertmit --- .../components/cell/attachment/Carousel.vue | 2 +- .../components/cell/attachment/utils.ts | 3 +- .../components/dashboard/Sidebar/Header.vue | 2 - .../dashboard/Sidebar/TopSection/Header.vue | 2 +- .../dashboard/TreeView/BaseOptions.vue | 5 +-- .../dashboard/TreeView/ProjectNode.vue | 4 -- .../settings/data-sources/CreateBase.vue | 39 +------------------ .../settings/data-sources/EditBase.vue | 37 ------------------ .../nc-gui/components/dlg/AirtableImport.vue | 1 - .../nc-gui/components/dlg/ProjectDelete.vue | 4 -- .../nc-gui/components/dlg/TableCreate.vue | 3 +- .../dlg/share-and-collaborate/SharePage.vue | 3 +- .../dlg/share-and-collaborate/View.vue | 2 - .../nc-gui/components/general/DeleteModal.vue | 2 + .../nc-gui/components/general/UserIcon.vue | 2 - .../components/project/AccessSettings.vue | 2 - .../project/InviteProjectCollabSection.vue | 6 +-- packages/nc-gui/components/project/View.vue | 2 + .../nc-gui/components/smartsheet/Gallery.vue | 1 - .../components/smartsheet/Pagination.vue | 4 -- .../nc-gui/components/smartsheet/Toolbar.vue | 2 +- .../nc-gui/components/smartsheet/Topbar.vue | 6 +-- .../smartsheet/toolbar/ColumnFilterMenu.vue | 6 +-- .../smartsheet/toolbar/FieldsMenu.vue | 2 +- .../smartsheet/toolbar/SortListMenu.vue | 2 - .../nc-gui/components/tabs/Smartsheet.vue | 3 -- .../workspace/CollaboratorsList.vue | 1 - .../components/workspace/CreateProjectDlg.vue | 2 +- .../components/workspace/ProjectList.vue | 4 ++ packages/nc-gui/components/workspace/View.vue | 2 - .../[typeOrId]/[projectId]/index/index.vue | 4 -- .../[viewId]/[[viewTitle]]/[...slugs].vue | 2 +- packages/nc-gui/utils/iconUtils.ts | 7 ---- 33 files changed, 25 insertions(+), 144 deletions(-) diff --git a/packages/nc-gui/components/cell/attachment/Carousel.vue b/packages/nc-gui/components/cell/attachment/Carousel.vue index e0408693c4..55c4f8a48e 100644 --- a/packages/nc-gui/components/cell/attachment/Carousel.vue +++ b/packages/nc-gui/components/cell/attachment/Carousel.vue @@ -1,7 +1,7 @@ diff --git a/packages/nc-gui/components/dashboard/Sidebar/TopSection/Header.vue b/packages/nc-gui/components/dashboard/Sidebar/TopSection/Header.vue index cc340bc4c9..34bc188cf7 100644 --- a/packages/nc-gui/components/dashboard/Sidebar/TopSection/Header.vue +++ b/packages/nc-gui/components/dashboard/Sidebar/TopSection/Header.vue @@ -1 +1 @@ - + diff --git a/packages/nc-gui/components/dashboard/TreeView/BaseOptions.vue b/packages/nc-gui/components/dashboard/TreeView/BaseOptions.vue index 1d0346177f..4991507861 100644 --- a/packages/nc-gui/components/dashboard/TreeView/BaseOptions.vue +++ b/packages/nc-gui/components/dashboard/TreeView/BaseOptions.vue @@ -115,10 +115,9 @@ function openQuickImportDialog(type: string) { - - -
@@ -513,8 +511,6 @@ const DlgProjectDuplicateOnOk = async (jobData: { id: string; project_id: string - -
diff --git a/packages/nc-gui/components/dashboard/settings/data-sources/CreateBase.vue b/packages/nc-gui/components/dashboard/settings/data-sources/CreateBase.vue index e47167d3b2..33ac0a8208 100644 --- a/packages/nc-gui/components/dashboard/settings/data-sources/CreateBase.vue +++ b/packages/nc-gui/components/dashboard/settings/data-sources/CreateBase.vue @@ -1,5 +1,5 @@ diff --git a/packages/nc-gui/components/smartsheet/toolbar/ColumnFilterMenu.vue b/packages/nc-gui/components/smartsheet/toolbar/ColumnFilterMenu.vue index 0d0a569411..16368b3395 100644 --- a/packages/nc-gui/components/smartsheet/toolbar/ColumnFilterMenu.vue +++ b/packages/nc-gui/components/smartsheet/toolbar/ColumnFilterMenu.vue @@ -3,13 +3,11 @@ import type ColumnFilter from './ColumnFilter.vue' import { ActiveViewInj, IsLockedInj, - IsPublicInj, computed, inject, ref, useGlobal, useMenuCloseOnEsc, - useNuxtApp, useSmartsheetStoreOrThrow, useViewFilters, watch, @@ -21,14 +19,12 @@ const isLocked = inject(IsLockedInj, ref(false)) const activeView = inject(ActiveViewInj, ref()) -const isPublic = inject(IsPublicInj, ref(false)) +// const isPublic = inject(IsPublicInj, ref(false)) const { filterAutoSave, isMobileMode } = useGlobal() const filterComp = ref() -const { $e } = useNuxtApp() - const { nestedFilters } = useSmartsheetStoreOrThrow() // todo: avoid duplicate api call by keeping a filter store diff --git a/packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue b/packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue index 5e82426ca9..6008b7fe98 100644 --- a/packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue +++ b/packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue @@ -350,7 +350,7 @@ useMenuCloseOnEsc(open) No fields found
-