2018-07-13 18:39:55 +02:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"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": "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'));"
|
|
|
|
},
|
2019-01-07 23:51:14 +01:00
|
|
|
{
|
|
|
|
"title": "Break",
|
|
|
|
"icon": null,
|
|
|
|
"applies-to" : "both no-external",
|
|
|
|
"onclick": null
|
|
|
|
},
|
2018-07-31 21:59:15 +02:00
|
|
|
{
|
|
|
|
"title": "Delete Contents",
|
|
|
|
"icon": "icon-cancel-circled",
|
2019-01-07 23:51:14 +01:00
|
|
|
"applies-to" : "directory-only",
|
2018-07-31 21:59:15 +02:00
|
|
|
"onclick": "codiad.filemanager.deleteInnerNode($('#context-menu').attr('data-path'));"
|
|
|
|
},
|
2018-07-13 18:39:55 +02:00
|
|
|
{
|
|
|
|
"title": "Break",
|
|
|
|
"icon": null,
|
2019-01-22 20:21:20 +01:00
|
|
|
"applies-to" : "directory-only",
|
2018-07-13 18:39:55 +02:00
|
|
|
"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'));"
|
2019-01-18 06:32:10 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"title": "Copy",
|
|
|
|
"icon": "icon-doc",
|
|
|
|
"applies-to" : "editor-only",
|
|
|
|
"onclick": "document.execCommand( 'copy' );"
|
|
|
|
},
|
2019-05-01 15:11:50 +02:00
|
|
|
{
|
|
|
|
"title": "Cut",
|
|
|
|
"icon": "icon-pencil",
|
|
|
|
"applies-to" : "editor-only",
|
|
|
|
"onclick": "document.execCommand( 'cut' );"
|
|
|
|
},
|
2019-01-18 06:32:10 +01:00
|
|
|
{
|
|
|
|
"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",
|
2019-05-01 15:11:50 +02:00
|
|
|
"icon": "icon-search",
|
2019-01-18 06:32:10 +01:00
|
|
|
"applies-to" : "editor-only",
|
|
|
|
"onclick": "codiad.editor.openSearch('find');"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"title": "Replace",
|
2019-05-01 15:11:50 +02:00
|
|
|
"icon": "icon-pencil",
|
2019-01-18 06:32:10 +01:00
|
|
|
"applies-to" : "editor-only",
|
|
|
|
"onclick": "codiad.editor.openSearch('replace');"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"title": "Break",
|
|
|
|
"icon": null,
|
|
|
|
"applies-to" : "editor-only",
|
|
|
|
"onclick": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"title": "Sort",
|
2019-05-01 15:11:50 +02:00
|
|
|
"icon": "icon-box",
|
2019-01-18 06:32:10 +01:00
|
|
|
"applies-to" : "editor-only",
|
|
|
|
"onclick": "codiad.editor.openSort();"
|
2018-07-13 18:39:55 +02:00
|
|
|
}
|
2019-01-20 01:02:11 +01:00
|
|
|
]
|