forked from google/rekall
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implemented UI for manipulating cells.
* Redesigned Rekall Runplugin UI. * Added --open_browser flag to webconsole plugin. BUG= R=scudette@gmail.com Review URL: https://codereview.appspot.com/97170043
- Loading branch information
Showing
15 changed files
with
491 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
manuskript/static/components/core/addnode-dialog-controller.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
(function() { | ||
var module = angular.module('manuskript.core.addNodeDialog.controller', ['ui.bootstrap']); | ||
|
||
module.controller("AddNodeDialogController", function($scope, $modalInstance, items) { | ||
|
||
$scope.items = items; | ||
|
||
$scope.ok = function(selectedItem) { | ||
$modalInstance.close(selectedItem); | ||
}; | ||
|
||
}); | ||
|
||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!-- "Add Cell" dialog --> | ||
<div class="modal-header"> | ||
<h4 class="modal-title">Select New Cell Type</h4> | ||
</div> | ||
<div class="modal-body"> | ||
<div class="list-group"> | ||
<a ng-repeat="(typeKey, type) in items" href="#" data-dismiss="modal" class="list-group-item" ng-click="ok(typeKey)">{{type.description}}</a> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
(function() { | ||
angular.module('manuskript.core', [ | ||
'manuskript.core.nodePluginRegistry.service', | ||
'manuskript.core.addNodeDialog.controller', | ||
'manuskript.core.codeEditor.directive', | ||
'manuskript.core.fileInput.directive', | ||
'manuskript.core.onAltEnter.directive', | ||
'manuskript.core.scrollTo.directive', | ||
'manuskript.core.splitList.directive', | ||
'manuskript.core.codeEditor.directive', | ||
'manuskript.core.fileInput.directive']); | ||
]); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
(function() { | ||
|
||
var module = angular.module('manuskript.core.scrollTo.directive', []); | ||
|
||
/** | ||
* 'scrollTo' directive scrolls container to a child with a corresponding | ||
* selector. | ||
*/ | ||
module.directive('scrollTo', function($timeout) { | ||
return { | ||
restrict: 'A', | ||
link: function(scope, element, attrs) { | ||
$timeout(function() { | ||
var scrollAnchors = element.find(attrs["scrollTo"]); | ||
if (scrollAnchors.length > 0) { | ||
element.scrollTop(Math.max(0, scrollAnchors.position().top - 20)); | ||
} | ||
}); | ||
} | ||
}; | ||
}); | ||
|
||
})(); |
Oops, something went wrong.