Browse Source

fix: lint errors

pull/7376/head
Ramesh Mane 11 months ago
parent
commit
7a569443a1
  1. 2
      packages/nc-gui/components/smartsheet/VirtualCell.vue
  2. 2
      packages/nc-gui/components/smartsheet/grid/GroupByLabel.vue
  3. 3
      packages/nc-gui/components/virtual-cell/components/ListChildItems.vue
  4. 2
      packages/nc-gui/components/virtual-cell/components/ListItems.vue
  5. 10
      packages/nc-gui/composables/useLTARStore.ts

2
packages/nc-gui/components/smartsheet/VirtualCell.vue

@ -20,11 +20,11 @@ import {
isLink, isLink,
isLookup, isLookup,
isMm, isMm,
isPrimary,
isQrCode, isQrCode,
isRollup, isRollup,
provide, provide,
toRef, toRef,
isPrimary,
} from '#imports' } from '#imports'
import type { Row } from '#imports' import type { Row } from '#imports'

2
packages/nc-gui/components/smartsheet/grid/GroupByLabel.vue

@ -1,7 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
import type { ColumnType } from 'nocodb-sdk' import type { ColumnType } from 'nocodb-sdk'
import { isVirtualCol } from 'nocodb-sdk' import { isVirtualCol } from 'nocodb-sdk'
import { ReadonlyInj, IsGroupByLabelInj } from '#imports' import { IsGroupByLabelInj, ReadonlyInj } from '#imports'
defineProps<{ defineProps<{
column: ColumnType column: ColumnType

3
packages/nc-gui/components/virtual-cell/components/ListChildItems.vue

@ -55,10 +55,9 @@ const {
isChildrenListLinked, isChildrenListLinked,
isChildrenLoading, isChildrenLoading,
relatedTableMeta, relatedTableMeta,
row,
link, link,
meta, meta,
headerDisplayValue headerDisplayValue,
} = useLTARStoreOrThrow() } = useLTARStoreOrThrow()
const { isNew, state, removeLTARRef, addLTARRef } = useSmartsheetRowStoreOrThrow() const { isNew, state, removeLTARRef, addLTARRef } = useSmartsheetRowStoreOrThrow()

2
packages/nc-gui/components/virtual-cell/components/ListItems.vue

@ -49,7 +49,7 @@ const {
meta, meta,
unlink, unlink,
row, row,
headerDisplayValue headerDisplayValue,
} = useLTARStoreOrThrow() } = useLTARStoreOrThrow()
const { addLTARRef, isNew, removeLTARRef, state: rowState } = useSmartsheetRowStoreOrThrow() const { addLTARRef, isNew, removeLTARRef, state: rowState } = useSmartsheetRowStoreOrThrow()

10
packages/nc-gui/composables/useLTARStore.ts

@ -1,13 +1,13 @@
import { import {
UITypes,
type ColumnType, type ColumnType,
type LinkToAnotherRecordType, type LinkToAnotherRecordType,
type PaginatedType, type PaginatedType,
type RequestParams, type RequestParams,
type TableType, type TableType,
UITypes,
dateFormats, dateFormats,
timeFormats,
parseStringDateTime, parseStringDateTime,
timeFormats,
} from 'nocodb-sdk' } from 'nocodb-sdk'
import type { ComputedRef, Ref } from 'vue' import type { ComputedRef, Ref } from 'vue'
import { import {
@ -19,6 +19,7 @@ import {
extractSdkResponseErrorMsg, extractSdkResponseErrorMsg,
inject, inject,
message, message,
parseProp,
reactive, reactive,
ref, ref,
storeToRefs, storeToRefs,
@ -30,7 +31,6 @@ import {
useRouter, useRouter,
useSharedView, useSharedView,
watch, watch,
parseProp,
} from '#imports' } from '#imports'
import type { Row } from '#imports' import type { Row } from '#imports'
@ -145,7 +145,7 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState(
type: '', type: '',
format: '', format: '',
} }
let currentColumn = relatedTableMeta.value?.columns?.find((c) => c.pv) || relatedTableMeta?.value?.columns?.[0] const currentColumn = relatedTableMeta.value?.columns?.find((c) => c.pv) || relatedTableMeta?.value?.columns?.[0]
if (currentColumn) { if (currentColumn) {
if (currentColumn?.uidt === UITypes.DateTime) { if (currentColumn?.uidt === UITypes.DateTime) {
@ -545,7 +545,7 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState(
isChildrenExcludedLoading, isChildrenExcludedLoading,
deleteRelatedRow, deleteRelatedRow,
getRelatedTableRowId, getRelatedTableRowId,
headerDisplayValue headerDisplayValue,
} }
}, },
'ltar-store', 'ltar-store',

Loading…
Cancel
Save