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 @@
- - -