|
|
|
@ -8,7 +8,7 @@ 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, uploadFolder, handleDownloadWorkspace, handleDownloadFiles, restoreBackupZip, cloneRepository, moveFile, moveFolder, |
|
|
|
|
showAllBranches, switchBranch, createNewBranch, checkoutRemoteBranch, createSolidityGithubAction, createTsSolGithubAction, createSlitherGithubAction, openElectronFolder, getElectronRecentFolders |
|
|
|
|
showAllBranches, switchBranch, createNewBranch, checkoutRemoteBranch, createSolidityGithubAction, createTsSolGithubAction, createSlitherGithubAction, openElectronFolder, getElectronRecentFolders, removeRecentElectronFolder |
|
|
|
|
} from '../actions' |
|
|
|
|
import { Modal, WorkspaceProps, WorkspaceTemplate } from '../types' |
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
@ -193,6 +193,11 @@ export const FileSystemProvider = (props: WorkspaceProps) => { |
|
|
|
|
await getElectronRecentFolders() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const dispatchRemoveRecentFolder = async (path: string) => { |
|
|
|
|
console.log('remove recent folder') |
|
|
|
|
await removeRecentElectronFolder(path) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
dispatchInitWorkspace() |
|
|
|
@ -312,7 +317,8 @@ export const FileSystemProvider = (props: WorkspaceProps) => { |
|
|
|
|
dispatchCreateTsSolGithubAction, |
|
|
|
|
dispatchCreateSlitherGithubAction, |
|
|
|
|
dispatchOpenElectronFolder, |
|
|
|
|
dispatchGetElectronRecentFolders |
|
|
|
|
dispatchGetElectronRecentFolders, |
|
|
|
|
dispatchRemoveRecentFolder |
|
|
|
|
} |
|
|
|
|
return ( |
|
|
|
|
<FileSystemContext.Provider value={value}> |
|
|
|
|