|
|
@ -7,6 +7,7 @@ import { checkSlash, checkSpecialChars } from '@remix-ui/helper' |
|
|
|
import { JSONStandardInput, WorkspaceTemplate } from '../types' |
|
|
|
import { JSONStandardInput, WorkspaceTemplate } from '../types' |
|
|
|
import { QueryParams } from '@remix-project/remix-lib' |
|
|
|
import { QueryParams } from '@remix-project/remix-lib' |
|
|
|
import * as templateWithContent from '@remix-project/remix-ws-templates' |
|
|
|
import * as templateWithContent from '@remix-project/remix-ws-templates' |
|
|
|
|
|
|
|
import { ROOT_PATH } from '../utils/constants' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const LOCALHOST = ' - connect to localhost - ' |
|
|
|
const LOCALHOST = ' - connect to localhost - ' |
|
|
@ -346,7 +347,7 @@ export const cloneRepository = async (url: string) => { |
|
|
|
const isActive = await plugin.call('manager', 'isActive', 'dgit') |
|
|
|
const isActive = await plugin.call('manager', 'isActive', 'dgit') |
|
|
|
|
|
|
|
|
|
|
|
if (!isActive) await plugin.call('manager', 'activatePlugin', 'dgit') |
|
|
|
if (!isActive) await plugin.call('manager', 'activatePlugin', 'dgit') |
|
|
|
await fetchWorkspaceDirectory('/') |
|
|
|
await fetchWorkspaceDirectory(ROOT_PATH) |
|
|
|
dispatch(cloneRepositorySuccess()) |
|
|
|
dispatch(cloneRepositorySuccess()) |
|
|
|
}).catch(() => { |
|
|
|
}).catch(() => { |
|
|
|
const cloneModal = { |
|
|
|
const cloneModal = { |
|
|
|