mirror of
https://github.com/xevidos/codiad.git
synced 2024-11-14 07:41:14 +01:00
194 lines
No EOL
5.3 KiB
JSON
Executable file
194 lines
No EOL
5.3 KiB
JSON
Executable file
[
|
|
{
|
|
"title": "New File",
|
|
"icon": "icon-doc-text",
|
|
"applies-to" : "directory-only",
|
|
"onclick": "codiad.filemanager.createNode($('#context-menu').attr('data-path'),'file');"
|
|
},
|
|
{
|
|
"title": "New Folder",
|
|
"icon": "icon-folder",
|
|
"applies-to" : "directory-only",
|
|
"onclick": "codiad.filemanager.createNode($('#context-menu').attr('data-path'),'directory');"
|
|
},
|
|
{
|
|
"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": "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": "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.pasteNode($('#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.renameNode($('#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();"
|
|
}
|
|
] |