Browse Source

fix: import nuxt composables from #imports

pull/6912/head
Daniel Roe 1 year ago
parent
commit
032c60d7b6
  1. 2
      packages/nc-gui/components/account/License.vue
  2. 2
      packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue
  3. 2
      packages/nc-gui/components/dashboard/TreeView/TableList.vue
  4. 2
      packages/nc-gui/components/dashboard/TreeView/TableNode.vue
  5. 2
      packages/nc-gui/components/dashboard/TreeView/index.vue
  6. 2
      packages/nc-gui/components/dlg/QuickImport.vue
  7. 2
      packages/nc-gui/components/workspace/ProjectList.vue
  8. 2
      packages/nc-gui/composables/useGlobal/actions.ts
  9. 2
      packages/nc-gui/composables/useGlobal/index.ts
  10. 2
      packages/nc-gui/helpers/parsers/JSONUrlTemplateAdapter.ts
  11. 2
      packages/nc-gui/plugins/state.ts

2
packages/nc-gui/components/account/License.vue

@ -1,5 +1,5 @@
<script lang="ts" setup>
import { useNuxtApp } from '#app'
import { useNuxtApp } from '#imports'
import { message } from 'ant-design-vue'
import { extractSdkResponseErrorMsg, useApi, useGlobal } from '#imports'

2
packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue

@ -33,7 +33,7 @@ import {
useToggle,
} from '#imports'
import type { NcProject } from '#imports'
import { useNuxtApp } from '#app'
import { useNuxtApp } from '#imports'
const indicator = h(LoadingOutlined, {
class: '!text-gray-400',

2
packages/nc-gui/components/dashboard/TreeView/TableList.vue

@ -3,7 +3,7 @@ import type { BaseType, TableType } from 'nocodb-sdk'
import { storeToRefs } from 'pinia'
import Sortable from 'sortablejs'
import TableNode from './TableNode.vue'
import { useNuxtApp } from '#app'
import { useNuxtApp } from '#imports'
import { toRef } from '#imports'
const props = withDefaults(

2
packages/nc-gui/components/dashboard/TreeView/TableNode.vue

@ -4,7 +4,7 @@ import { toRef } from '@vue/reactivity'
import { message } from 'ant-design-vue'
import { storeToRefs } from 'pinia'
import { useNuxtApp } from '#app'
import { useNuxtApp } from '#imports'
import { ProjectRoleInj, TreeViewInj, useRoles, useTabs } from '#imports'
const props = withDefaults(

2
packages/nc-gui/components/dashboard/TreeView/index.vue

@ -21,7 +21,7 @@ import {
useTablesStore,
} from '#imports'
import { useRouter } from '#app'
import { useRouter } from '#imports'
const { isUIAllowed } = useRoles()

2
packages/nc-gui/components/dlg/QuickImport.vue

@ -36,7 +36,7 @@ import {
// import worker script according to the doc of Vite
import importWorkerUrl from '~/workers/importWorker?worker&url'
import { useNuxtApp } from '#app'
import { useNuxtApp } from '#imports'
interface Props {
modelValue: boolean

2
packages/nc-gui/components/workspace/ProjectList.vue

@ -18,7 +18,7 @@ import {
useRoles,
useWorkspace,
} from '#imports'
import { useNuxtApp } from '#app'
import { useNuxtApp } from '#imports'
const workspaceStore = useWorkspace()

2
packages/nc-gui/composables/useGlobal/actions.ts

@ -2,7 +2,7 @@ import { getActivePinia } from 'pinia'
import type { Actions, AppInfo, State } from './types'
import type { NcProjectType } from '#imports'
import { message, useNuxtApp } from '#imports'
import { navigateTo } from '#app'
import { navigateTo } from '#imports'
export function useGlobalActions(state: State): Actions {
const setIsMobileMode = (isMobileMode: boolean) => {

2
packages/nc-gui/composables/useGlobal/index.ts

@ -16,7 +16,7 @@ export * from './types'
*
* @example
* ```js
* import { useNuxtApp } from '#app'
* import { useNuxtApp } from '#imports'
*
* const { $state } = useNuxtApp()
*

2
packages/nc-gui/helpers/parsers/JSONUrlTemplateAdapter.ts

@ -1,6 +1,6 @@
import type { Api } from 'nocodb-sdk'
import JSONTemplateAdapter from './JSONTemplateAdapter'
// import { useNuxtApp } from '#app'
// import { useNuxtApp } from '#imports'
export default class JSONUrlTemplateAdapter extends JSONTemplateAdapter {
url: string

2
packages/nc-gui/plugins/state.ts

@ -6,7 +6,7 @@ import { loadLocaleMessages, setI18nLanguage } from '~/plugins/a.i18n'
*
* @example
* ```js
* import { useNuxtApp } from '#app'
* import { useNuxtApp } from '#imports'
*
* const { $state } = useNuxtApp()
*

Loading…
Cancel
Save