From f1b6d5d55204a99d26a39b3f3fa20730dc39391b Mon Sep 17 00:00:00 2001 From: Vincent Fournier Date: Mon, 17 Aug 2015 18:35:41 -0400 Subject: [PATCH] Rename files to conform with standard Change-Id: Ia3914eaeb81093a44124e0c3c10ad681276aa866 --- app/components/directive/directive.js | 1 + .../host_tree.html} | 0 .../hostTree.js => host_tree/host_tree.js} | 2 +- .../directive/state_icon/state_icon.js | 2 +- .../{tabpanel => tab_panel}/panel.html | 0 .../tab_panel.html} | 0 .../tabpanel.js => tab_panel/tab_panel.js} | 4 +- .../paging_bar.html} | 0 .../pagingbar.js => paging_bar/paging_bar.js} | 2 +- .../text_area.html} | 0 .../textArea.js => text_area/text_area.js} | 2 +- app/index.html | 250 +++++++++--------- 12 files changed, 138 insertions(+), 125 deletions(-) rename app/components/directive/{hostTree/hostTree.html => host_tree/host_tree.html} (100%) rename app/components/directive/{hostTree/hostTree.js => host_tree/host_tree.js} (91%) rename app/components/directive/{tabpanel => tab_panel}/panel.html (100%) rename app/components/directive/{tabpanel/tabpanel.html => tab_panel/tab_panel.html} (100%) rename app/components/directive/{tabpanel/tabpanel.js => tab_panel/tab_panel.js} (91%) rename app/components/directive/table/{pagingbar/pagingbar.html => paging_bar/paging_bar.html} (100%) rename app/components/directive/table/{pagingbar/pagingbar.js => paging_bar/paging_bar.js} (94%) rename app/components/directive/{textArea/textArea.html => text_area/text_area.html} (100%) rename app/components/directive/{textArea/textArea.js => text_area/text_area.js} (90%) diff --git a/app/components/directive/directive.js b/app/components/directive/directive.js index 3c24b02..51e65e0 100644 --- a/app/components/directive/directive.js +++ b/app/components/directive/directive.js @@ -5,6 +5,7 @@ angular.module('bansho.directive', [ 'bansho.textArea', 'bansho.container', 'bansho.hostTree', + 'bansho.stateIcon', 'bansho.table', 'bansho.tabpanel', 'bansho.tactical', diff --git a/app/components/directive/hostTree/hostTree.html b/app/components/directive/host_tree/host_tree.html similarity index 100% rename from app/components/directive/hostTree/hostTree.html rename to app/components/directive/host_tree/host_tree.html diff --git a/app/components/directive/hostTree/hostTree.js b/app/components/directive/host_tree/host_tree.js similarity index 91% rename from app/components/directive/hostTree/hostTree.js rename to app/components/directive/host_tree/host_tree.js index 11c7a8d..163c8a6 100644 --- a/app/components/directive/hostTree/hostTree.js +++ b/app/components/directive/host_tree/host_tree.js @@ -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 = {}; diff --git a/app/components/directive/state_icon/state_icon.js b/app/components/directive/state_icon/state_icon.js index fda65a5..1e790a0 100644 --- a/app/components/directive/state_icon/state_icon.js +++ b/app/components/directive/state_icon/state_icon.js @@ -1,6 +1,6 @@ 'use strict'; -angular.module('bansho.table') +angular.module('bansho.stateIcon', []) .directive('banshoHostStateIcon', function () { return { restrict: 'EA', diff --git a/app/components/directive/tabpanel/panel.html b/app/components/directive/tab_panel/panel.html similarity index 100% rename from app/components/directive/tabpanel/panel.html rename to app/components/directive/tab_panel/panel.html diff --git a/app/components/directive/tabpanel/tabpanel.html b/app/components/directive/tab_panel/tab_panel.html similarity index 100% rename from app/components/directive/tabpanel/tabpanel.html rename to app/components/directive/tab_panel/tab_panel.html diff --git a/app/components/directive/tabpanel/tabpanel.js b/app/components/directive/tab_panel/tab_panel.js similarity index 91% rename from app/components/directive/tabpanel/tabpanel.js rename to app/components/directive/tab_panel/tab_panel.js index c74aa1c..d91c21b 100644 --- a/app/components/directive/tabpanel/tabpanel.js +++ b/app/components/directive/tab_panel/tab_panel.js @@ -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: '=' }, diff --git a/app/components/directive/table/pagingbar/pagingbar.html b/app/components/directive/table/paging_bar/paging_bar.html similarity index 100% rename from app/components/directive/table/pagingbar/pagingbar.html rename to app/components/directive/table/paging_bar/paging_bar.html diff --git a/app/components/directive/table/pagingbar/pagingbar.js b/app/components/directive/table/paging_bar/paging_bar.js similarity index 94% rename from app/components/directive/table/pagingbar/pagingbar.js rename to app/components/directive/table/paging_bar/paging_bar.js index 11cc4a7..80150ea 100644 --- a/app/components/directive/table/pagingbar/pagingbar.js +++ b/app/components/directive/table/paging_bar/paging_bar.js @@ -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; diff --git a/app/components/directive/textArea/textArea.html b/app/components/directive/text_area/text_area.html similarity index 100% rename from app/components/directive/textArea/textArea.html rename to app/components/directive/text_area/text_area.html diff --git a/app/components/directive/textArea/textArea.js b/app/components/directive/text_area/text_area.js similarity index 90% rename from app/components/directive/textArea/textArea.js rename to app/components/directive/text_area/text_area.js index 01485b0..ccf5864 100644 --- a/app/components/directive/textArea/textArea.js +++ b/app/components/directive/text_area/text_area.js @@ -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); diff --git a/app/index.html b/app/index.html index 862add4..efd4d5b 100644 --- a/app/index.html +++ b/app/index.html @@ -4,140 +4,152 @@ - - - Bansho - - - - - - - - - - + + + Bansho + + + + + + + + + + - + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - + + + + + + + - - + + - - - - - - - - - - - - - + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - + + - - + + - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - + + + + + + - - -
- + -
-
- -
+ -
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+
-
- - - - +
+
+
+
+ + + + +