mirror of
https://github.com/xenia-project/xenia.git
synced 2026-04-04 14:17:24 +00:00
Module info in json.
This commit is contained in:
parent
c45f573472
commit
dcd9f8b6ff
7 changed files with 339 additions and 125 deletions
|
|
@ -321,6 +321,9 @@ body {
|
|||
display: block;
|
||||
pointer-events: none;
|
||||
}
|
||||
.debugger-module-info .modal-dialog {
|
||||
width: 60vw;
|
||||
}
|
||||
.debugger-module-info.fade .modal-dialog {
|
||||
-webkit-transition: none;
|
||||
-webkit-transform: translate(0,0);
|
||||
|
|
@ -329,6 +332,7 @@ body {
|
|||
pointer-events: auto;
|
||||
}
|
||||
.debugger-module-info .modal-body {
|
||||
max-width: 60vw;
|
||||
max-height: 80vh;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -66,12 +66,16 @@ module.controller('CodeTabController', function(
|
|||
var modalInstance = $modal.open({
|
||||
templateUrl: 'assets/ui/code/module-info.html',
|
||||
controller: 'ModuleInfoController',
|
||||
windowClass: 'debugger-module-info'
|
||||
// resolve: {
|
||||
// items: function () {
|
||||
// return $scope.items;
|
||||
// }
|
||||
// }
|
||||
windowClass: 'debugger-module-info',
|
||||
resolve: {
|
||||
moduleName: function() {
|
||||
return $scope.selectedModule.name;
|
||||
},
|
||||
moduleInfo: function() {
|
||||
return app.session.dataSource.getModule(
|
||||
$scope.selectedModule.name);
|
||||
}
|
||||
}
|
||||
});
|
||||
modalInstance.result.then(function() {
|
||||
}, function () {
|
||||
|
|
|
|||
|
|
@ -2,66 +2,10 @@
|
|||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true" ng-click="close()">×</button>
|
||||
<h4 class="modal-title">Modal title</h4>
|
||||
<h4 class="modal-title">{{ moduleName }}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
Lots of info<br/>
|
||||
{{ moduleInfo }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,10 @@ var module = angular.module('xe.ui.code.moduleInfo', [
|
|||
|
||||
|
||||
module.controller('ModuleInfoController', function(
|
||||
$rootScope, $scope, $modal, log) {
|
||||
$rootScope, $scope, $modal, log, moduleName, moduleInfo) {
|
||||
$scope.moduleName = moduleName;
|
||||
$scope.moduleInfo = moduleInfo;
|
||||
|
||||
$scope.close = function() {
|
||||
$scope.$close(null);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue