Rename modules to bansho and adapt Gruntfile build rules

This commit is contained in:
Frédéric Vachon 2015-04-24 11:18:06 -04:00
parent 475e725874
commit c687f8cfe8
46 changed files with 96 additions and 96 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: {
compress: {
files: [{
'<%= project.build %>/js/adagios.min.js' : [
'<%= project.build %>/js/bansho.min.js' : [
'<%= project.app %>/app.js',
'<%= project.app %>/app.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 %>/js/adagios.min.js' : [
'<%= project.build %>/js/bansho.min.js' : [
'<%= project.build %>/app.js',
'<%= project.build %>/components/config/config.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 %>/js/adagios.min.js' : [
'<%= project.build %>/js/bansho.min.js' : [
'<%= project.build %>/app.js',
'<%= project.build %>/components/config/config.js',
'<%= project.build %>/components/utils/promise_manager.js',

View File

@ -4,28 +4,28 @@ angular.element(document).ready(function () {
$.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);
}]);
angular.bootstrap(document, ['adagios']);
angular.bootstrap(document, ['bansho']);
}, "json");
});
angular.module('adagios', [
angular.module('bansho', [
'ngRoute',
'adagios.config',
'adagios.utils.promiseManager',
'adagios.topbar',
'adagios.sidebar',
'adagios.host',
'adagios.service',
'adagios.view',
'adagios.view.dashboard',
'adagios.view.singleTable',
'adagios.view.host',
'adagios.view.service'
'bansho.config',
'bansho.utils.promiseManager',
'bansho.topbar',
'bansho.sidebar',
'bansho.host',
'bansho.service',
'bansho.view',
'bansho.view.dashboard',
'bansho.view.singleTable',
'bansho.view.host',
'bansho.view.service'
])
.config(['$routeProvider', function ($routeProvider) {

View File

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

View File

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

View File

@ -1,11 +1,11 @@
'use strict';
angular.module('adagios.host', ['adagios.live',
'adagios.host.main',
'adagios.host.load',
'adagios.host.cpu',
'adagios.host.info',
'adagios.host.services_list'])
angular.module('bansho.host', ['bansho.live',
'bansho.host.main',
'bansho.host.load',
'bansho.host.cpu',
'bansho.host.info',
'bansho.host.services_list'])
.value('hostConfig', {})

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('adagios.host.cpu', [])
angular.module('bansho.host.cpu', [])
.controller('HostCpuCtrl', ['$scope', 'getObjects', function ($scope, getObjects) {
var hostName = $scope.hostName,

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('adagios.host.info', [])
angular.module('bansho.host.info', [])
.controller('HostInfoCtrl', ['$scope', function ($scope) {
$scope.active_checks = ($scope.data.live.active_checks_enabled === '1') ? 'Enabled' : 'Disabled';

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('adagios.host.load', [])
angular.module('bansho.host.load', [])
.controller('HostLoadCtrl', ['$scope', 'getObjects', function ($scope, getObjects) {
var hostName = $scope.hostName,

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('adagios.host.main', [])
angular.module('bansho.host.main', [])
.controller('HostMainCtrl', ['$scope', function ($scope) {
angular.noop();

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('adagios.host.services_list', [])
angular.module('bansho.host.services_list', [])
.controller('HostServicesListCtrl', ['$scope', function ($scope) {
angular.noop();

View File

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

View File

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

View File

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

View File

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

View File

@ -1,9 +1,9 @@
'use strict';
angular.module('adagios.service', ['adagios.live',
'adagios.service.main',
'adagios.service.info',
'adagios.service.metrics'])
angular.module('bansho.service', ['bansho.live',
'bansho.service.main',
'bansho.service.info',
'bansho.service.metrics'])
.value('serviceConfig', {})

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('adagios.service.info', [])
angular.module('bansho.service.info', [])
.controller('ServiceInfoCtrl', ['$scope', function ($scope) {
$scope.acknowledged = $scope.data[0].acknowledged === "1" ? "Yes" : "No";

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('adagios.service.main', [])
angular.module('bansho.service.main', [])
.controller('ServiceMainCtrl', ['$scope', function ($scope) {
angular.noop();

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('adagios.service.metrics', [])
angular.module('bansho.service.metrics', [])
.controller('ServiceMetricsCtrl', ['$scope', function ($scope) {
angular.noop();

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('adagios.sidebar', [])
angular.module('bansho.sidebar', [])
.controller('SideBarCtrl', ['$scope', '$location', function ($scope, $location) {
$scope.getClass = function (path) {

View File

@ -6,7 +6,7 @@ describe('Sidebar module', function () {
$controller,
$httpBackend;
beforeEach(module('adagios.sidebar'));
beforeEach(module('bansho.sidebar'));
beforeEach(inject(function (_$compile_, _$rootScope_, _$controller_, _$httpBackend_) {
$compile = _$compile_;

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('adagios.table.actionbar', [])
angular.module('bansho.table.actionbar', [])
.factory('actionbarFilters', function () {
var actionbarFilters = {

View File

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

View File

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

View File

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

View File

@ -1,6 +1,6 @@
'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) {
$scope.entry.host_status = "";

View File

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

View File

@ -1,6 +1,6 @@
'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) {
if ($scope.entry.state === 0) {

View File

@ -1,15 +1,15 @@
'use strict';
angular.module('adagios.table', ['adagios.live',
'adagios.utils.promiseManager',
'adagios.table.actionbar',
'adagios.filters',
'adagios.table.cell_host',
'adagios.table.cell_duration',
'adagios.table.cell_service_check',
'adagios.table.cell_last_check',
'adagios.table.cell_host_address',
'adagios.table.cell_host_status'
angular.module('bansho.table', ['bansho.live',
'bansho.utils.promiseManager',
'bansho.table.actionbar',
'bansho.filters',
'bansho.table.cell_host',
'bansho.table.cell_duration',
'bansho.table.cell_service_check',
'bansho.table.cell_last_check',
'bansho.table.cell_host_address',
'bansho.table.cell_host_status'
])
.value('tableGlobalConfig', {'cellToFieldsMap': {}, 'cellWrappableField': {}, 'nextTableIndex': 0})

View File

@ -5,7 +5,7 @@ describe('In Table module', function () {
$rootScope,
$httpBackend;
beforeEach(module('adagios.table'));
beforeEach(module('bansho.table'));
beforeEach(inject(function (_$compile_, _$rootScope_, _$httpBackend_) {
$compile = _$compile_;

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('adagios.tactical.current_health', ['adagios.live',
angular.module('bansho.tactical.current_health', ['bansho.live',
'ngJustGage'])
.controller('TacticalCurrentHealth', ['$scope', function ($scope) {

View File

@ -6,7 +6,7 @@ describe('Current Health tactical submodule', function () {
$controller,
$httpBackend;
beforeEach(module('adagios.tactical.current_health'));
beforeEach(module('bansho.tactical.current_health'));
beforeEach(inject(function (_$compile_, _$rootScope_, _$controller_, _$httpBackend_) {
$compile = _$compile_;

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('adagios.tactical.status_overview', [])
angular.module('bansho.tactical.status_overview', [])
.controller('TacticalStatusOverViewCtrl', ['$scope', function ($scope) {
angular.noop();

View File

@ -6,7 +6,7 @@ describe('Status Overview tactical submodule', function () {
$controller,
$httpBackend;
beforeEach(module('adagios.tactical.status_overview'));
beforeEach(module('bansho.tactical.status_overview'));
beforeEach(inject(function (_$compile_, _$rootScope_, _$controller_, _$httpBackend_) {
$compile = _$compile_;

View File

@ -1,10 +1,10 @@
'use strict';
angular.module('adagios.tactical', ['adagios.live',
'adagios.utils.promiseManager',
'adagios.tactical.status_overview',
'adagios.tactical.current_health',
'adagios.tactical.top_alert_producers'
angular.module('bansho.tactical', ['bansho.live',
'bansho.utils.promiseManager',
'bansho.tactical.status_overview',
'bansho.tactical.current_health',
'bansho.tactical.top_alert_producers'
])
.value('tacticalConfig', {})

View File

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

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('adagios.tactical.top_alert_producers', ['ngRoute' ])
angular.module('bansho.tactical.top_alert_producers', ['ngRoute' ])
.controller('TacticalTopAlertProducers', ['$scope', function ($scope) {
$scope.hosts = [
{

View File

@ -6,7 +6,7 @@ describe('Top Alert Producer tactical submodule', function () {
$controller,
$httpBackend;
beforeEach(module('adagios.tactical.top_alert_producers'));
beforeEach(module('bansho.tactical.top_alert_producers'));
beforeEach(inject(function (_$compile_, _$rootScope_, _$controller_, _$httpBackend_) {
$compile = _$compile_;

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('adagios.topbar', ['adagios.live'])
angular.module('bansho.topbar', ['bansho.live'])
.controller('TopBarCtrl', ['$scope', '$interval', 'getServiceProblems', 'getHostProblems', 'addAjaxPromise',
function ($scope, $interval, getServiceProblems, getHostProblems, addAjaxPromise) {

View File

@ -6,7 +6,7 @@ describe('Topbar module', function () {
$controller,
$httpBackend;
beforeEach(module('adagios.topbar'));
beforeEach(module('bansho.topbar'));
beforeEach(inject(function (_$compile_, _$rootScope_, _$controller_, _$httpBackend_) {
$compile = _$compile_;

View File

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

View File

@ -1,12 +1,12 @@
<!DOCTYPE html>
<!--[if IE 7]> <html lang="en" ng-app="adagios" 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 IE 8]> <html lang="en" ng-app="adagios" class="no-js lt-ie9"> <![endif]-->
<!--[if IE 7]> <html lang="en" 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" class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<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">
<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">
@ -19,7 +19,7 @@
<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="build/js/adagios.min.js"></script>
<script src="build/js/bansho.min.js"></script>
</head>
<body class="layout color-scheme--dark">

View File

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

View File

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

View File

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

View File

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

View File

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