|
|
@ -5,7 +5,7 @@ import { Toaster } from '@remix-ui/toaster' // eslint-disable-line |
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
import { FileSystemContext } from '../contexts' |
|
|
|
import { FileSystemContext } from '../contexts' |
|
|
|
import { browserReducer, browserInitialState } from '../reducers/workspace' |
|
|
|
import { browserReducer, browserInitialState } from '../reducers/workspace' |
|
|
|
import { initWorkspace, fetchDirectory, removeInputField, deleteWorkspace, clearPopUp, publishToGist, createNewFile, setFocusElement, createNewFolder, deletePath, renamePath, copyFile, copyFolder, runScript, runScriptWithMocha, emitContextMenuEvent, handleClickFile, handleExpandPath, addInputField, createWorkspace, fetchWorkspaceDirectory, renameWorkspace, switchToWorkspace, uploadFile } from '../actions' |
|
|
|
import { initWorkspace, fetchDirectory, removeInputField, deleteWorkspace, clearPopUp, publishToGist, createNewFile, setFocusElement, createNewFolder, deletePath, renamePath, copyFile, copyFolder, runScript, emitContextMenuEvent, handleClickFile, handleExpandPath, addInputField, createWorkspace, fetchWorkspaceDirectory, renameWorkspace, switchToWorkspace, uploadFile } from '../actions' |
|
|
|
import { Modal, WorkspaceProps } from '../types' |
|
|
|
import { Modal, WorkspaceProps } from '../types' |
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
import { Workspace } from '../remix-ui-workspace' |
|
|
|
import { Workspace } from '../remix-ui-workspace' |
|
|
@ -103,10 +103,6 @@ export const FileSystemProvider = (props: WorkspaceProps) => { |
|
|
|
await runScript(path) |
|
|
|
await runScript(path) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const dispatchRunScriptWithMocha = async (path: string) => { |
|
|
|
|
|
|
|
await runScriptWithMocha(path) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const dispatchEmitContextMenuEvent = async (cmd: customAction) => { |
|
|
|
const dispatchEmitContextMenuEvent = async (cmd: customAction) => { |
|
|
|
await emitContextMenuEvent(cmd) |
|
|
|
await emitContextMenuEvent(cmd) |
|
|
|
} |
|
|
|
} |
|
|
@ -216,7 +212,6 @@ export const FileSystemProvider = (props: WorkspaceProps) => { |
|
|
|
dispatchCopyFile, |
|
|
|
dispatchCopyFile, |
|
|
|
dispatchCopyFolder, |
|
|
|
dispatchCopyFolder, |
|
|
|
dispatchRunScript, |
|
|
|
dispatchRunScript, |
|
|
|
dispatchRunScriptWithMocha, |
|
|
|
|
|
|
|
dispatchEmitContextMenuEvent, |
|
|
|
dispatchEmitContextMenuEvent, |
|
|
|
dispatchHandleClickFile, |
|
|
|
dispatchHandleClickFile, |
|
|
|
dispatchHandleExpandPath |
|
|
|
dispatchHandleExpandPath |
|
|
|