|
|
|
@ -6,7 +6,7 @@ import { Toaster } from '@remix-ui/toaster' // eslint-disable-line |
|
|
|
|
import { FileSystemContext } from '../contexts' |
|
|
|
|
import { browserReducer, browserInitialState } from '../reducers/workspace' |
|
|
|
|
import { initWorkspace, fetchDirectory, removeInputField, deleteWorkspace, clearPopUp, publishToGist, createNewFile, setFocusElement, createNewFolder, deletePath, renamePath, copyFile, copyFolder, runScript, emitContextMenuEvent, handleClickFile, handleExpandPath, addInputField, createWorkspace, fetchWorkspaceDirectory, renameWorkspace, switchToWorkspace, uploadFile, handleDownloadFiles, restoreBackupZip } from '../actions' |
|
|
|
|
import { Modal, WorkspaceProps } from '../types' |
|
|
|
|
import { Modal, WorkspaceProps, WorkspaceTemplate } from '../types' |
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
|
import { Workspace } from '../remix-ui-workspace' |
|
|
|
|
import { customAction } from '@remixproject/plugin-api/lib/file-system/file-panel/type' |
|
|
|
@ -43,7 +43,7 @@ export const FileSystemProvider = (props: WorkspaceProps) => { |
|
|
|
|
await removeInputField(path) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const dispatchCreateWorkspace = async (workspaceName: string, workspaceTemplateName: string) => { |
|
|
|
|
const dispatchCreateWorkspace = async (workspaceName: string, workspaceTemplateName: WorkspaceTemplate) => { |
|
|
|
|
await createWorkspace(workspaceName, workspaceTemplateName) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|