extensions wip

This commit is contained in:
Mo Bitar
2017-01-04 00:14:20 -06:00
parent 18a9726f89
commit 24ed04b46f
9 changed files with 422 additions and 20 deletions

View File

@@ -84,6 +84,25 @@
%span
Import Data from Archive
.item
%a{"ng-click" => "ctrl.toggleExtensions()"} Extensions
.panel.panel-default.account-panel.panel-right.extensions-panel{"ng-if" => "ctrl.showExtensionsMenu"}
.panel-body
.registered-extensions{"ng-if" => "ctrl.extensionManager.extensions.length"}
.extension{"ng-repeat" => "extension in ctrl.extensionManager.extensions"}
.name {{extension.name}}
Actions
%ul.actions
%li.action{"ng-repeat" => "action in extension.actions"}
%a{"ng-click" => "ctrl.selectedAction(action, extension)"} {{action.label}}
%a{"ng-click" => "ctrl.toggleExtensionForm()"} Add new extension
%form.extension-form{"ng-if" => "ctrl.showNewExtensionForm"}
.form-tag.has-feedback
%input.form-control{:autofocus => 'autofocus', :name => 'url', :placeholder => 'Extension URL', :required => true, :type => 'text', 'ng-model' => 'ctrl.newExtensionData.url'}
%button.btn.dark-button.btn-block{:type => 'submit', "data-style" => "expand-right", "data-size" => "s", "state" => "buttonState"}
%span.ladda-label{"ng-click" => "ctrl.submitNewExtensionForm()"} Get Extension
.item
%a{"href" => "https://standardnotes.org", "target" => "_blank"}