refactor(dashboard): Restructured front-end dashboard code.

This commit is contained in:
Ed Rooth
2014-02-04 11:13:18 -08:00
parent 8a172322ff
commit 06f990236c
27 changed files with 1048 additions and 1100 deletions

View File

@ -1,19 +1,7 @@
'use strict';
angular.module('etcdStats', ['ngRoute', 'etcd'])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/stats.html',
controller: 'StatsCtrl'
})
.otherwise({
templateUrl: 'views/stats.html',
controller: 'StatsCtrl'
});
}])
angular.module('etcdControlPanel')
.controller('StatsCtrl', ['$scope', 'EtcdV2', 'statsVega', function ($scope, EtcdV2, statsVega) {
$scope.graphContainer = '#latency';
$scope.graphVisibility = 'etcd-graph-show';