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