|
|
|
@ -7,7 +7,7 @@ import { FileSystemContext } from '../contexts' |
|
|
|
|
import { browserReducer, browserInitialState } from '../reducers/workspace' |
|
|
|
|
import { initWorkspace, fetchDirectory, removeInputField, deleteWorkspace, deleteAllWorkspaces, clearPopUp, publishToGist, createNewFile, setFocusElement, createNewFolder, |
|
|
|
|
deletePath, renamePath, downloadPath, copyFile, copyFolder, runScript, emitContextMenuEvent, handleClickFile, handleExpandPath, addInputField, createWorkspace, |
|
|
|
|
fetchWorkspaceDirectory, renameWorkspace, switchToWorkspace, uploadFile, handleDownloadFiles, restoreBackupZip, cloneRepository, moveFile, moveFolder, |
|
|
|
|
fetchWorkspaceDirectory, renameWorkspace, switchToWorkspace, uploadFile, uploadFolder, handleDownloadFiles, restoreBackupZip, cloneRepository, moveFile, moveFolder, |
|
|
|
|
showAllBranches, switchBranch, createNewBranch, checkoutRemoteBranch, createSolidityGithubAction, createTsSolGithubAction, createSlitherGithubAction |
|
|
|
|
} from '../actions' |
|
|
|
|
import { Modal, WorkspaceProps, WorkspaceTemplate } from '../types' |
|
|
|
@ -79,6 +79,10 @@ export const FileSystemProvider = (props: WorkspaceProps) => { |
|
|
|
|
await uploadFile(target, targetFolder) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const dispatchUploadFolder = async (target?: SyntheticEvent, targetFolder?: string) => { |
|
|
|
|
await uploadFolder(target, targetFolder) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const dispatchCreateNewFile = async (path: string, rootDir: string) => { |
|
|
|
|
await createNewFile(path, rootDir) |
|
|
|
|
} |
|
|
|
@ -265,6 +269,7 @@ export const FileSystemProvider = (props: WorkspaceProps) => { |
|
|
|
|
dispatchDeleteAllWorkspaces, |
|
|
|
|
dispatchPublishToGist, |
|
|
|
|
dispatchUploadFile, |
|
|
|
|
dispatchUploadFolder, |
|
|
|
|
dispatchCreateNewFile, |
|
|
|
|
dispatchSetFocusElement, |
|
|
|
|
dispatchCreateNewFolder, |
|
|
|
|