
remove node modules make new data file for web ui initial commit of dashboard switch back to non SSL request move port splitting to common place; add to node resource location Signed-off-by: Patrick Reilly <patrick@kismatic.io> various path fixes make svg path relative work around missing mime type Signed-off-by: Patrick Reilly <patrick@kismatic.io> fix paths fix karma path remove bad protractor test
28 lines
1.1 KiB
JavaScript
28 lines
1.1 KiB
JavaScript
/**=========================================================
|
|
* Module: Header
|
|
* Visualizer for clusters
|
|
=========================================================*/
|
|
|
|
angular.module('kubernetesApp.components.dashboard', [])
|
|
.controller('HeaderCtrl', [
|
|
'$scope',
|
|
'$location',
|
|
function($scope, $location) {
|
|
'use strict';
|
|
$scope.$watch('Pages', function(newValue, oldValue) {
|
|
if (typeof newValue !== 'undefined') {
|
|
$location.path(newValue);
|
|
}
|
|
});
|
|
|
|
$scope.subPages = [
|
|
{category: 'dashboard', name: 'Explore', value: '/dashboard/groups/type/selector/'},
|
|
{category: 'dashboard', name: 'Pods', value: '/dashboard/pods'},
|
|
{category: 'dashboard', name: 'Minions', value: '/dashboard/minions'},
|
|
{category: 'dashboard', name: 'Replication Controllers', value: '/dashboard/replicationcontrollers'},
|
|
{category: 'dashboard', name: 'Services', value: '/dashboard/services'},
|
|
{category: 'dashboard', name: 'Events', value: '/dashboard/events'}
|
|
];
|
|
}
|
|
]);
|