|
|
|
@ -14,6 +14,7 @@ import { |
|
|
|
|
deleteAllWorkspaces, |
|
|
|
|
clearPopUp, |
|
|
|
|
publishToGist, |
|
|
|
|
publishFilesToGist, |
|
|
|
|
createNewFile, |
|
|
|
|
setFocusElement, |
|
|
|
|
createNewFolder, |
|
|
|
@ -118,6 +119,10 @@ export const FileSystemProvider = (props: WorkspaceProps) => { |
|
|
|
|
await publishToGist(path) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const dispatchPublishFilesToGist = (selectedFiles: { key: string, type: 'file' | 'folder', content: string }[]) => { |
|
|
|
|
publishFilesToGist(selectedFiles) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const dispatchUploadFile = async (target?: SyntheticEvent, targetFolder?: string) => { |
|
|
|
|
await uploadFile(target, targetFolder) |
|
|
|
|
} |
|
|
|
@ -340,6 +345,7 @@ export const FileSystemProvider = (props: WorkspaceProps) => { |
|
|
|
|
dispatchDeleteWorkspace, |
|
|
|
|
dispatchDeleteAllWorkspaces, |
|
|
|
|
dispatchPublishToGist, |
|
|
|
|
dispatchPublishFilesToGist, |
|
|
|
|
dispatchUploadFile, |
|
|
|
|
dispatchUploadFolder, |
|
|
|
|
dispatchCreateNewFile, |
|
|
|
|