|
|
@ -7,7 +7,7 @@ import { FileSystemContext } from '../contexts' |
|
|
|
import { browserReducer, browserInitialState } from '../reducers/workspace' |
|
|
|
import { browserReducer, browserInitialState } from '../reducers/workspace' |
|
|
|
import { initWorkspace, fetchDirectory, removeInputField, deleteWorkspace, deleteAllWorkspaces, clearPopUp, publishToGist, createNewFile, setFocusElement, createNewFolder, |
|
|
|
import { initWorkspace, fetchDirectory, removeInputField, deleteWorkspace, deleteAllWorkspaces, clearPopUp, publishToGist, createNewFile, setFocusElement, createNewFolder, |
|
|
|
deletePath, renamePath, downloadPath, copyFile, copyFolder, runScript, emitContextMenuEvent, handleClickFile, handleExpandPath, addInputField, createWorkspace, |
|
|
|
deletePath, renamePath, downloadPath, copyFile, copyFolder, runScript, emitContextMenuEvent, handleClickFile, handleExpandPath, addInputField, createWorkspace, |
|
|
|
fetchWorkspaceDirectory, renameWorkspace, switchToWorkspace, uploadFile, uploadFolder, handleDownloadFiles, restoreBackupZip, cloneRepository, moveFile, moveFolder, |
|
|
|
fetchWorkspaceDirectory, renameWorkspace, switchToWorkspace, uploadFile, uploadFolder, handleDownloadWorkspace, handleDownloadFiles, restoreBackupZip, cloneRepository, moveFile, moveFolder, |
|
|
|
showAllBranches, switchBranch, createNewBranch, checkoutRemoteBranch, createSolidityGithubAction, createTsSolGithubAction, createSlitherGithubAction |
|
|
|
showAllBranches, switchBranch, createNewBranch, checkoutRemoteBranch, createSolidityGithubAction, createTsSolGithubAction, createSlitherGithubAction |
|
|
|
} from '../actions' |
|
|
|
} from '../actions' |
|
|
|
import { Modal, WorkspaceProps, WorkspaceTemplate } from '../types' |
|
|
|
import { Modal, WorkspaceProps, WorkspaceTemplate } from '../types' |
|
|
@ -135,6 +135,10 @@ export const FileSystemProvider = (props: WorkspaceProps) => { |
|
|
|
await handleDownloadFiles() |
|
|
|
await handleDownloadFiles() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const dispatchHandleDownloadWorkspace = async () => { |
|
|
|
|
|
|
|
await handleDownloadWorkspace() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const dispatchHandleRestoreBackup = async () => { |
|
|
|
const dispatchHandleRestoreBackup = async () => { |
|
|
|
await restoreBackupZip() |
|
|
|
await restoreBackupZip() |
|
|
|
} |
|
|
|
} |
|
|
@ -284,6 +288,7 @@ export const FileSystemProvider = (props: WorkspaceProps) => { |
|
|
|
dispatchHandleClickFile, |
|
|
|
dispatchHandleClickFile, |
|
|
|
dispatchHandleExpandPath, |
|
|
|
dispatchHandleExpandPath, |
|
|
|
dispatchHandleDownloadFiles, |
|
|
|
dispatchHandleDownloadFiles, |
|
|
|
|
|
|
|
dispatchHandleDownloadWorkspace, |
|
|
|
dispatchHandleRestoreBackup, |
|
|
|
dispatchHandleRestoreBackup, |
|
|
|
dispatchCloneRepository, |
|
|
|
dispatchCloneRepository, |
|
|
|
dispatchMoveFile, |
|
|
|
dispatchMoveFile, |
|
|
|