|
|
@ -10,10 +10,27 @@ import { |
|
|
|
ProjectInj, |
|
|
|
ProjectInj, |
|
|
|
ProjectRoleInj, |
|
|
|
ProjectRoleInj, |
|
|
|
ToggleDialogInj, |
|
|
|
ToggleDialogInj, |
|
|
|
|
|
|
|
TreeViewInj, |
|
|
|
|
|
|
|
computed, |
|
|
|
extractSdkResponseErrorMsg, |
|
|
|
extractSdkResponseErrorMsg, |
|
|
|
|
|
|
|
h, |
|
|
|
|
|
|
|
inject, |
|
|
|
|
|
|
|
navigateTo, |
|
|
|
openLink, |
|
|
|
openLink, |
|
|
|
|
|
|
|
ref, |
|
|
|
|
|
|
|
resolveComponent, |
|
|
|
storeToRefs, |
|
|
|
storeToRefs, |
|
|
|
|
|
|
|
useBase, |
|
|
|
useBases, |
|
|
|
useBases, |
|
|
|
|
|
|
|
useCopy, |
|
|
|
|
|
|
|
useDialog, |
|
|
|
|
|
|
|
useGlobal, |
|
|
|
|
|
|
|
useI18n, |
|
|
|
|
|
|
|
useRoles, |
|
|
|
|
|
|
|
useRouter, |
|
|
|
|
|
|
|
useTablesStore, |
|
|
|
|
|
|
|
useTabs, |
|
|
|
|
|
|
|
useToggle, |
|
|
|
} from '#imports' |
|
|
|
} from '#imports' |
|
|
|
import type { NcProject } from '#imports' |
|
|
|
import type { NcProject } from '#imports' |
|
|
|
import { useNuxtApp } from '#app' |
|
|
|
import { useNuxtApp } from '#app' |
|
|
@ -27,10 +44,10 @@ const indicator = h(LoadingOutlined, { |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const router = useRouter() |
|
|
|
const router = useRouter() |
|
|
|
|
|
|
|
|
|
|
|
const route = router.currentRoute |
|
|
|
const route = router.currentRoute |
|
|
|
|
|
|
|
|
|
|
|
const { isSharedBase } = storeToRefs(useBase()) |
|
|
|
const { isSharedBase } = storeToRefs(useBase()) |
|
|
|
const { projectUrl } = useBase() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { setMenuContext, openRenameTableDialog, duplicateTable, contextMenuTarget } = inject(TreeViewInj)! |
|
|
|
const { setMenuContext, openRenameTableDialog, duplicateTable, contextMenuTarget } = inject(TreeViewInj)! |
|
|
|
|
|
|
|
|
|
|
@ -41,9 +58,11 @@ const basesStore = useBases() |
|
|
|
const { isMobileMode } = useGlobal() |
|
|
|
const { isMobileMode } = useGlobal() |
|
|
|
|
|
|
|
|
|
|
|
const { loadProject, loadProjects, createProject: _createProject, updateProject, getProjectMetaInfo } = basesStore |
|
|
|
const { loadProject, loadProjects, createProject: _createProject, updateProject, getProjectMetaInfo } = basesStore |
|
|
|
|
|
|
|
|
|
|
|
const { bases } = storeToRefs(basesStore) |
|
|
|
const { bases } = storeToRefs(basesStore) |
|
|
|
|
|
|
|
|
|
|
|
const { loadProjectTables } = useTablesStore() |
|
|
|
const { loadProjectTables } = useTablesStore() |
|
|
|
|
|
|
|
|
|
|
|
const { activeTable } = storeToRefs(useTablesStore()) |
|
|
|
const { activeTable } = storeToRefs(useTablesStore()) |
|
|
|
|
|
|
|
|
|
|
|
const { appInfo, navigateToProject } = useGlobal() |
|
|
|
const { appInfo, navigateToProject } = useGlobal() |
|
|
|