From d97a05097134fe044ef416e72371948b0bb22b5c Mon Sep 17 00:00:00 2001 From: Daniel Malachovsky Date: Thu, 4 Feb 2016 15:12:56 +0100 Subject: Copyright header fix - added copyright header to css and js files - small fixes in css files Change-Id: I62a32067d71ede7a7440662b1816f939659101e7 Signed-off-by: Daniel Malachovsky --- .gitignore | 1 + .../resources/OSGI-INF/blueprint/blueprint.xml | 2 +- .../src/main/resources/vpp/assets/css/vpp.css | 10 ++++- vbd/gui/module/src/main/resources/vpp/bower.json | 3 +- vbd/gui/module/src/main/resources/vpp/main.js | 7 +++ vbd/gui/module/src/main/resources/vpp/package.json | 17 +++---- .../src/main/resources/vpp/vpp.controller.js | 13 +++++- .../module/src/main/resources/vpp/vpp.module.js | 7 +++ .../module/src/main/resources/vpp/vpp.services.js | 52 ++++------------------ 9 files changed, 52 insertions(+), 60 deletions(-) diff --git a/.gitignore b/.gitignore index f7e7ccac7..c54c64687 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ target .DS_Store META-INF maven-metadata-local.xml +vbd/gui/module/node diff --git a/vbd/gui/bundle/src/main/resources/OSGI-INF/blueprint/blueprint.xml b/vbd/gui/bundle/src/main/resources/OSGI-INF/blueprint/blueprint.xml index b8c866da4..265cd7538 100644 --- a/vbd/gui/bundle/src/main/resources/OSGI-INF/blueprint/blueprint.xml +++ b/vbd/gui/bundle/src/main/resources/OSGI-INF/blueprint/blueprint.xml @@ -11,9 +11,9 @@ - src/app/vpp/vpp.css src/app/vpp/assets/css/next.css src/app/vpp/bower_components/angular-material/angular-material.min.css + src/app/vpp/assets/css/vpp.css diff --git a/vbd/gui/module/src/main/resources/vpp/assets/css/vpp.css b/vbd/gui/module/src/main/resources/vpp/assets/css/vpp.css index 0ca464309..45eb9f1d1 100644 --- a/vbd/gui/module/src/main/resources/vpp/assets/css/vpp.css +++ b/vbd/gui/module/src/main/resources/vpp/assets/css/vpp.css @@ -1,7 +1,15 @@ +/* + * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ + html,body { width: 100%; - height: 100%; overflow: hidden; + background-color: #414040; } #next-app { diff --git a/vbd/gui/module/src/main/resources/vpp/bower.json b/vbd/gui/module/src/main/resources/vpp/bower.json index 14f703511..a6edf5837 100644 --- a/vbd/gui/module/src/main/resources/vpp/bower.json +++ b/vbd/gui/module/src/main/resources/vpp/bower.json @@ -5,7 +5,8 @@ "authors": [ "Varun Seereeram", "Chris Metz", - "Dave Wallace" + "Dave Wallace", + "Daniel Malachovsky" ], "license": "ISC", "keywords": [ diff --git a/vbd/gui/module/src/main/resources/vpp/main.js b/vbd/gui/module/src/main/resources/vpp/main.js index 5ca86fd5f..6fdc5c209 100644 --- a/vbd/gui/module/src/main/resources/vpp/main.js +++ b/vbd/gui/module/src/main/resources/vpp/main.js @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ require.config({ paths : { 'angular-material' : 'app/vpp/bower_components/angular-material/angular-material.min', diff --git a/vbd/gui/module/src/main/resources/vpp/package.json b/vbd/gui/module/src/main/resources/vpp/package.json index b049c926a..3909fb8e0 100644 --- a/vbd/gui/module/src/main/resources/vpp/package.json +++ b/vbd/gui/module/src/main/resources/vpp/package.json @@ -1,23 +1,18 @@ { - "name": "open-vpp", + "name": "odl-vpp", "version": "1.0.0", - "description": "open-vpp", - "main": "app.js", - "dependencies": { - "express": "^4.13.3", - "express-http-proxy": "^0.6.0", - "url": "^0.11.0" - }, + "description": "Opendaylight VPP UI", + "main": "main.js", "devDependencies": { "bower": "~1.3.12" }, "repository": { "type": "git", - "url": "ssh://git@stash-eng.cisco.com:7999/~dwallace/honeycomb-demo.git" + "url": "git clone https://gerrit.fd.io/r/honeycomb" }, - "author": "Varun Seereeram, Chris Metz, John Burns, Dave Wallace", + "author": "Varun Seereeram, Chris Metz, John Burns, Dave Wallace, Daniel Malachovsky", "license": "ISC", "keywords": [ - "open-vpp" + "odl-vpp" ] } diff --git a/vbd/gui/module/src/main/resources/vpp/vpp.controller.js b/vbd/gui/module/src/main/resources/vpp/vpp.controller.js index 17d5a1085..ebfd49ae8 100644 --- a/vbd/gui/module/src/main/resources/vpp/vpp.controller.js +++ b/vbd/gui/module/src/main/resources/vpp/vpp.controller.js @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ + var modules = ['app/vpp/vpp.module', 'app/vpp/vpp.services', ]; @@ -17,10 +25,11 @@ define(modules, function(vpp) { }; }]); - vpp.register.controller('InventoryTableController', ['$scope', '$rootScope','$filter', 'toastService', 'VppService', '$mdDialog', 'dataService', 'InterfaceService', function($scope, $rootScope, filter, toastService, VppService, $mdDialog, dataService, InterfaceService) { + vpp.register.controller('InventoryTableController', ['$scope', '$rootScope','$filter', 'toastService', 'VppService', '$mdDialog', 'dataService', 'VppInterfaceService', + function($scope, $rootScope, filter, toastService, VppService, $mdDialog, dataService, VppInterfaceService) { $scope.getInterfaces = function(index) { - InterfaceService.getInterfaceList( + VppInterfaceService.getInterfaceList( $scope.vppList[index].name, //success callback function(data) { diff --git a/vbd/gui/module/src/main/resources/vpp/vpp.module.js b/vbd/gui/module/src/main/resources/vpp/vpp.module.js index 5286e399f..04367de45 100644 --- a/vbd/gui/module/src/main/resources/vpp/vpp.module.js +++ b/vbd/gui/module/src/main/resources/vpp/vpp.module.js @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ define(['angularAMD', 'app/routingConfig', 'ui-bootstrap', 'Restangular', 'angular-animate', 'angular-aria', 'angular-material', 'angular-smart-table', 'angular-translate', 'angular-translate-loader-partial'], function() { var vpp = angular.module('app.vpp', ['ui.router.state','app.core', 'ui.bootstrap', 'restangular', 'ngAnimate', 'ngAria', 'ngMaterial', 'smart-table', 'pascalprecht.translate']); diff --git a/vbd/gui/module/src/main/resources/vpp/vpp.services.js b/vbd/gui/module/src/main/resources/vpp/vpp.services.js index c212f4f36..7f082ae1e 100644 --- a/vbd/gui/module/src/main/resources/vpp/vpp.services.js +++ b/vbd/gui/module/src/main/resources/vpp/vpp.services.js @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ define(['app/vpp/vpp.module', 'next'], function(vpp) { vpp.register.factory('VPPRestangular', function(Restangular, ENV) { @@ -474,49 +481,6 @@ define(['app/vpp/vpp.module', 'next'], function(vpp) { }); }; - s.editVpp = function(name,ip,port,un,pw,finishedSuccessfullyCallback) { - var putData = '\ - \ - prefix:sal-netconf-connector\ - '+name+'\ -
'+ip+'
\ - '+port+'\ - '+un+'\ - '+pw+'\ - false\ - \ - prefix:netty-event-executor\ - global-event-executor\ - \ - \ - prefix:binding-broker-osgi-registry\ - binding-osgi-broker\ - \ - \ - prefix:dom-broker-osgi-registry\ - dom-broker\ - \ - \ - prefix:netconf-client-dispatcher\ - global-netconf-dispatcher\ - \ - \ - prefix:threadpool\ - global-netconf-processing-executor\ - \ -
'; - //var configVpp = '/api/restconf/config/network-topology:network-topology/topology/topology-netconf/node/controller-config/yang-ext:mount/config:modules/module/odl-sal-netconf-connector-cfg:sal-netconf-connector/'; - - - var restObj = VPPRestangularXml.one('restconf').one('config').one('network-topology:network-topology').one('topology').one('topology-netconf').one('node').one('controller-config').one('yang-ext:mount').one('config:modules').one('module').one('odl-sal-netconf-connector-cfg:sal-netconf-connector').one(name); - - restObj.customPUT(putData).then(function() { - finishedSuccessfullyCallback(true); - }, function(res) { - finishedSuccessfullyCallback(false); - }); - }; - s.mountVpp = function(name,ip,port,un,pw,finishedSuccessfullyCallback) { var postData = '\ @@ -562,7 +526,7 @@ define(['app/vpp/vpp.module', 'next'], function(vpp) { return s; }); - vpp.register.factory('InterfaceService', function(VPPRestangular) { + vpp.register.factory('VppInterfaceService', function(VPPRestangular) { var s = {}; s.getInterfaceList = function(vppName,successCallback, errorCallback) { -- cgit 1.2.3-korg