Browse Source

refactor(gui-v2): group module imports

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2860/head
Pranav C 2 years ago
parent
commit
828b830aa8
  1. 1
      packages/nc-gui-v2/components/smartsheet-toolbar/DeleteTable.vue
  2. 2
      packages/nc-gui-v2/components/smartsheet-toolbar/ShareView.vue
  3. 3
      packages/nc-gui-v2/components/smartsheet-toolbar/SharedViewList.vue
  4. 3
      packages/nc-gui-v2/components/tabs/Smartsheet.vue
  5. 2
      packages/nc-gui-v2/composables/useDashboard.ts

1
packages/nc-gui-v2/components/smartsheet-toolbar/DeleteTable.vue

@ -17,4 +17,3 @@ const { deleteTable } = useDeleteTable()
</div>
</a-tooltip>
</template>

2
packages/nc-gui-v2/components/smartsheet-toolbar/ShareView.vue

@ -4,7 +4,7 @@ import { ViewTypes } from 'nocodb-sdk'
import { computed } from 'vue'
import { useToast } from 'vue-toastification'
import { useNuxtApp } from '#app'
import { useSmartsheetStoreOrThrow } from '~/composables/useSmartsheetStore'
import { useSmartsheetStoreOrThrow } from '#imports'
import { extractSdkResponseErrorMsg } from '~/utils/errorUtils'
import MdiOpenInNewIcon from '~icons/mdi/open-in-new'
import MdiCopyIcon from '~icons/mdi/content-copy'

3
packages/nc-gui-v2/components/smartsheet-toolbar/SharedViewList.vue

@ -3,8 +3,7 @@ import { useClipboard } from '@vueuse/core'
import { ViewTypes } from 'nocodb-sdk'
import { useToast } from 'vue-toastification'
import { useRoute } from '#app'
import { onMounted } from '#imports'
import { useSmartsheetStoreOrThrow } from '~/composables/useSmartsheetStore'
import { onMounted, useSmartsheetStoreOrThrow } from '#imports'
import { extractSdkResponseErrorMsg } from '~/utils/errorUtils'
import MdiVisibilityOnIcon from '~icons/mdi/visibility'
import MdiVisibilityOffIcon from '~icons/mdi/visibility-off'

3
packages/nc-gui-v2/components/tabs/Smartsheet.vue

@ -3,8 +3,7 @@ import type { ColumnType, TableType, ViewType } from 'nocodb-sdk'
import { ViewTypes } from 'nocodb-sdk'
import type { Ref } from 'vue'
import SmartsheetGrid from '../smartsheet/Grid.vue'
import { computed, inject, provide, useMetas, watch, watchEffect } from '#imports'
import { useProvideSmartsheetStore } from '~/composables/useSmartsheetStore'
import { computed, inject, provide, useMetas, useProvideSmartsheetStore, watch, watchEffect } from '#imports'
import { ActiveViewInj, FieldsInj, IsLockedInj, MetaInj, ReloadViewDataHookInj, RightSidebarInj, TabMetaInj } from '~/context'
import type { TabItem } from '~/composables'

2
packages/nc-gui-v2/composables/useDashboard.ts

@ -1,4 +1,4 @@
export default () => {
export function useDashboard() {
const route = useRoute()
const dashboardUrl = computed(() => {
// todo: test in different scenarios

Loading…
Cancel
Save