admin: start adding monitor
This commit is contained in:
parent
42a17ab450
commit
5714e8f41b
|
@ -129,6 +129,9 @@ angular.module("FICApp")
|
|||
.factory("Version", function($resource) {
|
||||
return $resource("/api/version")
|
||||
})
|
||||
.factory("Monitor", function($resource) {
|
||||
return $resource("/api/monitor/:machineId", { machineId: '@id' })
|
||||
})
|
||||
.factory("Event", function($resource) {
|
||||
return $resource("/api/events/:eventId", { eventId: '@id' }, {
|
||||
'update': {method: 'PUT'},
|
||||
|
@ -356,6 +359,10 @@ angular.module("FICApp")
|
|||
$scope.v = Version.get();
|
||||
})
|
||||
|
||||
.controller("MonitorController", function($scope, Monitor) {
|
||||
$scope.monitor = Monitor.get();
|
||||
})
|
||||
|
||||
.controller("DIWEBoxController", function($scope, $rootScope, $interval, $timeout) {
|
||||
function updBox() {
|
||||
while ($rootScope._newBoxes.length > 0) {
|
||||
|
|
Loading…
Reference in New Issue