Change adg prefixes to bansho
This commit is contained in:
parent
49d9794cfa
commit
475e725874
@ -1,9 +1,9 @@
|
||||
<article ng-controller="HostCtrl">
|
||||
<section class="main__content tabpanel" ng-if="data.live && data.config">
|
||||
<adg-host-main></adg-host-main>
|
||||
<adg-host-services-list></adg-host-services-list>
|
||||
<adg-host-load></adg-host-load>
|
||||
<adg-host-cpu></adg-host-cpu>
|
||||
<adg-host-info></adg-host-info>
|
||||
<bansho-host-main></bansho-host-main>
|
||||
<bansho-host-services-list></bansho-host-services-list>
|
||||
<bansho-host-load></bansho-host-load>
|
||||
<bansho-host-cpu></bansho-host-cpu>
|
||||
<bansho-host-info></bansho-host-info>
|
||||
</section>
|
||||
</article>
|
||||
|
@ -22,7 +22,7 @@ angular.module('adagios.host', ['adagios.live',
|
||||
});
|
||||
}])
|
||||
|
||||
.directive('adgHost', ['$http', '$compile', 'hostConfig',
|
||||
.directive('banshoHost', ['$http', '$compile', 'hostConfig',
|
||||
function ($http, $compile, hostConfig) {
|
||||
return {
|
||||
restrict: 'E',
|
||||
@ -32,7 +32,7 @@ angular.module('adagios.host', ['adagios.live',
|
||||
var template = 'components/host/host.html';
|
||||
|
||||
if (!attrs.hostName) {
|
||||
throw new Error('<adg-host> "host-name" attribute must be defined');
|
||||
throw new Error('<bansho-host> "host-name" attribute must be defined');
|
||||
}
|
||||
|
||||
hostConfig.hostName = {};
|
||||
|
@ -16,7 +16,7 @@ angular.module('adagios.host.cpu', [])
|
||||
});
|
||||
}])
|
||||
|
||||
.directive('adgHostCpu', function () {
|
||||
.directive('banshoHostCpu', function () {
|
||||
return {
|
||||
restrict: 'E',
|
||||
templateUrl: 'components/host/host_cpu/host_cpu.html'
|
||||
|
@ -9,7 +9,7 @@ angular.module('adagios.host.info', [])
|
||||
$scope.flap_detection_enabled = ($scope.data.config.flap_detection_enabled === '1') ? 'Enabled' : 'Disabled';
|
||||
}])
|
||||
|
||||
.directive('adgHostInfo', function () {
|
||||
.directive('banshoHostInfo', function () {
|
||||
return {
|
||||
restrict: 'E',
|
||||
templateUrl: 'components/host/host_info/host_info.html'
|
||||
|
@ -16,7 +16,7 @@ angular.module('adagios.host.load', [])
|
||||
});
|
||||
}])
|
||||
|
||||
.directive('adgHostLoad', function () {
|
||||
.directive('banshoHostLoad', function () {
|
||||
return {
|
||||
restrict: 'E',
|
||||
templateUrl: 'components/host/host_load/host_load.html'
|
||||
|
@ -6,7 +6,7 @@ angular.module('adagios.host.main', [])
|
||||
angular.noop();
|
||||
}])
|
||||
|
||||
.directive('adgHostMain', function () {
|
||||
.directive('banshoHostMain', function () {
|
||||
return {
|
||||
restrict: 'E',
|
||||
templateUrl: 'components/host/host_main/host_main.html'
|
||||
|
@ -6,7 +6,7 @@ angular.module('adagios.host.services_list', [])
|
||||
angular.noop();
|
||||
}])
|
||||
|
||||
.directive('adgHostServicesList', function () {
|
||||
.directive('banshoHostServicesList', function () {
|
||||
return {
|
||||
restrict: 'E',
|
||||
templateUrl: 'components/host/host_services_list/host_services_list.html'
|
||||
|
@ -1,8 +1,8 @@
|
||||
<article ng-controller="ServiceCtrl">
|
||||
<h2>Service</h2>
|
||||
<section class="main__content tabpanel" ng-if="data">
|
||||
<adg-service-main></adg-service-main>
|
||||
<adg-service-info></adg-service-info>
|
||||
<adg-service-metrics></adg-service-metrics>
|
||||
<bansho-service-main></bansho-service-main>
|
||||
<bansho-service-info></bansho-service-info>
|
||||
<bansho-service-metrics></bansho-service-metrics>
|
||||
</section>
|
||||
</article>
|
||||
|
@ -17,7 +17,7 @@ angular.module('adagios.service', ['adagios.live',
|
||||
});
|
||||
}])
|
||||
|
||||
.directive('adgService', ['$http', '$compile', 'serviceConfig',
|
||||
.directive('banshoService', ['$http', '$compile', 'serviceConfig',
|
||||
function ($http, $compile, serviceConfig) {
|
||||
return {
|
||||
restrict: 'E',
|
||||
@ -27,7 +27,7 @@ angular.module('adagios.service', ['adagios.live',
|
||||
var template = 'components/service/service.html';
|
||||
|
||||
if (!attrs.hostName && !!attrs.description) {
|
||||
throw new Error('<adg-service> "host-name" and "description" attributes must be defined');
|
||||
throw new Error('<bansho-service> "host-name" and "description" attributes must be defined');
|
||||
}
|
||||
|
||||
serviceConfig.hostName = '';
|
||||
|
@ -6,7 +6,7 @@ angular.module('adagios.service.info', [])
|
||||
$scope.acknowledged = $scope.data[0].acknowledged === "1" ? "Yes" : "No";
|
||||
}])
|
||||
|
||||
.directive('adgServiceInfo', function () {
|
||||
.directive('banshoServiceInfo', function () {
|
||||
return {
|
||||
restrict: 'E',
|
||||
templateUrl: 'components/service/service_info/service_info.html'
|
||||
|
@ -6,7 +6,7 @@ angular.module('adagios.service.main', [])
|
||||
angular.noop();
|
||||
}])
|
||||
|
||||
.directive('adgServiceMain', function () {
|
||||
.directive('banshoServiceMain', function () {
|
||||
return {
|
||||
restrict: 'E',
|
||||
templateUrl: 'components/service/service_main/service_main.html'
|
||||
|
@ -6,7 +6,7 @@ angular.module('adagios.service.metrics', [])
|
||||
angular.noop();
|
||||
}])
|
||||
|
||||
.directive('adgServiceMetrics', function () {
|
||||
.directive('banshoServiceMetrics', function () {
|
||||
return {
|
||||
restrict: 'E',
|
||||
templateUrl: 'components/service/service_metrics/service_metrics.html'
|
||||
|
@ -14,7 +14,7 @@ angular.module('adagios.sidebar', [])
|
||||
};
|
||||
}])
|
||||
|
||||
.directive('adgSidebar', function () {
|
||||
.directive('banshoSidebar', function () {
|
||||
return {
|
||||
restrict: 'E',
|
||||
templateUrl: "components/sidebar/sidebar.html"
|
||||
|
@ -31,7 +31,7 @@ describe('Sidebar module', function () {
|
||||
describe('Sidebar directive', function () {
|
||||
|
||||
it('should send a GET request', function () {
|
||||
var element = $compile('<adg-sidebar></adg-sidebar>')($rootScope);
|
||||
var element = $compile('<bansho-sidebar></bansho-sidebar>')($rootScope);
|
||||
$httpBackend.flush();
|
||||
|
||||
expect(element.html()).toBe('<li></li>');
|
||||
|
@ -68,7 +68,7 @@ angular.module('adagios.table.actionbar', [])
|
||||
};
|
||||
})
|
||||
|
||||
.directive('adgTableActionbar', function () {
|
||||
.directive('banshoTableActionbar', function () {
|
||||
return {
|
||||
restrict: 'E',
|
||||
templateUrl: 'components/table/actionbar/actionbar.html'
|
||||
|
@ -12,7 +12,7 @@
|
||||
<tbody class="{{entry.child_class}}" ng-repeat="entry in entries | actionbarSelectFilter:actionbarFilters.activeFilter | filter:actionbarFilters.searchFilter | noRepeat:this | wrappableStyle:this">
|
||||
<tr>
|
||||
<td><input type="checkbox"></td>
|
||||
<td adg-cell cell-name="{{cell}}" ng-repeat="cell in cellsName"></td>
|
||||
<td bansho-cell cell-name="{{cell}}" ng-repeat="cell in cellsName"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -64,7 +64,7 @@ angular.module('adagios.table', ['adagios.live',
|
||||
tableGlobalConfig.nextTableIndex += 1;
|
||||
}])
|
||||
|
||||
.directive('adgTable', ['$http', '$compile', 'tablesConfig', 'tableGlobalConfig',
|
||||
.directive('banshoTable', ['$http', '$compile', 'tablesConfig', 'tableGlobalConfig',
|
||||
function ($http, $compile, tablesConfig, tableGlobalConfig) {
|
||||
return {
|
||||
restrict: 'E',
|
||||
@ -75,7 +75,7 @@ angular.module('adagios.table', ['adagios.live',
|
||||
conf;
|
||||
|
||||
if (!attrs.cellsText || !attrs.cellsName || !attrs.apiName || !attrs.isWrappable) {
|
||||
throw new Error('<adg-table> "cells-text", "cells-name", "api-name"'
|
||||
throw new Error('<bansho-table> "cells-text", "cells-name", "api-name"'
|
||||
+ ' and "is-wrappable" attributes must be defined');
|
||||
}
|
||||
|
||||
@ -117,13 +117,13 @@ angular.module('adagios.table', ['adagios.live',
|
||||
};
|
||||
}])
|
||||
|
||||
.directive('adgCell', ['$http', '$compile', function ($http, $compile) {
|
||||
.directive('banshoCell', ['$http', '$compile', function ($http, $compile) {
|
||||
return {
|
||||
restrict: 'A',
|
||||
compile: function () {
|
||||
return function (scope, element, attrs) {
|
||||
if (!attrs.cellName) {
|
||||
throw new Error('<adg-cell> "cell-name" attribute must be defined');
|
||||
throw new Error('<bansho-cell> "cell-name" attribute must be defined');
|
||||
}
|
||||
|
||||
var template = 'components/table/cell_' + attrs.cellName + '/cell_' + attrs.cellName + '.html';
|
||||
|
@ -13,13 +13,13 @@ describe('In Table module', function () {
|
||||
$httpBackend = _$httpBackend_;
|
||||
}));
|
||||
|
||||
describe('adgCell directive', function () {
|
||||
describe('banshoCell directive', function () {
|
||||
|
||||
it('should send a get request to the proper cell template', function () {
|
||||
var cells = ['host', 'service_check', 'duration', 'last_check'];
|
||||
|
||||
angular.forEach(cells, function (cell) {
|
||||
var elem = angular.element('<td adg-cell cell-name="' + cell + '"></td>');
|
||||
var elem = angular.element('<td bansho-cell cell-name="' + cell + '"></td>');
|
||||
$compile(elem)($rootScope);
|
||||
$httpBackend.expectGET('components/table/cell_' + cell + '/cell_' + cell + '.html').respond('');
|
||||
$httpBackend.flush();
|
||||
@ -27,10 +27,10 @@ describe('In Table module', function () {
|
||||
});
|
||||
});
|
||||
|
||||
describe('adgTable directive', function () {
|
||||
describe('banshoTable directive', function () {
|
||||
|
||||
it('should request table/table.html template', function () {
|
||||
var elem = angular.element('<adg-table cells-name="host,service_check,duration,last_check" cells-text="Host,Service Check,Duration,Last check" api-name="services" is-wrappable="true"></adg-table>');
|
||||
var elem = angular.element('<bansho-table cells-name="host,service_check,duration,last_check" cells-text="Host,Service Check,Duration,Last check" api-name="services" is-wrappable="true"></bansho-table>');
|
||||
$compile(elem)($rootScope);
|
||||
$httpBackend.expectGET('components/table/table.html').respond('');
|
||||
$httpBackend.flush();
|
||||
|
@ -7,7 +7,7 @@ angular.module('adagios.tactical.current_health', ['adagios.live',
|
||||
angular.noop();
|
||||
}])
|
||||
|
||||
.directive('adgCurrentHealth', function () {
|
||||
.directive('banshoCurrentHealth', function () {
|
||||
return {
|
||||
restrict: 'E',
|
||||
templateUrl: 'components/tactical/current_health/current_health.html'
|
||||
|
@ -33,7 +33,7 @@ describe('Current Health tactical submodule', function () {
|
||||
describe('Current health directive', function () {
|
||||
|
||||
it('should send a GET request', function () {
|
||||
var element = $compile("<adg-current-health></adg-current-health>")($rootScope);
|
||||
var element = $compile("<bansho-current-health></bansho-current-health>")($rootScope);
|
||||
$httpBackend.flush();
|
||||
|
||||
expect(element.text()).toBe('Current Health');
|
||||
|
@ -6,7 +6,7 @@ angular.module('adagios.tactical.status_overview', [])
|
||||
angular.noop();
|
||||
}])
|
||||
|
||||
.directive('adgStatusOverview', function () {
|
||||
.directive('banshoStatusOverview', function () {
|
||||
return {
|
||||
restrict: 'E',
|
||||
templateUrl: 'components/tactical/status_overview/status_overview.html'
|
||||
|
@ -33,7 +33,7 @@ describe('Status Overview tactical submodule', function () {
|
||||
describe('Status overview directive', function () {
|
||||
|
||||
it('should insert the number of warnings', function () {
|
||||
var element = $compile('<adg-status-overview></adg-status-overview>')($rootScope);
|
||||
var element = $compile('<bansho-status-overview></bansho-status-overview>')($rootScope);
|
||||
$httpBackend.flush();
|
||||
$rootScope.problems = 31;
|
||||
$rootScope.$digest();
|
||||
|
@ -1,15 +1,15 @@
|
||||
<div class="panes panes--3" ng-controller="TacticalCtrl" id="tactical">
|
||||
<div class="panes__container">
|
||||
<div class="panes__pane" ng-if="statusOverview">
|
||||
<adg-status-overview></adg-status-overview>
|
||||
<bansho-status-overview></bansho-status-overview>
|
||||
</div>
|
||||
|
||||
<div class="panes__pane" ng-if="currentHealth">
|
||||
<adg-current-health></adg-current-health>
|
||||
<bansho-current-health></bansho-current-health>
|
||||
</div>
|
||||
|
||||
<div class="panes__pane" ng-if="topAlertProducers">
|
||||
<adg-top-alert-producers></adg-top-alert-producers>
|
||||
<bansho-top-alert-producers></bansho-top-alert-producers>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -67,7 +67,7 @@ angular.module('adagios.tactical', ['adagios.live',
|
||||
});
|
||||
}])
|
||||
|
||||
.directive('adgTactical', ['tacticalConfig', function (tacticalConfig) {
|
||||
.directive('banshoTactical', ['tacticalConfig', function (tacticalConfig) {
|
||||
return {
|
||||
restrict: 'E',
|
||||
templateUrl: 'components/tactical/tactical.html',
|
||||
|
@ -18,7 +18,7 @@ angular.module('adagios.tactical.top_alert_producers', ['ngRoute' ])
|
||||
];
|
||||
}])
|
||||
|
||||
.directive('adgTopAlertProducers', function () {
|
||||
.directive('banshoTopAlertProducers', function () {
|
||||
return {
|
||||
restrict: 'E',
|
||||
templateUrl: 'components/tactical/top_alert_producers/top_alert_producers.html'
|
||||
|
@ -33,7 +33,7 @@ describe('Top Alert Producer tactical submodule', function () {
|
||||
describe('Status overview directive', function () {
|
||||
|
||||
it('should insert the number of warnings', function () {
|
||||
var element = $compile('<adg-top-alert-producers></adg-top-alert-producers>')($rootScope);
|
||||
var element = $compile('<bansho-top-alert-producers></bansho-top-alert-producers>')($rootScope);
|
||||
$httpBackend.flush();
|
||||
$rootScope.problems = 31;
|
||||
$rootScope.$digest();
|
||||
|
@ -23,7 +23,7 @@ angular.module('adagios.topbar', ['adagios.live'])
|
||||
getData();
|
||||
}])
|
||||
|
||||
.directive('adgTopbar', function () {
|
||||
.directive('banshoTopbar', function () {
|
||||
return {
|
||||
restrict: 'E',
|
||||
templateUrl: 'components/topbar/topbar.html'
|
||||
|
@ -31,7 +31,7 @@ describe('Topbar module', function () {
|
||||
describe('Topbar directive', function () {
|
||||
|
||||
it('should insert the number of warnings', function () {
|
||||
var element = $compile('<adg-topbar></adg-topbar>')($rootScope);
|
||||
var element = $compile('<bansho-topbar></bansho-topbar>')($rootScope);
|
||||
$httpBackend.flush();
|
||||
$rootScope.notifications = 44;
|
||||
$rootScope.$digest();
|
||||
|
@ -26,12 +26,12 @@
|
||||
<!--[if lt IE 7]> <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p> <![endif]-->
|
||||
<div class="layout__container">
|
||||
<aside class="layout__aside sidebar-wrapper collapse" id="sidebarWrapper">
|
||||
<adg-sidebar></adg-sidebar>
|
||||
<bansho-sidebar></bansho-sidebar>
|
||||
</aside>
|
||||
|
||||
<div class="layout__main">
|
||||
<div class="topbar-wrapper clearfix">
|
||||
<adg-topbar></adg-topbar>
|
||||
<bansho-topbar></bansho-topbar>
|
||||
</div>
|
||||
|
||||
<main ng-view id="page" class="main" role="main"></main>
|
||||
|
@ -2,10 +2,10 @@
|
||||
<header class="main__overview">
|
||||
<h2 class="main__overview__title">{{dashboardTactical[0].title}}</h2>
|
||||
|
||||
<adg-tactical status-overview="{{dashboardTactical[0].statusOverview}}"
|
||||
<bansho-tactical status-overview="{{dashboardTactical[0].statusOverview}}"
|
||||
current-health="{{dashboardTactical[0].currentHealth}}"
|
||||
top-alert-producers="{{dashboardTactical[0].topAlertProducers}}"
|
||||
refresh-interval="{{dashboardRefreshInterval}}"></adg-tactical>
|
||||
refresh-interval="{{dashboardRefreshInterval}}"></bansho-tactical>
|
||||
|
||||
</header>
|
||||
|
||||
@ -35,7 +35,7 @@
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<adg-table-actionbar></adg-table-actionbar>
|
||||
<bansho-table-actionbar></bansho-table-actionbar>
|
||||
|
||||
<div class="tab-content">
|
||||
<div role="tabpanel" class="problems tab-pane active" id="openProblems">
|
||||
@ -52,7 +52,7 @@
|
||||
</p>
|
||||
</header>
|
||||
|
||||
<adg-table cells-text="{{dashboardTables[0].CellsText}}"
|
||||
<bansho-table cells-text="{{dashboardTables[0].CellsText}}"
|
||||
cells-name="{{dashboardTables[0].CellsName}}"
|
||||
api-name="{{dashboardTables[0].ApiName}}"
|
||||
filters="{{dashboardTables[0].Filters}}"
|
||||
@ -60,7 +60,7 @@
|
||||
no-repeat-cell="{{dashboardTables[0].NoRepeatCell}}"
|
||||
refresh-interval="{{dashboardRefreshInterval}}"
|
||||
additionnal-query-fields="{{dashboardTables[0].additionnalQueryFields}}"
|
||||
table-id="0"></adg-table>
|
||||
table-id="0"></bansho-table>
|
||||
|
||||
</span>
|
||||
|
||||
@ -77,7 +77,7 @@
|
||||
</p>
|
||||
</header>
|
||||
|
||||
<adg-table cells-text="{{dashboardTables[1].CellsText}}"
|
||||
<bansho-table cells-text="{{dashboardTables[1].CellsText}}"
|
||||
cells-name="{{dashboardTables[1].CellsName}}"
|
||||
api-name="{{dashboardTables[1].ApiName}}"
|
||||
filters="{{dashboardTables[1].Filters}}"
|
||||
@ -85,7 +85,7 @@
|
||||
no-repeat-cell="{{dashboardTables[1].NoRepeatCell}}"
|
||||
refresh-interval="{{dashboardRefreshInterval}}"
|
||||
additionnal-query-fields="{{dashboardTables[1].additionnalQueryFields}}"
|
||||
table-id="1"></adg-table>
|
||||
table-id="1"></bansho-table>
|
||||
|
||||
</span>
|
||||
</div>
|
||||
@ -104,14 +104,14 @@
|
||||
</p>
|
||||
</header>
|
||||
|
||||
<adg-table cells-text="{{dashboardTables[2].CellsText}}"
|
||||
<bansho-table cells-text="{{dashboardTables[2].CellsText}}"
|
||||
cells-name="{{dashboardTables[2].CellsName}}"
|
||||
api-name="{{dashboardTables[2].ApiName}}"
|
||||
filters="{{dashboardTables[2].Filters}}"
|
||||
is-wrappable="{{dashboardTables[2].IsWrappable}}"
|
||||
no-repeat-cell="{{dashboardTables[2].NoRepeatCell}}"
|
||||
refresh-interval="{{dashboardRefreshInterval}}"
|
||||
table-id="2"></adg-table>
|
||||
table-id="2"></bansho-table>
|
||||
</span>
|
||||
|
||||
<span ng-hide="nbServiceProblems == 0">
|
||||
@ -127,14 +127,14 @@
|
||||
</p>
|
||||
</header>
|
||||
|
||||
<adg-table cells-text="{{dashboardTables[3].CellsText}}"
|
||||
<bansho-table cells-text="{{dashboardTables[3].CellsText}}"
|
||||
cells-name="{{dashboardTables[3].CellsName}}"
|
||||
api-name="{{dashboardTables[3].ApiName}}"
|
||||
filters="{{dashboardTables[3].Filters}}"
|
||||
is-wrappable="{{dashboardTables[3].IsWrappable}}"
|
||||
no-repeat-cell="{{dashboardTables[3].NoRepeatCell}}"
|
||||
refresh-interval="{{dashboardRefreshInterval}}"
|
||||
table-id="3"></adg-table>
|
||||
table-id="3"></bansho-table>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,3 +1,3 @@
|
||||
<article ng-controller="HostViewCtrl">
|
||||
<adg-host host-name="{{hostName}}"></adg-host>
|
||||
<bansho-host host-name="{{hostName}}"></bansho-host>
|
||||
</article>
|
||||
|
@ -1,3 +1,3 @@
|
||||
<article ng-controller="ServiceViewCtrl">
|
||||
<adg-service host-name="{{hostName}}" description="{{description}}"></adg-service>
|
||||
<bansho-service host-name="{{hostName}}" description="{{description}}"></bansho-service>
|
||||
</article>
|
||||
|
@ -10,14 +10,14 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<adg-table cells-name="{{tableConfig.CellsName}}"
|
||||
<bansho-table cells-name="{{tableConfig.CellsName}}"
|
||||
cells-text="{{tableConfig.CellsText}}"
|
||||
api-name="{{tableConfig.ApiName}}"
|
||||
filters="{{tableConfig.Filters}}"
|
||||
is-wrappable="{{tableConfig.IsWrappable}}"
|
||||
no-repeat-cell="{{tableConfig.NoRepeatCell}}"
|
||||
refresh-interval="{{singleTableRefreshInterval}}"
|
||||
table-id="0"></adg-table>
|
||||
table-id="0"></bansho-table>
|
||||
|
||||
</section>
|
||||
</article>
|
||||
|
Loading…
x
Reference in New Issue
Block a user