diff options
Diffstat (limited to 'ccsdk-app-overlay/src/main/webapp/app/ccsdk/home')
17 files changed, 100 insertions, 1435 deletions
diff --git a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/api_doc.html b/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/api_doc.html deleted file mode 100644 index 342406c..0000000 --- a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/api_doc.html +++ /dev/null @@ -1,26 +0,0 @@ -<!-- - ============LICENSE_START========================================== - =================================================================== - Copyright (C) 2020 AT&T Intellectual Property. All rights reserved. - =================================================================== - - Unless otherwise specified, all software contained herein is licensed - under the Apache License, Version 2.0 (the "License"); - you may not use this software except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - ============LICENSE_END============================================ - --> -<div id="page-content"> - <iframe scrolling="yes" frameborder="0" style="width:100%; height: 800px;" - ng-src="api-specs.html"> - </iframe> -</div>
\ No newline at end of file diff --git a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/appDS2.js b/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/appDS2.js index ebb35cd..f29d7ad 100644 --- a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/appDS2.js +++ b/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/appDS2.js @@ -1,30 +1,14 @@ -/******************************************************************************* - * =============LICENSE_START========================================================= - * - * ================================================================================= - * Copyright (c) 2020 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - * - *******************************************************************************/ - /* Angular application for the EC Dashboard web UI */ var appDS2 = angular.module("abs", [ 'ngCookies', 'ngRoute', 'ngMessages','ngSanitize', - 'ui.bootstrap', 'ui.bootstrap.modal', + 'ui.bootstrap', 'ui.bootstrap.modal', 'ui.select', 'b2b.att', - 'modalServices' + 'modalServices', 'LocalStorageModule' ] - ); + ).config(function($sceDelegateProvider) { + $sceDelegateProvider.resourceUrlWhitelist(['**']); + }).config(['localStorageServiceProvider', function(localStorageServiceProvider) { + localStorageServiceProvider.setPrefix('eom') + .setStorageType('sessionStorage'); + }]); diff --git a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/controller-service.js b/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/controller-service.js index 65495f1..cfa8be7 100644 --- a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/controller-service.js +++ b/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/controller-service.js @@ -1,24 +1,3 @@ -/******************************************************************************* - * =============LICENSE_START========================================================= - * - * ================================================================================= - * Copyright (c) 2020 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - * - *******************************************************************************/ - appDS2.factory('ControllerService', function ($http, $q, $log) { return { /** @@ -39,20 +18,20 @@ appDS2.factory('ControllerService', function ($http, $q, $log) { return $q.reject(error.statusText); }); }, - getApiSwaggerSpec: function() { - return $http({ - method: 'GET', - url: 'nb-api/api-docs', - cache: true, - responseType: 'json' - }).then(function(response) { - return response.data; - }, - function(error) { - $log.error('ControllerService.getApiSwaggerSpec failed: ' + JSON.stringify(error)); - return $q.reject(error.statusText); - }); - }, + getApiSwaggerSpec: function() { + return $http({ + method: 'GET', + url: 'api-docs', + cache: true, + responseType: 'json' + }).then(function(response) { + return response.data; + }, + function(error) { + $log.error('ControllerService.getApiSwaggerSpec failed: ' + JSON.stringify(error)); + return $q.reject(error.statusText); + }); + }, /** * Gets the cloudify tenant names. * @@ -74,70 +53,114 @@ appDS2.factory('ControllerService', function ($http, $q, $log) { return $q.reject(error.statusText); }); }, + getConsulLink: function() { + return $http({ + method: 'GET', + url: 'consul_url', + cache: false, + responseType: 'text' + }).then(function(response) { + if (response.data == null) + return $q.reject('ControllerService.getConsulLink: response.data null or not object'); + else + return response.data; + }, + function(error) { + $log.error('ControllerService.getConsulLink failed: ' + JSON.stringify(error)); + return $q.reject(error.statusText); + }); + }, /** * Gets the ops tools info * */ - getOpsUrls: function() { + getDcaeLinks: function() { return $http({ method: 'GET', - url: 'ops', - cache: true, - responseType: 'json' + url: 'dcae_links', + cache: false, + responseType: 'text' }).then(function(response) { - if (response.data == null || typeof response.data != 'object') - return $q.reject('ControllerService.getOpsUrls: response.data null or not object'); + if (response.data == null) + return $q.reject('ControllerService.getDcaeLinks: response.data null or not object'); else return response.data; }, function(error) { - $log.error('ControllerService.getOpsUrls failed: ' + JSON.stringify(error)); + $log.error('ControllerService.getDcaeLinks failed: ' + JSON.stringify(error)); return $q.reject(error.statusText); }); }, - /** - * Gets ECOMP-C Endpoint objects. - * No provision for pagination here. - * @return {JSON} Response object from remote side - */ - getControllers: function() { - // cache control for IE - var cc = "?cc=" + new Date().getTime().toString(); + + getOpsToolUrls: function() { return $http({ - method: 'GET', - url: 'controllers' + cc, - cache: true, - responseType: 'json' + method: 'GET', + url: 'ops_links', + cache: false, + responseType: 'json' }).then(function(response) { if (response.data == null || typeof response.data != 'object') - return $q.reject('ControllerService.getControllers: response.data null or not object'); + return $q.reject('ControllerService.getOpsToolUrls: response.data null or not object'); else return response.data; }, function(error) { - $log.error('ControllerService.getControllers failed: ' + JSON.stringify(error)); + $log.error('ControllerService.getOpsToolUrls failed: ' + JSON.stringify(error)); return $q.reject(error.statusText); - }); + }); }, - setControllerSelection: function(row) { - // $log.debug('ControllerService.setControllerSelection: invoked with ' + JSON.stringify(row)); + //Get the links from database table along with site/tenant list + getOpsToolMenuLinks: function() { return $http({ - method: 'POST', - url: 'controllers', - data: row, - responseType: 'json' + method: 'GET', + url: 'ops_menu_links', + cache: false, + responseType: 'json' }).then(function(response) { if (response.data == null || typeof response.data != 'object') - return $q.reject('ControllerService.setControllerSelection: response.data null or not object'); + return $q.reject('ControllerService.getOpsToolMenuLinks: response.data null or not object'); else return response.data; }, function(error) { - $log.error('ControllerService.setControllerSelection failed: ' + JSON.stringify(error)); + $log.error('ControllerService.getOpsToolMenuLinks failed: ' + JSON.stringify(error)); return $q.reject(error.statusText); - }); - } - + }); + }, + getUserRoleData: function() { + return $http({ + method: 'GET', + url: 'user-role-details', + cache: false, + responseType: 'json' + }).then(function(response) { + if (response.data == null || typeof response.data != 'object') + return $q.reject('ControllerService.getUserRoleData: response.data null or not object'); + else + return response.data; + }, + function(error) { + $log.error('ControllerService.getUserRoleData failed: ' + JSON.stringify(error)); + return $q.reject(error.statusText); + }); + }, + getPluginsCount: function() { + return $http({ + method: 'GET', + url: 'plugins-count', + cache: false, + responseType: 'json' + }).then(function(response) { + if (response.data == null || typeof response.data != 'object') + return $q.reject('ControllerService.getPluginsCount: response.data null or not object'); + else + return response.data; + }, + function(error) { + $log.error('ControllerService.getPluginsCount failed: ' + JSON.stringify(error)); + return $q.reject(error.statusText); + }); + } }; }); diff --git a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/controller_table.html b/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/controller_table.html deleted file mode 100644 index 965b701..0000000 --- a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/controller_table.html +++ /dev/null @@ -1,85 +0,0 @@ -<div id="page-content"> - - <h1 class="heading-page" id="controllers">ECOMP-C Instances</h1> - - <!-- show progress indicator --> - <div ng-show="ecdapp.isDataLoading"> - <div class="span" style="margin-bottom:20px;"> - <i class="icon-spinner small" role="img" aria-label="Please wait while the content loads"></i> - Please wait while the content loads. - </div> - </div> - - <div ng-hide="ecdapp.isDataLoading"> - - <div id="button-search-row"> - <div style="float:right;"> - <div class="form-field form-field__small"> - <input - type="text" - placeholder="Search Controllers" - ng-model="ecdapp.searchString"/> - </div> - </div> - </div> - - <div ng-show="ecdapp.isRequestFailed"> - <span class="ecd-error-message">{{ecdapp.errMsg}}</span> - </div> - - <div ng-hide="ecdapp.isRequestFailed"> - - <div - b2b-table - id="controllers-table" - class="b2b-table-div" - table-data="ecdapp.tableData" - search-string="ecdapp.searchString" - current-page="ecdapp.currentPageIgnored" - next-sort="ecdapp.nextSortIgnored"> - - <table> - - <thead b2b-table-row type="header"> - <tr id="th-header-row"> - <th b2b-table-header sortable="false">Selected</th> - <th b2b-table-header key="name">Name</th> - <th b2b-table-header key="url">URL</th> - </tr> - </thead> - - <tbody b2b-table-row type="body" row-repeat="rowData in ecdapp.tableData"> - <tr id="tr-rowData"> - <td b2b-table-body> - <label class="radio"> - <input - type="radio" - name="ecdSelGroup" - title="rowData.url" - ng-value="rowData.url" - ng-model="ecdapp.radiobutton.url" - ng-change="ecdapp.selectController(rowData);"> - <i class="skin"></i> - <span></span> - </label> - </td> - <td b2b-table-body - ng-bind="rowData.name"/> - <td b2b-table-body - ng-bind="rowData.url"/> - </tr> - </tbody> - </table> - </div> - - <!-- no pagination --> - - </div> - - <div style="height: 10px;"> - <!-- space between page number and black footer --> - </div> - - </div><!-- loading --> - -</div><!-- page content --> diff --git a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/oom_popup_templates.html b/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/ecd_popup_templates.html index fe4d505..9e640e9 100644 --- a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/oom_popup_templates.html +++ b/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/ecd_popup_templates.html @@ -62,4 +62,4 @@ </button> </div> </div> -</script> +</script>
\ No newline at end of file diff --git a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/executions-view-controller.js b/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/executions-view-controller.js deleted file mode 100644 index 2491e50..0000000 --- a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/executions-view-controller.js +++ /dev/null @@ -1,45 +0,0 @@ -appDS2.controller('executionsViewController', function($scope, $rootScope, ControllerService, $modal, ExecutionService, $log) { - - $scope.parent = { 'blueprint_id': 'Root', 'parent': 'parent' }; - $scope.ecdapp = {}; - $scope.ecdapp.isDataLoading = false; - $scope.ecdapp.appLabel = ""; - $rootScope.tenantList = { - tenant: '', - data: {} - }; - var debug = false; - - var getTenants = function() { - ControllerService.getTenants() - .then(function(jsonObj) { - if (jsonObj.error) { - $log.error("executionsViewController.getTenants failed: " + jsonObj.error); - $scope.ecdapp.isRequestFailed = true; - $scope.ecdapp.errMsg = jsonObj.error; - $scope.ecdapp.tableData = []; - } else { - $rootScope.tenantList.data = jsonObj.items; - $rootScope.tenantList.tenant = jsonObj.items[0].name; - } - }, function(error) { - $log.error("executionsViewController.loadTable failed: " + error); - $scope.ecdapp.isRequestFailed = true; - $scope.ecdapp.errMsg = error; - }); - }; - - var getAppLabel = function() { - ControllerService.getAppLabel().then(function(jsonObj) { - if (debug) - $log.debug("Controller.getAppLabel succeeded: " + JSON.stringify(jsonObj)); - $scope.ecdapp.appLabel = jsonObj; - }, function(error) { - $log.error("Controller.getAppLabel failed: " + error); - }); - }; - // Initialize the page - getAppLabel(); - getTenants(); - -}); diff --git a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/executions_view.html b/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/executions_view.html deleted file mode 100644 index 5623b1c..0000000 --- a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/executions_view.html +++ /dev/null @@ -1,5 +0,0 @@ -<div id="page-content"> - - <h4 class="heading-page" id="controllers">DCAE Dashboard</h4> -</div> - diff --git a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/http-interceptor.js b/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/http-interceptor.js deleted file mode 100644 index 0f5410d..0000000 --- a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/http-interceptor.js +++ /dev/null @@ -1,29 +0,0 @@ -appDS2.factory('httpInterceptor', function ($q, $rootScope, $location) { - return { - 'request': function (config) { - return config; - }, - /* - 'requestError': function (rejection) { - }, - */ - 'response': function (response) { - if (response.data == null) { - var loc = location.pathname; - console.log("location path name: " + loc); - var loc1 = loc.replace("/", ""); - var loc2 = loc1.replace("/ecd", "/login.htm"); - console.log("location url: " + loc2); - alert("Your session has expired. Please log in again..."); - location.replace("/"+loc2); - } - return response; - }, - // optional method - 'responseError': function (rejection) { - } - }; - }) - .config(function($httpProvider) { - $httpProvider.interceptors.push('httpInterceptor'); - });
\ No newline at end of file diff --git a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/oom-instances-controller.js b/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/oom-instances-controller.js deleted file mode 100644 index f07d1b3..0000000 --- a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/oom-instances-controller.js +++ /dev/null @@ -1,70 +0,0 @@ -/******************************************************************************* - * =============LICENSE_START========================================================= - * - * ================================================================================= - * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - * - * ECOMP is a trademark and service mark of AT&T Intellectual Property. - *******************************************************************************/ -appDS2.controller('selectEcompcController', function( - $scope, $rootScope, $log, $modalInstance, message, ControllerService) { - - // message brings the table items - - 'use strict'; - - // Set to true for verbose output - var debug = false; - - // this object holds data and functions - $scope.ecdapp = {}; - $scope.ecdapp.tableData = message.items; - - // Populate the model that drives the radio buttons. - // Radio buttons require a model with the value of the button - // that is selected. The data comes across with a boolean - // indicator on each row, selected or not, which is useless - // for driving the radio buttons. This model uses the URL - // as the unique value. - $scope.ecdapp.radiobutton = { - url : null - }; - for (var rowNum in message.items) { - let row = message.items[rowNum]; - if (debug) - $log.debug('selectEcompcController: row is ' + JSON.stringify(row)); - if (row.selected) - $scope.ecdapp.radiobutton.url = row.url; - } - - /** - * Handles a click on radio button to select a controller. - */ - $scope.ecdapp.selectController = function(row) { - if (debug) - $log.debug('selectController: row is ' + JSON.stringify(row)); - if (row == null || row.url == null) - $log.error('selectController invoked with bad argument'); - else - ControllerService.setControllerSelection(row).then(function(data) { - $rootScope.$broadcast('controllerChange', {name: row.name}) - }, - function(error) { - $log.error('selectController failed: ' + error); - }); - }; - -}); diff --git a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/oom-router.js b/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/oom-router.js deleted file mode 100644 index 0b43341..0000000 --- a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/oom-router.js +++ /dev/null @@ -1,97 +0,0 @@ -/******************************************************************************* - * =============LICENSE_START========================================================= - * - * ================================================================================= - * Copyright (c) 2020 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - * - *******************************************************************************/ -appDS2.config(function($routeProvider) { - $routeProvider - .when('/api', { - templateUrl: 'app/ccsdk/home/api_doc.html', - controller : '' - }) - .when('/api-spec', { - templateUrl: 'app/ccsdk/home/rest-api-spec.html', - controller : 'apiDocsController' - }) - .when('/ibp', { - templateUrl: 'app/ccsdk/inventory/inventory_blueprint_table.html', - controller : 'inventoryBlueprintTableController' - }) - .when('/idep', { - templateUrl: 'app/ccsdk/inventory/inventory_deployment_table.html', - controller : 'inventoryDeploymentTableController' - }) - .when('/idep/:depId', { - templateUrl: 'app/ccsdk/inventory/inventory_deployment_table.html', - controller : 'inventoryDeploymentTableController' - }) - .when('/sh', { - templateUrl: 'app/ccsdk/consul/service_health_table.html', - controller : 'serviceHealthTableController' - }) - .when('/nh', { - templateUrl: 'app/ccsdk/consul/node_table.html', - controller : 'nodeTableController' - }) - .when('/dc', { - templateUrl: 'app/ccsdk/consul/datacenter_table.html', - controller : 'datacenterTableController' - }) - .when('/profile/:profileId', { - templateUrl: 'app/fusion/scripts/DS2-view-models/ds2-profile/self_profile.html', - controller: 'selfProfileController' - }) - .when('/profile_search', { - templateUrl: 'app/fusion/scripts/DS2-view-models/ds2-profile/profile_searchDS2.html', - controller : "profileSearchCtrlDS2" - }) - .when('/post_search', { - templateUrl: 'app/fusion/scripts/DS2-view-models/ds2-profile/post.html', - controller: 'postController' - }) - .when('/self_profile', { - templateUrl: 'app/fusion/scripts/DS2-view-models/ds2-profile/self_profile.html', - controller: 'selfProfileController' - }) - .when('/role_list', { - templateUrl: 'app/fusion/scripts/DS2-view-models/ds2-admin/role_list.html', - controller : 'adminController' - }) - .when('/role_function_list', { - templateUrl: 'app/fusion/scripts/DS2-view-models/ds2-admin/role-function.html', - controller : "adminController" - }) - .when('/jcs_admin', { - templateUrl: 'app/fusion/scripts/DS2-view-models/ds2-admin/jcs_admin.html', - controller: 'adminController' - }) - .when('/admin_menu_edit', { - templateUrl: 'app/fusion/scripts/DS2-view-models/ds2-admin/admin-menu-edit.html', - controller: 'AdminMenuEditController' - }) - .when('/usage_list', { - templateUrl: 'app/fusion/scripts/DS2-view-models/ds2-admin/usage.html', - controller: 'usageListControllerDS2' - }) - .otherwise({ - templateUrl: 'app/ccsdk/home/executions_view.html', - controller : 'executionsViewController' - }) - ; - -});
\ No newline at end of file diff --git a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/oom-style.css b/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/oom-style.css deleted file mode 100644 index a4e9a97..0000000 --- a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/oom-style.css +++ /dev/null @@ -1,301 +0,0 @@ -/* Styles for ECOMP Controller Dashboard */ - -.content-container { - min-height: 650px; - width: calc(100% - 50px); -} - -.ecd-error-message { - font-size: 14px; - font-weight: bold; - color: red; -} - -.ecd-icon-display { - font-size: 18px; -} - -.ecd-icon-action { - font-size: 18px; -} - -.ecd-icon-action:hover { - color: red; - text-decoration: none; -} - -.selected { - background-color:black; - color:white; - font-weight:bold; -} -.red-background { - background-color: #ff0000b3; - } -.green-background { - background-color: #bbf0bb; - } -.td-error { - border-top: 5px dotted red; - border-bottom: 5px dotted red; - } -.menu { - display: none; - z-index: 1000; - border: 1px dotted; - border-radius: 5px; - padding: 10px; - width: 50%; - background: azure; - position: fixed; - overflow: scroll; -} - -.show-menu { - z-index: 800; -} - -#show-menu { - display: none; -} - -#show-menu:checked ~ .menu { - display: block; -} - -#show-menu:checked ~ .show-menu { - color: blue; -} - -.menu-off { - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - z-index: 700; - display: none; -} - -.menu-off { - display: none; -} - -#show-menu:checked ~ .menu-off { - display: block; -} - -#show-menu:checked ~ .show-menu { - display: none; -} - -.menu-off input[type=checkbox]:checked ~ .menu { - display: none; -} - -.menu-off input[type=checkbox]:checked ~ .show-menu { - display: block; -} - -td > .btn-group { - min-width: 0; - width: auto; -} - -.dropup, -.dropdown { - position: relative; -} -.dropdown-toggle:focus { - outline: 0; -} -.dropdown-menu { - position: absolute; - top: 100%; - left: 0; - z-index: 1000; - display: none; - float: left; - min-width: 160px; - padding: 5px 0; - margin: 2px 0 0; - font-size: 14px; - text-align: left; - list-style: none; - background-color: #fff; - -webkit-background-clip: padding-box; - background-clip: padding-box; - border: 1px solid #ccc; - border: 1px solid rgba(0, 0, 0, .15); - border-radius: 4px; - -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175); - box-shadow: 0 6px 12px rgba(0, 0, 0, .175); -} -.dropdown-menu.pull-right { - right: 0; - left: auto; -} -.dropdown-menu .divider { - height: 1px; - margin: 9px 0; - overflow: hidden; - background-color: #e5e5e5; -} -.dropdown-menu > li > a { - display: block; - padding: 3px 20px; - clear: both; - font-weight: normal; - line-height: 1.42857143; - color: #333; - white-space: nowrap; -} -.dropdown-menu > li > a:hover, -.dropdown-menu > li > a:focus { - color: #262626; - text-decoration: none; - background-color: #f5f5f5; -} -.dropdown-menu > .active > a, -.dropdown-menu > .active > a:hover, -.dropdown-menu > .active > a:focus { - color: #fff; - text-decoration: none; - background-color: #337ab7; - outline: 0; -} -.dropdown-menu > .disabled > a, -.dropdown-menu > .disabled > a:hover, -.dropdown-menu > .disabled > a:focus { - color: #777; -} -.dropdown-menu > .disabled > a:hover, -.dropdown-menu > .disabled > a:focus { - text-decoration: none; - cursor: not-allowed; - background-color: transparent; - background-image: none; - filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); -} -.open > .dropdown-menu { - display: block; -} -.open > a { - outline: 0; -} -.dropdown-menu-right { - right: 0; - left: auto; -} -.dropdown-menu-left { - right: auto; - left: 0; -} -.dropdown-header { - display: block; - padding: 3px 20px; - font-size: 12px; - line-height: 1.42857143; - color: #777; - white-space: nowrap; -} -.dropdown-backdrop { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 990; -} -.pull-right > .dropdown-menu { - right: 0; - left: auto; -} -.dropup .caret, -.navbar-fixed-bottom .dropdown .caret { - content: ""; - border-top: 0; - border-bottom: 4px dashed; - border-bottom: 4px solid \9; -} -.dropup .dropdown-menu, -.navbar-fixed-bottom .dropdown .dropdown-menu { - top: auto; - bottom: 100%; - margin-bottom: 2px; -} -@media (min-width: 768px) { - .navbar-right .dropdown-menu { - right: 0; - left: auto; - } - .navbar-right .dropdown-menu-left { - right: auto; - left: 0; - } -} - -.dropdown-menu li { - margin-bottom: 10px; -} - -.dropdown-menu li div { - padding-left: 5px; -} - -.dropdown-menu li div i { - margin-right: 5px; -} - -td > .btn-group > .btn { - min-width: 0; - color: #0568ae; -} - -td > .btn-group > .btn> i { - font-size: 30px; -} - -li > a.active { - font-weight: bolder; - outline: thin dotted #666; -} - -tr:hover { - background-color: #f2f2f2; -} - -tr:focus { - background-color: #f2f2f2; -} - -.modalwrapper.modal-docked .modal-jumbo { - max-height: 100%; - height: 100%; - overflow: hidden; - top: 0; - width: 100%; - max-width: 100%; -} - -#addAppDiv { - padding-left: 10px; - background: lightgray; - border-radius: 5px; - padding-bottom: 15px; -} - -.field-group.error .error-msg { - color: red; - display: block; - font-size: 14px; - line-height: 14px; - font-family: "Omnes-ATT-W02-Medium"; - position: relative; - padding-left: 18px; - margin-top: 10px; -} - -.heading-page { - margin-bottom: 20px; -} diff --git a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/oom_instances_popup.html b/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/oom_instances_popup.html deleted file mode 100644 index bc523aa..0000000 --- a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/oom_instances_popup.html +++ /dev/null @@ -1,86 +0,0 @@ -<script type="text/ng-template" id="ecompc_instances_popup.html"> -<style> - .ecd-parameter-table - { - border: 1px; - width: 550px; - height: 225px; - overflow: auto; - } - .modal - { - display:block - } - .radio input:checked + .skin:after{ - height: 22px; - width: 22px; - } - .close-button - { - background: #0568ae; - color: #ffffff;"; - } - -</style> - - <div class="b2b-modal-header ng-scope"> - <h1 class="heading-page" id="controllerInstance">Select ECOMP-C Instance</h1> - <div class="corner-button in"> - <button type="button" class="close" aria-label="Close" - ng-click="$dismiss('cancel')"></button> - </div> - </div> - - <div class="b2b-modal-body ng-scope ng-isolate-scope" tabindex="0" - role="region" aria-label="Modal body content"> - - <div b2b-table - id="controllers-modal" - class="b2b-table-div" - table-data="ecdapp.tableData" - search-string="ecdapp.searchString" - current-page="ecdapp.currentPageIgnored" - next-sort="ecdapp.nextSortIgnored"> - <table> - <thead b2b-table-row type="header"> - <tr id="th-header-row"> - <th b2b-table-header sortable="false">Selected</th> - <th b2b-table-header key="name">Name</th> - <th b2b-table-header key="url">URL</th> - </tr> - </thead> - - <tbody b2b-table-row type="body" row-repeat="rowData in ecdapp.tableData"> - <tr id="tr-rowData"> - <td b2b-table-body> - <label class="radio"> - <input - type="radio" - name="ecdSelGroup" - title="rowData.url" - ng-value="rowData.url" - ng-model="ecdapp.radiobutton.url" - ng-change="ecdapp.selectController(rowData);"> - <i class="skin"></i> - <span></span> - </label> - </td> - <td b2b-table-body - ng-bind="rowData.name"/> - <td b2b-table-body - ng-bind="rowData.url"/> - </tr> - </tbody> - </table> - </div> - </div> - - <div class="b2b-modal-footer ng-scope ng-isolate-scope"> - <div class="cta-button-group in"> - <button class="btn btn-small close-button" type="button" ng-click="$close()"> - Close - </button> - </div> - </div> - -</script> diff --git a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/oom_spa.html b/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/oom_spa.html deleted file mode 100644 index fabb450..0000000 --- a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/oom_spa.html +++ /dev/null @@ -1,164 +0,0 @@ -<!-- - ============LICENSE_START========================================== - =================================================================== - Copyright (C) 2020 AT&T Intellectual Property. All rights reserved. - =================================================================== - - Unless otherwise specified, all software contained herein is licensed - under the Apache License, Version 2.0 (the "License"); - you may not use this software except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - ============LICENSE_END============================================ - --> - -<!DOCTYPE html> -<!-- DCAE Dashboard single-page application using B2B/DS2. --> -<html> - <head> - <meta charset="UTF-8"> - <title>DCAE Dashboard</title> - <link rel="icon" type="image/ico" href="app/ccsdk/images/onap_32x32.ico" /> - - <!-- Third-party scripts from EPSDK overlay --> - <script src="app/fusion/external/angular-1.4.13/angular.js"></script> - <script src="app/fusion/external/angular-1.4.13/angular-cookies.js"></script> - <script src="app/fusion/external/angular-1.4.13/angular-messages.js"></script> - <script src="app/fusion/external/angular-1.4.13/angular-route.js"></script> - <script src="app/fusion/external/angular-1.4.13/angular-sanitize.js"></script> - <script src="app/fusion/external/angular-1.4.13/angular-touch.js"></script> - <script src="app/fusion/external/jquery/dist/jquery.min.js"></script> - <!--<script src="app/fusion/external/javascript-detect-element-resize/jquery.resize.js"></script>--> - <script src="app/fusion/external/angular-bootstrap/ui-bootstrap-tpls.min.js"></script> - - <!-- Third-party scripts from app --> - <!-- https://github.com/jeremyfa/yaml.js --> - <script src="app/ccsdk/external/bootstrap.min.js" type="text/javascript"></script> - <script src="app/ccsdk/external/yaml.js" type="text/javascript"></script> - - <script src="app/fusion/external/b2b/js/b2b-angular/b2b-library.js"></script> - <!-- Tweaked CSS --> - <link rel="stylesheet" type="text/css" href="app/fusion/external/b2b/css/b2b-angular/b2b-angular.css"> - <link rel="stylesheet" type="text/css" href="app/fusion/external/b2b/css/b2b-angular/font_icons.css"> - - <!-- icons in open source --> - <link rel="stylesheet" type="text/css" href="app/fusion/external/ds2/css/digital-ng-library/ionicons.css"> - <link rel="stylesheet" type="text/css" href="app/fusion/external/ds2/css/digital-ng-library/ecomp-ionicons.css"> - - <link rel="stylesheet" type="text/css" href="app/fusion/styles/ecomp.css"> - - <!-- main app --> - <script src="app/ccsdk/home/modal-service.js"></script> - <script src="app/ccsdk/home/appDS2.js"></script> - - <!-- directives and services --> - <script src="app/fusion/scripts/DS2-services/userInfoServiceDS2.js"></script> - <script src="app/fusion/scripts/DS2-services/headerServiceDS2.js"></script> - <script src="app/fusion/scripts/DS2-services/manifestService.js"></script> - <script src="app/fusion/scripts/DS2-directives/footer.js"></script> - <script src="app/fusion/scripts/DS2-directives/ds2Header.js"></script> - <script src="app/fusion/scripts/DS2-services/leftMenuServiceDS2.js"></script> - <script src="app/fusion/scripts/DS2-directives/ds2LeftMenu.js"></script> - <script src="app/fusion/scripts/DS2-directives/b2b-leftnav-ext.js"></script> - - <!-- OOM home --> - <script src="app/ccsdk/home/controller-service.js"></script> - <script src="app/ccsdk/home/executions-view-controller.js"></script> - <script src="app/ccsdk/home/api-docs-controller.js"></script> - <!-- - <script src="app/ccsdk/home/tree-view-controller.js"></script> - <script src="app/ccsdk/home/tree-view-directive.js"></script> - <script src="app/ccsdk/home/oom-instances-controller.js"></script> - <script src="app/ccsdk/home/http-interceptor.js"></script> - --> - <link rel="stylesheet" href="app/ccsdk/home/tree-view-style.css"/> - <link rel="stylesheet" href="app/ccsdk/home/oom-style.css"/> - - <!-- Cloudify --> - <script src="app/ccsdk/cloudify/blueprint-service.js"></script> - <script src="app/ccsdk/cloudify/deployment-service.js"></script> - <script src="app/ccsdk/cloudify/execution-service.js"></script> - <script src="app/ccsdk/cloudify/tosca-table-controller.js"></script> - <script src="app/ccsdk/cloudify/blueprint-controllers.js"></script> - <script src="app/ccsdk/cloudify/deployment-controllers.js"></script> - <script src="app/ccsdk/cloudify/execution-table-controller.js"></script> - - <!--Inventory--> - <script src="app/ccsdk/inventory/blueprint-service.js"></script> - <script src="app/ccsdk/inventory/deployment-service.js"></script> - <script src="app/ccsdk/inventory/execution-service.js"></script> - <script src="app/ccsdk/inventory/blueprint-controllers.js"></script> - <script src="app/ccsdk/inventory/deployment-controllers.js"></script> - - <!-- Consul --> - <script src="app/ccsdk/consul/service-health-service.js"></script> - <script src="app/ccsdk/consul/service-controllers.js"></script> - <script src="app/ccsdk/consul/node-table-controller.js"></script> - <script src="app/ccsdk/consul/node-health-service.js"></script> - <script src="app/ccsdk/consul/node-services-controller.js"></script> - <script src="app/ccsdk/consul/datacenter-table-controller.js"></script> - <script src="app/ccsdk/consul/datacenter-health-service.js"></script> - - <!-- Ops --> - <script src="app/ccsdk/ops/tabs-view-controller.js"></script> - - <!-- user admin pages --> - <script src="app/fusion/scripts/DS2-services/adminService.js"></script> - <script src="app/fusion/scripts/DS2-services/ds2-profile/selfProfileService.js"></script> - <script src="app/fusion/scripts/DS2-services/profileServiceDS2.js"></script> - <script src="app/fusion/scripts/DS2-controllers/ds-profile/post-controller.js"></script> - <script src="app/fusion/scripts/DS2-controllers/ds2-profile/self-profile-controller.js"></script> - <script src="app/fusion/scripts/DS2-services/postSearch.js"></script> - <script src="app/fusion/scripts/DS2-controllers/profile-search-controller-DS2.js"></script> - - <!-- app admin pages --> - <script src="app/fusion/scripts/DS2-services/adminMenuService.js"></script> - <script src="app/fusion/scripts/DS2-controllers/admin-controller.js"></script> - <script src="app/fusion/scripts/DS2-controllers/admin-menu-edit.js"></script> - <script src="app/fusion/scripts/DS2-controllers/usage-list-controller.js"></script> - <script src="app/fusion/scripts/DS2-controllers/fn-menu-add-popup-controller.js"></script> - - <!-- main page --> - <script src="app/ccsdk/home/oom-router.js"></script> - - <style> - .csep-root1{ - background: white; - } - .dropdown-submenu { - position: relative; - } - - .dropdown-submenu .dropdown-menu { - top: 0; - left: 100%; - margin-top: -1px; - } - </style> - - </head> - <body class="appBody" ng-app="abs"> - <!-- double quotation marks are required for the popup templates - values are string literals --> - <div ng-include src="'app/ccsdk/home/oom_popup_templates.html'"></div> - <div ng-include src="'app/ccsdk/home/oom_instances_popup.html'"></div> - <div ng-include src="'app/ccsdk/cloudify/blueprint_popups.html'"></div> - <div ng-include src="'app/ccsdk/cloudify/deployment_popups.html'"></div> - <div ng-include src="'app/ccsdk/inventory/inventory_blueprint_popups.html'"></div> - <div ng-include src="'app/ccsdk/inventory/inventory_deployment_popups.html'"></div> - <div ng-include src="'app/ccsdk/inventory/inventory_execution_popups.html'"></div> - <div ng-include src="'app/ccsdk/consul/service_popups.html'"></div> - <div ng-include src="'app/ccsdk/consul/node_popups.html'"></div> - <div ds2-header id="header" class="header-container"></div> - <div ds2-menu id="menu-container" class="menu-container"></div> - <div ng-view id="rightContentProfile" class="content-container"></div> - <div ds2-footer class="footer-container"></div> - </body> -</html> diff --git a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/tree-view-controller.js b/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/tree-view-controller.js deleted file mode 100644 index 99005fb..0000000 --- a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/tree-view-controller.js +++ /dev/null @@ -1,113 +0,0 @@ -appDS2.controller('treeViewController',function( - $scope, $rootScope, $log, $modal, ExecutionService, ControllerService){ - - 'use strict'; - - // Set to true for verbose output - var debug = false; - - // this object holds all app data and functions - $scope.ecdapp = {}; - $scope.ecdapp.isDataLoading = false; - $scope.ecdapp.isRequestFailed = false; - $scope.orgChart = true; - $scope.status = ''; - var selectedItem = { - name: '' - }; - // Initial data as eye candy - $scope.orgChartData = [ { 'blueprint_id': 'Root', 'parent': 'parent' } ]; - var controllersList = []; - - var getControllers = function(){ - ControllerService.getControllers().then(function(jsonObj) { - if (debug) - $log.debug("treeViewController.getControllers succeeded: " + JSON.stringify(jsonObj)); - // Empty - controllersList.length = 0; - // Refill - jsonObj.filter(function(d) { - controllersList.push(d); - if (d.selected) - selectedItem = d; - return; - }); - $scope.ecdapp.loadTable(); - }, function(error) { - alert('Failed to load controllers. Please retry.'); - $log.error("treeViewController.getControllers failed: " + error); - }); - } - - /** - * Called from the directive when user picks a status value. - */ - $scope.ecdapp.loadTable = function(status) { - $scope.ecdapp.isDataLoading = true; - $scope.status = status; - // Empty list and create the root controller item - $scope.orgChartData.length = 0; - $scope.orgChartData.push({ - "blueprint_id": selectedItem.name, - "parent": "parent" - }); - ExecutionService.getExecutionsByStatus(status).then( - function(jsonObj) { - if (jsonObj.error) { - $log.error("treeViewController.loadTable failed: " - + jsonObj.error); - $scope.ecdapp.isRequestFailed = true; - $scope.ecdapp.errMsg = jsonObj.error; - } else { - $scope.ecdapp.isRequestFailed = false; - $scope.ecdapp.errMsg = null; - for (var i=0; i < jsonObj.items.length; i++) { - $scope.orgChartData.push(jsonObj.items[i]); - } - $scope.$broadcast('listenEvent', {data: $scope.orgChartData} ); - } - $scope.ecdapp.isDataLoading = false; - }, - function(error) { - $log.error("treeViewController.loadTable failed: " - + error); - $scope.ecdapp.isRequestFailed = true; - $scope.ecdapp.errMsg = error; - $scope.ecdapp.isDataLoading = false; - }); - }; - - // Listens for change of the selected controller - $rootScope.$on('controllerChange', function(e, d){ - $scope.orgChartData[0].blueprint_id = d.name; - $scope.$broadcast('listenEvent', {data: $scope.orgChartData}); - }) - - // Shows popup with list of controllers - $scope.ecdapp.showEcompCInstancesModalPopup = function() { - var modalInstance = $modal.open({ - templateUrl : 'ecompc_instances_popup.html', - controller : 'selectEcompcController', - windowClass: 'modal-docked', - sizeClass: 'modal-medium', - resolve : { - message : function() { - return { items: controllersList } - } - } - }); - modalInstance.result.then(function(response) { - // Always reload the table - // $log.debug('modalInstance: reloading controllers'); - getControllers('active'); - }, - function(error) { - // Should never happen - $log.error('modalInstance: ERROR!?'); - }); - }; - - // Populate the table on load. - getControllers('active'); - -}); diff --git a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/tree-view-directive.js b/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/tree-view-directive.js deleted file mode 100644 index 834026b..0000000 --- a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/tree-view-directive.js +++ /dev/null @@ -1,165 +0,0 @@ -(function() { - 'use strict'; - - appDS2.directive("orgChart", supervisorOrgChart); - supervisorOrgChart.$inject = ['$http', '$templateCache', 'ExecutionService']; - - function supervisorOrgChart($http, $templateCache, ExecutionService) { - return { - restrict: 'E', - scope: { - data: '=', - getCall: '&', - modalCall: '&', - status: '=' - }, - - link: function(scope, elem, attrs) { - - scope.$on('listenEvent', function(event, data) { - data = data.data; - scope.data = data; - $('.jOrgChart').remove(); - drawOrgChart(data); - }); - - - var items = [], - mCheck = []; - var currentZoom = 100; - var data = scope.data; - var selectedStatus = scope.status; - function statusSelectoin(status){ - $('#statusclick li').removeClass('active'); - scope.getCall()(status); - } - - function drawOrgChart(data, supervisorOrg) { - items = []; - var itemHtml = ""; - for(var i=0; i<data.length; i++){ - loops(data[i]); - } - function loops(root) { - var className; - if (root.parent == "parent") { - items.push("<li class='root '>" + - "<div><div class='label_node' style='position:relative'>" + - "<span class='' style='position:absolute; left:1px; top:5px'>"+ - "<div class='dropdown dd_"+root.id+"'>"+ - "<div style='float: right;'>"+ - "<button id='dd_"+root.id+"' class='btn btn-default dropdown-toggle icon-misc-filter' type='button' data-toggle='dropdown'>"+ - "</button>"+ - "<ul class='dropdown-menu' id='statusclick'>"+ - "<li id='active'>Active</li>"+ - "<li id='cancelled'>Cancelled</li>"+ - "<li id='terminated'>Terminated</li>"+ - "<li id='failed'>Failed</li>"+ - "</ul>"+ - "</div>"+ - "</div>"+ - "</span>"+ - "<span style='position: absolute; font-size: 12px; left:30px; top:10px' class='title-span'>" + root.blueprint_id + "</span>"+ - "<button id='dd_"+root.id+"' style='margin-top: 5px; position: absolute; right: 2px;' class='openmodal btn btn-default dropdown-toggle icon-controls-gear' " + - "type='button' data-toggle='dropdown'>"+ - "</button>"+ - "</div></div></br>"+ - "<div style='padding-top:25px'><img src='app/ecdapp/images/ecomp-login-550x360.jpg' width='180' height='100'></div>"+ - "<div class='expandBtn'><span id='exp_"+root.id+"'><i class='icon-controls-add-maximize'></i></span></div><ul>"); - } else { - itemHtml = "<li class='child'>"+ - "<div style='padding-top:3px'><span class='label_node'>"+ - - "<span class='title-span'>" + root.blueprint_id + "</span>"+ - "<span class='icon-span ddIcon'>"+ - "<div class='dropdown dd_"+root.id+"'>"+ - "<div style='float: right; margin-top: -14px;'>"+ - "<button id='dd_"+root.id+"' class='btn btn-default dropdown-toggle' type='button' data-toggle='dropdown'><i class='icon-people-preview'></i>"+ - "<span id='dd_"+root.id+"'></span></button>"+ - "<ul class='dropdown-menu'>"+ - "<li><a tabindex='-1' href='javascript:void(0);'>Execution Id: " + root.id + "</a></li>"+ - "<li><a tabindex='-1' href='javascript:void(0);'>Health Check Status: </a></li>"+ - "<li><a tabindex='-1' href='javascript:void(0);'>Please click here for more information </a></li>"+ - "</ul>"+ - "</div>"+ - "</div>"+ - "</span>"+ - "</span></div></br>"+ - "<div style='padding-top:35px'><img src='app/ecdapp/images/ecomp.png' width='180' height='100'></div></li>"; - items.push(itemHtml); - } - } // End the generate html code - - items.push('</ul></li>'); - var listElem = $("<ul/>", { - "class": "org", - "style": "float:right;", - html: items.join("") - }).appendTo(elem); - - var opts = { - chartElement: elem, - rowcolor: false - }; - //elem.html(''); - $(elem).find(".org").jOrgChart(opts); - listElem.remove(); - - setTimeout(function(){ - $('.dropdown .dropdown-toggle').on("click", function(e){ - var cls = '.'+ e.target.id; - var subcls = cls + ' a.test'; - if($(cls).hasClass('open')){ - $(cls).removeClass('open'); - $(subcls).next('ul').css({display: 'none'}); - } else{ - $(cls).addClass('open'); - } - }); - - $('.dropdown-submenu a.test').on("mouseover", function(e){ - console.log("hi"); - $('#'+e.target.id).next('ul').toggle(); - }); - - $('#statusclick li').click(function(event){ - statusSelectoin(event.target.id); - }) - - $('.openmodal').click(function(event){ - openModal(); - }) - - $(document).on('click','.expandBtn', function(event, data) { - event.stopImmediatePropagation() - var $this = $(this); - var $tr = $this.closest("tr"); - if ($tr.hasClass('contracted')) { - $(this).addClass('fa-minus').removeClass('fa-plus'); - $tr.removeClass('contracted').addClass('expanded'); - $tr.nextAll("tr").css('visibility', ''); - } else { - $(this).addClass('fa-plus').removeClass('fa-minus'); - $tr.removeClass('expanded').addClass('contracted'); - $tr.nextAll("tr").css('visibility', 'hidden'); - } - }); - - var selectedStatus = scope.status; - if(selectedStatus){ - $('#'+selectedStatus).addClass('active'); - } - - function openModal(){ - scope.modalCall()(); - } - - },0); - } - - drawOrgChart(data); - - }, - }; - }; -})();
\ No newline at end of file diff --git a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/tree-view-style.css b/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/tree-view-style.css deleted file mode 100644 index 5a3e056..0000000 --- a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/tree-view-style.css +++ /dev/null @@ -1,132 +0,0 @@ -/* Basic styling */ - -::-webkit-scrollbar -{ - width: 12px; /* for vertical scrollbars */ - height: 7px; /* for horizontal scrollbars */ -} - -::-webkit-scrollbar-track -{ - background: rgba(0, 0, 0, 0.1); -} - -::-webkit-scrollbar-thumb -{ - background: rgba(0, 0, 0, 0.5); -} - -.orgChart .label_node{ - padding-bottom: 5px; -} - -.orgChart .icon-span{ - float:left;width:25px; - padding-top: 3px; -} -.orgChart .title-span{ - width:110px;float:left; font-size:14px; - padding-top: 3px; -} - -/* Draw the lines */ -.jOrgChart{ - position: relative; - /* left: 245px; */ - width:100%; - min-width: 100%; - overflow-x: auto; - -} -.jOrgChart .line { - height : 20px; - width : 4px; -} - -.jOrgChart .down { - background-color : black; - margin : 0px auto; -} - -.jOrgChart .top { - border-top : 3px solid black; -} - -.jOrgChart button{ - min-width : 20px; - width : 20px; - height : 20px; - padding : 0; -} - -.jOrgChart .dropdown{ - display: inline-block; -} - -.jOrgChart .downloadIcon{ - position: relative; - left: 1px; - float:left; -} - -.jOrgChart .ddIcon{ - position: relative; - float: right; - top: 6px; -} - -.jOrgChart .left { - border-right : 2px solid black; -} - -.jOrgChart .right { - border-left : 2px solid black; -} - -/* node cell */ -.jOrgChart td { - text-align : center; - vertical-align : top; - padding : 0 !important; - border : none; - border-bottom : 1px solid white; -} - -/* The node */ -.jOrgChart .node { - background-color : #efefef; - display : inline-block; - width : 180px; - height : 200px; - z-index : 10; - margin : 0 2px; -} - -.expandBtn { - background-color: #efefef; - padding-top:9px; -} - -/* jQuery drag 'n drop */ - -.drag-active { - border-style : dotted !important; -} - -.drop-hover { - border-style : solid !important; - border-color : #E05E00 !important; -} - -#statusclick{ - padding: 0 !important -} - -#statusclick li { - padding :5px; -} - -#statusclick li.active{ - background: #337ab7; - color: white; -}
\ No newline at end of file diff --git a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/tree_view.html b/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/tree_view.html deleted file mode 100644 index d5364e8..0000000 --- a/ccsdk-app-overlay/src/main/webapp/app/ccsdk/home/tree_view.html +++ /dev/null @@ -1,24 +0,0 @@ -<!-- Included bootstrap files at a page level to avoid issues with DS2 library --> -<script src="app/ecdapp/external/bootstrap.min.js"></script> -<link rel="stylesheet" href="app/ecdapp/external/bootstrap.min.css"/> - -<div id="page-content"> - - <org-chart data=orgChartData status="status" showOrgTable="showOrgTable" get-call="ecdapp.loadTable" modal-call="ecdapp.showEcompCInstancesModalPopup"> - </org-chart> - <div ng-show="ecdapp.isDataLoading"> - <div class="text-center" style="margin-bottom:20px;"> - <i class="icon-spinner small" role="img" aria-label="Please wait while the content loads"></i> - Please wait while the content loads. - </div> - </div> - <div ng-hide="ecdapp.isDataLoading"> - <div ng-if="orgChartData.length == 1" class="col-xs-12 text-center" style="position:relative;"> - <b>No components found</b> - </div> - </div> - <div ng-show="ecdapp.isRequestFailed"> - <span class="ecd-error-message">{{ecdapp.errMsg}}</span> - </div> - -</div> |