diff --git a/components/filemanager/context_menu.json b/components/filemanager/context_menu.json index 356625c..50e45da 100755 --- a/components/filemanager/context_menu.json +++ b/components/filemanager/context_menu.json @@ -1,200 +1,194 @@ [ - { - "title": "New File", - "icon": "icon-doc-text", - "applies-to" : "directory-only", - "onclick": "codiad.filemanager.create_node($('#context-menu').attr('data-path'),'file');" - }, - { - "title": "New Folder", - "icon": "icon-folder", - "applies-to" : "directory-only", - "onclick": "codiad.filemanager.create_node($('#context-menu').attr('data-path'),'directory');" - }, - { - "title": "Break", - "icon": null, - "applies-to" : "directory-only", - "onclick": null - }, - { - "title": "Search", - "icon": "icon-target", - "applies-to" : "directory-only", - "onclick": "codiad.filemanager.search($('#context-menu').attr('data-path'));" - }, - { - "title": "Break", - "icon": null, - "applies-to" : "directory-only", - "onclick": null - }, - { - "title": "Upload Files", - "icon": "icon-upload", - "applies-to" : "directory-only", - "onclick": "codiad.filemanager.uploadToNode($('#context-menu').attr('data-path'));" - }, - { - "title": "Preview", - "icon": "icon-eye", - "applies-to" : "both no-external", - "onclick": "codiad.filemanager.openInBrowser($('#context-menu').attr('data-path'));" - }, - { - "title": "Break", - "icon": null, - "applies-to" : "file-only no-external", - "onclick": null - }, - { - "title": "Archive", - "icon": "icon-archive", - "applies-to" : "directory-only non-root", - "onclick": "codiad.filemanager.archive( $('#context-menu').attr('data-path') );" - }, - { - "title": "Unarchive", - "icon": "icon-archive", - "applies-to" : "file-only non-root", - "onclick": "codiad.filemanager.unarchive( $('#context-menu').attr('data-path') );" - }, - { - "title": "Break", - "icon": null, - "applies-to" : "directory-only", - "onclick": null - }, - { - "title": "Break", - "icon": null, - "applies-to" : "directory-only", - "onclick": null - }, - { - "title": "Copy", - "icon": "icon-doc", - "applies-to" : "both", - "onclick": "codiad.filemanager.copyNode($('#context-menu').attr('data-path'));" - }, - { - "title": "Paste", - "icon": "icon-docs", - "applies-to" : "directory-only", - "onclick": "codiad.filemanager.paste_node($('#context-menu').attr('data-path'));" - }, - { - "title": "Break", - "icon": null, - "applies-to" : "non-root", - "onclick": null - }, - { - "title": "Rename", - "icon": "icon-pencil", - "applies-to" : "non-root", - "onclick": "codiad.filemanager.open_rename($('#context-menu').attr('data-path'));" - }, - { - "title": "Rename Project", - "icon": "icon-pencil", - "applies-to" : "root-only", - "onclick": "codiad.project.rename($('#context-menu').attr('data-path'),$('#context-menu').attr('data-name'));" - }, - { - "title": "Break", - "icon": null, - "applies-to" : "non-root", - "onclick": null - }, - { - "title": "Delete", - "icon": "icon-cancel-circled", - "applies-to" : "non-root", - "onclick": "codiad.filemanager.deleteNode($('#context-menu').attr('data-path'));" - }, - { - "title": "Break", - "icon": null, - "applies-to" : "both no-external", - "onclick": null - }, - { - "title": "Delete Contents", - "icon": "icon-cancel-circled", - "applies-to" : "directory-only", - "onclick": "codiad.filemanager.deleteInnerNode($('#context-menu').attr('data-path'));" - }, - { - "title": "Break", - "icon": null, - "applies-to" : "directory-only", - "onclick": null - }, - { - "title": "Download", - "icon": "icon-download", - "applies-to" : "both no-external", - "onclick": "codiad.filemanager.download($('#context-menu').attr('data-path'));" - }, - { - "title": "Break", - "icon": null, - "applies-to" : "directory-only", - "onclick": null - }, - { - "title": "Rescan", - "icon": "icon-arrows-ccw", - "applies-to" : "directory-only", - "onclick": "codiad.filemanager.rescan($('#context-menu').attr('data-path'));" - }, - { - "title": "Copy", - "icon": "icon-doc", - "applies-to" : "editor-only", - "onclick": "document.execCommand( 'copy' );" - }, - { - "title": "Cut", - "icon": "icon-pencil", - "applies-to" : "editor-only", - "onclick": "document.execCommand( 'cut' );" - }, - { - "title": "Paste", - "icon": "icon-docs", - "applies-to" : "editor-only", - "onclick": "codiad.editor.paste();" - }, - { - "title": "Break", - "icon": null, - "applies-to" : "editor-only", - "onclick": null - }, - { - "title": "Find", - "icon": "icon-search", - "applies-to" : "editor-only", - "onclick": "codiad.editor.openSearch('find');" - }, - { - "title": "Replace", - "icon": "icon-pencil", - "applies-to" : "editor-only", - "onclick": "codiad.editor.openSearch('replace');" - }, - { - "title": "Break", - "icon": null, - "applies-to" : "editor-only", - "onclick": null - }, - { - "title": "Sort", - "icon": "icon-box", - "applies-to" : "editor-only", - "onclick": "codiad.editor.openSort();" - } + { + "title": "New File", + "icon": "icon-doc-text", + "applies-to": "directory-only", + "onclick": "codiad.filemanager.create_node($('#context-menu').attr('data-path'),'file');" + }, + { + "title": "New Folder", + "icon": "icon-folder", + "applies-to": "directory-only", + "onclick": "codiad.filemanager.create_node($('#context-menu').attr('data-path'),'directory');" + }, + { + "title": "Break", + "icon": null, + "applies-to": "directory-only", + "onclick": null + }, + { + "title": "Search", + "icon": "icon-target", + "applies-to": "directory-only", + "onclick": "codiad.filemanager.search($('#context-menu').attr('data-path'));" + }, + { + "title": "Break", + "icon": null, + "applies-to": "directory-only", + "onclick": null + }, + { + "title": "Upload Files", + "icon": "icon-upload", + "applies-to": "directory-only", + "onclick": "codiad.filemanager.uploadToNode($('#context-menu').attr('data-path'));" + }, + { + "title": "Preview", + "icon": "icon-eye", + "applies-to": "both no-external", + "onclick": "codiad.filemanager.preview($('#context-menu').attr('data-path'));" + }, + { + "title": "Break", + "icon": null, + "applies-to": "file-only no-external", + "onclick": null + }, + { + "title": "Archive", + "icon": "icon-archive", + "applies-to": "directory-only non-root", + "onclick": "codiad.filemanager.archive( $('#context-menu').attr('data-path') );" + }, + { + "title": "Unarchive", + "icon": "icon-archive", + "applies-to": "file-only non-root", + "onclick": "codiad.filemanager.unarchive( $('#context-menu').attr('data-path') );" + }, + { + "title": "Break", + "icon": null, + "applies-to": "directory-only", + "onclick": null + }, + { + "title": "Copy", + "icon": "icon-doc", + "applies-to": "both", + "onclick": "codiad.filemanager.copyNode($('#context-menu').attr('data-path'));" + }, + { + "title": "Paste", + "icon": "icon-docs", + "applies-to": "directory-only", + "onclick": "codiad.filemanager.paste_node($('#context-menu').attr('data-path'));" + }, + { + "title": "Break", + "icon": null, + "applies-to": "non-root", + "onclick": null + }, + { + "title": "Rename", + "icon": "icon-pencil", + "applies-to": "non-root", + "onclick": "codiad.filemanager.open_rename($('#context-menu').attr('data-path'));" + }, + { + "title": "Rename Project", + "icon": "icon-pencil", + "applies-to": "root-only", + "onclick": "codiad.project.rename($('#context-menu').attr('data-path'),$('#context-menu').attr('data-name'));" + }, + { + "title": "Break", + "icon": null, + "applies-to": "non-root", + "onclick": null + }, + { + "title": "Delete", + "icon": "icon-cancel-circled", + "applies-to": "non-root", + "onclick": "codiad.filemanager.deleteNode($('#context-menu').attr('data-path'));" + }, + { + "title": "Break", + "icon": null, + "applies-to": "both no-external", + "onclick": null + }, + { + "title": "Delete Contents", + "icon": "icon-cancel-circled", + "applies-to": "directory-only", + "onclick": "codiad.filemanager.deleteInnerNode($('#context-menu').attr('data-path'));" + }, + { + "title": "Break", + "icon": null, + "applies-to": "directory-only", + "onclick": null + }, + { + "title": "Download", + "icon": "icon-download", + "applies-to": "both no-external", + "onclick": "codiad.filemanager.download($('#context-menu').attr('data-path'));" + }, + { + "title": "Break", + "icon": null, + "applies-to": "directory-only", + "onclick": null + }, + { + "title": "Rescan", + "icon": "icon-arrows-ccw", + "applies-to": "directory-only", + "onclick": "codiad.filemanager.rescan($('#context-menu').attr('data-path'));" + }, + { + "title": "Copy", + "icon": "icon-doc", + "applies-to": "editor-only", + "onclick": "document.execCommand( 'copy' );" + }, + { + "title": "Cut", + "icon": "icon-pencil", + "applies-to": "editor-only", + "onclick": "document.execCommand( 'cut' );" + }, + { + "title": "Paste", + "icon": "icon-docs", + "applies-to": "editor-only", + "onclick": "codiad.editor.paste();" + }, + { + "title": "Break", + "icon": null, + "applies-to": "editor-only", + "onclick": null + }, + { + "title": "Find", + "icon": "icon-search", + "applies-to": "editor-only", + "onclick": "codiad.editor.openSearch('find');" + }, + { + "title": "Replace", + "icon": "icon-pencil", + "applies-to": "editor-only", + "onclick": "codiad.editor.openSearch('replace');" + }, + { + "title": "Break", + "icon": null, + "applies-to": "editor-only", + "onclick": null + }, + { + "title": "Sort", + "icon": "icon-box", + "applies-to": "editor-only", + "onclick": "codiad.editor.openSort();" + } ] \ No newline at end of file