diff options
author | 2016-09-13 11:40:12 +0800 | |
---|---|---|
committer | 2016-09-13 11:41:53 +0800 | |
commit | b731e2f1dd0972409b136aebc7b463dd72c9cfad (patch) | |
tree | 5107d7d80c19ad8076c2c97c2b5ef8d1cf3ab903 /framework/src/onos/web/gui/src/main/webapp/app/fw/mast | |
parent | ee93993458266114c29271a481ef9ce7ce621b2a (diff) |
ONOSFW-171
O/S-SFC-ONOS scenario documentation
Change-Id: I51ae1cf736ea24ab6680f8edca1b2bf5dd598365
Signed-off-by: CNlucius <lukai1@huawei.com>
Diffstat (limited to 'framework/src/onos/web/gui/src/main/webapp/app/fw/mast')
3 files changed, 0 insertions, 164 deletions
diff --git a/framework/src/onos/web/gui/src/main/webapp/app/fw/mast/mast.css b/framework/src/onos/web/gui/src/main/webapp/app/fw/mast/mast.css deleted file mode 100644 index 2e86e86d..00000000 --- a/framework/src/onos/web/gui/src/main/webapp/app/fw/mast/mast.css +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright 2014,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. - */ - -/* - ONOS GUI -- Masthead -- CSS file - */ - -#mast { - height: 36px; - padding: 4px; - vertical-align: baseline; -} - -html[data-platform='iPad'] #mast { - padding-top: 16px; -} - -.light #mast { - background-color: #bbb; - box-shadow: 0 2px 8px #777; -} -.dark #mast { - background-color: #444; - box-shadow: 0 2px 8px #222; -} - -#mast .nav-menu-button { - width: 30px; - height: 30px; - margin-left: 8px; - margin-bottom: 4px; - cursor: pointer; -} -.light #mast .nav-menu-button:hover { - background-color: #ddd; -} -.dark #mast .nav-menu-button:hover { - background-color: #777; -} - -#mast img.logo { - height: 38px; - padding-left: 8px; - padding-right: 8px; -} - -#mast img.logo:hover { - /* need something better */ - /*background-color: #888;*/ -} - -#mast .title { - font-size: 14pt; - font-style: italic; - vertical-align: 12px; -} - -.light #mast .title { - color: #369; -} -.dark #mast .title { - color: #eee; -} - -#mast-right { - display: inline-block; - padding-top: 8px; - padding-right: 16px; - float: right; - /*border: 1px solid red;*/ -} - -#mast-right a { - font-size: 12pt; - font-style: normal; - font-weight: bold; - text-decoration: none; -} - -.light #mast-right a { - color: #369; -} -.dark #mast-right a { - color: #eee; -} - -#mast-right a:hover { - color: #CE5650; -} diff --git a/framework/src/onos/web/gui/src/main/webapp/app/fw/mast/mast.html b/framework/src/onos/web/gui/src/main/webapp/app/fw/mast/mast.html deleted file mode 100644 index 5bb488a8..00000000 --- a/framework/src/onos/web/gui/src/main/webapp/app/fw/mast/mast.html +++ /dev/null @@ -1,6 +0,0 @@ -<!-- Masthead partial HTML --> -<img class="nav-menu-button" src="data/img/nav-menu.png" - ng-click="mastCtrl.toggleNav()"></div> -<img class="logo" src="data/img/onos-logo.png"> -<span class="title">Open Network Operating System</span> -<div id="mast-right"><a href="rs/logout">logout</a></div> diff --git a/framework/src/onos/web/gui/src/main/webapp/app/fw/mast/mast.js b/framework/src/onos/web/gui/src/main/webapp/app/fw/mast/mast.js deleted file mode 100644 index 1cde58c7..00000000 --- a/framework/src/onos/web/gui/src/main/webapp/app/fw/mast/mast.js +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2014,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. - */ - -/* - ONOS GUI -- Masthead Module - */ -(function () { - 'use strict'; - - // injected services - var $log; - - // configuration - var mastHeight = 36, - padMobile = 16; - - angular.module('onosMast', ['onosNav']) - .controller('MastCtrl', ['$log', 'NavService', function (_$log_, ns) { - var self = this; - - $log = _$log_; - - // initialize mast controller here... - self.radio = null; - - // delegate to NavService - self.toggleNav = function () { - ns.toggleNav(); - }; - - $log.log('MastCtrl has been created'); - }]) - - // also define a service to allow lookup of mast height. - .factory('MastService', ['FnService', function (fs) { - return { - mastHeight: function () { - return fs.isMobile() ? mastHeight + padMobile : mastHeight; - } - } - }]); - -}()); |