1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
|
<!--
Copyright (C) 2016-2018 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-3.3.1.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>
|