Merge pull request #45 from savoirfairelinux/banshoisation

Banshoisation
This commit is contained in:
Alexandre Viau 2015-04-24 13:38:43 -04:00
commit 42e6eb6981
58 changed files with 171 additions and 171 deletions

View File

@ -82,11 +82,11 @@ module.exports = function (grunt) {
} }
}, },
// Minify and concatenate adagios in one file // Minify and concatenate bansho in one file
uglify: { uglify: {
compress: { compress: {
files: [{ files: [{
'<%= project.build %>/js/adagios.min.js' : [ '<%= project.build %>/js/bansho.min.js' : [
'<%= project.app %>/app.js', '<%= project.app %>/app.js',
'<%= project.app %>/app.js', '<%= project.app %>/app.js',
'<%= project.app %>/components/config/config.js', '<%= project.app %>/components/config/config.js',
@ -173,7 +173,7 @@ module.exports = function (grunt) {
'<%= project.build %>/templates/service/service.js': '<%= project.app %>/templates/service/service.js' '<%= project.build %>/templates/service/service.js': '<%= project.app %>/templates/service/service.js'
}, },
{ {
'<%= project.build %>/js/adagios.min.js' : [ '<%= project.build %>/js/bansho.min.js' : [
'<%= project.build %>/app.js', '<%= project.build %>/app.js',
'<%= project.build %>/components/config/config.js', '<%= project.build %>/components/config/config.js',
'<%= project.build %>/components/utils/promise_manager.js', '<%= project.build %>/components/utils/promise_manager.js',
@ -261,7 +261,7 @@ module.exports = function (grunt) {
'<%= project.build %>/templates/service/service.js': '<%= project.app %>/templates/service/service.js' '<%= project.build %>/templates/service/service.js': '<%= project.app %>/templates/service/service.js'
}, },
{ {
'<%= project.build %>/js/adagios.min.js' : [ '<%= project.build %>/js/bansho.min.js' : [
'<%= project.build %>/app.js', '<%= project.build %>/app.js',
'<%= project.build %>/components/config/config.js', '<%= project.build %>/components/config/config.js',
'<%= project.build %>/components/utils/promise_manager.js', '<%= project.build %>/components/utils/promise_manager.js',

View File

@ -1,6 +1,6 @@
================ ======
Adagios FrontEnd Bansho
================ ======
@ -10,8 +10,8 @@ Installation
:: ::
sudo apt-get install npm nodejs-legacy ruby sudo apt-get install npm nodejs-legacy ruby
git clone https://github.com/titilambert/adagios-frontend.git git clone https://github.com/savoirfairelinux/bansho
cd adagios-frontend cd bansho
npm install npm install
gem install sass gem install sass
@ -52,7 +52,7 @@ you already have docker installed) :
make build make build
make daemon make daemon
curl http://localhost:8080/app curl http://localhost:8888/app
You must leave grunt running in the background to automatically compile css You must leave grunt running in the background to automatically compile css
and minify/compress js files when source code changes and minify/compress js files when source code changes
@ -94,7 +94,7 @@ Launch
npm start npm start
Now, go on http://127.0.0.1:8080 Now, go on http://127.0.0.1:8000/app/
Contributing Contributing
============ ============
@ -105,7 +105,7 @@ and then open a pull-request to this repo's master branch.
:: ::
<fork this repo on github> <fork this repo on github>
git clone your-repo/adagios-frontend git clone your-repo/bansho
git checkout -b dev-new-feature-xx git checkout -b dev-new-feature-xx
git commit ... git commit ...
git push origin dev-new-feature-xx git push origin dev-new-feature-xx
@ -115,7 +115,7 @@ Good practices before opening a pull request:
- Run tests with `npm test` - Run tests with `npm test`
- Lint your .js files with `grunt jslint` - Lint your .js files with `grunt jslint`
- Make sure your directives are prefixed with `adg` - Make sure your directives are prefixed with `bansho`
- Make sure your controllers are suffixed with `Ctrl` - Make sure your controllers are suffixed with `Ctrl`
- Resolve merge conflicts locally - Resolve merge conflicts locally

View File

@ -4,28 +4,28 @@ angular.element(document).ready(function () {
$.get('components/config/config.json', function (data) { $.get('components/config/config.json', function (data) {
angular.module('adagios.config').config(['readConfigProvider', function (readConfigProvider) { angular.module('bansho.config').config(['readConfigProvider', function (readConfigProvider) {
readConfigProvider.loadJSON(data); readConfigProvider.loadJSON(data);
}]); }]);
angular.bootstrap(document, ['adagios']); angular.bootstrap(document, ['bansho']);
}, "json"); }, "json");
}); });
angular.module('adagios', [ angular.module('bansho', [
'ngRoute', 'ngRoute',
'adagios.config', 'bansho.config',
'adagios.utils.promiseManager', 'bansho.utils.promiseManager',
'adagios.topbar', 'bansho.topbar',
'adagios.sidebar', 'bansho.sidebar',
'adagios.host', 'bansho.host',
'adagios.service', 'bansho.service',
'adagios.view', 'bansho.view',
'adagios.view.dashboard', 'bansho.view.dashboard',
'adagios.view.singleTable', 'bansho.view.singleTable',
'adagios.view.host', 'bansho.view.host',
'adagios.view.service' 'bansho.view.service'
]) ])
.config(['$routeProvider', function ($routeProvider) { .config(['$routeProvider', function ($routeProvider) {

View File

@ -5,7 +5,7 @@ function AdagiosConfig(data) {
this.data = data; this.data = data;
} }
angular.module('adagios.config', []) angular.module('bansho.config', [])
.provider('readConfig', function ReadConfigProvider() { .provider('readConfig', function ReadConfigProvider() {

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('adagios.filters', []) angular.module('bansho.filters', [])
.filter('timeElapsed', [function () { .filter('timeElapsed', [function () {
return function (input) { return function (input) {

View File

@ -1,9 +1,9 @@
<article ng-controller="HostCtrl"> <article ng-controller="HostCtrl">
<section class="main__content tabpanel" ng-if="data.live && data.config"> <section class="main__content tabpanel" ng-if="data.live && data.config">
<adg-host-main></adg-host-main> <bansho-host-main></bansho-host-main>
<adg-host-services-list></adg-host-services-list> <bansho-host-services-list></bansho-host-services-list>
<adg-host-load></adg-host-load> <bansho-host-load></bansho-host-load>
<adg-host-cpu></adg-host-cpu> <bansho-host-cpu></bansho-host-cpu>
<adg-host-info></adg-host-info> <bansho-host-info></bansho-host-info>
</section> </section>
</article> </article>

View File

@ -1,11 +1,11 @@
'use strict'; 'use strict';
angular.module('adagios.host', ['adagios.live', angular.module('bansho.host', ['bansho.live',
'adagios.host.main', 'bansho.host.main',
'adagios.host.load', 'bansho.host.load',
'adagios.host.cpu', 'bansho.host.cpu',
'adagios.host.info', 'bansho.host.info',
'adagios.host.services_list']) 'bansho.host.services_list'])
.value('hostConfig', {}) .value('hostConfig', {})
@ -22,7 +22,7 @@ angular.module('adagios.host', ['adagios.live',
}); });
}]) }])
.directive('adgHost', ['$http', '$compile', 'hostConfig', .directive('banshoHost', ['$http', '$compile', 'hostConfig',
function ($http, $compile, hostConfig) { function ($http, $compile, hostConfig) {
return { return {
restrict: 'E', restrict: 'E',
@ -32,7 +32,7 @@ angular.module('adagios.host', ['adagios.live',
var template = 'components/host/host.html'; var template = 'components/host/host.html';
if (!attrs.hostName) { 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 = {}; hostConfig.hostName = {};

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('adagios.host.cpu', []) angular.module('bansho.host.cpu', [])
.controller('HostCpuCtrl', ['$scope', 'getObjects', function ($scope, getObjects) { .controller('HostCpuCtrl', ['$scope', 'getObjects', function ($scope, getObjects) {
var hostName = $scope.hostName, var hostName = $scope.hostName,
@ -16,7 +16,7 @@ angular.module('adagios.host.cpu', [])
}); });
}]) }])
.directive('adgHostCpu', function () { .directive('banshoHostCpu', function () {
return { return {
restrict: 'E', restrict: 'E',
templateUrl: 'components/host/host_cpu/host_cpu.html' templateUrl: 'components/host/host_cpu/host_cpu.html'

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('adagios.host.info', []) angular.module('bansho.host.info', [])
.controller('HostInfoCtrl', ['$scope', function ($scope) { .controller('HostInfoCtrl', ['$scope', function ($scope) {
$scope.active_checks = ($scope.data.live.active_checks_enabled === '1') ? 'Enabled' : 'Disabled'; $scope.active_checks = ($scope.data.live.active_checks_enabled === '1') ? 'Enabled' : 'Disabled';
@ -9,7 +9,7 @@ angular.module('adagios.host.info', [])
$scope.flap_detection_enabled = ($scope.data.config.flap_detection_enabled === '1') ? 'Enabled' : 'Disabled'; $scope.flap_detection_enabled = ($scope.data.config.flap_detection_enabled === '1') ? 'Enabled' : 'Disabled';
}]) }])
.directive('adgHostInfo', function () { .directive('banshoHostInfo', function () {
return { return {
restrict: 'E', restrict: 'E',
templateUrl: 'components/host/host_info/host_info.html' templateUrl: 'components/host/host_info/host_info.html'

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('adagios.host.load', []) angular.module('bansho.host.load', [])
.controller('HostLoadCtrl', ['$scope', 'getObjects', function ($scope, getObjects) { .controller('HostLoadCtrl', ['$scope', 'getObjects', function ($scope, getObjects) {
var hostName = $scope.hostName, var hostName = $scope.hostName,
@ -16,7 +16,7 @@ angular.module('adagios.host.load', [])
}); });
}]) }])
.directive('adgHostLoad', function () { .directive('banshoHostLoad', function () {
return { return {
restrict: 'E', restrict: 'E',
templateUrl: 'components/host/host_load/host_load.html' templateUrl: 'components/host/host_load/host_load.html'

View File

@ -1,12 +1,12 @@
'use strict'; 'use strict';
angular.module('adagios.host.main', []) angular.module('bansho.host.main', [])
.controller('HostMainCtrl', ['$scope', function ($scope) { .controller('HostMainCtrl', ['$scope', function ($scope) {
angular.noop(); angular.noop();
}]) }])
.directive('adgHostMain', function () { .directive('banshoHostMain', function () {
return { return {
restrict: 'E', restrict: 'E',
templateUrl: 'components/host/host_main/host_main.html' templateUrl: 'components/host/host_main/host_main.html'

View File

@ -1,12 +1,12 @@
'use strict'; 'use strict';
angular.module('adagios.host.services_list', []) angular.module('bansho.host.services_list', [])
.controller('HostServicesListCtrl', ['$scope', function ($scope) { .controller('HostServicesListCtrl', ['$scope', function ($scope) {
angular.noop(); angular.noop();
}]) }])
.directive('adgHostServicesList', function () { .directive('banshoHostServicesList', function () {
return { return {
restrict: 'E', restrict: 'E',
templateUrl: 'components/host/host_services_list/host_services_list.html' templateUrl: 'components/host/host_services_list/host_services_list.html'

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('adagios.live') angular.module('bansho.live')
.constant('filterSuffixes', { contains: '__contains', .constant('filterSuffixes', { contains: '__contains',
has_field: '__has_field', has_field: '__has_field',

View File

@ -3,7 +3,7 @@
describe('In Adagios Live', function () { describe('In Adagios Live', function () {
var $httpBackend; var $httpBackend;
beforeEach(module('adagios.live')); beforeEach(module('bansho.live'));
beforeEach(inject(function (_$httpBackend_) { beforeEach(inject(function (_$httpBackend_) {
$httpBackend = _$httpBackend_; $httpBackend = _$httpBackend_;

View File

@ -1,3 +1,3 @@
'use strict'; 'use strict';
angular.module('adagios.live', []); angular.module('bansho.live', []);

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('adagios.live') angular.module('bansho.live')
.service('getObjects', ['$http', 'hostQueryTransform', 'hostMiddleware', 'serviceMiddleware', .service('getObjects', ['$http', 'hostQueryTransform', 'hostMiddleware', 'serviceMiddleware',
function ($http, hostQueryTransform, hostMiddleware, serviceMiddleware) { function ($http, hostQueryTransform, hostMiddleware, serviceMiddleware) {

View File

@ -1,8 +1,8 @@
<article ng-controller="ServiceCtrl"> <article ng-controller="ServiceCtrl">
<h2>Service</h2> <h2>Service</h2>
<section class="main__content tabpanel" ng-if="data"> <section class="main__content tabpanel" ng-if="data">
<adg-service-main></adg-service-main> <bansho-service-main></bansho-service-main>
<adg-service-info></adg-service-info> <bansho-service-info></bansho-service-info>
<adg-service-metrics></adg-service-metrics> <bansho-service-metrics></bansho-service-metrics>
</section> </section>
</article> </article>

View File

@ -1,9 +1,9 @@
'use strict'; 'use strict';
angular.module('adagios.service', ['adagios.live', angular.module('bansho.service', ['bansho.live',
'adagios.service.main', 'bansho.service.main',
'adagios.service.info', 'bansho.service.info',
'adagios.service.metrics']) 'bansho.service.metrics'])
.value('serviceConfig', {}) .value('serviceConfig', {})
@ -17,7 +17,7 @@ angular.module('adagios.service', ['adagios.live',
}); });
}]) }])
.directive('adgService', ['$http', '$compile', 'serviceConfig', .directive('banshoService', ['$http', '$compile', 'serviceConfig',
function ($http, $compile, serviceConfig) { function ($http, $compile, serviceConfig) {
return { return {
restrict: 'E', restrict: 'E',
@ -27,7 +27,7 @@ angular.module('adagios.service', ['adagios.live',
var template = 'components/service/service.html'; var template = 'components/service/service.html';
if (!attrs.hostName && !!attrs.description) { 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 = ''; serviceConfig.hostName = '';

View File

@ -1,12 +1,12 @@
'use strict'; 'use strict';
angular.module('adagios.service.info', []) angular.module('bansho.service.info', [])
.controller('ServiceInfoCtrl', ['$scope', function ($scope) { .controller('ServiceInfoCtrl', ['$scope', function ($scope) {
$scope.acknowledged = $scope.data[0].acknowledged === "1" ? "Yes" : "No"; $scope.acknowledged = $scope.data[0].acknowledged === "1" ? "Yes" : "No";
}]) }])
.directive('adgServiceInfo', function () { .directive('banshoServiceInfo', function () {
return { return {
restrict: 'E', restrict: 'E',
templateUrl: 'components/service/service_info/service_info.html' templateUrl: 'components/service/service_info/service_info.html'

View File

@ -1,12 +1,12 @@
'use strict'; 'use strict';
angular.module('adagios.service.main', []) angular.module('bansho.service.main', [])
.controller('ServiceMainCtrl', ['$scope', function ($scope) { .controller('ServiceMainCtrl', ['$scope', function ($scope) {
angular.noop(); angular.noop();
}]) }])
.directive('adgServiceMain', function () { .directive('banshoServiceMain', function () {
return { return {
restrict: 'E', restrict: 'E',
templateUrl: 'components/service/service_main/service_main.html' templateUrl: 'components/service/service_main/service_main.html'

View File

@ -1,12 +1,12 @@
'use strict'; 'use strict';
angular.module('adagios.service.metrics', []) angular.module('bansho.service.metrics', [])
.controller('ServiceMetricsCtrl', ['$scope', function ($scope) { .controller('ServiceMetricsCtrl', ['$scope', function ($scope) {
angular.noop(); angular.noop();
}]) }])
.directive('adgServiceMetrics', function () { .directive('banshoServiceMetrics', function () {
return { return {
restrict: 'E', restrict: 'E',
templateUrl: 'components/service/service_metrics/service_metrics.html' templateUrl: 'components/service/service_metrics/service_metrics.html'

View File

@ -1,11 +1,11 @@
<div ng-app="adagios.sidebar" class="sidebar" ng-controller="SideBarCtrl"> <div class="sidebar" ng-controller="SideBarCtrl">
<button class="sidebar__close"> <button class="sidebar__close">
<span class="visuallyhidden">Close the sidebar</span> <span class="visuallyhidden">Close the sidebar</span>
<i class="ico-cancel"></i> <i class="ico-cancel"></i>
</button> </button>
<header class="sidebar__header"> <header class="sidebar__header">
<h1 class="sidebar__appname">ADAGIOS</h1> <h1 class="sidebar__appname">BANSHO</h1>
<time class="sidebar__date" datetime="2014-11-24 16:04">24 nov. 16:04</time> <time class="sidebar__date" datetime="2014-11-24 16:04">24 nov. 16:04</time>
</header> </header>

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('adagios.sidebar', []) angular.module('bansho.sidebar', [])
.controller('SideBarCtrl', ['$scope', '$location', function ($scope, $location) { .controller('SideBarCtrl', ['$scope', '$location', function ($scope, $location) {
$scope.getClass = function (path) { $scope.getClass = function (path) {
@ -14,7 +14,7 @@ angular.module('adagios.sidebar', [])
}; };
}]) }])
.directive('adgSidebar', function () { .directive('banshoSidebar', function () {
return { return {
restrict: 'E', restrict: 'E',
templateUrl: "components/sidebar/sidebar.html" templateUrl: "components/sidebar/sidebar.html"

View File

@ -6,7 +6,7 @@ describe('Sidebar module', function () {
$controller, $controller,
$httpBackend; $httpBackend;
beforeEach(module('adagios.sidebar')); beforeEach(module('bansho.sidebar'));
beforeEach(inject(function (_$compile_, _$rootScope_, _$controller_, _$httpBackend_) { beforeEach(inject(function (_$compile_, _$rootScope_, _$controller_, _$httpBackend_) {
$compile = _$compile_; $compile = _$compile_;
@ -31,7 +31,7 @@ describe('Sidebar module', function () {
describe('Sidebar directive', function () { describe('Sidebar directive', function () {
it('should send a GET request', 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(); $httpBackend.flush();
expect(element.html()).toBe('<li></li>'); expect(element.html()).toBe('<li></li>');

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('adagios.table.actionbar', []) angular.module('bansho.table.actionbar', [])
.factory('actionbarFilters', function () { .factory('actionbarFilters', function () {
var actionbarFilters = { var actionbarFilters = {
@ -68,7 +68,7 @@ angular.module('adagios.table.actionbar', [])
}; };
}) })
.directive('adgTableActionbar', function () { .directive('banshoTableActionbar', function () {
return { return {
restrict: 'E', restrict: 'E',
templateUrl: 'components/table/actionbar/actionbar.html' templateUrl: 'components/table/actionbar/actionbar.html'

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('adagios.table.cell_duration', ['adagios.table']) angular.module('bansho.table.cell_duration', ['bansho.table'])
.controller('CellDurationCtrl', [function () { .controller('CellDurationCtrl', [function () {
angular.noop(); angular.noop();

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('adagios.table.cell_host', ['adagios.table']) angular.module('bansho.table.cell_host', ['bansho.table'])
.controller('CellHostCtrl', ['$scope', function ($scope) { .controller('CellHostCtrl', ['$scope', function ($scope) {
$scope.cell_name = 'host'; $scope.cell_name = 'host';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('adagios.table.cell_host_address', ['adagios.table']) angular.module('bansho.table.cell_host_address', ['bansho.table'])
.controller('CellHostAddressCtrl', [function () { .controller('CellHostAddressCtrl', [function () {
angular.noop(); angular.noop();

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('adagios.table.cell_host_status', ['adagios.table']) angular.module('bansho.table.cell_host_status', ['bansho.table'])
.controller('CellHostStatusCtrl', ['$scope', function ($scope) { .controller('CellHostStatusCtrl', ['$scope', function ($scope) {
$scope.entry.host_status = ""; $scope.entry.host_status = "";

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('adagios.table.cell_last_check', ['adagios.table']) angular.module('bansho.table.cell_last_check', ['bansho.table'])
.controller('CellLastCheckCtrl', [function () { .controller('CellLastCheckCtrl', [function () {
angular.noop(); angular.noop();

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('adagios.table.cell_service_check', ['adagios.table']) angular.module('bansho.table.cell_service_check', ['bansho.table'])
.controller('CellServiceCheckCtrl', ['$scope', function ($scope) { .controller('CellServiceCheckCtrl', ['$scope', function ($scope) {
if ($scope.entry.state === 0) { if ($scope.entry.state === 0) {

View File

@ -12,7 +12,7 @@
<tbody class="{{entry.child_class}}" ng-repeat="entry in entries | actionbarSelectFilter:actionbarFilters.activeFilter | filter:actionbarFilters.searchFilter | noRepeat:this | wrappableStyle:this"> <tbody class="{{entry.child_class}}" ng-repeat="entry in entries | actionbarSelectFilter:actionbarFilters.activeFilter | filter:actionbarFilters.searchFilter | noRepeat:this | wrappableStyle:this">
<tr> <tr>
<td><input type="checkbox"></td> <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> </tr>
</tbody> </tbody>
</table> </table>

View File

@ -1,15 +1,15 @@
'use strict'; 'use strict';
angular.module('adagios.table', ['adagios.live', angular.module('bansho.table', ['bansho.live',
'adagios.utils.promiseManager', 'bansho.utils.promiseManager',
'adagios.table.actionbar', 'bansho.table.actionbar',
'adagios.filters', 'bansho.filters',
'adagios.table.cell_host', 'bansho.table.cell_host',
'adagios.table.cell_duration', 'bansho.table.cell_duration',
'adagios.table.cell_service_check', 'bansho.table.cell_service_check',
'adagios.table.cell_last_check', 'bansho.table.cell_last_check',
'adagios.table.cell_host_address', 'bansho.table.cell_host_address',
'adagios.table.cell_host_status' 'bansho.table.cell_host_status'
]) ])
.value('tableGlobalConfig', {'cellToFieldsMap': {}, 'cellWrappableField': {}, 'nextTableIndex': 0}) .value('tableGlobalConfig', {'cellToFieldsMap': {}, 'cellWrappableField': {}, 'nextTableIndex': 0})
@ -64,7 +64,7 @@ angular.module('adagios.table', ['adagios.live',
tableGlobalConfig.nextTableIndex += 1; tableGlobalConfig.nextTableIndex += 1;
}]) }])
.directive('adgTable', ['$http', '$compile', 'tablesConfig', 'tableGlobalConfig', .directive('banshoTable', ['$http', '$compile', 'tablesConfig', 'tableGlobalConfig',
function ($http, $compile, tablesConfig, tableGlobalConfig) { function ($http, $compile, tablesConfig, tableGlobalConfig) {
return { return {
restrict: 'E', restrict: 'E',
@ -75,7 +75,7 @@ angular.module('adagios.table', ['adagios.live',
conf; conf;
if (!attrs.cellsText || !attrs.cellsName || !attrs.apiName || !attrs.isWrappable) { 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'); + ' 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 { return {
restrict: 'A', restrict: 'A',
compile: function () { compile: function () {
return function (scope, element, attrs) { return function (scope, element, attrs) {
if (!attrs.cellName) { 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'; var template = 'components/table/cell_' + attrs.cellName + '/cell_' + attrs.cellName + '.html';

View File

@ -5,7 +5,7 @@ describe('In Table module', function () {
$rootScope, $rootScope,
$httpBackend; $httpBackend;
beforeEach(module('adagios.table')); beforeEach(module('bansho.table'));
beforeEach(inject(function (_$compile_, _$rootScope_, _$httpBackend_) { beforeEach(inject(function (_$compile_, _$rootScope_, _$httpBackend_) {
$compile = _$compile_; $compile = _$compile_;
@ -13,13 +13,13 @@ describe('In Table module', function () {
$httpBackend = _$httpBackend_; $httpBackend = _$httpBackend_;
})); }));
describe('adgCell directive', function () { describe('banshoCell directive', function () {
it('should send a get request to the proper cell template', function () { it('should send a get request to the proper cell template', function () {
var cells = ['host', 'service_check', 'duration', 'last_check']; var cells = ['host', 'service_check', 'duration', 'last_check'];
angular.forEach(cells, function (cell) { 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); $compile(elem)($rootScope);
$httpBackend.expectGET('components/table/cell_' + cell + '/cell_' + cell + '.html').respond(''); $httpBackend.expectGET('components/table/cell_' + cell + '/cell_' + cell + '.html').respond('');
$httpBackend.flush(); $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 () { 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); $compile(elem)($rootScope);
$httpBackend.expectGET('components/table/table.html').respond(''); $httpBackend.expectGET('components/table/table.html').respond('');
$httpBackend.flush(); $httpBackend.flush();

View File

@ -1,13 +1,13 @@
'use strict'; 'use strict';
angular.module('adagios.tactical.current_health', ['adagios.live', angular.module('bansho.tactical.current_health', ['bansho.live',
'ngJustGage']) 'ngJustGage'])
.controller('TacticalCurrentHealth', ['$scope', function ($scope) { .controller('TacticalCurrentHealth', ['$scope', function ($scope) {
angular.noop(); angular.noop();
}]) }])
.directive('adgCurrentHealth', function () { .directive('banshoCurrentHealth', function () {
return { return {
restrict: 'E', restrict: 'E',
templateUrl: 'components/tactical/current_health/current_health.html' templateUrl: 'components/tactical/current_health/current_health.html'

View File

@ -6,7 +6,7 @@ describe('Current Health tactical submodule', function () {
$controller, $controller,
$httpBackend; $httpBackend;
beforeEach(module('adagios.tactical.current_health')); beforeEach(module('bansho.tactical.current_health'));
beforeEach(inject(function (_$compile_, _$rootScope_, _$controller_, _$httpBackend_) { beforeEach(inject(function (_$compile_, _$rootScope_, _$controller_, _$httpBackend_) {
$compile = _$compile_; $compile = _$compile_;
@ -33,7 +33,7 @@ describe('Current Health tactical submodule', function () {
describe('Current health directive', function () { describe('Current health directive', function () {
it('should send a GET request', 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(); $httpBackend.flush();
expect(element.text()).toBe('Current Health'); expect(element.text()).toBe('Current Health');

View File

@ -1,12 +1,12 @@
'use strict'; 'use strict';
angular.module('adagios.tactical.status_overview', []) angular.module('bansho.tactical.status_overview', [])
.controller('TacticalStatusOverViewCtrl', ['$scope', function ($scope) { .controller('TacticalStatusOverViewCtrl', ['$scope', function ($scope) {
angular.noop(); angular.noop();
}]) }])
.directive('adgStatusOverview', function () { .directive('banshoStatusOverview', function () {
return { return {
restrict: 'E', restrict: 'E',
templateUrl: 'components/tactical/status_overview/status_overview.html' templateUrl: 'components/tactical/status_overview/status_overview.html'

View File

@ -6,7 +6,7 @@ describe('Status Overview tactical submodule', function () {
$controller, $controller,
$httpBackend; $httpBackend;
beforeEach(module('adagios.tactical.status_overview')); beforeEach(module('bansho.tactical.status_overview'));
beforeEach(inject(function (_$compile_, _$rootScope_, _$controller_, _$httpBackend_) { beforeEach(inject(function (_$compile_, _$rootScope_, _$controller_, _$httpBackend_) {
$compile = _$compile_; $compile = _$compile_;
@ -33,7 +33,7 @@ describe('Status Overview tactical submodule', function () {
describe('Status overview directive', function () { describe('Status overview directive', function () {
it('should insert the number of warnings', 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(); $httpBackend.flush();
$rootScope.problems = 31; $rootScope.problems = 31;
$rootScope.$digest(); $rootScope.$digest();

View File

@ -1,15 +1,15 @@
<div class="panes panes--3" ng-controller="TacticalCtrl" id="tactical"> <div class="panes panes--3" ng-controller="TacticalCtrl" id="tactical">
<div class="panes__container"> <div class="panes__container">
<div class="panes__pane" ng-if="statusOverview"> <div class="panes__pane" ng-if="statusOverview">
<adg-status-overview></adg-status-overview> <bansho-status-overview></bansho-status-overview>
</div> </div>
<div class="panes__pane" ng-if="currentHealth"> <div class="panes__pane" ng-if="currentHealth">
<adg-current-health></adg-current-health> <bansho-current-health></bansho-current-health>
</div> </div>
<div class="panes__pane" ng-if="topAlertProducers"> <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> </div>
</div> </div>

View File

@ -1,10 +1,10 @@
'use strict'; 'use strict';
angular.module('adagios.tactical', ['adagios.live', angular.module('bansho.tactical', ['bansho.live',
'adagios.utils.promiseManager', 'bansho.utils.promiseManager',
'adagios.tactical.status_overview', 'bansho.tactical.status_overview',
'adagios.tactical.current_health', 'bansho.tactical.current_health',
'adagios.tactical.top_alert_producers' 'bansho.tactical.top_alert_producers'
]) ])
.value('tacticalConfig', {}) .value('tacticalConfig', {})
@ -67,7 +67,7 @@ angular.module('adagios.tactical', ['adagios.live',
}); });
}]) }])
.directive('adgTactical', ['tacticalConfig', function (tacticalConfig) { .directive('banshoTactical', ['tacticalConfig', function (tacticalConfig) {
return { return {
restrict: 'E', restrict: 'E',
templateUrl: 'components/tactical/tactical.html', templateUrl: 'components/tactical/tactical.html',

View File

@ -2,7 +2,7 @@
describe('Tactical module', function () { describe('Tactical module', function () {
beforeEach(module('adagios.tactical')); beforeEach(module('bansho.tactical'));
describe('TacticalCtrl', function () { describe('TacticalCtrl', function () {

View File

@ -1,4 +1,4 @@
<table ng-app="adagios.tactical.top_alert_producers" ng-controller="TacticalTopAlertProducers" class="table"> <table ng-controller="TacticalTopAlertProducers" class="table">
<thead> <thead>
<tr> <tr>
<th>Top alert producers</th> <th>Top alert producers</th>

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('adagios.tactical.top_alert_producers', ['ngRoute' ]) angular.module('bansho.tactical.top_alert_producers', ['ngRoute' ])
.controller('TacticalTopAlertProducers', ['$scope', function ($scope) { .controller('TacticalTopAlertProducers', ['$scope', function ($scope) {
$scope.hosts = [ $scope.hosts = [
{ {
@ -18,7 +18,7 @@ angular.module('adagios.tactical.top_alert_producers', ['ngRoute' ])
]; ];
}]) }])
.directive('adgTopAlertProducers', function () { .directive('banshoTopAlertProducers', function () {
return { return {
restrict: 'E', restrict: 'E',
templateUrl: 'components/tactical/top_alert_producers/top_alert_producers.html' templateUrl: 'components/tactical/top_alert_producers/top_alert_producers.html'

View File

@ -6,7 +6,7 @@ describe('Top Alert Producer tactical submodule', function () {
$controller, $controller,
$httpBackend; $httpBackend;
beforeEach(module('adagios.tactical.top_alert_producers')); beforeEach(module('bansho.tactical.top_alert_producers'));
beforeEach(inject(function (_$compile_, _$rootScope_, _$controller_, _$httpBackend_) { beforeEach(inject(function (_$compile_, _$rootScope_, _$controller_, _$httpBackend_) {
$compile = _$compile_; $compile = _$compile_;
@ -33,7 +33,7 @@ describe('Top Alert Producer tactical submodule', function () {
describe('Status overview directive', function () { describe('Status overview directive', function () {
it('should insert the number of warnings', 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(); $httpBackend.flush();
$rootScope.problems = 31; $rootScope.problems = 31;
$rootScope.$digest(); $rootScope.$digest();

View File

@ -1,4 +1,4 @@
<nav ng-app="adagios.topbar" id="topbar" class="topbar" role="navigation" ng-controller="TopBarCtrl"> <nav id="topbar" class="topbar" role="navigation" ng-controller="TopBarCtrl">
<ul class="topbar__list topbar__list--left"> <ul class="topbar__list topbar__list--left">
<li class="topbar__item topbar__toggle-sidebar"> <li class="topbar__item topbar__toggle-sidebar">
<button class="topbar__button" <button class="topbar__button"
@ -125,7 +125,7 @@
<nav class="topbar__panel__content" role="navigation"> <nav class="topbar__panel__content" role="navigation">
<ul class="topbar__settings__list"> <ul class="topbar__settings__list">
<li class="topbar__settings__item"> <li class="topbar__settings__item">
<span class="topbar__settings__category">Adagios</span> <span class="topbar__settings__category">Bansho</span>
<ul class="topbar__settings__sublist"> <ul class="topbar__settings__sublist">
<li class="topbar__settings__subitem"><a href="#">Missing Plugins</a></li> <li class="topbar__settings__subitem"><a href="#">Missing Plugins</a></li>

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('adagios.topbar', ['adagios.live']) angular.module('bansho.topbar', ['bansho.live'])
.controller('TopBarCtrl', ['$scope', '$interval', 'getServiceProblems', 'getHostProblems', 'addAjaxPromise', .controller('TopBarCtrl', ['$scope', '$interval', 'getServiceProblems', 'getHostProblems', 'addAjaxPromise',
function ($scope, $interval, getServiceProblems, getHostProblems, addAjaxPromise) { function ($scope, $interval, getServiceProblems, getHostProblems, addAjaxPromise) {
@ -23,7 +23,7 @@ angular.module('adagios.topbar', ['adagios.live'])
getData(); getData();
}]) }])
.directive('adgTopbar', function () { .directive('banshoTopbar', function () {
return { return {
restrict: 'E', restrict: 'E',
templateUrl: 'components/topbar/topbar.html' templateUrl: 'components/topbar/topbar.html'

View File

@ -6,7 +6,7 @@ describe('Topbar module', function () {
$controller, $controller,
$httpBackend; $httpBackend;
beforeEach(module('adagios.topbar')); beforeEach(module('bansho.topbar'));
beforeEach(inject(function (_$compile_, _$rootScope_, _$controller_, _$httpBackend_) { beforeEach(inject(function (_$compile_, _$rootScope_, _$controller_, _$httpBackend_) {
$compile = _$compile_; $compile = _$compile_;
@ -31,7 +31,7 @@ describe('Topbar module', function () {
describe('Topbar directive', function () { describe('Topbar directive', function () {
it('should insert the number of warnings', 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(); $httpBackend.flush();
$rootScope.notifications = 44; $rootScope.notifications = 44;
$rootScope.$digest(); $rootScope.$digest();

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('adagios.utils.promiseManager', []) angular.module('bansho.utils.promiseManager', [])
.value('ajaxPromises', []) .value('ajaxPromises', [])

View File

@ -1,12 +1,12 @@
<!DOCTYPE html> <!DOCTYPE html>
<!--[if IE 7]> <html lang="en" ng-app="adagios" class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 7]> <html lang="en" class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if lt IE 7]> <html lang="en" ng-app="adagios" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html lang="en" ng-app="adagios" class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if lt IE 7]> <html lang="en" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html lang="en" class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html lang="en" ng-app="adagios" class="no-js lt-ie9"> <![endif]--> <!--[if IE 8]> <html lang="en" class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en" class="no-js"> <!--<![endif]--> <!--[if gt IE 8]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Adagios</title> <title>Bansho</title>
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,400italic' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Roboto:400,700,400italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="assets/css/app.css"> <link rel="stylesheet" href="assets/css/app.css">
@ -19,19 +19,19 @@
<script src="bower_components/html5-boilerplate/js/vendor/modernizr-2.6.2.min.js"></script> <script src="bower_components/html5-boilerplate/js/vendor/modernizr-2.6.2.min.js"></script>
<script src="bower_components/moment/moment.js"></script> <script src="bower_components/moment/moment.js"></script>
<script src="build/js/adagios.min.js"></script> <script src="build/js/bansho.min.js"></script>
</head> </head>
<body class="layout color-scheme--dark"> <body class="layout color-scheme--dark">
<!--[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]--> <!--[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"> <div class="layout__container">
<aside class="layout__aside sidebar-wrapper collapse" id="sidebarWrapper"> <aside class="layout__aside sidebar-wrapper collapse" id="sidebarWrapper">
<adg-sidebar></adg-sidebar> <bansho-sidebar></bansho-sidebar>
</aside> </aside>
<div class="layout__main"> <div class="layout__main">
<div class="topbar-wrapper clearfix"> <div class="topbar-wrapper clearfix">
<adg-topbar></adg-topbar> <bansho-topbar></bansho-topbar>
</div> </div>
<main ng-view id="page" class="main" role="main"></main> <main ng-view id="page" class="main" role="main"></main>

View File

@ -1,7 +1,7 @@
'use strict'; 'use strict';
angular.module('adagios.view', ['ngRoute', angular.module('bansho.view', ['ngRoute',
'adagios.config' 'bansho.config'
]) ])
.value('viewsTemplate', {}) .value('viewsTemplate', {})

View File

@ -2,10 +2,10 @@
<header class="main__overview"> <header class="main__overview">
<h2 class="main__overview__title">{{dashboardTactical[0].title}}</h2> <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}}" current-health="{{dashboardTactical[0].currentHealth}}"
top-alert-producers="{{dashboardTactical[0].topAlertProducers}}" top-alert-producers="{{dashboardTactical[0].topAlertProducers}}"
refresh-interval="{{dashboardRefreshInterval}}"></adg-tactical> refresh-interval="{{dashboardRefreshInterval}}"></bansho-tactical>
</header> </header>
@ -35,7 +35,7 @@
</ul> </ul>
</nav> </nav>
<adg-table-actionbar></adg-table-actionbar> <bansho-table-actionbar></bansho-table-actionbar>
<div class="tab-content"> <div class="tab-content">
<div role="tabpanel" class="problems tab-pane active" id="openProblems"> <div role="tabpanel" class="problems tab-pane active" id="openProblems">
@ -52,7 +52,7 @@
</p> </p>
</header> </header>
<adg-table cells-text="{{dashboardTables[0].CellsText}}" <bansho-table cells-text="{{dashboardTables[0].CellsText}}"
cells-name="{{dashboardTables[0].CellsName}}" cells-name="{{dashboardTables[0].CellsName}}"
api-name="{{dashboardTables[0].ApiName}}" api-name="{{dashboardTables[0].ApiName}}"
filters="{{dashboardTables[0].Filters}}" filters="{{dashboardTables[0].Filters}}"
@ -60,7 +60,7 @@
no-repeat-cell="{{dashboardTables[0].NoRepeatCell}}" no-repeat-cell="{{dashboardTables[0].NoRepeatCell}}"
refresh-interval="{{dashboardRefreshInterval}}" refresh-interval="{{dashboardRefreshInterval}}"
additionnal-query-fields="{{dashboardTables[0].additionnalQueryFields}}" additionnal-query-fields="{{dashboardTables[0].additionnalQueryFields}}"
table-id="0"></adg-table> table-id="0"></bansho-table>
</span> </span>
@ -77,7 +77,7 @@
</p> </p>
</header> </header>
<adg-table cells-text="{{dashboardTables[1].CellsText}}" <bansho-table cells-text="{{dashboardTables[1].CellsText}}"
cells-name="{{dashboardTables[1].CellsName}}" cells-name="{{dashboardTables[1].CellsName}}"
api-name="{{dashboardTables[1].ApiName}}" api-name="{{dashboardTables[1].ApiName}}"
filters="{{dashboardTables[1].Filters}}" filters="{{dashboardTables[1].Filters}}"
@ -85,7 +85,7 @@
no-repeat-cell="{{dashboardTables[1].NoRepeatCell}}" no-repeat-cell="{{dashboardTables[1].NoRepeatCell}}"
refresh-interval="{{dashboardRefreshInterval}}" refresh-interval="{{dashboardRefreshInterval}}"
additionnal-query-fields="{{dashboardTables[1].additionnalQueryFields}}" additionnal-query-fields="{{dashboardTables[1].additionnalQueryFields}}"
table-id="1"></adg-table> table-id="1"></bansho-table>
</span> </span>
</div> </div>
@ -104,14 +104,14 @@
</p> </p>
</header> </header>
<adg-table cells-text="{{dashboardTables[2].CellsText}}" <bansho-table cells-text="{{dashboardTables[2].CellsText}}"
cells-name="{{dashboardTables[2].CellsName}}" cells-name="{{dashboardTables[2].CellsName}}"
api-name="{{dashboardTables[2].ApiName}}" api-name="{{dashboardTables[2].ApiName}}"
filters="{{dashboardTables[2].Filters}}" filters="{{dashboardTables[2].Filters}}"
is-wrappable="{{dashboardTables[2].IsWrappable}}" is-wrappable="{{dashboardTables[2].IsWrappable}}"
no-repeat-cell="{{dashboardTables[2].NoRepeatCell}}" no-repeat-cell="{{dashboardTables[2].NoRepeatCell}}"
refresh-interval="{{dashboardRefreshInterval}}" refresh-interval="{{dashboardRefreshInterval}}"
table-id="2"></adg-table> table-id="2"></bansho-table>
</span> </span>
<span ng-hide="nbServiceProblems == 0"> <span ng-hide="nbServiceProblems == 0">
@ -127,14 +127,14 @@
</p> </p>
</header> </header>
<adg-table cells-text="{{dashboardTables[3].CellsText}}" <bansho-table cells-text="{{dashboardTables[3].CellsText}}"
cells-name="{{dashboardTables[3].CellsName}}" cells-name="{{dashboardTables[3].CellsName}}"
api-name="{{dashboardTables[3].ApiName}}" api-name="{{dashboardTables[3].ApiName}}"
filters="{{dashboardTables[3].Filters}}" filters="{{dashboardTables[3].Filters}}"
is-wrappable="{{dashboardTables[3].IsWrappable}}" is-wrappable="{{dashboardTables[3].IsWrappable}}"
no-repeat-cell="{{dashboardTables[3].NoRepeatCell}}" no-repeat-cell="{{dashboardTables[3].NoRepeatCell}}"
refresh-interval="{{dashboardRefreshInterval}}" refresh-interval="{{dashboardRefreshInterval}}"
table-id="3"></adg-table> table-id="3"></bansho-table>
</span> </span>
</div> </div>
</div> </div>

View File

@ -1,10 +1,10 @@
'use strict'; 'use strict';
angular.module('adagios.view.dashboard', ['ngRoute', angular.module('bansho.view.dashboard', ['ngRoute',
'adagios.utils.promiseManager', 'bansho.utils.promiseManager',
'adagios.tactical', 'bansho.tactical',
'adagios.table', 'bansho.table',
'adagios.live' 'bansho.live'
]) ])
.value('dashboardConfig', {}) .value('dashboardConfig', {})

View File

@ -1,3 +1,3 @@
<article ng-controller="HostViewCtrl"> <article ng-controller="HostViewCtrl">
<adg-host host-name="{{hostName}}"></adg-host> <bansho-host host-name="{{hostName}}"></bansho-host>
</article> </article>

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('adagios.view.host', ['adagios.live']) angular.module('bansho.view.host', ['bansho.live'])
.controller('HostViewCtrl', ['$http', '$scope', '$routeParams', .controller('HostViewCtrl', ['$http', '$scope', '$routeParams',
function ($http, $scope, $routeParams) { function ($http, $scope, $routeParams) {

View File

@ -1,3 +1,3 @@
<article ng-controller="ServiceViewCtrl"> <article ng-controller="ServiceViewCtrl">
<adg-service host-name="{{hostName}}" description="{{description}}"></adg-service> <bansho-service host-name="{{hostName}}" description="{{description}}"></bansho-service>
</article> </article>

View File

@ -1,6 +1,6 @@
"use strict"; "use strict";
angular.module("adagios.view.service", [ "adagios.live" ]) angular.module("bansho.view.service", [ "bansho.live" ])
.controller("ServiceViewCtrl", [ "$scope", "$routeParams", .controller("ServiceViewCtrl", [ "$scope", "$routeParams",
function ($scope, $routeParams) { function ($scope, $routeParams) {

View File

@ -10,14 +10,14 @@
</div> </div>
</div> </div>
<adg-table cells-name="{{tableConfig.CellsName}}" <bansho-table cells-name="{{tableConfig.CellsName}}"
cells-text="{{tableConfig.CellsText}}" cells-text="{{tableConfig.CellsText}}"
api-name="{{tableConfig.ApiName}}" api-name="{{tableConfig.ApiName}}"
filters="{{tableConfig.Filters}}" filters="{{tableConfig.Filters}}"
is-wrappable="{{tableConfig.IsWrappable}}" is-wrappable="{{tableConfig.IsWrappable}}"
no-repeat-cell="{{tableConfig.NoRepeatCell}}" no-repeat-cell="{{tableConfig.NoRepeatCell}}"
refresh-interval="{{singleTableRefreshInterval}}" refresh-interval="{{singleTableRefreshInterval}}"
table-id="0"></adg-table> table-id="0"></bansho-table>
</section> </section>
</article> </article>

View File

@ -1,10 +1,10 @@
'use strict'; 'use strict';
angular.module('adagios.view.singleTable', ['ngRoute', angular.module('bansho.view.singleTable', ['ngRoute',
'adagios.tactical.status_overview', 'bansho.tactical.status_overview',
'adagios.tactical.current_health', 'bansho.tactical.current_health',
'adagios.tactical.top_alert_producers', 'bansho.tactical.top_alert_producers',
'adagios.table' 'bansho.table'
]) ])
.value('singleTableConfig', {}) .value('singleTableConfig', {})