aboutsummaryrefslogtreecommitdiffstats
path: root/apiroute/apiroute-service/src/main/resources/iui-route/default.html
diff options
context:
space:
mode:
authorHuabingZhao <zhao.huabing@zte.com.cn>2017-07-25 15:18:33 +0800
committerHuabingZhao <zhao.huabing@zte.com.cn>2017-07-25 18:11:59 +0800
commit672f3d40be83d9e380fd7be4b674d5e8d5fa36de (patch)
tree43105e1d5e2ba8e8accea8648e57e1cf87db3f00 /apiroute/apiroute-service/src/main/resources/iui-route/default.html
parent41d3db15a8e1a0496f9c2a5e15db2998a32bb9bf (diff)
Divide the MSB source codes into two repos
Change-Id: Ie76d545b214a8ce5191f215350a623e1529983d9 Issue-id: MSB-5 Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
Diffstat (limited to 'apiroute/apiroute-service/src/main/resources/iui-route/default.html')
-rw-r--r--apiroute/apiroute-service/src/main/resources/iui-route/default.html177
1 files changed, 177 insertions, 0 deletions
diff --git a/apiroute/apiroute-service/src/main/resources/iui-route/default.html b/apiroute/apiroute-service/src/main/resources/iui-route/default.html
new file mode 100644
index 0000000..65726bf
--- /dev/null
+++ b/apiroute/apiroute-service/src/main/resources/iui-route/default.html
@@ -0,0 +1,177 @@
+<!--
+
+Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)
+
+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.
+
+-->
+<!DOCTYPE html>
+<html>
+<head lang="en">
+<meta charset="UTF-8">
+<title id="org_onap_msb_route_title" name_i18n="org_onap_msb_route_ui_i18n"></title>
+<link
+ href="js/fontAwesome/css/font-awesome.min.css"
+ rel="stylesheet" />
+<link
+ href="js/bootstrap/css/bootstrap.min.css"
+ rel="stylesheet" />
+ <link href="css/newRoute.css" rel="stylesheet" type="text/css" />
+<link href="css/base.css" rel="stylesheet" type="text/css" />
+
+ <script type="text/javascript">
+
+ function setIframeUrl(type){
+
+ var url;
+
+ switch(type){
+ case 1:url="/iui/microservices/index.html";break;
+ case 2:url="/iui/msdiscover/index.html";break;
+ case 3:url="/iui/msdiscover/serviceMng.html?type=add";break;
+ }
+
+
+
+ $('#msbPage').attr("src",url);
+ }
+ </script>
+
+</head>
+<body >
+ <div id="routeHead">
+ <div class="navbar-inner container-fluid" id="top-bar">
+ <header class="row-fluid">
+ <div class="logoimg"><img class="logo" src="img/logo.png" alt="Logo"></div>
+ <div class="chineseTitle" id="org_onap_msb_route_chinese_name" name_i18n="org_onap_msb_route_ui_i18n"></div>
+ <div class="englishTitle" id="org_onap_msb_route_english_name" name_i18n="org_onap_msb_route_ui_i18n"></div>
+ </header>
+ </div>
+</div>
+
+<div>
+ <div class="page-sidebar" >
+ <div class="sidebar-toggler hidden-xs hidden-sm" ></div>
+ <div class="sideBar">
+ <ul class="sideBarUl">
+ <li>
+ <a onclick="setIframeUrl(1)" class="router-link-active"><div class="menu"><div class="menu-left"></div><i aria-hidden="true" class="icon fa fa-link"></i><br><label id="org_onap_msb_route_sideBar_serviceroute" name_i18n="org_onap_msb_route_ui_i18n"></label>
+ </div>
+ </a>
+ </li>
+ <li>
+ <a onclick="setIframeUrl(2)" ><div class="menu"><div class="menu-left"></div><i aria-hidden="true" class="icon fa fa-cloud"></i><br><label id="org_onap_msb_route_sideBar_servicediscover" name_i18n="org_onap_msb_route_ui_i18n"></label>
+ </div>
+ </a>
+ </li>
+ <li>
+ <a onclick="setIframeUrl(3)" id="serviceregister_sideBar"><div class="menu"><div class="menu-left"></div><i aria-hidden="true" class="icon fa fa-plus-circle"></i><br><label id="org_onap_msb_route_sideBar_serviceregister" name_i18n="org_onap_msb_route_ui_i18n"></label>
+ </div>
+ </a>
+ </li>
+
+
+
+ </div>
+ </div>
+<div class="page-content" >
+ <div class="page-content-body">
+
+ <div id="pdiv_page-mainIframeisWare">
+ <iframe src="/iui/microservices/index.html" width="100%" scrolling="no" marginheight="0" frameborder="0" id="msbPage" name="msbPage" class="page-mainIframeisWare" ></iframe>
+ </div>
+ </div>
+ </div>
+</div>
+<script type="text/javascript" src="js/jquery/jquery-1.10.2.min.js"></script>
+<script type="text/javascript" src="js/iframeResizer/iframeResizer.min.js"></script>
+<script type="text/javascript" src="js/jquery.i18n/jquery.i18n.properties-1.0.9.js"></script>
+<script src="i18n/loadi18nApp_iui-route_view.js"></script>
+<script type="text/javascript">
+
+
+
+$(function(){
+
+
+ var apiRootPath="api";
+
+ $.ajaxSettings.async = false;
+ $.getJSON("./ext/initUrlRootPath/initUrlRootPath.json",function(json){
+ apiRootPath=json.apiRootPath;
+ });
+
+
+ var apiBasePath="/"+apiRootPath+"/microservices/v1";
+
+$.ajax({
+ "type": 'get',
+ "url": apiBasePath+"/apiRoute/apigateway_metrics/version/v1",
+ "dataType": "json",
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
+ $("#chart-sub-menu").hide();
+ }
+
+ });
+
+ loadPropertiesSideMenu('', 'msb-iui-route-i18n', 'i18n/');
+
+ //Get window height
+ var winHeight=610;
+ if (window.innerHeight)
+ winHeight = window.innerHeight;
+ else if ((document.body) && (document.body.clientHeight))
+ winHeight = document.body.clientHeight;
+ //Through in-depth internal Document to test the body, for the window size
+ if (document.documentElement && document.documentElement.clientHeight ) {
+ winHeight = document.documentElement.clientHeight;
+
+ }
+ winHeight=winHeight-55;
+$('iframe').iFrameResize({minHeight:winHeight});
+
+ $(".sideBar a").on({
+ click: function(){
+ $(".sideBar a").removeClass("router-link-active");
+
+ if($(this).is(".nav-link")){
+ $(this).parent().parent().parent().children("a").addClass("router-link-active");
+ }
+ else{
+ $(this).addClass("router-link-active");
+ }
+
+
+ }
+ });
+
+$(".sidebar-toggler").click(function(){
+ $("body").toggleClass("page-sidebar-closed");
+});
+
+
+
+});
+
+ function gotoServiceRegisterPage(){
+ $(".sideBar a").removeClass("router-link-active");
+ $("#serviceregister_sideBar").addClass("router-link-active");
+ //setIframeUrl(3);
+ }
+
+
+</script>
+
+
+</body>
+</html> \ No newline at end of file