Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

chore(nc-gui): lint

Ramesh Mane998371871f3b
diff --git a/packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue b/packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue
index 95163e6109..12ca149c46 100644
--- a/packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue
+++ b/packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue
@@ -568,8 +568,8 @@ const handleScrollIntoView = () => {
:link="true"
:root-meta="meta"
:link-col-id="vModel.id"
- @addFilter="handleScrollIntoView"
- @addFilterGroup="handleScrollIntoView"
+ @add-filter="handleScrollIntoView"
+ @add-filter-group="handleScrollIntoView"
/>
</div>
</div>
diff --git a/packages/nc-gui/components/smartsheet/column/LookupOptions.vue b/packages/nc-gui/components/smartsheet/column/LookupOptions.vue
index 39abf9d9b7..b4a131f325 100644
--- a/packages/nc-gui/components/smartsheet/column/LookupOptions.vue
+++ b/packages/nc-gui/components/smartsheet/column/LookupOptions.vue
@@ -370,8 +370,8 @@ const handleScrollIntoView = () => {
:show-dynamic-condition="false"
:root-meta="meta"
:link-col-id="vModel.id"
- @addFilter="handleScrollIntoView"
- @addFilterGroup="handleScrollIntoView"
+ @add-filter="handleScrollIntoView"
+ @add-filter-group="handleScrollIntoView"
/>
</div>
</div>
diff --git a/packages/nc-gui/components/smartsheet/column/RollupOptions.vue b/packages/nc-gui/components/smartsheet/column/RollupOptions.vue
index 1d9ca865ae..436deacf78 100644
--- a/packages/nc-gui/components/smartsheet/column/RollupOptions.vue
+++ b/packages/nc-gui/components/smartsheet/column/RollupOptions.vue
@@ -482,8 +482,8 @@ const handleScrollIntoView = () => {
:show-dynamic-condition="false"
:root-meta="meta"
:link-col-id="vModel.id"
- @addFilter="handleScrollIntoView"
- @addFilterGroup="handleScrollIntoView"
+ @add-filter="handleScrollIntoView"
+ @add-filter-group="handleScrollIntoView"
/>
</div>
</div>
diff --git a/packages/nc-gui/composables/useFieldQuery.ts b/packages/nc-gui/composables/useFieldQuery.ts
index 4ff104a470..1e7938e721 100644
--- a/packages/nc-gui/composables/useFieldQuery.ts
+++ b/packages/nc-gui/composables/useFieldQuery.ts
@@ -1,4 +1,4 @@
-import { ColumnHelper, FormulaDataTypes, isNumericCol, isVirtualCol, UITypes, type ColumnType, type TableType } from 'nocodb-sdk'
+import { ColumnHelper, type ColumnType, FormulaDataTypes, type TableType, UITypes, isNumericCol, isVirtualCol } from 'nocodb-sdk'
export function useFieldQuery() {
const baseStore = useBase()
diff --git a/packages/nc-gui/composables/useSmartsheetStore.ts b/packages/nc-gui/composables/useSmartsheetStore.ts
index b210cc7cbd..2ee374328e 100644
--- a/packages/nc-gui/composables/useSmartsheetStore.ts
+++ b/packages/nc-gui/composables/useSmartsheetStore.ts
@@ -1,15 +1,5 @@
import type { ColumnType, FilterType, KanbanType, SortType, TableType, ViewType } from 'nocodb-sdk'
-import {
- ColumnHelper,
- FormulaDataTypes,
- NcApiVersion,
- UITypes,
- ViewLockType,
- ViewTypes,
- extractFilterFromXwhere,
- isNumericCol,
- isVirtualCol,
-} from 'nocodb-sdk'
+import { NcApiVersion, ViewLockType, ViewTypes, extractFilterFromXwhere } from 'nocodb-sdk'
import type { Ref } from 'vue'
import { EventBusEnum, type SmartsheetStoreEvents } from '#imports'
@@ -31,14 +21,10 @@ const [useProvideSmartsheetStore, useSmartsheetStore] = useInjectionState(
const { user, isMobileMode } = useGlobal()
- const { metas } = useMetas()
-
const { activeView: view, activeNestedFilters, activeSorts } = storeToRefs(useViewsStore())
const baseStore = useBase()
- const { isMysql, isPg } = baseStore
-
const { sqlUis, base } = storeToRefs(baseStore)
const sqlUi = computed(() =>
@@ -125,7 +111,7 @@ const [useProvideSmartsheetStore, useSmartsheetStore] = useInjectionState(
if (!search.value.query.trim()) return where
- let searchQuery = search.value.query.trim()
+ const searchQuery = search.value.query.trim()
const colWhereQuery = getValidSearchQueryForColumn(col, searchQuery, meta.value as TableType, true)