Add usecase for files

pull/1185/head
ioedeveloper 4 years ago
parent a50628aaac
commit d4b4081833
  1. 6
      libs/remix-ui/file-explorer/src/lib/file-explorer-context-menu.tsx
  2. 9
      libs/remix-ui/file-explorer/src/lib/file-explorer.tsx

@ -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: [],
@ -70,6 +70,13 @@ export const FileExplorer = (props: FileExplorerProps) => {
path: [],
extension: [],
pattern: []
}, {
id: 'publishFileToGist',
name: 'Publish file to gist',
type: ['file'],
path: [],
extension: [],
pattern: []
}, {
id: 'run',
name: 'Run',

Loading…
Cancel
Save