Rename files to conform with standard

Change-Id: Ia3914eaeb81093a44124e0c3c10ad681276aa866
This commit is contained in:
Vincent Fournier 2015-08-17 18:35:41 -04:00
parent 68e3f89633
commit f1b6d5d552
12 changed files with 138 additions and 125 deletions

View File

@ -5,6 +5,7 @@ angular.module('bansho.directive', [
'bansho.textArea',
'bansho.container',
'bansho.hostTree',
'bansho.stateIcon',
'bansho.table',
'bansho.tabpanel',
'bansho.tactical',

View File

@ -8,7 +8,7 @@ angular.module('bansho.hostTree', ['bansho.datasource'])
scope: {
options: '='
},
templateUrl: 'components/directive/hostTree/hostTree.html',
templateUrl: 'components/directive/host_tree/host_tree.html',
controller: ['$scope', 'sharedData',
function ($scope, sharedData) {
$scope.sources = {};

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('bansho.table')
angular.module('bansho.stateIcon', [])
.directive('banshoHostStateIcon', function () {
return {
restrict: 'EA',

View File

@ -4,7 +4,7 @@ angular.module('bansho.tabpanel', [])
.directive('banshoTabpanel', ['sharedData', function (sharedData) {
return {
restrict: 'E',
templateUrl: 'components/directive/tabpanel/tabpanel.html',
templateUrl: 'components/directive/tab_panel/tab_panel.html',
scope: {
options: '='
},
@ -28,7 +28,7 @@ angular.module('bansho.tabpanel', [])
.directive('banshoPanel', function () {
return {
restrict: 'E',
templateUrl: 'components/directive/tabpanel/panel.html',
templateUrl: 'components/directive/tab_panel/panel.html',
scope: {
options: '='
},

View File

@ -7,7 +7,7 @@ angular.module('bansho.table.pagingbar', ['bansho.datasource', 'bansho.surveil',
scope: {
options: '='
},
templateUrl: 'components/directive/table/pagingbar/pagingbar.html',
templateUrl: 'components/directive/table/paging_bar/paging_bar.html',
controller: ['$scope', 'datasource',
function ($scope, datasource) {
$scope.datasourceId = $scope.options.attributes.datasourceId;

View File

@ -10,7 +10,7 @@ angular.module('bansho.textArea', [])
scope: {
options: '='
},
templateUrl: 'components/directive/textArea/textArea.html',
templateUrl: 'components/directive/text_area/text_area.html',
controller:['$scope', '$window', 'configManager',
function ($scope, $window, configManager) {
$scope.configuration = JSON.stringify(configManager.readLayoutConfig(), null, 4);

View File

@ -46,6 +46,7 @@
<script src="app.js"></script>
<script src="components/config/config.js"></script>
<!-- Surveil API client -->
<script src="components/surveil/surveil.js"></script>
<script src="components/surveil/status.js"></script>
@ -60,19 +61,53 @@
<script src="components/sidebar/sidebar.js"></script>
<script src="components/topbar/topbar.js"></script>
<script src="components/datasource/datasource.js"></script>
<script src="components/grafana/grafana.js"></script>
<!-- Directives -->
<script src="components/directive/directive.js"></script>
<!-- Table components -->
<script src="components/directive/table/table.js"></script>
<script src="components/directive/table/cell_single/cell_single.js"></script>
<script src="components/directive/table/cell_other_fields/cell_other_fields.js"></script>
<script src="components/directive/table/cell_status_duration/cell_status_duration.js"></script>
<script src="components/directive/table/cell_config_host_register/cell_config_host_register.js"></script>
<script src="components/directive/table/cell_status_host/cell_status_host.js"></script>
<script src="components/directive/table/cell_status_last_check/cell_status_last_check.js"></script>
<script src="components/directive/table/cell_status_service_check/cell_status_service_check.js"></script>
<script src="components/directive/table/cell_status_host_status/cell_status_host_status.js"></script>
<script src="components/directive/tab_panel/tab_panel.js"></script>
<script src="components/directive/state_icon/state_icon.js"></script>
<script src="components/directive/text_area/text_area.js"></script>
<script src="components/directive/host_tree/host_tree.js"></script>
<script src="components/directive/title/title.js"></script>
<script src="components/directive/tactical/tactical.js"></script>
<script src="components/directive/tactical/status_overview/status_overview.js"></script>
<script src="components/directive/tactical/current_health/current_health.js"></script>
<script src="components/directive/tactical/top_alert_producers/top_alert_producers.js"></script>
<script src="components/directive/tabpanel/tabpanel.js"></script>
<!-- Table components -->
<script src="components/directive/container/container.js"></script>
<script src="components/directive/container/info/info.js"></script>
<script src="components/directive/container/host_cpu/host_cpu.js"></script>
<script src="components/directive/container/host_load/host_load.js"></script>
<script src="components/directive/container/host_main/host_main.js"></script>
<script src="components/directive/container/host_live/host_live.js"></script>
<script src="components/directive/container/host_services_list/host_services_list.js"></script>
<script src="components/directive/container/service_main/service_main.js"></script>
<script src="components/directive/container/service_live/service_live.js"></script>
<script src="components/directive/container/service_info/service_info.js"></script>
<script src="components/directive/container/service_graphs/service_graphs.js"></script>
<script src="components/directive/container/service_metrics/service_metrics.js"></script>
<script src="components/directive/actionbar/actionbar.js"></script>
<script src="components/directive/actionbar/component_acknowledge/acknowledge.js"></script>
<script src="components/directive/actionbar/component_downtime/downtime.js"></script>
@ -80,50 +115,27 @@
<script src="components/directive/actionbar/component_more/more.js"></script>
<script src="components/directive/actionbar/component_recheck/recheck.js"></script>
<script src="components/directive/actionbar/component_search_filter/search_filter.js"></script>
<script src="components/directive/container/info/info.js"></script>
<script src="components/directive/textArea/textArea.js"></script>
<script src="components/directive/table/table.js"></script>
<script src="components/directive/table/pagingbar/pagingbar.js"></script>
<script src="components/directive/table/cell_status_duration/cell_status_duration.js"></script>
<script src="components/directive/table/cell_single/cell_single.js"></script>
<script src="components/directive/table/cell_config_host_register/cell_config_host_register.js"></script>
<script src="components/directive/table/paging_bar/paging_bar.js"></script>
<script src="components/directive/table/cell_other_fields/cell_other_fields.js"></script>
<script src="components/directive/table/cell_status_host/cell_status_host.js"></script>
<script src="components/directive/table/cell_status_last_check/cell_status_last_check.js"></script>
<script src="components/directive/table/cell_status_service_check/cell_status_service_check.js"></script>
<script src="components/directive/table/cell_status_host_status/cell_status_host_status.js"></script>
<script src="components/directive/state_icon/state_icon.js"></script>
<script src="components/grafana/grafana.js"></script>
<script src="components/directive/container/host_cpu/host_cpu.js"></script>
<script src="components/directive/container/host_load/host_load.js"></script>
<script src="components/directive/container/host_main/host_main.js"></script>
<script src="components/directive/container/host_live/host_live.js"></script>
<script src="components/directive/container/host_services_list/host_services_list.js"></script>
<script src="components/directive/hostTree/hostTree.js"></script>
<script src="components/directive/container/service_main/service_main.js"></script>
<script src="components/directive/container/service_live/service_live.js"></script>
<script src="components/directive/container/service_info/service_info.js"></script>
<script src="components/directive/container/service_graphs/service_graphs.js"></script>
<script src="components/directive/container/service_metrics/service_metrics.js"></script>
<script src="components/drupal/drupal.js"></script>
<script src="components/drupal/drupal_tile/drupal_tile.js"></script>
<script src="components/drupal/drupal_info/drupal_info.js"></script>
<script src="routing_view/routing_view.js"></script>
<script src="templates/template.js"></script>
<script src="templates/page/page.js"></script>
<script src="templates/drupal_dashboard/drupal_dashboard.js"></script>
<script src="templates/drupal/drupal.js"></script>
<!-- endbuild -->
</head>
</head>
<body class="layout" ng-class="[themeClass, themeClassSize]" ng-app="bansho">
<body class="layout" data-ng-class="[themeClass, themeClassSize]" data-ng-app="bansho">
<!--[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">
<bansho-sidebar ng-show="isAuthenticated"></bansho-sidebar>
<bansho-sidebar data-ng-show="isAuthenticated"></bansho-sidebar>
</aside>
<div class="layout__main">
@ -131,7 +143,7 @@
<bansho-topbar ng-show="isAuthenticated"></bansho-topbar>
</div>
<main ng-view id="page" class="main" role="main"></main>
<main data-ng-view id="page" class="main" role="main"></main>
<footer class="footer" role="contentinfo"></footer>
</div>
</div>
@ -139,5 +151,5 @@
<!-- build:developmentOnly -->
<script src="//localhost:35729/livereload.js"></script>
<!-- endbuild -->
</body>
</body>
</html>