From 55259c89b924b178e16274ae1253c933ba16cba7 Mon Sep 17 00:00:00 2001 From: WK Wong Date: Tue, 3 Oct 2023 11:24:03 +0800 Subject: [PATCH 1/7] chore(nc-gui): lint --- .../nc-gui/components/cell/MultiSelect.vue | 2 +- .../nc-gui/components/cell/SingleSelect.vue | 2 +- .../components/cell/attachment/utils.ts | 2 +- .../dashboard/TreeView/BaseOptions.vue | 2 +- .../dashboard/TreeView/ProjectNode.vue | 20 +++++++++---------- .../dashboard/TreeView/TableNode.vue | 2 +- .../components/dashboard/TreeView/index.vue | 4 ++-- .../dashboard/settings/AuditTab.vue | 2 +- .../dashboard/settings/BaseAudit.vue | 2 +- .../dashboard/settings/DataSources.vue | 4 ++-- .../dashboard/settings/Metadata.vue | 2 +- .../components/dashboard/settings/Misc.vue | 2 +- .../components/dashboard/settings/UIAcl.vue | 2 +- .../settings/data-sources/CreateBase.vue | 11 ++-------- .../settings/data-sources/EditBase.vue | 11 ++-------- .../nc-gui/components/dlg/AirtableImport.vue | 2 +- .../nc-gui/components/dlg/QuickImport.vue | 2 +- .../nc-gui/components/dlg/TableRename.vue | 2 +- .../dlg/share-and-collaborate/ShareBase.vue | 6 ++++-- packages/nc-gui/components/erd/View.vue | 8 +++++--- .../components/general/HelpAndSupport.vue | 2 +- .../nc-gui/components/general/MiniSidebar.vue | 2 +- .../nc-gui/components/shared-view/Grid.vue | 2 +- .../components/smartsheet/ApiSnippet.vue | 2 +- .../nc-gui/components/smartsheet/Cell.vue | 2 +- .../smartsheet/column/AdvancedOptions.vue | 2 +- .../smartsheet/column/EditOrAdd.vue | 2 +- .../smartsheet/column/LookupOptions.vue | 2 +- .../smartsheet/column/RollupOptions.vue | 2 +- .../components/smartsheet/details/Api.vue | 2 +- .../smartsheet/toolbar/ExportSubActions.vue | 2 +- .../smartsheet/toolbar/MoreActions.vue | 2 +- .../smartsheet/toolbar/ShareView.vue | 4 ++-- .../smartsheet/toolbar/ViewActions.vue | 2 +- .../tabs/auth/ApiTokenManagement.vue | 2 +- .../components/tabs/auth/UserManagement.vue | 2 +- .../tabs/auth/user-management/ShareBase.vue | 11 +++++++--- .../tabs/auth/user-management/UsersModal.vue | 2 +- .../nc-gui/components/template/Editor.vue | 6 ++---- .../components/workspace/CreateProjectDlg.vue | 2 +- .../composables/useColumnCreateStore.ts | 6 ++++-- packages/nc-gui/composables/useData.ts | 2 +- .../composables/useExpandedFormStore.ts | 2 +- .../nc-gui/composables/useKanbanViewStore.ts | 2 +- packages/nc-gui/composables/useLTARStore.ts | 2 +- .../nc-gui/composables/useMapViewDataStore.ts | 2 +- packages/nc-gui/composables/useMetas.ts | 2 +- .../composables/useMultiSelect/index.ts | 2 +- .../composables/useSharedFormViewStore.ts | 2 +- .../composables/useSmartsheetRowStore.ts | 2 +- .../nc-gui/composables/useSmartsheetStore.ts | 12 +---------- packages/nc-gui/composables/useTable.ts | 2 +- packages/nc-gui/composables/useTableNew.ts | 2 +- packages/nc-gui/composables/useViewColumns.ts | 2 +- packages/nc-gui/composables/useViewData.ts | 2 +- packages/nc-gui/composables/useViewFilters.ts | 2 +- packages/nc-gui/composables/useViewSorts.ts | 2 +- packages/nc-gui/lib/types.ts | 2 +- .../pages/index/[typeOrId]/[baseId]/index.vue | 2 +- .../index/index/[viewId]/[[viewTitle]].vue | 2 +- .../[typeOrId]/[baseId]/index/index/index.vue | 2 +- .../[typeOrId]/shared/[erdUuid]/index.vue | 2 +- packages/nc-gui/pages/projects/index/list.vue | 6 +----- packages/nc-gui/store/base.ts | 4 ++-- packages/nc-gui/store/bases.ts | 6 ++---- packages/nc-gui/store/tab.ts | 2 +- packages/nc-gui/store/workspace.ts | 2 +- 67 files changed, 101 insertions(+), 122 deletions(-) diff --git a/packages/nc-gui/components/cell/MultiSelect.vue b/packages/nc-gui/components/cell/MultiSelect.vue index 0e4bbdc523..a93eebd236 100644 --- a/packages/nc-gui/components/cell/MultiSelect.vue +++ b/packages/nc-gui/components/cell/MultiSelect.vue @@ -23,9 +23,9 @@ import { onMounted, reactive, ref, + useBase, useEventListener, useMetas, - useBase, useRoles, useSelectedCellKeyupListener, watch, diff --git a/packages/nc-gui/components/cell/SingleSelect.vue b/packages/nc-gui/components/cell/SingleSelect.vue index 3851b81cd1..f671553f7c 100644 --- a/packages/nc-gui/components/cell/SingleSelect.vue +++ b/packages/nc-gui/components/cell/SingleSelect.vue @@ -20,8 +20,8 @@ import { inject, isDrawerOrModalExist, ref, - useEventListener, useBase, + useEventListener, useRoles, useSelectedCellKeyupListener, watch, diff --git a/packages/nc-gui/components/cell/attachment/utils.ts b/packages/nc-gui/components/cell/attachment/utils.ts index 6d8483cae4..02a6f5fbe2 100644 --- a/packages/nc-gui/components/cell/attachment/utils.ts +++ b/packages/nc-gui/components/cell/attachment/utils.ts @@ -17,10 +17,10 @@ import { storeToRefs, useApi, useAttachment, + useBase, useFileDialog, useI18n, useInjectionState, - useBase, watch, } from '#imports' import MdiPdfBox from '~icons/mdi/pdf-box' diff --git a/packages/nc-gui/components/dashboard/TreeView/BaseOptions.vue b/packages/nc-gui/components/dashboard/TreeView/BaseOptions.vue index 132dc56c02..32a591b0f2 100644 --- a/packages/nc-gui/components/dashboard/TreeView/BaseOptions.vue +++ b/packages/nc-gui/components/dashboard/TreeView/BaseOptions.vue @@ -1,5 +1,5 @@