summaryrefslogtreecommitdiffstats
path: root/framework/src/onos/apps/demo/cord-gui/src/main/webapp/app/view/bundle
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/onos/apps/demo/cord-gui/src/main/webapp/app/view/bundle')
-rw-r--r--framework/src/onos/apps/demo/cord-gui/src/main/webapp/app/view/bundle/available.html5
-rw-r--r--framework/src/onos/apps/demo/cord-gui/src/main/webapp/app/view/bundle/bundle.css105
-rw-r--r--framework/src/onos/apps/demo/cord-gui/src/main/webapp/app/view/bundle/bundle.html24
-rw-r--r--framework/src/onos/apps/demo/cord-gui/src/main/webapp/app/view/bundle/bundle.js77
4 files changed, 0 insertions, 211 deletions
diff --git a/framework/src/onos/apps/demo/cord-gui/src/main/webapp/app/view/bundle/available.html b/framework/src/onos/apps/demo/cord-gui/src/main/webapp/app/view/bundle/available.html
deleted file mode 100644
index 6f300d46..00000000
--- a/framework/src/onos/apps/demo/cord-gui/src/main/webapp/app/view/bundle/available.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<div ng-cloak class="ng-hide ng-cloak" ng-show="show" id="available">
- <h3>{{available.name}}</h3>
- <p>{{available.desc}}</p>
- <button ng-click="changeBundle(available.id)">Apply</button>
-</div>
diff --git a/framework/src/onos/apps/demo/cord-gui/src/main/webapp/app/view/bundle/bundle.css b/framework/src/onos/apps/demo/cord-gui/src/main/webapp/app/view/bundle/bundle.css
deleted file mode 100644
index 84fa842a..00000000
--- a/framework/src/onos/apps/demo/cord-gui/src/main/webapp/app/view/bundle/bundle.css
+++ /dev/null
@@ -1,105 +0,0 @@
-/*
- * Copyright 2015 Open Networking Laboratory
- *
- * 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.
- */
-
-div#bundle div.main-left {
- width: 61%;
- padding: 4% 0 0 1%;
-}
-div#bundle div.main-right {
- width: 37%;
- padding-top: 4%;
-}
-
-#bundle table {
- width: 95%;
- margin-top: 5%;
- margin-left: 2%;
- border-radius: 3px;
-}
-
-#bundle td {
- font-size: 90%;
-}
-#bundle td.icon {
- text-align: center;
- width: 50px;
- height: 50px;
- padding: 4%;
-}
-#bundle td.name {
- border-left: solid 1px rgba(136, 0, 0, 0.25);
- padding-left: 3%;
-}
-#bundle td.desc {
- width: 60%;
- text-align: left;
- font-style: italic;
-}
-/* animation specific */
-#bundle tr.fadein.ng-leave td.name,
-#bundle tr.fadein.ng-leave-active td.name {
- opacity: 0;
- border: none;
-}
-
-#bundle img {
- width: 100%;
-}
-
-#bundle h2 {
- text-align: center;
- padding: 3%;
- font-weight: lighter;
- border: 1px solid #3C3C3C;
- cursor: pointer;
-}
-#bundle h2:hover {
- color: #CE5650;
- border-color: #CE5650;
-}
-
-div#bundles {
- position: relative;
-}
-
-div#available.ng-hide-add.ng-hide-add-active,
-div#available.ng-hide-remove.ng-hide-remove-active {
- -webkit-transition: all linear 0.5s;
- transition: all linear 0.5s;
-}
-div#available.ng-hide {
- opacity: 0;
- top: -80px;
-}
-
-div#available {
- position: absolute;
- padding: 5%;
- opacity: 1;
- top: -10px;
- width: 100%;
-}
-
-#available p {
- text-indent: initial;
- text-align: initial;
-}
-
-#available button {
- float: right;
- width: 33%;
- margin-top: 5%;
-}
diff --git a/framework/src/onos/apps/demo/cord-gui/src/main/webapp/app/view/bundle/bundle.html b/framework/src/onos/apps/demo/cord-gui/src/main/webapp/app/view/bundle/bundle.html
deleted file mode 100644
index 8852d869..00000000
--- a/framework/src/onos/apps/demo/cord-gui/src/main/webapp/app/view/bundle/bundle.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<!-- Bundle page partial html -->
-<div id="bundle" class="container">
- <div class="main-left">
- <h4>You are subscribed to the</h4>
- <h3>{{name}}</h3>
- <p>{{desc}}</p>
- <table>
- <tr ng-repeat="func in funcs" class="fadein">
- <td class="icon">
- <img ng-src="{{'/imgs/' + func.id + '.png'}}">
- </td>
- <td class="name">{{func.name}}</td>
- <td class="desc">{{func.desc}}</td>
- </tr>
- </table>
- </div>
- <div class="main-right">
- <img src="imgs/bundle.jpg">
- <div ng-click="showBundles()">
- <h2>Available Bundles</h2>
- </div>
- <div id="bundles" bundle-available></div>
- </div>
-</div> \ No newline at end of file
diff --git a/framework/src/onos/apps/demo/cord-gui/src/main/webapp/app/view/bundle/bundle.js b/framework/src/onos/apps/demo/cord-gui/src/main/webapp/app/view/bundle/bundle.js
deleted file mode 100644
index a5b59d09..00000000
--- a/framework/src/onos/apps/demo/cord-gui/src/main/webapp/app/view/bundle/bundle.js
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
- * Copyright 2015 Open Networking Laboratory
- *
- * 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.
- */
-
-(function () {
- 'use strict';
-
- var urlSuffix = '/rs/bundle';
-
- var basic = 'basic',
- family = 'family';
-
- angular.module('cordBundle', [])
- .controller('CordBundleCtrl', ['$log', '$scope', '$resource',
- function ($log, $scope, $resource) {
- var BundleData, resource,
- getData;
- $scope.page.curr = 'bundle';
- $scope.show = false;
-
- getData = function (id) {
- if (!id) { id = ''; }
-
- BundleData = $resource($scope.shared.url + urlSuffix + '/' + id);
- resource = BundleData.get({},
- // success
- function () {
- var current, availId;
- current = resource.bundle.id;
- $scope.name = resource.bundle.name;
- $scope.desc = resource.bundle.desc;
- $scope.funcs = resource.bundle.functions;
-
- availId = (current === basic) ? family : basic;
- resource.bundles.forEach(function (bundle) {
- if (bundle.id === availId) {
- $scope.available = bundle;
- }
- });
- },
- // error
- function () {
- $log.error('Problem with resource', resource);
- });
- };
-
- getData();
-
- $scope.changeBundle = function (id) {
- getData(id);
- };
-
- $scope.showBundles = function () {
- $scope.show = !$scope.show;
- };
-
- $log.debug('Cord Bundle Ctrl has been created.');
- }])
-
- .directive('bundleAvailable', [function () {
- return {
- templateUrl: 'app/view/bundle/available.html'
- };
- }]);
-}());