Change-Id: Iab5d4c3be6e3db846bb0077221ec7d7ecbeb0315
Issue-ID: HOLMES-150
Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
23 files changed:
<directory>dist</directory>
<outputDirectory>/iui/holmes</outputDirectory>
</fileSet>
<directory>dist</directory>
<outputDirectory>/iui/holmes</outputDirectory>
</fileSet>
+ <fileSet>
+ <directory>src</directory>
+ <outputDirectory>/iui/holmes</outputDirectory>
+ <includes>
+ <include>default.html</include>
+ </includes>
+ </fileSet>
-/* Copyright 2017 ZTE Corporation.
+/* Copyright 2018 ZTE Corporation.
*
*Licensed under the Apache License, Version 2.0 (the "License");
*you may not use this file except in compliance with the License.
*
*Licensed under the Apache License, Version 2.0 (the "License");
*you may not use this file except in compliance with the License.
- "name": "alarm-analysis",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
- Copyright 2017 ZTE Corporation.
+ Copyright 2018 ZTE Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@Component({
selector: 'remote-config',
@Component({
selector: 'remote-config',
- templateUrl: './pages/remote.component.html',
+ templateUrl: './pages/remote.component.html'
})
export class AppComponent implements OnInit {
constructor(private translate: TranslateService) { }
})
export class AppComponent implements OnInit {
constructor(private translate: TranslateService) { }
- Copyright 2017 ZTE Corporation.
+ Copyright 2018 ZTE Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
- Copyright 2017 ZTE Corporation.
+ Copyright 2018 ZTE Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
See the License for the specific language governing permissions and
limitations under the License.
*/
See the License for the specific language governing permissions and
limitations under the License.
*/
-import { ModuleWithProviders } from '@angular/core';
+import { ModuleWithProviders } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { Routes, RouterModule } from '@angular/router';
-import {AlarmRule} from './correlation-ruleList/alarmRule.component';
-import {RuleInfo} from './correlation-ruleInfo/ruleInfo.component'
+import { AlarmRule } from './correlation-ruleList/alarmRule.component';
+import { RuleInfo } from './correlation-ruleInfo/ruleInfo.component';
const appRoutes: Routes = [
{
path: 'alarmRule',
const appRoutes: Routes = [
{
path: 'alarmRule',
- path:'',
- redirectTo:'alarmRule',
+ path: '',
+ redirectTo: 'alarmRule',
-export const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes,{ useHash: true });
+export const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes, { useHash: true });
- Copyright 2017 ZTE Corporation.
+ Copyright 2018 ZTE Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
- Copyright 2017 ZTE Corporation.
+ Copyright 2018 ZTE Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
- Copyright 2017 ZTE Corporation.
+ Copyright 2018 ZTE Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
- Copyright 2017 ZTE Corporation.
+ Copyright 2018 ZTE Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
- Copyright 2017 ZTE Corporation.
+ Copyright 2018 ZTE Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
- Copyright 2017 ZTE Corporation.
+ Copyright 2018 ZTE Corporation.
Licensed under the Apache License, Version 2.0 (the 'License');
you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the 'License');
you may not use this file except in compliance with the License.
- Copyright 2017 ZTE Corporation.
+ Copyright 2018 ZTE Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
See the License for the specific language governing permissions and
limitations under the License.
-->
See the License for the specific language governing permissions and
limitations under the License.
-->
-<div class="container" style="margin-top: 20px">
+<div class="container-fluid" style="padding-top: 20px">
<form class="form-inline">
<div class="form-body">
<div class="row form-group col-xs-12">
<form class="form-inline">
<div class="form-body">
<div class="row form-group col-xs-12">
- Copyright 2017 ZTE Corporation.
+ Copyright 2018 ZTE Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
- Copyright 2017 ZTE Corporation.
+ Copyright 2018 ZTE Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
- Copyright 2017 ZTE Corporation.
+ Copyright 2018 ZTE Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
- Copyright 2017 ZTE Corporation.
+ Copyright 2018 ZTE Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
- Copyright 2017 ZTE Corporation.
+ Copyright 2018 ZTE Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
See the License for the specific language governing permissions and
limitations under the License.
-->
See the License for the specific language governing permissions and
limitations under the License.
-->
-<div class="tabzone">
-</div>
+<div class="tabzone"></div>
<sif-modal></sif-modal>
<router-outlet></router-outlet>
\ No newline at end of file
<sif-modal></sif-modal>
<router-outlet></router-outlet>
\ No newline at end of file
- <!-- <base href=""> -->
+ <base href="/iui/holmes/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="./assets/thirdparty/js/jquery_1.12.4.min.js"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="./assets/thirdparty/js/jquery_1.12.4.min.js"></script>
+ <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ"
+ crossorigin="anonymous">
<style type="text/css">
.header {
<style type="text/css">
.header {
.body {
min-height: 500px;
.body {
min-height: 500px;
padding: 0;
}
body {
margin: 0;
padding: 0;
}
body {
margin: 0;
color: #aaa;
text-align: center;
}
color: #aaa;
text-align: center;
}
- height: 50px;
- line-height: 50px;
+ height: 45px;
+ line-height: 25px;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
.menu-icon {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
.menu-icon {
- height: 85px;
- line-height: 85px;
+ height: 75px;
+ line-height: 90px;
+ font-size: 35px;
}
.active {
color: #FFF;
background-color: #424e57;
}
}
.active {
color: #FFF;
background-color: #424e57;
}
</div>
<div class="body">
<div class="sidebar fl">
</div>
<div class="body">
<div class="sidebar fl">
- <div class="menu-item active">
+ <div class="menu-item active" id="rule-mgmt">
+ <i class="fas fa-file-alt"></i>
</div>
<div class="menu-item-title">Rules</div>
</div>
</div>
<div class="main fl">
</div>
<div class="menu-item-title">Rules</div>
</div>
</div>
<div class="main fl">
- <iframe src="/iui/holmes/index.html"></iframe>
+ <iframe src="/iui/holmes/#/alarmRule"></iframe>
</div>
</div>
<script type="text/javascript">
</div>
</div>
<script type="text/javascript">
+
+ var menus = {
+ "rule-mgmt": "/iui/holmes/#/alarmRule"
+ }
+
- var height = $(window).height() - $(".header").height();
- $(".sidebar").height(height);
- $("iframe").height(height);
- $("iframe").width($(window).width() - $(".sidebar").width());
+ var height = $(window).height() - $(".header").outerHeight() - 4;
+ $(".sidebar").height(height);
+ $("iframe").height(height);
+ $(".main").height(height);
+ $("iframe").width($(window).width() - $(".sidebar").width());
- $(function(){
- $(window).on("resize", function(){
+ $(function () {
+ $(window).on("resize", function () {
adjustSizes();
});
adjustSizes();
adjustSizes();
});
adjustSizes();
+
+ $(".menu-item").on("click", function () {
+ $("iframe")[0].src = menus[$(this).attr("id")];
+ })
- Copyright 2017 ZTE Corporation.
+ Copyright 2018 ZTE Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
<body style="overflow: auto">
<remote-config>Loading...</remote-config>
</body>
<body style="overflow: auto">
<remote-config>Loading...</remote-config>
</body>
-/* Copyright 2017 ZTE Corporation.
+/* Copyright 2018 ZTE Corporation.
*
*Licensed under the Apache License, Version 2.0 (the "License");
*you may not use this file except in compliance with the License.
*
*Licensed under the Apache License, Version 2.0 (the "License");
*you may not use this file except in compliance with the License.
-/* Copyright 2017 ZTE Corporation.
+/* Copyright 2018 ZTE Corporation.
*
*Licensed under the Apache License, Version 2.0 (the "License");
*you may not use this file except in compliance with the License.
*
*Licensed under the Apache License, Version 2.0 (the "License");
*you may not use this file except in compliance with the License.