Browse Source

chore(gui-v2): imports cleanup

pull/3025/head
braks 2 years ago
parent
commit
d30fa7f2fe
  1. 5
      packages/nc-gui-v2/components/smartsheet-header/VirtualCell.vue
  2. 1
      packages/nc-gui-v2/components/smartsheet/Grid.vue
  3. 13
      packages/nc-gui-v2/components/smartsheet/expanded-form/index.vue
  4. 1
      packages/nc-gui-v2/tsconfig.json

5
packages/nc-gui-v2/components/smartsheet-header/VirtualCell.vue

@ -1,12 +1,9 @@
<script setup lang="ts">
import { substituteColumnIdWithAliasInFormula } from 'nocodb-sdk'
import type { ColumnType, FormulaType, LinkToAnotherRecordType, LookupType, RollupType, TableType } from 'nocodb-sdk'
import { toRef } from 'vue'
import { $computed } from 'vue/macros'
import type { Ref } from 'vue'
import { useMetas } from '~/composables'
import { ColumnInj, IsFormInj, MetaInj } from '~/context'
import { provide, useProvideColumnCreateStore } from '#imports'
import { provide, toRef, useMetas, useProvideColumnCreateStore } from '#imports'
const props = defineProps<{ column: ColumnType & { meta: any }; hideMenu?: boolean }>()
const column = toRef(props, 'column')

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

@ -29,7 +29,6 @@ import {
ReloadViewDataHookInj,
} from '~/context'
import { NavigateDir } from '~/lib'
import { enumColor } from '~/utils'
const meta = inject(MetaInj)

13
packages/nc-gui-v2/components/smartsheet/expanded-form/index.vue

@ -1,13 +1,20 @@
<script setup lang="ts">
import { computedInject } from '@vueuse/core'
import type { ColumnType, TableType } from 'nocodb-sdk'
import { isVirtualCol } from 'nocodb-sdk'
import Comments from './Comments.vue'
import Header from './Header.vue'
import { provide, toRef, useProvideExpandedFormStore, useProvideSmartsheetStore, useVModel, watch } from '#imports'
import {
computedInject,
provide,
toRef,
useNuxtApp,
useProvideExpandedFormStore,
useProvideSmartsheetStore,
useVModel,
watch,
} from '#imports'
import { NOCO } from '~/lib'
import { extractPkFromRow } from '~/utils'
import { useNuxtApp } from '#app'
import type { Row } from '~/composables'
import { FieldsInj, IsFormInj, MetaInj } from '~/context'

1
packages/nc-gui-v2/tsconfig.json

@ -11,7 +11,6 @@
"strictNullChecks": true,
"forceConsistentCasingInFileNames": true,
"types": [
"@nuxt/types",
"@intlify/vite-plugin-vue-i18n/client",
"vue-i18n",
"unplugin-icons/types/vue",

Loading…
Cancel
Save