Commit d4b40818 authored by ioedeveloper's avatar ioedeveloper

Add usecase for files

parent a50628aa
......@@ -52,6 +52,12 @@ export const FileExplorerContextMenu = (props: FileExplorerContextMenuProps) =>
case 'Push changes to gist':
publishToGist(path, type)
break
case 'Publish folder to gist':
publishToGist(path, type)
break
case 'Publish file to gist':
publishToGist(path, type)
break
case 'Run':
runScript(path)
break
......
......@@ -58,7 +58,7 @@ export const FileExplorer = (props: FileExplorerProps) => {
pattern: []
}, {
id: 'pushChangesToGist',
name: 'Push back changes to gist',
name: 'Push changes to gist',
type: ['gist'],
path: [],
extension: [],
......@@ -71,6 +71,13 @@ export const FileExplorer = (props: FileExplorerProps) => {
extension: [],
pattern: []
}, {
id: 'publishFileToGist',
name: 'Publish file to gist',
type: ['file'],
path: [],
extension: [],
pattern: []
}, {
id: 'run',
name: 'Run',
type: [],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment