external editor support
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
%ul.dropdown-menu.dropdown-menu-left.nt-dropdown-menu.dark.contextual-menu
|
||||
%ul.dropdown-menu.dropdown-menu-left.nt-dropdown-menu.dark.editor-menu
|
||||
.extension{"ng-repeat" => "extension in extensions"}
|
||||
.ext-header
|
||||
.name {{extension.name}}
|
||||
.access
|
||||
.menu-section-header
|
||||
.title {{extension.name}}
|
||||
.subtitle
|
||||
Can access your data
|
||||
%strong {{accessTypeForExtension(extension)}}
|
||||
.spinner.loading{"ng-if" => "extension.loading"}
|
||||
%ul
|
||||
%li.action{"ng-repeat" => "action in extension.actionsWithContextForItem(item)", "ng-click" => "executeAction(action, extension)"}
|
||||
.name {{action.label}}
|
||||
.desc {{action.desc}}
|
||||
%li.menu-item{"ng-repeat" => "action in extension.actionsWithContextForItem(item)", "ng-click" => "executeAction(action, extension)"}
|
||||
.menu-item-title {{action.label}}
|
||||
.menu-item-subtitle {{action.desc}}
|
||||
|
||||
%div{"ng-if" => "action.showNestedActions"}
|
||||
%ul.mt-10
|
||||
%li.action.white-bg{"ng-repeat" => "subaction in action.subactions", "ng-click" => "executeAction(subaction, extension); $event.stopPropagation()", "style" => "margin-top: -1px;"}
|
||||
.name {{subaction.label}}
|
||||
.desc {{subaction.desc}}
|
||||
%li.menu-item.white-bg{"ng-repeat" => "subaction in action.subactions", "ng-click" => "executeAction(subaction, extension); $event.stopPropagation()", "style" => "margin-top: -1px;"}
|
||||
.menu-item-title {{subaction.label}}
|
||||
.menu-item-subtitle {{subaction.desc}}
|
||||
%span{"ng-if" => "subaction.running"}
|
||||
.spinner{"style" => "margin-top: 3px;"}
|
||||
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
%ul.dropdown-menu.dropdown-menu-left.nt-dropdown-menu.dark.editor-menu
|
||||
.menu-section-header
|
||||
.title System Editors
|
||||
%ul
|
||||
%li.menu-item{"ng-repeat" => "editor in sysEditors", "ng-click" => "selectEditor(editor)"}
|
||||
%span.pull-left.mr-10{"ng-if" => "!selectedEditor"} ✓
|
||||
.menu-item-title.pull-left {{editor.name}}
|
||||
|
||||
%div{"ng-if" => "editors.length > 0"}
|
||||
.menu-section-header
|
||||
.title External Editors
|
||||
.subtitle Can access your current note decrypted.
|
||||
%ul
|
||||
%li.menu-item{"ng-repeat" => "editor in editors", "ng-click" => "selectEditor(editor)"}
|
||||
%span.pull-left.mr-10{"ng-if" => "selectedEditor == editor"} ✓
|
||||
.pull-left{"style" => "width: 60%"}
|
||||
.menu-item-title {{editor.name}}
|
||||
.menu-item-subtitle.wrap {{editor.url}}
|
||||
.pull-right
|
||||
%button.white.medium.inline.top{"style" => "width: 50px; height: 40px;", "ng-click" => "deleteEditor(editor); $event.stopPropagation();"} ☓
|
||||
.menu-section-footer.mt-10
|
||||
%input.form-control{"ng-model" => "formData.url", "placeholder" => "Add new editor via URL", "ng-keyup" => "$event.keyCode == 13 && submitNewEditorRequest()"}
|
||||
%a.block{"href" => ""} Available Editors
|
||||
Reference in New Issue
Block a user