Browse Source

chore(nc-gui): lint

pull/6912/head
աɨռɢӄաօռɢ 1 year ago
parent
commit
bbc8e40e3c
  1. 2
      packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue
  2. 3
      packages/nc-gui/components/dashboard/TreeView/TableList.vue
  3. 3
      packages/nc-gui/components/dashboard/TreeView/TableNode.vue
  4. 3
      packages/nc-gui/components/dashboard/TreeView/index.vue
  5. 2
      packages/nc-gui/components/dlg/QuickImport.vue
  6. 2
      packages/nc-gui/components/workspace/ProjectList.vue
  7. 3
      packages/nc-gui/composables/useGlobal/actions.ts

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

@ -26,6 +26,7 @@ import {
useDialog,
useGlobal,
useI18n,
useNuxtApp,
useRoles,
useRouter,
useTablesStore,
@ -33,7 +34,6 @@ import {
useToggle,
} from '#imports'
import type { NcProject } from '#imports'
import { useNuxtApp } from '#imports'
const indicator = h(LoadingOutlined, {
class: '!text-gray-400',

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

@ -3,8 +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 '#imports'
import { toRef } from '#imports'
import { toRef, useNuxtApp } from '#imports'
const props = withDefaults(
defineProps<{

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

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

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

@ -18,11 +18,10 @@ import {
useDialog,
useNuxtApp,
useRoles,
useRouter,
useTablesStore,
} from '#imports'
import { useRouter } from '#imports'
const { isUIAllowed } = useRoles()
const { $e } = useNuxtApp()

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

@ -31,12 +31,12 @@ import {
useBase,
useGlobal,
useI18n,
useNuxtApp,
useVModel,
} from '#imports'
// import worker script according to the doc of Vite
import importWorkerUrl from '~/workers/importWorker?worker&url'
import { useNuxtApp } from '#imports'
interface Props {
modelValue: boolean

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

@ -15,10 +15,10 @@ import {
timeAgo,
useBases,
useGlobal,
useNuxtApp,
useRoles,
useWorkspace,
} from '#imports'
import { useNuxtApp } from '#imports'
const workspaceStore = useWorkspace()

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

@ -1,8 +1,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 '#imports'
import { message, navigateTo, useNuxtApp } from '#imports'
export function useGlobalActions(state: State): Actions {
const setIsMobileMode = (isMobileMode: boolean) => {

Loading…
Cancel
Save