Commit d4b40818 authored by ioedeveloper's avatar ioedeveloper

Add usecase for files

parent a50628aa
...@@ -52,6 +52,12 @@ export const FileExplorerContextMenu = (props: FileExplorerContextMenuProps) => ...@@ -52,6 +52,12 @@ export const FileExplorerContextMenu = (props: FileExplorerContextMenuProps) =>
case 'Push changes to gist': case 'Push changes to gist':
publishToGist(path, type) publishToGist(path, type)
break break
case 'Publish folder to gist':
publishToGist(path, type)
break
case 'Publish file to gist':
publishToGist(path, type)
break
case 'Run': case 'Run':
runScript(path) runScript(path)
break break
......
...@@ -58,7 +58,7 @@ export const FileExplorer = (props: FileExplorerProps) => { ...@@ -58,7 +58,7 @@ export const FileExplorer = (props: FileExplorerProps) => {
pattern: [] pattern: []
}, { }, {
id: 'pushChangesToGist', id: 'pushChangesToGist',
name: 'Push back changes to gist', name: 'Push changes to gist',
type: ['gist'], type: ['gist'],
path: [], path: [],
extension: [], extension: [],
...@@ -71,6 +71,13 @@ export const FileExplorer = (props: FileExplorerProps) => { ...@@ -71,6 +71,13 @@ export const FileExplorer = (props: FileExplorerProps) => {
extension: [], extension: [],
pattern: [] pattern: []
}, { }, {
id: 'publishFileToGist',
name: 'Publish file to gist',
type: ['file'],
path: [],
extension: [],
pattern: []
}, {
id: 'run', id: 'run',
name: 'Run', name: 'Run',
type: [], 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