|
|
@ -5,96 +5,112 @@ export const contextMenuActions: MenuItems = [{ |
|
|
|
name: 'New File', |
|
|
|
name: 'New File', |
|
|
|
type: ['folder', 'gist', 'workspace'], |
|
|
|
type: ['folder', 'gist', 'workspace'], |
|
|
|
multiselect: false, |
|
|
|
multiselect: false, |
|
|
|
label: '' |
|
|
|
label: '', |
|
|
|
|
|
|
|
group: 0 |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
id: 'newFolder', |
|
|
|
id: 'newFolder', |
|
|
|
name: 'New Folder', |
|
|
|
name: 'New Folder', |
|
|
|
type: ['folder', 'gist', 'workspace'], |
|
|
|
type: ['folder', 'gist', 'workspace'], |
|
|
|
multiselect: false, |
|
|
|
multiselect: false, |
|
|
|
label: '' |
|
|
|
label: '', |
|
|
|
|
|
|
|
group: 0 |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
id: 'rename', |
|
|
|
id: 'rename', |
|
|
|
name: 'Rename', |
|
|
|
name: 'Rename', |
|
|
|
type: ['file', 'folder'], |
|
|
|
type: ['file', 'folder'], |
|
|
|
multiselect: false, |
|
|
|
multiselect: false, |
|
|
|
label: '' |
|
|
|
label: '', |
|
|
|
|
|
|
|
group: 0 |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
id: 'delete', |
|
|
|
id: 'delete', |
|
|
|
name: 'Delete', |
|
|
|
name: 'Delete', |
|
|
|
type: ['file', 'folder', 'gist'], |
|
|
|
type: ['file', 'folder', 'gist'], |
|
|
|
multiselect: false, |
|
|
|
multiselect: false, |
|
|
|
label: '' |
|
|
|
label: '', |
|
|
|
|
|
|
|
group: 0 |
|
|
|
},{ |
|
|
|
},{ |
|
|
|
|
|
|
|
id: 'deleteAll', |
|
|
|
|
|
|
|
name: 'Delete All', |
|
|
|
|
|
|
|
type: ['folder', 'file'], |
|
|
|
|
|
|
|
multiselect: true, |
|
|
|
|
|
|
|
label: '', |
|
|
|
|
|
|
|
group: 0 |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
id: 'copy', |
|
|
|
|
|
|
|
name: 'Copy', |
|
|
|
|
|
|
|
type: ['folder', 'file'], |
|
|
|
|
|
|
|
multiselect: false, |
|
|
|
|
|
|
|
label: '', |
|
|
|
|
|
|
|
group: 1 |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
id: 'copyFileName', |
|
|
|
|
|
|
|
name: 'Copy name', |
|
|
|
|
|
|
|
type: ['file'], |
|
|
|
|
|
|
|
multiselect: false, |
|
|
|
|
|
|
|
label: '', |
|
|
|
|
|
|
|
group: 1 |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
id: 'copyFilePath', |
|
|
|
|
|
|
|
name: 'Copy path', |
|
|
|
|
|
|
|
type: ['file'], |
|
|
|
|
|
|
|
multiselect: false, |
|
|
|
|
|
|
|
label: '', |
|
|
|
|
|
|
|
group: 1 |
|
|
|
|
|
|
|
}, { |
|
|
|
id: 'download', |
|
|
|
id: 'download', |
|
|
|
name: 'Download', |
|
|
|
name: 'Download', |
|
|
|
type: ['file', 'folder', 'workspace'], |
|
|
|
type: ['file', 'folder', 'workspace'], |
|
|
|
multiselect: false, |
|
|
|
multiselect: false, |
|
|
|
label: '' |
|
|
|
label: '', |
|
|
|
|
|
|
|
group: 2 |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
id: 'run', |
|
|
|
id: 'run', |
|
|
|
name: 'Run', |
|
|
|
name: 'Run', |
|
|
|
extension: ['.js', '.ts'], |
|
|
|
extension: ['.js', '.ts'], |
|
|
|
multiselect: false, |
|
|
|
multiselect: false, |
|
|
|
label: '' |
|
|
|
label: '', |
|
|
|
|
|
|
|
group: 3 |
|
|
|
},{ |
|
|
|
},{ |
|
|
|
id: 'pushChangesToGist', |
|
|
|
id: 'pushChangesToGist', |
|
|
|
name: 'Push changes to gist', |
|
|
|
name: 'Push changes to gist', |
|
|
|
type: ['gist'], |
|
|
|
type: ['gist'], |
|
|
|
multiselect: false, |
|
|
|
multiselect: false, |
|
|
|
label: '' |
|
|
|
label: '', |
|
|
|
|
|
|
|
group: 4 |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
id: 'publishFolderToGist', |
|
|
|
id: 'publishFolderToGist', |
|
|
|
name: 'Publish folder to gist', |
|
|
|
name: 'Publish folder to gist', |
|
|
|
type: ['folder'], |
|
|
|
type: ['folder'], |
|
|
|
multiselect: false, |
|
|
|
multiselect: false, |
|
|
|
label: '' |
|
|
|
label: '', |
|
|
|
|
|
|
|
group: 4 |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
id: 'publishFileToGist', |
|
|
|
id: 'publishFileToGist', |
|
|
|
name: 'Publish file to gist', |
|
|
|
name: 'Publish file to gist', |
|
|
|
type: ['file'], |
|
|
|
type: ['file'], |
|
|
|
multiselect: false, |
|
|
|
multiselect: false, |
|
|
|
label: '' |
|
|
|
label: '', |
|
|
|
|
|
|
|
group: 4 |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
id: 'copy', |
|
|
|
|
|
|
|
name: 'Copy', |
|
|
|
|
|
|
|
type: ['folder', 'file'], |
|
|
|
|
|
|
|
multiselect: false, |
|
|
|
|
|
|
|
label: '' |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
id: 'copyFileName', |
|
|
|
|
|
|
|
name: 'Copy name', |
|
|
|
|
|
|
|
type: ['file'], |
|
|
|
|
|
|
|
multiselect: false, |
|
|
|
|
|
|
|
label: '' |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
id: 'copyFilePath', |
|
|
|
|
|
|
|
name: 'Copy path', |
|
|
|
|
|
|
|
type: ['file'], |
|
|
|
|
|
|
|
multiselect: false, |
|
|
|
|
|
|
|
label: '' |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
id: 'deleteAll', |
|
|
|
|
|
|
|
name: 'Delete All', |
|
|
|
|
|
|
|
type: ['folder', 'file'], |
|
|
|
|
|
|
|
multiselect: true, |
|
|
|
|
|
|
|
label: '' |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
id: 'uploadFile', |
|
|
|
id: 'uploadFile', |
|
|
|
name: 'Load a Local File', |
|
|
|
name: 'Load a Local File', |
|
|
|
type: ['folder', 'gist', 'workspace'], |
|
|
|
type: ['folder', 'gist', 'workspace'], |
|
|
|
multiselect: false, |
|
|
|
multiselect: false, |
|
|
|
label: 'Load a Local File' |
|
|
|
label: 'Load a Local File', |
|
|
|
|
|
|
|
group: 4 |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
id: 'publishToGist', |
|
|
|
id: 'publishToGist', |
|
|
|
name: 'Push changes to gist', |
|
|
|
name: 'Push changes to gist', |
|
|
|
type: ['folder', 'gist'], |
|
|
|
type: ['folder', 'gist'], |
|
|
|
multiselect: false, |
|
|
|
multiselect: false, |
|
|
|
label: 'Publish all to Gist' |
|
|
|
label: 'Publish all to Gist', |
|
|
|
|
|
|
|
group: 4 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
id: 'publishWorkspace', |
|
|
|
id: 'publishWorkspace', |
|
|
|
name: 'Publish Workspace to Gist', |
|
|
|
name: 'Publish Workspace to Gist', |
|
|
|
type: ['workspace'], |
|
|
|
type: ['workspace'], |
|
|
|
multiselect: false, |
|
|
|
multiselect: false, |
|
|
|
label: '' |
|
|
|
label: '', |
|
|
|
|
|
|
|
group: 4 |
|
|
|
}] |
|
|
|
}] |