|
|
@ -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, handleDownloadFiles, restoreBackupZip, cloneRepository, moveFile, moveFolder, |
|
|
|
fetchWorkspaceDirectory, renameWorkspace, switchToWorkspace, uploadFile, uploadFolder, 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' |
|
|
@ -79,6 +79,10 @@ export const FileSystemProvider = (props: WorkspaceProps) => { |
|
|
|
await uploadFile(target, targetFolder) |
|
|
|
await uploadFile(target, targetFolder) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const dispatchUploadFolder = async (target?: SyntheticEvent, targetFolder?: string) => { |
|
|
|
|
|
|
|
await uploadFolder(target, targetFolder) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const dispatchCreateNewFile = async (path: string, rootDir: string) => { |
|
|
|
const dispatchCreateNewFile = async (path: string, rootDir: string) => { |
|
|
|
await createNewFile(path, rootDir) |
|
|
|
await createNewFile(path, rootDir) |
|
|
|
} |
|
|
|
} |
|
|
@ -265,6 +269,7 @@ export const FileSystemProvider = (props: WorkspaceProps) => { |
|
|
|
dispatchDeleteAllWorkspaces, |
|
|
|
dispatchDeleteAllWorkspaces, |
|
|
|
dispatchPublishToGist, |
|
|
|
dispatchPublishToGist, |
|
|
|
dispatchUploadFile, |
|
|
|
dispatchUploadFile, |
|
|
|
|
|
|
|
dispatchUploadFolder, |
|
|
|
dispatchCreateNewFile, |
|
|
|
dispatchCreateNewFile, |
|
|
|
dispatchSetFocusElement, |
|
|
|
dispatchSetFocusElement, |
|
|
|
dispatchCreateNewFolder, |
|
|
|
dispatchCreateNewFolder, |
|
|
|