1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 13:55:21 +02:00

Current progress on stats page, nonfunctional.

This commit is contained in:
Kevan Ahlquist 2015-08-25 00:55:54 -05:00
parent 66894e7596
commit b7daf91723
6 changed files with 119 additions and 3 deletions

View file

@ -17,7 +17,8 @@ angular.module('dockerui.services', ['ngResource'])
changes: {method: 'GET', params: {action: 'changes'}, isArray: true},
create: {method: 'POST', params: {action: 'create'}},
remove: {method: 'DELETE', params: {id: '@id', v: 0}},
rename: {method: 'POST', params: {id: '@id', action: 'rename'}, isArray: false}
rename: {method: 'POST', params: {id: '@id', action: 'rename'}, isArray: false},
stats: {method: 'GET', params: {id: '@id', stream: false, action: 'stats'}}
});
})
.factory('ContainerCommit', function ($resource, $http, Settings) {
@ -192,7 +193,6 @@ angular.module('dockerui.services', ['ngResource'])
})
.factory('LineChart', function (Settings) {
'use strict';
var url = Settings.rawUrl + '/build';
return {
build: function (id, data, getkey) {
var chart = new Chart($(id).get(0).getContext("2d"));