Browse Source

refactor(gui-v2): combine imports and remove unused imports

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2990/head
Pranav C 2 years ago
parent
commit
eff8631a02
  1. 3
      packages/nc-gui-v2/components/smartsheet/Grid.vue
  2. 3
      packages/nc-gui-v2/components/virtual-cell/components/ListChildItems.vue
  3. 1
      packages/nc-gui-v2/composables/useLTARStore.ts

3
packages/nc-gui-v2/components/smartsheet/Grid.vue

@ -1,7 +1,6 @@
<script lang="ts" setup> <script lang="ts" setup>
import { ColumnType, isVirtualCol } from 'nocodb-sdk' import { isVirtualCol } from 'nocodb-sdk'
import { import {
Row,
inject, inject,
onKeyStroke, onKeyStroke,
onMounted, onMounted,

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

@ -1,6 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
import { useVModel } from '#imports' import { useLTARStoreOrThrow, useVModel } from '#imports'
import { useLTARStoreOrThrow } from '~/composables'
import MdiReloadIcon from '~icons/mdi/reload' import MdiReloadIcon from '~icons/mdi/reload'
import MdiDeleteIcon from '~icons/mdi/delete-outline' import MdiDeleteIcon from '~icons/mdi/delete-outline'
import MdiUnlinkIcon from '~icons/mdi/link-variant-remove' import MdiUnlinkIcon from '~icons/mdi/link-variant-remove'

1
packages/nc-gui-v2/composables/useLTARStore.ts

@ -11,6 +11,7 @@ interface DataApiResponse {
pageInfo: PaginatedType pageInfo: PaginatedType
} }
/** Store for managing Link to another cells */
const [useProvideLTARStore, useLTARStore] = useInjectionState( const [useProvideLTARStore, useLTARStore] = useInjectionState(
(column: Required<ColumnType>, row?: Ref<Row>, reloadData = () => {}) => { (column: Required<ColumnType>, row?: Ref<Row>, reloadData = () => {}) => {
// state // state

Loading…
Cancel
Save