Added Remote Debug UI.

This commit is contained in:
Gunther Brunner
2014-06-20 20:44:25 +09:00
parent 905879235e
commit 5454b302ff
5 changed files with 18 additions and 5 deletions

View File

@@ -3,4 +3,10 @@ require('./remote-debug.css')
module.exports = angular.module('stf.remote-debug', [
])
.run(["$templateCache", function ($templateCache) {
$templateCache.put(
'control-panes/advanced/remote-debug/remote-debug.jade',
require('./remote-debug.jade')
)
}])
.controller('RemoteDebugCtrl', require('./remote-debug-controller'))

View File

@@ -1,3 +1,7 @@
module.exports = function RemoteDebugCtrl($scope) {
$scope.remoteDebugCommand = function () {
var server = '127.0.0.1:5555'
return 'adb connect ' + server
}
}

View File

@@ -1,6 +1,6 @@
.widget-container.fluid-height.stf-remote-debug
.widget-container.fluid-height.stf-remote-debug(ng-controller='RemoteDebugCtrl')
.heading
i.fa
i.fa.fa-bug
span(translate) Remote debug
.widget-content.padded
div
pre(ng-bind='remoteDebugCommand()')