From 8e30fbf41dabee082aafb60fe0639b504497674d Mon Sep 17 00:00:00 2001 From: AvinashS Date: Wed, 30 Aug 2017 18:39:12 +0530 Subject: vnfsdk market place seed code refactoring cleanup the package names and a test file correction Change-Id: Icc5a3b48189824dfe5cb84f05ce2c496bcfa3eab IssueId: VNFSDK-74 Signed-off-by: AvinashS --- monitor/pom.xml | 41 - monitor/src/main/webapp/monitor/css/dac.css | 220 ----- .../main/webapp/monitor/css/fonts/openoIcons.eot | Bin 92372 -> 0 bytes .../main/webapp/monitor/css/fonts/openoIcons.svg | 308 ------ .../main/webapp/monitor/css/fonts/openoIcons.ttf | Bin 92192 -> 0 bytes .../main/webapp/monitor/css/fonts/openoIcons.woff | Bin 92268 -> 0 bytes .../src/main/webapp/monitor/css/monitorSetting.css | 167 ---- .../main/webapp/monitor/css/ngict-component.css | 789 --------------- monitor/src/main/webapp/monitor/css/style.css | 921 ------------------ monitor/src/main/webapp/monitor/dacList.html | 250 ----- .../i18n/umc-monitor-iui-i18n-en-US.properties | 102 -- monitor/src/main/webapp/monitor/images/License.txt | 362 ------- .../monitor/images/checkbox-radio/License.txt | 362 ------- .../checkbox-radio/checkbox-checked-disabled.png | Bin 3087 -> 0 bytes .../images/checkbox-radio/checkbox-checked.png | Bin 3053 -> 0 bytes .../images/checkbox-radio/checkbox-disabled.png | Bin 2830 -> 0 bytes .../images/checkbox-radio/checkbox-hover.png | Bin 2835 -> 0 bytes .../images/checkbox-radio/checkbox-init.png | Bin 2833 -> 0 bytes .../checkbox-radio/radio-checked-disabled.png | Bin 2993 -> 0 bytes .../images/checkbox-radio/radio-checked.png | Bin 3235 -> 0 bytes .../images/checkbox-radio/radio-disabled.png | Bin 3045 -> 0 bytes .../monitor/images/checkbox-radio/radio-hover.png | Bin 3068 -> 0 bytes .../monitor/images/checkbox-radio/radio-init.png | Bin 3036 -> 0 bytes .../src/main/webapp/monitor/images/throbber.gif | Bin 9257 -> 0 bytes .../src/main/webapp/monitor/js/dacController.js | 275 ------ monitor/src/main/webapp/monitor/js/hk.min.js | 819 ---------------- .../monitor/js/loadi18nApp_ngict-umc-monitor.js | 43 - .../webapp/monitor/js/monitorSettingController.js | 429 -------- .../main/webapp/monitor/js/monitorSettingUtil.js | 169 ---- monitor/src/main/webapp/monitor/js/tools.js | 1021 -------------------- .../src/main/webapp/monitor/monitorSetting.html | 480 --------- .../main/webapp/monitor/monitorSettingList.html | 103 -- 32 files changed, 6861 deletions(-) delete mode 100644 monitor/pom.xml delete mode 100755 monitor/src/main/webapp/monitor/css/dac.css delete mode 100755 monitor/src/main/webapp/monitor/css/fonts/openoIcons.eot delete mode 100755 monitor/src/main/webapp/monitor/css/fonts/openoIcons.svg delete mode 100755 monitor/src/main/webapp/monitor/css/fonts/openoIcons.ttf delete mode 100755 monitor/src/main/webapp/monitor/css/fonts/openoIcons.woff delete mode 100755 monitor/src/main/webapp/monitor/css/monitorSetting.css delete mode 100755 monitor/src/main/webapp/monitor/css/ngict-component.css delete mode 100755 monitor/src/main/webapp/monitor/css/style.css delete mode 100755 monitor/src/main/webapp/monitor/dacList.html delete mode 100755 monitor/src/main/webapp/monitor/i18n/umc-monitor-iui-i18n-en-US.properties delete mode 100755 monitor/src/main/webapp/monitor/images/License.txt delete mode 100755 monitor/src/main/webapp/monitor/images/checkbox-radio/License.txt delete mode 100755 monitor/src/main/webapp/monitor/images/checkbox-radio/checkbox-checked-disabled.png delete mode 100755 monitor/src/main/webapp/monitor/images/checkbox-radio/checkbox-checked.png delete mode 100755 monitor/src/main/webapp/monitor/images/checkbox-radio/checkbox-disabled.png delete mode 100755 monitor/src/main/webapp/monitor/images/checkbox-radio/checkbox-hover.png delete mode 100755 monitor/src/main/webapp/monitor/images/checkbox-radio/checkbox-init.png delete mode 100755 monitor/src/main/webapp/monitor/images/checkbox-radio/radio-checked-disabled.png delete mode 100755 monitor/src/main/webapp/monitor/images/checkbox-radio/radio-checked.png delete mode 100755 monitor/src/main/webapp/monitor/images/checkbox-radio/radio-disabled.png delete mode 100755 monitor/src/main/webapp/monitor/images/checkbox-radio/radio-hover.png delete mode 100755 monitor/src/main/webapp/monitor/images/checkbox-radio/radio-init.png delete mode 100755 monitor/src/main/webapp/monitor/images/throbber.gif delete mode 100755 monitor/src/main/webapp/monitor/js/dacController.js delete mode 100755 monitor/src/main/webapp/monitor/js/hk.min.js delete mode 100755 monitor/src/main/webapp/monitor/js/loadi18nApp_ngict-umc-monitor.js delete mode 100755 monitor/src/main/webapp/monitor/js/monitorSettingController.js delete mode 100755 monitor/src/main/webapp/monitor/js/monitorSettingUtil.js delete mode 100755 monitor/src/main/webapp/monitor/js/tools.js delete mode 100755 monitor/src/main/webapp/monitor/monitorSetting.html delete mode 100755 monitor/src/main/webapp/monitor/monitorSettingList.html (limited to 'monitor') diff --git a/monitor/pom.xml b/monitor/pom.xml deleted file mode 100644 index aa5fbb67..00000000 --- a/monitor/pom.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - org.openo.client.gui - client-gui - 1.1.0-SNAPSHOT - - - 4.0.0 - monitor - 1.1.0-SNAPSHOT - war - client-gui/monitor - - - - - org.apache.maven.plugins - maven-war-plugin - - false - - - - - diff --git a/monitor/src/main/webapp/monitor/css/dac.css b/monitor/src/main/webapp/monitor/css/dac.css deleted file mode 100755 index c07e3e25..00000000 --- a/monitor/src/main/webapp/monitor/css/dac.css +++ /dev/null @@ -1,220 +0,0 @@ -/** - * Copyright 2016-2017, CMCC Technologies Co., Ltd. - * - * 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. - */ -body { - color: #333; - font-size: 14px; - font-family: "Microsoft yahei", arial; - background-color: #ffffff !important; -} - - -a { - - text-decoration: none !important; -} - - - -.titlefont { - font-size: 16px; -} - - - -.container-fluid { - background-color: #fff; -} - - -div.separator div { - text-align: center; - line-height: 0; -} - -.row{ - margin-left: 0px; - margin-right: 0px; - margin-bottom: 10px; - margin-top: 10px; -} - - -p[tooltip], div[tooltip], td[tooltip], span[tooltip]{ - overflow: hidden; - text-overflow: ellipsis; - white-space:nowrap; -} - -.control-label .required { - color: #e02222; - font-size: 12px; - padding-left: 2px; -} - -.stats_box { - display: inline-block; - list-style: none outside none; - margin-left: 0; - margin-top: 10px; - padding: 0; - float: left; -} - - - -.stats_box .policyDiv{ - background: #eee; - box-shadow: 0 0 0 1px #f8f8f8 inset,0 0 0 1px #ccc; - display: inline-block; - line-height: 18px; - margin: 0 10px 10px; - padding: 0 10px; - float: left; - height: 105px; -} - - - -.sparkline { - min-width: 60px; - /* border-right: 1px solid #dcdcdc; */ - /* box-shadow: 1px 0 0 0 #fff; */ - float: left; - /* margin-right: 9pt; */ - padding: 0px 24px 0 34px; - height: 90px; -} - -.sparkline i{ -color:#5bc0de; -} - - - - - - - -.animated-panel { - -webkit-animation-duration: .5s; - animation-duration: .5s; - -webkit-animation-fill-mode: both; - animation-fill-mode: both; -} - -/* -.panel-footer { - padding: 6px 15px; -}*/ - - -/*卡片面板样式*/ -.animated-panel { - -webkit-animation-duration: .5s; - animation-duration: .5s; - -webkit-animation-fill-mode: both; - animation-fill-mode: both; -} - -.hpanel { - background-color: none; - border: none; - box-shadow: none; - margin-bottom: 35px; - -} - -.hpanel .panel-body { - border: 1px solid #e4e5e7; - border-radius: 2px; - padding: 20px; - position: relative; -} -.h-200 { - min-height: 220px; -} -.m-t-xl { - margin-top: 20px; -} -.text-success { - color: #0d638f; -} - -.hpanel_div_list{ - height:30px; -} - -.hpanel > .panel-footer { - color: inherit; - border: 1px solid #e4e5e7; - border-top: none; - font-size: 90%; - background: #f7f9fa; - height:40px; - padding: 5px 15px; -} - -.color_cloud{ - color:#BAB9B9; -} -.stats-title{ - -} - -h3{ - margin-top: 10px; - margin-bottom: 40px; - font-weight: 200; - color: #357ebd -} - -.blue-font{ - color:#428bca; -} - -.hpanel > .panel-footer .pull-right a{ - margin-left: 5px; -} - -.font-bold { - font-weight: 600; - margin-bottom: 15px; -} - -.hpanel_show{ - cursor: pointer; - background-color: #f7f9fa; -} - -.hpanel > .panel-footer .pull-right .btn { - min-width: 30px !important; -} - - -div[data-name="cond_zone"] div { - background-color: #fff; - margin-bottom: 15px; -} - -span.response_throbber { - background-image: url('../images/throbber.gif'); - width: 128px; - height: 16px; - display: block; - clear: none; - float: left; - margin-top: 50px; -} \ No newline at end of file diff --git a/monitor/src/main/webapp/monitor/css/fonts/openoIcons.eot b/monitor/src/main/webapp/monitor/css/fonts/openoIcons.eot deleted file mode 100755 index 49ae78c1..00000000 Binary files a/monitor/src/main/webapp/monitor/css/fonts/openoIcons.eot and /dev/null differ diff --git a/monitor/src/main/webapp/monitor/css/fonts/openoIcons.svg b/monitor/src/main/webapp/monitor/css/fonts/openoIcons.svg deleted file mode 100755 index eb9225f8..00000000 --- a/monitor/src/main/webapp/monitor/css/fonts/openoIcons.svg +++ /dev/null @@ -1,308 +0,0 @@ - - - -Generated by IcoMoon - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/monitor/src/main/webapp/monitor/css/fonts/openoIcons.ttf b/monitor/src/main/webapp/monitor/css/fonts/openoIcons.ttf deleted file mode 100755 index e610cb1f..00000000 Binary files a/monitor/src/main/webapp/monitor/css/fonts/openoIcons.ttf and /dev/null differ diff --git a/monitor/src/main/webapp/monitor/css/fonts/openoIcons.woff b/monitor/src/main/webapp/monitor/css/fonts/openoIcons.woff deleted file mode 100755 index 2e193ba1..00000000 Binary files a/monitor/src/main/webapp/monitor/css/fonts/openoIcons.woff and /dev/null differ diff --git a/monitor/src/main/webapp/monitor/css/monitorSetting.css b/monitor/src/main/webapp/monitor/css/monitorSetting.css deleted file mode 100755 index d513464b..00000000 --- a/monitor/src/main/webapp/monitor/css/monitorSetting.css +++ /dev/null @@ -1,167 +0,0 @@ -/** - * Copyright 2016-2017, CMCC Technologies Co., Ltd. - * - * 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. - */ -body { - color: #333; - font-family: "Microsoft yahei", Verdana, Arial, Helvetica, sans-serif !important; - padding: 0px !important; - margin: 0px !important; - direction: ltr; - background-color: #ffffff !important; -} - -a { - text-decoration: none !important; - cursor: pointer; -} - -.label{ - font-size: 80%; -} - -.row{ - margin-left: 0px; - margin-right: 0px; - padding-left: 0px; - padding-right: 0px; -} - -.chart_row{ - - padding-left:5px; - padding-right: 5px; -} - -.titlefont { - font-size: 16px; -} - -.container-fluid { - background-color: #fff; -} - -.blue-font { - color: #428bca; -} - - - -.separator-line { - height: 1px; - width: 100%; - background: #ddd; - overflow: hidden; - margin-bottom: 15px; - margin-top: 6px; - opacity: 0.6; -} - - - - - -.main { - - overflow: hidden; - margin-bottom: 10px; - border: 1px solid #e3e3e3; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); - padding-top: 10px; - padding-right: 10px; -} - -.panel-tools { - display: inline-block; - float: right; - margin-top: 0; - padding: 0; - position: relative; -} - -.panel-tools a { - margin-left: 5px; - color: #9d9fa2; - cursor: pointer; -} - -.panel-tools a:hover{ - color: #34495e; - text-decoration: none; -} - - -.timeline-badge { - width: 100px; - height: 100px; - border-radius: 50% 50% 50% 50%; - text-align: center; - font-size: 50px; - line-height: 100px; - color: #fff; - background-color: #999999; -} -.timeline-badge.info { - background-color: #378AE8 !important; -} - -.collapseContent ul { - padding-left: 0; - list-style: none; -} - -.collapseContent ul li{ - height:40px; - font-size: 15px; -} - -#MonitorContent{ - padding-top: 30px; - padding-bottom: 20px; -} - -.border-right { - border-right: 1px solid #e4e5e7; -} - -.tipArea { - border-bottom: 1px solid #d4d4d4; - width: 85%; - text-align: center; - margin-bottom: 15px; - margin-left: 30px; - font-weight: bold; -} -.monitor-icon{ - - width:180px; - float:left; - padding-left:40px - -} - -.proxy_div{ - float:left; - padding-left:20px - -} - -#MonitorContent b{ - margin-right: 5px; -} \ No newline at end of file diff --git a/monitor/src/main/webapp/monitor/css/ngict-component.css b/monitor/src/main/webapp/monitor/css/ngict-component.css deleted file mode 100755 index 2d377768..00000000 --- a/monitor/src/main/webapp/monitor/css/ngict-component.css +++ /dev/null @@ -1,789 +0,0 @@ -/** - * Copyright 2016, CMCC Technologies Co., Ltd. - * - * 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. - */ - -body { - color: #333; - font-size: 14px; - font-family: "Microsoft yahei", Arial !important; - background-color: transparent; -} - -/*fontIcon*/ - -[class^="ict-"], -[class*=" ict-"] { - padding-right: 3px; -} - -/*common color*/ - -.blue1 { - background-color: #5b9bd1; - color: #fff; -} - -.blue1:hover { - background-color: #487ca9; - color: #fff; -} - -.blue2 { - background-color: #57b5e3; - color: #fff; -} - -.blue2:hover { - background-color: #43a1cf; - color: #fff; -} - -.red { - background-color: #e35b5a; - color: #fff; -} - -.red:hover { - background-color: #d45150; - color: #fff; -} - -.green { - background-color: #44b6ae; - color: #fff; -} - -.green:hover { - background-color: #329d96; - color: #fff; -} - -.gold { - background-color: #c0af69; - color: #fff; -} - -.gold:hover { - background-color: #ad9a4d; - color: #fff; -} - -.grey { - background-color: #e5e5e5; - color: #333; -} - -.grey:hover { - background-color: #d8d8d8; - color: #333; -} - -.dark_grey { - background-color: #333; - color: #fff; -} - -.dark_grey:hover { - background-color: #101010; - color: #fff; -} - -.white { - background-color: #fff; - border: 1px solid #ddd; - color: #333; -} - -.white:hover { - background-color: #e5e5e5; - color: #333; -} - -/*** -Responsive & Scrollable Tables -***/ - -.table-scrollable { - width: 100%; - overflow-x: auto; - overflow-y: hidden; - border: 1px solid #dddddd; -} - -.table-scrollable > .table { - width: 100% !important; - margin: 0 !important; - margin-bottom: 0; - background-color: #fff; -} - -.table-scrollable > .table > thead > tr > th, -.table-scrollable > .table > tbody > tr > th, -.table-scrollable > .table > tfoot > tr > th, -.table-scrollable > .table > thead > tr > td, -.table-scrollable > .table > tbody > tr > td, -.table-scrollable > .table > tfoot > tr > td { - white-space: nowrap; -} - -.table-scrollable > .table-bordered { - border: 0; -} - -.table-scrollable > .table-bordered > thead > tr > th:first-child, -.table-scrollable > .table-bordered > tbody > tr > th:first-child, -.table-scrollable > .table-bordered > tfoot > tr > th:first-child, -.table-scrollable > .table-bordered > thead > tr > td:first-child, -.table-scrollable > .table-bordered > tbody > tr > td:first-child, -.table-scrollable > .table-bordered > tfoot > tr > td:first-child { - border-left: 0; -} - -.table-scrollable > .table-bordered > thead > tr > th:last-child, -.table-scrollable > .table-bordered > tbody > tr > th:last-child, -.table-scrollable > .table-bordered > tfoot > tr > th:last-child, -.table-scrollable > .table-bordered > thead > tr > td:last-child, -.table-scrollable > .table-bordered > tbody > tr > td:last-child, -.table-scrollable > .table-bordered > tfoot > tr > td:last-child { - border-right: 0; -} - -.table-scrollable > .table-bordered > thead > tr:last-child > th, -.table-scrollable > .table-bordered > tbody > tr:last-child > th, -.table-scrollable > .table-bordered > tfoot > tr:last-child > th, -.table-scrollable > .table-bordered > thead > tr:last-child > td, -.table-scrollable > .table-bordered > tbody > tr:last-child > td, -.table-scrollable > .table-bordered > tfoot > tr:last-child > td { - border-bottom: 0; -} - -/*form*/ - -.form { - padding: 0 !important; -} - -.form-group .multiRow { - margin-bottom: 15px; -} - -.form-group, -.form-group .btn { - font-size: 12px; -} - -.form-body { - padding: 10px; -} - -.form-actions { - padding-top: 20px -} - -.form-actions.nobg { - background-color: transparent; -} - -.form-actions.top { - margin-top: 0; - margin-bottom: 20px; - border-top: 0; - border-bottom: 1px solid #e5e5e5; -} - -/*.form-actions.fluid { - padding: 20px 0; -}*/ - -.form-actions .btnGroup { - padding-left: 0; -} - -.form-actions.fluid > [class^="col-"] { - padding-left: 13px; -} - -.form-actions:before, -.form-actions:after { - display: table; - line-height: 0; - content: ""; -} - -.form-actions:after { - clear: both; -} - -.form-section { - margin: 30px 0px 25px 0px; - padding-bottom: 5px; - border-bottom: 1px solid #eee; -} - -.form .form-section:first-child { - margin-top: 5px; -} - -.help-inline { - font-size: 13px; - color: #737373; - display: inline-block; - padding: 5px; -} - -.submBtn { - text-align: center; -} -.subm-iconMargin { -margin-left:-40px; -} -.subm-margin { -margin-left:-40px; -} - -/* left, right aligned form actions */ - -.form-actions.right { - padding-left: 0; - padding-right: 10px; - text-align: right; -} - -.form-actions.left { - padding-left: 10px; - padding-right: 0; - text-align: left; -} - -/* Checkbox */ - -.form-group .checkbox { - padding-left: 0; -} - -.form-title { - padding: 8px; - margin-bottom: 25px; - border-left: 2px solid #5b9bd1; - color: #1A78CA; - font-size: 16px; -} - -.checkbox-list > label { - display: block; -} - -.checkbox-list > label.checkbox-inline { - display: inline-block; -} - -.checkbox-list > label.checkbox-inline:first-child { - padding-left: 0; -} - -/* Radios */ -input[type="radio"]{ - cursor:pointer -} -.radio-list > label { - display: block; -} - -.radio-list > label.radio-inline { - display: inline-block; -} - -.radio-list > label.radio-inline:first-child { - padding-left: 0; -} - -.form-horizontal .radio-list .radio { - padding-top: 1px; -} - -.form-horizontal .radio-list > label { - margin-bottom: 0; -} - -.form-horizontal .radio > span { - margin-top: 2px; -} - -.help-block { - margin-top: 5px; - margin-bottom: 5px; - color: #a94442 !important; -} - -.form-inline input { - margin-bottom: 0px !important; -} -.form-horizontal .control-label{ - padding-top:4px; - text-align:right; -} - -.form-control-static { - font-size: 14px; - padding-top: 7px; -} - -.control-label .required { - color: #e02222; - font-size: 12px; - padding-left: 2px; -} - -/*TAB*/ - -.nav-tabs { - border: 0; - font-weight: bold; -} - -.nav-tabs > li.active > a, -.nav-tabs > li.active > a:hover, -.nav-tabs > li.active > a:focus { - border: 0; - border-top: 3px solid #F3565D; -} - -.nav-tabs > li > a { - border-radius: 0; - font-weight: bold; -} - -.nav-tabs > li > a:hover { - background-color: #f1f3fa; - border: 1Px solid #f1f3fa; -} - -/*button*/ - -.btn { - min-width: 80px; - letter-spacing: 1px; -} - -.btnGroup .btn { - margin-right: 15px; -} - -.pagination-panel .btn { - min-width: 4px; -} - -.btn.dropdown-toggle, -.btn-group .btn.dropdown-toggle, -.btn:hover, -.btn:disabled, -.btn[disabled], -.btn:focus, -.btn:active, -.btn.active { - outline: none !important; - background-image: none !important; - filter: none; - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; - text-shadow: none; -} -.btn-xs:hover{ -text-decoration:none ; -} -/*radius*/ - -.radius_l { - border-radius: 20px; -} - -.radius_m { - border-radius: 8px; -} - -.radius_s { - border-radius: 3px; -} - -/*Progress Bars*/ - -.progress { - border: 0; - background-image: none !important; - filter: none !important; - -webkit-box-shadow: none !important; - -moz-box-shadow: none !important; - box-shadow: none !important; -} - -.form-wizard .steps > li.active > a.step .number { - background-color: #45B6AF -} - -.progress > .progress-bar-success { - background-color: #45B6AF -} - -/*label*/ - -.label, -label { - font-weight: 400; - /*margin-bottom:15px;*/ -} - -/*表单中的组合*/ - -.input-group-btn-vertical.fa { - font-size: 12px; -} - -.spinner { - width: 60px; - margin-left: 10px; - margin-right: 30px; -} - -.spinner input { - text-align: right; -} - -.input-group-btn-vertical { - position: relative; - white-space: nowrap; - width: 1%; - vertical-align: middle; - display: table-cell; -} - -.input-group-btn-vertical > .btn { - display: block; - float: none; - width: 100%; - max-width: 100%; - padding: 6px; - margin-left: -1px; - position: relative; - border-radius: 0; -} - -.input-group-btn-vertical > .btn { - min-width: 20px; -} - -.input-group-btn-vertical > .btn:first-child { - border-top-right-radius: 4px; -} - -.input-group-btn-vertical > .btn:last-child { - margin-top: -2px; - border-bottom-right-radius: 4px; -} - -.input-group-btn-vertical i { - position: absolute; - top: -2px; - left: 5px; -} - -.input-group .form-control { - height: 26px !important; -} - -/*separator & title*/ - -.separator-line { - height: 1px; - width: 100%; - background: #ddd; - overflow: hidden; - margin-bottom: 15px; - margin-top: 6px; - opacity: 0.6; -} - -.separator { - opacity: 0.7; -} - -.separator:hover { - opacity: 1; -} - -.titlefont { - font-size: 16px; - margin-top:15px; -} - -/*link*/ - -a { - color: #428bca; - text-decoration: none ; - cursor:pointer; -} -a:hover{ - text-decoration: underline; -} -/*html滑块组件*/ - -input[type="range"] { - margin-top: 2px; - background-color: #f0f3f9; - border: 1px solid #ccd6e8; - border-radius: 15px; - width: 400px; - -webkit-appearance: none; - height: 15px; -} - -input[type="range"]::-webkit-slider-thumb { - -webkit-appearance: none; - cursor: pointer; - top: -5px; - height: 28px; - width: 15px; - transform: translateY(-4px); - background: none repeat scroll 0 0 #f0f3f9; - background-color: #9cc2cb; - border-radius: 20px; -} - -input[type="range"]:focus { - outline: none; -} - -/*ztree*/ - -.ztree * { - font-family: "microsoft yahei"; - font-size: 12px; -} - -.ztree { - padding: 15px 30px 0 5px; -} - -.ztree li a.curSelectedNode { - height: 28px; -} - -.ztree li span { - line-height: 16px; - margin-right: 2px; - margin-left: 6px -} - -.ztree li span.button.chk { - width: 13px; - height: 13px; - margin-left: 10px; - cursor: auto -} - -.ztree li span.button.add { - margin-left: 2px; - /* margin-right: -1px; */ - - margin-right: 4px; - background-position: -144px 0; - vertical-align: top; - *vertical-align: middle; - float: right; -} - -.ztree li span.button.edit { - margin-right: 4px; - background-position: -110px -48px; - vertical-align: top; - *vertical-align: middle; - float: right; -} - -.ztree li span.button.remove { - margin-right: 4px; - background-position: -110px -64px; - vertical-align: top; - *vertical-align: middle; - float: right; -} - -.ztree-select .ztree li a { - border: 1px solid #fff !important; -} - -/*table*/ - -table, -.dataTables_length, -.dataTables_info, -.dataTables_paginate { - font-size: 12px; -} - -table .heading { - font-size: 14px; - background: #fff !important; -} - -table.dataTable tbody th, -table.dataTable tbody td { - padding: 8px 10px 4px 10px !important; -} - -table tr:nth-of-type(odd) { - background: #f9f9f9; -} - -table tr:nth-of-type(even) { - background: #fff; -} - -table td:hover { - background-color: #f5f5f5; - border-bottom: 1px solid #d0d0d0; - border-top: 1px solid #d0d0d0; -} - -table tr td label { - cursor: pointer; -} - -.table-btn span { - padding-left: 5px; - padding-right: 5px; -} -.table-bordered>thead>tr>th, .table-bordered>thead>tr>td{ -border-bottom-width:1px; -} -/*select-box with icon*/ - -.iconselect-box .col-xs-1 { - width: 15px; - padding: 110px 0 0 0; -} - -.iconPosition > div { - margin: 20px 0px 0px 0px; -} - -/*-------------C3.css-------------*/ -.c3 path, .c3 line { - stroke: #008acd; -} - -.c3-line { - stroke-width: 3px; -} - -.c3-tooltip { - width: auto; -} - -.c3-tooltip td { - color: #000; -} - -.c3-axis.c3-axis-y { - stroke-width: 1px; -} - -.c3-axis.c3-axis-x { - stroke-width: 1px; -} - -/*checkbox & radio*/ -input[type="checkbox"] { - -webkit-appearance: none; - background: #fff url(/openoui/monitor/images/checkbox-radio/checkbox-init.png); - height: 18px; - vertical-align: middle; - width: 18px; - margin-bottom:5px; - margin-right:5px; -} - -input[type="checkbox"]:checked { - -webkit-appearance: none; - background: #fff url(/openoui/monitor/images/checkbox-radio/checkbox-checked.png); - height: 18px; - vertical-align: middle; - width: 18px; -} - -input[type="checkbox"]:focus, -input[type="checkbox"]:hover { - outline: none; -} - -input[type="checkbox"][disabled] { - -webkit-appearance: none; - background: #fff url(/openoui/monitor/images/checkbox-radio/checkbox-disabled.png); - height: 18px; - vertical-align: middle; - width: 18px; - margin-bottom:5px; - margin-right:5px; -} - -input[type="checkbox"][disabled]:checked { - -webkit-appearance: none; - background: #fff url(/openoui/monitor/images/checkbox-radio/checkbox-checked-disabled.png); - height: 18px; - vertical-align: middle; - width: 18px; -} - -input[type="radio"] { - -webkit-appearance: none; - background: #fff url(/openoui/monitor/images/checkbox-radio/radio-init.png); - height: 18px; - vertical-align: middle; - width: 18px; - margin-bottom:5px; - margin-right:5px; -} - -input[type="radio"]:checked { - -webkit-appearance: none; - background: #fff url(/openoui/monitor/images/checkbox-radio/radio-checked.png); - height: 18px; - vertical-align: middle; - width: 18px; -} - -input[type="radio"]:focus, -input[type="radio"]:hover { - outline: none; -} - -input[type="radio"][disabled] { - -webkit-appearance: none; - background: #fff url(/openoui/monitor/images/checkbox-radio/radio-disabled.png); - height: 18px; - vertical-align: middle; - width: 18px; - margin-bottom:5px; - margin-right:5px; -} - -input[type="radio"][disabled]:checked { - -webkit-appearance: none; - background: #fff url(/openoui/monitor/images/checkbox-radio/radio-checked-disabled.png); - height: 18px; - vertical-align: middle; - width: 18px; -} diff --git a/monitor/src/main/webapp/monitor/css/style.css b/monitor/src/main/webapp/monitor/css/style.css deleted file mode 100755 index a16234ac..00000000 --- a/monitor/src/main/webapp/monitor/css/style.css +++ /dev/null @@ -1,921 +0,0 @@ -@font-face { - font-family: 'openoIcons'; - src:url('fonts/openoIcons.eot?whxm2m'); - src:url('fonts/openoIcons.eot?whxm2m#iefix') format('embedded-opentype'), - url('fonts/openoIcons.ttf?whxm2m') format('truetype'), - url('fonts/openoIcons.woff?whxm2m') format('woff'), - url('fonts/openoIcons.svg?whxm2m#openoIcons') format('svg'); - font-weight: normal; - font-style: normal; -} - -[class^="ict-"], [class*=" ict-"] { - /* use !important to prevent issues with browser extensions that change fonts */ - font-family: 'openoIcons' !important; - speak: none; - font-style: normal; - font-weight: normal; - font-variant: normal; - text-transform: none; - line-height: 1; - - /* Better Font Rendering =========== */ - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.ict-it-other-lenovo:before { - content: "\e900"; -} -.ict-it-router-alu7750:before { - content: "\e901"; -} -.ict-it-other-nds:before { - content: "\e902"; -} -.ict-it-other-php:before { - content: "\e903"; -} -.ict-it-app-glassfish:before { - content: "\e904"; -} -.ict-it-other-telnet:before { - content: "\e905"; -} -.ict-it-other-dns:before { - content: "\e906"; -} -.ict-it-other-url:before { - content: "\e907"; -} -.ict-it-database-mysql:before { - content: "\e908"; -} -.ict-it-other-ping:before { - content: "\e909"; -} -.ict-it-other-ftp:before { - content: "\e90a"; -} -.ict-it-other-rest:before { - content: "\e90b"; -} -.ict-it-other-soap:before { - content: "\e90c"; -} -.ict-it-server-macos:before { - content: "\e90d"; -} -.ict-it-server-openbsd:before { - content: "\e90e"; -} -.ict-it-server-debian:before { - content: "\e90f"; -} -.ict-it-app-iis:before { - content: "\e910"; -} -.ict-it-app-mailserver:before { - content: "\e911"; -} -.ict-it-app-websphere:before { - content: "\e912"; -} -.ict-it-app-apache:before { - content: "\e913"; -} -.ict-it-app-jboss:before { - content: "\e914"; -} -.ict-it-other-a10bala:before { - content: "\e915"; -} -.ict-NFV:before { - content: "\e916"; -} -.ict-VNFM:before { - content: "\e917"; -} -.ict-VNF:before { - content: "\e918"; -} -.ict-VNFC:before { - content: "\e919"; -} -.ict-VIM:before { - content: "\e91a"; -} -.ict-VDU:before { - content: "\e91b"; -} -.ict-host:before { - content: "\e91c"; -} -.ict-NS:before { - content: "\e91d"; -} -.ict-it-cluster-vcs:before { - content: "\e91e"; -} -.ict-it-diskraid-hpeva:before { - content: "\e91f"; -} -.ict-it-diskraid-zte:before { - content: "\e920"; -} -.ict-it-firewall-h3c:before { - content: "\e921"; -} -.ict-it-other-ibm-blade:before { - content: "\e922"; -} -.ict-it-other-secfox:before { - content: "\e923"; -} -.ict-it-other-segw:before { - content: "\e924"; -} -.ict-it-other-zteatca:before { - content: "\e925"; -} -.ict-it-other-zteips:before { - content: "\e926"; -} -.ict-it-sdn-controller:before { - content: "\e927"; -} -.ict-it-server-hpux:before { - content: "\e928"; -} -.ict-it-storage-ops:before { - content: "\e929"; -} -.ict-it-storage-sanswitch-brocade:before { - content: "\e92a"; -} -.ict-uep-moc-uca-public:before { - content: "\e92b"; -} -.ict-uep-topo-commongroup20x20:before { - content: "\e92c"; -} -.ict-vapel_chgpile:before { - content: "\e92d"; -} -.ict-car:before { - content: "\e92e"; -} -.ict-chgpile:before { - content: "\e92f"; -} -.ict-chgposition:before { - content: "\e930"; -} -.ict-chgstation:before { - content: "\e931"; -} -.ict-common_dc:before { - content: "\e932"; -} -.ict-common_ncd:before { - content: "\e933"; -} -.ict-common_ncd_break:before { - content: "\e934"; -} -.ict-common_sc:before { - content: "\e935"; -} -.ict-it:before { - content: "\e936"; -} -.ict-it-app:before { - content: "\e937"; -} -.ict-it-app-bind:before { - content: "\e938"; -} -.ict-it-app-dns:before { - content: "\e939"; -} -.ict-it-app-ems:before { - content: "\e93a"; -} -.ict-it-app-mediator:before { - content: "\e93b"; -} -.ict-it-app-ntp:before { - content: "\e93c"; -} -.ict-it-app-ota:before { - content: "\e93d"; -} -.ict-it-app-tomcat:before { - content: "\e93e"; -} -.ict-it-app-trend:before { - content: "\e93f"; -} -.ict-it-app-tsm:before { - content: "\e940"; -} -.ict-it-app-weblogic:before { - content: "\e941"; -} -.ict-it-cluster:before { - content: "\e942"; -} -.ict-it-cluster-hacmp:before { - content: "\e943"; -} -.ict-it-cluster-nec:before { - content: "\e944"; -} -.ict-it-cluster-ns:before { - content: "\e945"; -} -.ict-it-cluster-sg:before { - content: "\e946"; -} -.ict-it-database:before { - content: "\e947"; -} -.ict-it-database-mssql:before { - content: "\e948"; -} -.ict-it-database-oracle:before { - content: "\e949"; -} -.ict-it-database-sybase:before { - content: "\e94a"; -} -.ict-it-database-sybaseiq:before { - content: "\e94b"; -} -.ict-it-diskraid-dellmd:before { - content: "\e94c"; -} -.ict-it-diskraid-emc:before { - content: "\e94d"; -} -.ict-it-diskraid-eternus:before { - content: "\e94e"; -} -.ict-it-diskraid-fujitsu:before { - content: "\e94f"; -} -.ict-it-diskraid-hds:before { - content: "\e950"; -} -.ict-it-diskraid-hpaio:before { - content: "\e951"; -} -.ict-it-diskraid-hpmsa:before { - content: "\e952"; -} -.ict-it-diskraid-ibm:before { - content: "\e953"; -} -.ict-it-diskraid-ibmsm:before { - content: "\e954"; -} -.ict-it-diskraid-macrosan:before { - content: "\e955"; -} -.ict-it-diskraid-netapp:before { - content: "\e956"; -} -.ict-it-diskraid-sun:before { - content: "\e957"; -} -.ict-it-firewall:before { - content: "\e958"; -} -.ict-it-firewall-checkpoint:before { - content: "\e959"; -} -.ict-it-firewall-cisco:before { - content: "\e95a"; -} -.ict-it-firewall-cisco2:before { - content: "\e95b"; -} -.ict-it-firewall-juniper:before { - content: "\e95c"; -} -.ict-it-firewall-neteye:before { - content: "\e95d"; -} -.ict-it-firewall-zte:before { - content: "\e95e"; -} -.ict-it-firewall-ztemf:before { - content: "\e95f"; -} -.ict-it-firewall-zteutm:before { - content: "\e960"; -} -.ict-it-gather:before { - content: "\e961"; -} -.ict-it-ibp:before { - content: "\e962"; -} -.ict-it-ibp-ibp2000:before { - content: "\e963"; -} -.ict-it-net:before { - content: "\e964"; -} -.ict-it-other:before { - content: "\e965"; -} -.ict-it-other-alteon:before { - content: "\e966"; -} -.ict-it-other-appdirector:before { - content: "\e967"; -} -.ict-it-other-atca-lb10:before { - content: "\e968"; -} -.ict-it-other-cisco-ucs:before { - content: "\e969"; -} -.ict-it-other-dcs:before { - content: "\e96a"; -} -.ict-it-other-delta:before { - content: "\e96b"; -} -.ict-it-other-dp:before { - content: "\e96c"; -} -.ict-it-other-e9000:before { - content: "\e96d"; -} -.ict-it-other-f5bigip:before { - content: "\e96e"; -} -.ict-it-other-f5bigip2:before { - content: "\e96f"; -} -.ict-it-other-gbe2c:before { - content: "\e970"; -} -.ict-it-other-h3c:before { - content: "\e971"; -} -.ict-it-other-hpblc:before { - content: "\e972"; -} -.ict-it-other-imm:before { - content: "\e973"; -} -.ict-it-other-secsis:before { - content: "\e974"; -} -.ict-it-other-vc:before { - content: "\e975"; -} -.ict-it-other-ztepower:before { - content: "\e976"; -} -.ict-it-other-ztesgs:before { - content: "\e977"; -} -.ict-it-other-zxsdr-nt:before { - content: "\e978"; -} -.ict-it-router:before { - content: "\e979"; -} -.ict-it-router-cisco:before { - content: "\e97a"; -} -.ict-it-router-juniper:before { - content: "\e97b"; -} -.ict-it-router-zte:before { - content: "\e97c"; -} -.ict-it-sdn-host:before { - content: "\e97d"; -} -.ict-it-sdn-switch:before { - content: "\e97e"; -} -.ict-it-server:before { - content: "\e97f"; -} -.ict-it-server-aix:before { - content: "\e980"; -} -.ict-it-server-klinux:before { - content: "\e981"; -} -.ict-it-server-redhat:before { - content: "\e982"; -} -.ict-it-server-solaris:before { - content: "\e983"; -} -.ict-it-server-suse:before { - content: "\e984"; -} -.ict-it-server-windows:before { - content: "\e985"; -} -.ict-it-server-zxve:before { - content: "\e986"; -} -.ict-it-storage:before { - content: "\e987"; -} -.ict-it-storage-cisco-mds:before { - content: "\e988"; -} -.ict-it-storage-md3000:before { - content: "\e989"; -} -.ict-it-storage-netvault:before { - content: "\e98a"; -} -.ict-it-storage-sanswitch-zte:before { - content: "\e98b"; -} -.ict-it-switch-at:before { - content: "\e98c"; -} -.ict-it-switch-cisco:before { - content: "\e98d"; -} -.ict-it-switch-h3c:before { - content: "\e98e"; -} -.ict-it-switch-juniper:before { - content: "\e98f"; -} -.ict-it-switch-zte:before { - content: "\e990"; -} -.ict-it-tapelib-hpmsl:before { - content: "\e991"; -} -.ict-it-tapelib-ibmts:before { - content: "\e992"; -} -.ict-it-tapelib-sunts:before { - content: "\e993"; -} -.ict-it-Virtualnetwork:before { - content: "\e994"; -} -.ict-networkTree:before { - content: "\e995"; -} -.ict-resourceType:before { - content: "\e996"; -} -.ict-tree-icon:before { - content: "\e997"; -} -.ict-uep-topo-group20x20:before { - content: "\e998"; -} -.ict-uep-topo-root:before { - content: "\e999"; -} -.ict-uep-topo-virtual20x20:before { - content: "\e99a"; -} -.ict-common_ncd_stop:before { - content: "\e99b"; -} -.ict-it-app-netnumen:before { - content: "\e99c"; -} -.ict-it-sdn-vnet:before { - content: "\e99d"; -} -.ict-it-storage-sanswitch-hp:before { - content: "\e99e"; -} -.ict-it-switch:before { - content: "\e99f"; -} -.ict-uep-moc-root:before { - content: "\e9a0"; -} -.ict-uep-topo-undefinedgroup20x20:before { - content: "\e9a1"; -} -.ict-analysis:before { - content: "\e9a2"; -} -.ict-bindingRelationship:before { - content: "\e9a3"; -} -.ict-browsePolicy:before { - content: "\e9a4"; -} -.ict-businessManagment:before { - content: "\e9a5"; -} -.ict-cardData:before { - content: "\e9a6"; -} -.ict-dailyManagment:before { - content: "\e9a7"; -} -.ict-enterpriseCustomer:before { - content: "\e9a8"; -} -.ict-equipmentBlacklist:before { - content: "\e9a9"; -} -.ict-equipmentModel:before { - content: "\e9aa"; -} -.ict-examine:before { - content: "\e9ab"; -} -.ict-failureList:before { - content: "\e9ac"; -} -.ict-familyCustomer:before { - content: "\e9ad"; -} -.ict-fileTool:before { - content: "\e9ae"; -} -.ict-groupManagment:before { - content: "\e9af"; -} -.ict-notice:before { - content: "\e9b0"; -} -.ict-policy:before { - content: "\e9b1"; -} -.ict-portal:before { - content: "\e9b2"; -} -.ict-recordQuery:before { - content: "\e9b3"; -} -.ict-resourceManagment:before { - content: "\e9b4"; -} -.ict-ruleManagment:before { - content: "\e9b5"; -} -.ict-sucessRate:before { - content: "\e9b6"; -} -.ict-terminalManagment:before { - content: "\e9b7"; -} -.ict-tools:before { - content: "\e9b8"; -} -.ict-track:before { - content: "\e9b9"; -} -.ict-userManagment:before { - content: "\e9ba"; -} -.ict-versionManagment:before { - content: "\e9bb"; -} -.ict-workOrder:before { - content: "\e9bc"; -} -.ict-cpu:before { - content: "\e9bd"; -} -.ict-memory:before { - content: "\e9be"; -} -.ict-currentAlarm:before { - content: "\e9bf"; -} -.ict-noticeAlarm:before { - content: "\e9c0"; -} -.ict-historyAlarm:before { - content: "\e9c1"; -} -.ict-close:before { - content: "\e9c2"; -} -.ict-table:before { - content: "\e9c3"; -} -.ict-next:before { - content: "\e9c4"; -} -.ict-pre:before { - content: "\e9c5"; -} -.ict-roleset:before { - content: "\e9c6"; -} -.ict-role:before { - content: "\e9c7"; -} -.ict-user:before { - content: "\e9c8"; -} -.ict-empty:before { - content: "\e9c9"; -} -.ict-noticeFilter:before { - content: "\e9ca"; -} -.ict-alarmTurn:before { - content: "\e9cb"; -} -.ict-advice:before { - content: "\e9cc"; -} -.ict-clearAlarm:before { - content: "\e9cd"; -} -.ict-alarmBox:before { - content: "\e9ce"; -} -.ict-afreshDef:before { - content: "\e9cf"; -} -.ict-alarmFilter:before { - content: "\e9d0"; -} -.ict-manAnalysis:before { - content: "\e9d1"; -} -.ict-drill:before { - content: "\e9d2"; -} -.ict-gear:before { - content: "\e9d3"; -} -.ict-process:before { - content: "\e9d4"; -} -.ict-unacknownledge:before { - content: "\e9d5"; -} -.ict-acknownledge:before { - content: "\e9d6"; -} -.ict-Operation:before { - content: "\e9d7"; -} -.ict-cloud:before { - content: "\e9d8"; -} -.ict-computer:before { - content: "\e9d9"; -} -.ict-alarm:before { - content: "\e9da"; -} -.ict-import:before { - content: "\e9db"; -} -.ict-export:before { - content: "\e9dc"; -} -.ict-Admin:before { - content: "\e9dd"; -} -.ict-allSelected:before { - content: "\e9de"; -} -.ict-angleRight:before { - content: "\e9df"; -} -.ict-arrowLeft:before { - content: "\e9e0"; -} -.ict-arrowLeftAll:before { - content: "\e9e1"; -} -.ict-arrowRight:before { - content: "\e9e2"; -} -.ict-arrowRightAll:before { - content: "\e9e3"; -} -.ict-autoFind:before { - content: "\e9e4"; -} -.ict-back:before { - content: "\e9e5"; -} -.ict-ball:before { - content: "\e9e6"; -} -.ict-bell:before { - content: "\e9e7"; -} -.ict-blackList:before { - content: "\e9e8"; -} -.ict-breakLink:before { - content: "\e9e9"; -} -.ict-cancle:before { - content: "\e9ea"; -} -.ict-circle:before { - content: "\e9eb"; -} -.ict-closeTree:before { - content: "\e9ec"; -} -.ict-configmap:before { - content: "\e9ed"; -} -.ict-delete:before { - content: "\e9ee"; -} -.ict-department:before { - content: "\e9ef"; -} -.ict-detail:before { - content: "\e9f0"; -} -.ict-displaySwitch:before { - content: "\e9f1"; -} -.ict-file:before { - content: "\e9f2"; -} -.ict-filter:before { - content: "\e9f3"; -} -.ict-find:before { - content: "\e9f4"; -} -.ict-folder:before { - content: "\e9f5"; -} -.ict-forceOut:before { - content: "\e9f6"; -} -.ict-fullScreen:before { - content: "\e9f7"; -} -.ict-Graphical:before { - content: "\e9f8"; -} -.ict-helpTip:before { - content: "\e9f9"; -} -.ict-hide:before { - content: "\e9fa"; -} -.ict-history:before { - content: "\e9fb"; -} -.ict-launchingTower:before { - content: "\e9fc"; -} -.ict-layout:before { - content: "\e9fd"; -} -.ict-legendhide:before { - content: "\e9fe"; -} -.ict-legendshow:before { - content: "\e9ff"; -} -.ict-link:before { - content: "\ea00"; -} -.ict-lock:before { - content: "\ea01"; -} -.ict-ltArrow:before { - content: "\ea02"; -} -.ict-Magnifier:before { - content: "\ea03"; -} -.ict-Maintain:before { - content: "\ea04"; -} -.ict-maximize:before { - content: "\ea05"; -} -.ict-modify:before { - content: "\ea06"; -} -.ict-Monitor:before { - content: "\ea07"; -} -.ict-move:before { - content: "\ea08"; -} -.ict-new:before { - content: "\ea09"; -} -.ict-newShortcut:before { - content: "\ea0a"; -} -.ict-openTree:before { - content: "\ea0b"; -} -.ict-poNode:before { - content: "\ea0c"; -} -.ict-print:before { - content: "\ea0d"; -} -.ict-product:before { - content: "\ea0e"; -} -.ict-rbArrow:before { - content: "\ea0f"; -} -.ict-reduction:before { - content: "\ea10"; -} -.ict-refresh:before { - content: "\ea11"; -} -.ict-rename:before { - content: "\ea12"; -} -.ict-save:before { - content: "\ea13"; -} -.ict-select:before { - content: "\ea14"; -} -.ict-selectAll:before { - content: "\ea15"; -} -.ict-selectLeft:before { - content: "\ea16"; -} -.ict-selectRight:before { - content: "\ea17"; -} -.ict-show:before { - content: "\ea18"; -} -.ict-shrink:before { - content: "\ea19"; -} -.ict-start:before { - content: "\ea1a"; -} -.ict-stop:before { - content: "\ea1b"; -} -.ict-stretch:before { - content: "\ea1c"; -} -.ict-strikeOut:before { - content: "\ea1d"; -} -.ict-Synchronous:before { - content: "\ea1e"; -} -.ict-toRight:before { - content: "\ea1f"; -} -.ict-treefile:before { - content: "\ea20"; -} -.ict-treeFolder:before { - content: "\ea21"; -} -.ict-unlock:before { - content: "\ea22"; -} -.ict-userCompare:before { - content: "\ea23"; -} -.ict-userDispatch:before { - content: "\ea24"; -} -.ict-xml:before { - content: "\ea25"; -} -.ict-zoomIn:before { - content: "\ea26"; -} -.ict-zoomOut:before { - content: "\ea27"; -} -.ict-zoomOverView:before { - content: "\ea28"; -} -.ict-zoomReset:before { - content: "\ea29"; -} - diff --git a/monitor/src/main/webapp/monitor/dacList.html b/monitor/src/main/webapp/monitor/dacList.html deleted file mode 100755 index 99322e9d..00000000 --- a/monitor/src/main/webapp/monitor/dacList.html +++ /dev/null @@ -1,250 +0,0 @@ - - - - - - - - - - - - - - - -
- -
-
- DAC Manage -
-
- - return - -
- -
-
- - - - -
-
- -
-
- - - -
-
-
-
- -
-
- -
-
-

{{dac.nodeLabel}}

-
IP Address:{{dac.ipAddress}}
-
Note:{{dac.note}}
-
-
- - -
-
- - - -
- - -
-
-
- total - - records - -
-
-
-
- -
- - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/monitor/src/main/webapp/monitor/i18n/umc-monitor-iui-i18n-en-US.properties b/monitor/src/main/webapp/monitor/i18n/umc-monitor-iui-i18n-en-US.properties deleted file mode 100755 index 1ff919b3..00000000 --- a/monitor/src/main/webapp/monitor/i18n/umc-monitor-iui-i18n-en-US.properties +++ /dev/null @@ -1,102 +0,0 @@ -# -# Copyright 2016-2017, CMCC Technologies Co., Ltd. -# -# 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. -# -com_zte_openo_umc_monitor_monitorList_titeName=Monitor Para List -com_zte_openo_umc_monitor_monitorList_dac_manage= DAC Manage -com_zte_openo_umc_monitor_monitorList_monitor_sn=SN -com_zte_openo_umc_monitor_monitorList_monitor_name=Display Name -com_zte_openo_umc_monitor_monitorList_monitor_ipaddress=IP Address -com_zte_openo_umc_monitor_monitorList_monitor_type=Type -com_zte_openo_umc_monitor_monitorList_total=total -com_zte_openo_umc_monitor_monitorList_records=records -com_zte_openo_umc_monitor_monitorList_monitor_dacip=DAC -com_zte_openo_umc_monitor_monitorList_monitor_opr=Operation - - -com_zte_openo_umc_monitor_return=return -com_zte_openo_umc_monitor_dac_label=Node Label -com_zte_openo_umc_monitor_dac_ipaddress=IP Address -com_zte_openo_umc_monitor_dac_note=Note -com_zte_openo_umc_monitor_btn_save=Save -com_zte_openo_umc_monitor_btn_cancel=Cancel -com_zte_openo_umc_monitor_dac_register=Register DAC -com_zte_openo_umc_monitor_dac_edit=Edit DAC -com_zte_openo_umc_monitor_dac_panel_ipaddress=IP Address: -com_zte_openo_umc_monitor_dac_panel_note=Note: - -com_zte_openo_umc_monitor_dac_register_repeat_errInfo=DAC IP: {0} has been registerd -com_zte_openo_umc_monitor_dac_register_check_Info=check IPAddress and save DAC ,please wait -com_zte_openo_umc_monitor_dac_register_successInfo=DAC save success -com_zte_openo_umc_monitor_dac_update_successInfo=DAC update success -com_zte_openo_umc_monitor_dac_delete_sureInfo=Are you sure delete this DAC? -com_zte_openo_umc_monitor_dac_delete_successInfo=DAC delete success -com_zte_openo_umc_monitor_dac_query_failInfo=query DAC Info fail: -com_zte_openo_umc_monitor_dac_save_failInfo=DAC save fail: -com_zte_openo_umc_monitor_dac_delete_failInfo=DAC delete fail: -com_zte_openo_umc_monitor_tip=Tip: -com_zte_openo_umc_monitor_dac_label_empty_errInfo=please input Node Label -com_zte_openo_umc_monitor_dac_ipaddress_empty_errInfo=please input IP address - -com_zte_openo_umc_monitor_monitorsetting_delete=Delete -com_zte_openo_umc_monitor_monitorsetting_ipaddress=IP Address -com_zte_openo_umc_monitor_monitorsetting_dac=DAC -com_zte_openo_umc_monitor_monitorsetting_user=User -com_zte_openo_umc_monitor_monitorsetting_password=Password -com_zte_openo_umc_monitor_monitorsetting_protocol=Protocol -com_zte_openo_umc_monitor_monitorsetting_port=Port -com_zte_openo_umc_monitor_monitorsetting_version=Version -com_zte_openo_umc_monitor_monitorsetting_snmpport=SNMP Port -com_zte_openo_umc_monitor_monitorsetting_snmpversion=SNMP Version -com_zte_openo_umc_monitor_monitorsetting_snmpcommunity=SNMP Community - -com_zte_openo_umc_monitor_monitorsetting_titlename=Monitor Para Setting -com_zte_openo_umc_monitor_btn_monitorset=Monitor Set -com_zte_openo_umc_monitor_monitorsetting_ipaddress_format_errInfo=Please input the correct IP address -com_zte_openo_umc_monitor_monitorsetting_user_empty_errInfo=please input Login User -com_zte_openo_umc_monitor_monitorsetting_password_empty_errInfo=please input Login Password -com_zte_openo_umc_monitor_monitorsetting_dac_empty_errInfo=please select DAC IP -com_zte_openo_umc_monitor_monitorsetting_protocol_empty_errInfo=please select Login Protocol -com_zte_openo_umc_monitor_monitorsetting_ipaddress_empty_errInfo=please input IP address -com_zte_openo_umc_monitor_monitorsetting_port_empty_errInfo=please input Login Port -com_zte_openo_umc_monitor_monitorsetting_name_empty_errInfo=please input Node Label - -com_zte_openo_umc_monitor_monitorsetting_query_list_errInfo=query monitor List fail -com_zte_openo_umc_monitor_monitorsetting_query_monitor_errInfo=query monitor Instance fail -com_zte_openo_umc_monitor_monitorsetting_monitor_checkInfo=Monitor Set saveing...,please wait -com_zte_openo_umc_monitor_monitorsetting_monitor_save_failInfo=Monitor Set save fail -com_zte_openo_umc_monitor_monitorsetting_monitor_save_successInfo=Monitor Set save success -com_zte_openo_umc_monitor_monitorsetting_dac_query_failInfo=query DAC Info fail: -com_zte_openo_umc_monitor_monitorsetting_task_checkInfo=Monitor Task updating...,please wait -com_zte_openo_umc_monitor_monitorsetting_monitor_task_failInfo=Monitor Task update fail: - - -openo-umc-monitor-iui-table-sLengthMenu=View _MENU_ records -openo-umc-monitor-iui-table-sZeroRecords=No matching records found -openo-umc-monitor-iui-table-sInfo= | Found total _TOTAL_ records -openo-umc-monitor-iui-table-sInfoEmpty=No records found to show -openo-umc-monitor-iui-table-sGroupActions=_TOTAL_ records selected: -openo-umc-monitor-iui-table-sAjaxRequestGeneralError=Could not complete request. Please check your internet connection. -openo-umc-monitor-iui-table-sEmptyTable=No data available in table -openo-umc-monitor-iui-table-sPrevious=Prev -openo-umc-monitor-iui-table-sNext=Next -openo-umc-monitor-iui-table-sPage=Page -openo-umc-monitor-iui-table-sPageOf=of -com_zte_openo_umc_monitor_monitorsetting_agentIP=Agent Ip -com_zte_openo_umc_monitor_monitorsetting_agentUsername=Agent Username -com_zte_openo_umc_monitor_monitorsetting_agentPassword=Agent Password -com_zte_openo_umc_monitor_monitorsetting_agentProtocol=Agent Protocol -com_zte_openo_umc_monitor_monitorsetting_agentPort=Agent Port -com_zte_openo_umc_monitor_monitorsetting_ppMaxCount=PP MaxCount - diff --git a/monitor/src/main/webapp/monitor/images/License.txt b/monitor/src/main/webapp/monitor/images/License.txt deleted file mode 100755 index 8e698ecb..00000000 --- a/monitor/src/main/webapp/monitor/images/License.txt +++ /dev/null @@ -1,362 +0,0 @@ -THIS LICENSE FILE CONTAINS THE LICENSE APPLICABLE DEPENDING ON THE TYPE OF CONTRIBUTIONS. - -APACHE LICENSE 2 IS APPLICABLE FOR SOURCE CODE, CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL FOR DOCUMENTATION - -+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - - -Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. - -"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. - -2. Grant of Copyright License. - -Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. - -Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. - -4. Redistribution. - -You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: - -You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. - -5. Submission of Contributions. - -Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. - -6. Trademarks. - -This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. - -Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. - -In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. - -While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - -Attribution 4.0 International - -https://creativecommons.org/licenses/by/4.0/legalcode - -Creative Commons Corporation ("Creative Commons") is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an "as-is" basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees -Creative Commons Attribution 4.0 International Public License - -By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - c. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - d. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - e. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - f. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - g. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - h. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - i. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - j. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - k. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - -Section 2 -- Scope. - - a. License grant. - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - a. reproduce and Share the Licensed Material, in whole or - in part; and - b. produce, reproduce, and Share Adapted Material. - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - 3. Term. The term of this Public License is specified in Section - 6(a). - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - 5. Downstream recipients. - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - b. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - b. Other rights. - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - 2. Patent and trademark rights are not licensed under this - Public License. - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties. - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the following conditions. - - a. Attribution. - 1. If You Share the Licensed Material (including in modified - form), You must: - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - ii. a copyright notice; - iii. a notice that refers to this Public License; - iv. a notice that refers to the disclaimer of - warranties; - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - 4. If You Share Adapted Material You produce, the Adapter's - License You apply must not prevent recipients of the Adapted - Material from complying with this Public License. - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database; - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material; and - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. -For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - 2. upon express reinstatement by the Licensor. - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. -Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the "Licensor." The text of the Creative Commons public licenses is dedicated to the public domain under the CC0 Public Domain Dedication. Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark "Creative Commons" or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. - -Creative Commons may be contacted at creativecommons.org. \ No newline at end of file diff --git a/monitor/src/main/webapp/monitor/images/checkbox-radio/License.txt b/monitor/src/main/webapp/monitor/images/checkbox-radio/License.txt deleted file mode 100755 index 8e698ecb..00000000 --- a/monitor/src/main/webapp/monitor/images/checkbox-radio/License.txt +++ /dev/null @@ -1,362 +0,0 @@ -THIS LICENSE FILE CONTAINS THE LICENSE APPLICABLE DEPENDING ON THE TYPE OF CONTRIBUTIONS. - -APACHE LICENSE 2 IS APPLICABLE FOR SOURCE CODE, CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL FOR DOCUMENTATION - -+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - - -Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. - -"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. - -2. Grant of Copyright License. - -Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. - -Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. - -4. Redistribution. - -You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: - -You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. - -5. Submission of Contributions. - -Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. - -6. Trademarks. - -This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. - -Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. - -In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. - -While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - -Attribution 4.0 International - -https://creativecommons.org/licenses/by/4.0/legalcode - -Creative Commons Corporation ("Creative Commons") is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an "as-is" basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees -Creative Commons Attribution 4.0 International Public License - -By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - c. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - d. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - e. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - f. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - g. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - h. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - i. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - j. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - k. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - -Section 2 -- Scope. - - a. License grant. - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - a. reproduce and Share the Licensed Material, in whole or - in part; and - b. produce, reproduce, and Share Adapted Material. - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - 3. Term. The term of this Public License is specified in Section - 6(a). - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - 5. Downstream recipients. - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - b. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - b. Other rights. - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - 2. Patent and trademark rights are not licensed under this - Public License. - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties. - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the following conditions. - - a. Attribution. - 1. If You Share the Licensed Material (including in modified - form), You must: - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - ii. a copyright notice; - iii. a notice that refers to this Public License; - iv. a notice that refers to the disclaimer of - warranties; - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - 4. If You Share Adapted Material You produce, the Adapter's - License You apply must not prevent recipients of the Adapted - Material from complying with this Public License. - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database; - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material; and - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. -For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - 2. upon express reinstatement by the Licensor. - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. -Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the "Licensor." The text of the Creative Commons public licenses is dedicated to the public domain under the CC0 Public Domain Dedication. Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark "Creative Commons" or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. - -Creative Commons may be contacted at creativecommons.org. \ No newline at end of file diff --git a/monitor/src/main/webapp/monitor/images/checkbox-radio/checkbox-checked-disabled.png b/monitor/src/main/webapp/monitor/images/checkbox-radio/checkbox-checked-disabled.png deleted file mode 100755 index 0ba905f0..00000000 Binary files a/monitor/src/main/webapp/monitor/images/checkbox-radio/checkbox-checked-disabled.png and /dev/null differ diff --git a/monitor/src/main/webapp/monitor/images/checkbox-radio/checkbox-checked.png b/monitor/src/main/webapp/monitor/images/checkbox-radio/checkbox-checked.png deleted file mode 100755 index 2ddfb0a0..00000000 Binary files a/monitor/src/main/webapp/monitor/images/checkbox-radio/checkbox-checked.png and /dev/null differ diff --git a/monitor/src/main/webapp/monitor/images/checkbox-radio/checkbox-disabled.png b/monitor/src/main/webapp/monitor/images/checkbox-radio/checkbox-disabled.png deleted file mode 100755 index a53c89c2..00000000 Binary files a/monitor/src/main/webapp/monitor/images/checkbox-radio/checkbox-disabled.png and /dev/null differ diff --git a/monitor/src/main/webapp/monitor/images/checkbox-radio/checkbox-hover.png b/monitor/src/main/webapp/monitor/images/checkbox-radio/checkbox-hover.png deleted file mode 100755 index c2821132..00000000 Binary files a/monitor/src/main/webapp/monitor/images/checkbox-radio/checkbox-hover.png and /dev/null differ diff --git a/monitor/src/main/webapp/monitor/images/checkbox-radio/checkbox-init.png b/monitor/src/main/webapp/monitor/images/checkbox-radio/checkbox-init.png deleted file mode 100755 index e352cc51..00000000 Binary files a/monitor/src/main/webapp/monitor/images/checkbox-radio/checkbox-init.png and /dev/null differ diff --git a/monitor/src/main/webapp/monitor/images/checkbox-radio/radio-checked-disabled.png b/monitor/src/main/webapp/monitor/images/checkbox-radio/radio-checked-disabled.png deleted file mode 100755 index 16eecc57..00000000 Binary files a/monitor/src/main/webapp/monitor/images/checkbox-radio/radio-checked-disabled.png and /dev/null differ diff --git a/monitor/src/main/webapp/monitor/images/checkbox-radio/radio-checked.png b/monitor/src/main/webapp/monitor/images/checkbox-radio/radio-checked.png deleted file mode 100755 index 6c60d128..00000000 Binary files a/monitor/src/main/webapp/monitor/images/checkbox-radio/radio-checked.png and /dev/null differ diff --git a/monitor/src/main/webapp/monitor/images/checkbox-radio/radio-disabled.png b/monitor/src/main/webapp/monitor/images/checkbox-radio/radio-disabled.png deleted file mode 100755 index c27289db..00000000 Binary files a/monitor/src/main/webapp/monitor/images/checkbox-radio/radio-disabled.png and /dev/null differ diff --git a/monitor/src/main/webapp/monitor/images/checkbox-radio/radio-hover.png b/monitor/src/main/webapp/monitor/images/checkbox-radio/radio-hover.png deleted file mode 100755 index 03138ca6..00000000 Binary files a/monitor/src/main/webapp/monitor/images/checkbox-radio/radio-hover.png and /dev/null differ diff --git a/monitor/src/main/webapp/monitor/images/checkbox-radio/radio-init.png b/monitor/src/main/webapp/monitor/images/checkbox-radio/radio-init.png deleted file mode 100755 index b428c58f..00000000 Binary files a/monitor/src/main/webapp/monitor/images/checkbox-radio/radio-init.png and /dev/null differ diff --git a/monitor/src/main/webapp/monitor/images/throbber.gif b/monitor/src/main/webapp/monitor/images/throbber.gif deleted file mode 100755 index 06393889..00000000 Binary files a/monitor/src/main/webapp/monitor/images/throbber.gif and /dev/null differ diff --git a/monitor/src/main/webapp/monitor/js/dacController.js b/monitor/src/main/webapp/monitor/js/dacController.js deleted file mode 100755 index 07aab1ce..00000000 --- a/monitor/src/main/webapp/monitor/js/dacController.js +++ /dev/null @@ -1,275 +0,0 @@ -/* - * Copyright 2016-2017, CMCC Technologies Co., Ltd. - * - * 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. - */ -var vm = avalon - .define({ - $id : "dacController", - $queryDACsRestUrl : '/openoapi/umc/v1/monitor/dacs', - server_rtn:{ - info_block:false, - warning_block:false, - rtn_info:"" - }, - dacLoading:false, - dacChecking:false, - dacInfoArray : [], - dacInfo:{ - oid:"", - moc:"", - nodeLabel : '', - ipAddress : '', - note : '' - }, - dacDlgInfo:{ - titleName:"", - saveType:"" - }, - initDAC:function(){ - vm.dacLoading=true; - - $.ajax({ - "type": 'get', - "url": vm.$queryDACsRestUrl, - "dataType": "json", - success: function (resp) { - vm.dacInfoArray = (resp==null)?[]:resp; - vm.dacInfoArray.sort(function(a,b){return a.nodeLabel>b.nodeLabel?1:-1}); - }, - error: function(XMLHttpRequest, textStatus, errorThrown) { - // bootbox.alert("query DAC Info fail:"+":"+errorThrown); - monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_dac_query_failInfo')+errorThrown,"danger"); - return; - }, - complete:function(){ - vm.dacLoading=false; - } - }); - }, - testDAC:function(){ - vm.server_rtn.warning_block=false; - vm.server_rtn.info_block=true; - vm.server_rtn.rtn_info="DAC Access Test Pass"; - }, - addDAC:function(){ - - vm.dacInfo.oid=""; - vm.dacInfo.moc="it.dac"; - vm.dacInfo.nodeLabel=""; - vm.dacInfo.ipAddress=""; - vm.dacInfo.note=""; - - vm.dacDlgInfo.saveType = "add"; - vm.dacDlgInfo.titleName=$.i18n.prop('com_zte_openo_umc_monitor_dac_register'); - vm.server_rtn.warning_block=false; - vm.server_rtn.info_block=false; - - - $(".form-group").each(function () { - $(this).removeClass('has-success'); - $(this).removeClass('has-error'); - $(this).find(".help-block[id]").remove(); - }); - $("#dacDlg").modal("show"); - }, - saveDAC : function() { - success.hide(); - error.hide(); - if (form.valid() == false) { - return false; - } - - vm.server_rtn.warning_block=false; - vm.server_rtn.info_block=true; - vm.server_rtn.rtn_info=' '+$.i18n.prop('com_zte_openo_umc_monitor_dac_register_check_Info'); - - - var data= JSON.stringify({ - "oid":vm.dacInfo.oid, - "moc": vm.dacInfo.moc, - "nodeLabel":vm.dacInfo.nodeLabel, - "ipAddress":vm.dacInfo.ipAddress, - "note":vm.dacInfo.note - }); - - if(vm.dacDlgInfo.saveType=="add") - { - vm.dacChecking=true; - for(var i=0;ib.nodeLabel?1:-1}); - $('#dacDlg').modal('hide'); - monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_dac_register_successInfo'),"success"); - vm.dacChecking=false; - } - else{ - vm.server_rtn.warning_block=true; - vm.server_rtn.info_block=false; - vm.server_rtn.rtn_info= resp.info; - vm.dacChecking=false; - } - - - }, - error: function(XMLHttpRequest, textStatus, errorThrown) { - - vm.server_rtn.warning_block=true; - vm.server_rtn.info_block=false; - vm.server_rtn.rtn_info= $.i18n.prop('com_zte_openo_umc_monitor_dac_save_failInfo')+errorThrown; - vm.dacChecking=false; - - } - }); - } - else{ - - $.ajax({ - "type": 'PUT', - "url": vm.$queryDACsRestUrl, - "data" :data, - "dataType": "json", - "contentType":"application/json", - success: function (resp) { - if(resp.result=="SUCCESS"){ - for(var i=0;i _.length(this._area)) { m--; i--; }// in case of removeItem - } - return and || this; - }, - keys: function() { - return this.each(function(k, list){ list.push(k); }, []); - }, - get: function(key, alt) { - var s = _.get(this._area, this._in(key)); - return s !== null ? _.parse(s) : alt || s;// support alt for easy default mgmt - }, - getAll: function() { - return this.each(function(k, all){ all[k] = this.get(k); }, {}); - }, - set: function(key, data, overwrite) { - var d = this.get(key); - if (d != null && overwrite === false) { - return data; - } - return _.set(this._area, this._in(key), _.stringify(data), overwrite) || d; - }, - setAll: function(data, overwrite) { - var changed, val; - for (var key in data) { - val = data[key]; - if (this.set(key, val, overwrite) !== val) { - changed = true; - } - } - return changed; - }, - remove: function(key) { - var d = this.get(key); - _.remove(this._area, this._in(key)); - return d; - }, - clear: function() { - if (!this._ns) { - _.clear(this._area); - } else { - this.each(function(k){ _.remove(this._area, this._in(k)); }, 1); - } - return this; - }, - clearAll: function() { - var area = this._area; - for (var id in _.areas) { - if (_.areas.hasOwnProperty(id)) { - this._area = _.areas[id]; - this.clear(); - } - } - this._area = area; - return this; - }, - - // internal use functions - _in: function(k) { - if (typeof k !== "string"){ k = _.stringify(k); } - return this._ns ? this._ns + k : k; - }, - _out: function(k) { - return this._ns ? - k && k.indexOf(this._ns) === 0 ? - k.substring(this._ns.length) : - undefined : // so each() knows to skip it - k; - } - },// end _.storeAPI - storageAPI: { - length: 0, - has: function(k){ return this.items.hasOwnProperty(k); }, - key: function(i) { - var c = 0; - for (var k in this.items){ - if (this.has(k) && i === c++) { - return k; - } - } - }, - setItem: function(k, v) { - if (!this.has(k)) { - this.length++; - } - this.items[k] = v; - }, - removeItem: function(k) { - if (this.has(k)) { - delete this.items[k]; - this.length--; - } - }, - getItem: function(k){ return this.has(k) ? this.items[k] : null; }, - clear: function(){ for (var k in this.list){ this.removeItem(k); } }, - toString: function(){ return this.length+' items in '+this.name+'Storage'; } - }// end _.storageAPI - }; - - // setup the primary store fn - if (window.store){ _.conflict = window.store; } - var store = - // safely set this up (throws error in IE10/32bit mode for local files) - _.Store("local", (function(){try{ return localStorage; }catch(e){}})()); - store.local = store;// for completeness - store._ = _;// for extenders and debuggers... - // safely setup store.session (throws exception in FF for file:/// urls) - store.area("session", (function(){try{ return sessionStorage; }catch(e){}})()); - - //Expose store to the global object - window.store = store; - - if (typeof define === 'function' && define.amd !== undefined) { - define(function () { - return store; - }); - } else if (typeof module !== 'undefined' && module.exports) { - module.exports = store; - } - -})(this, null); - -// XHook - v1.3.3 - https://github.com/jpillora/xhook -// Jaime Pillora - MIT Copyright 2015 -(function(window,undefined) { -var AFTER, BEFORE, COMMON_EVENTS, EventEmitter, FIRE, FormData, NativeFormData, NativeXMLHttp, OFF, ON, READY_STATE, UPLOAD_EVENTS, XHookFormData, XHookHttpRequest, XMLHTTP, convertHeaders, depricatedProp, document, fakeEvent, mergeObjects, msie, proxyEvents, slice, xhook, _base, - __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; - -document = window.document; - -BEFORE = 'before'; - -AFTER = 'after'; - -READY_STATE = 'readyState'; - -ON = 'addEventListener'; - -OFF = 'removeEventListener'; - -FIRE = 'dispatchEvent'; - -XMLHTTP = 'XMLHttpRequest'; - -FormData = 'FormData'; - -UPLOAD_EVENTS = ['load', 'loadend', 'loadstart']; - -COMMON_EVENTS = ['progress', 'abort', 'error', 'timeout']; - -msie = parseInt((/msie (\d+)/.exec(navigator.userAgent.toLowerCase()) || [])[1]); - -if (isNaN(msie)) { - msie = parseInt((/trident\/.*; rv:(\d+)/.exec(navigator.userAgent.toLowerCase()) || [])[1]); -} - -(_base = Array.prototype).indexOf || (_base.indexOf = function(item) { - var i, x, _i, _len; - for (i = _i = 0, _len = this.length; _i < _len; i = ++_i) { - x = this[i]; - if (x === item) { - return i; - } - } - return -1; -}); - -slice = function(o, n) { - return Array.prototype.slice.call(o, n); -}; - -depricatedProp = function(p) { - return p === "returnValue" || p === "totalSize" || p === "position"; -}; - -mergeObjects = function(src, dst) { - var k, v; - for (k in src) { - v = src[k]; - if (depricatedProp(k)) { - continue; - } - try { - dst[k] = src[k]; - } catch (_error) {} - } - return dst; -}; - -proxyEvents = function(events, src, dst) { - var event, p, _i, _len; - p = function(event) { - return function(e) { - var clone, k, val; - clone = {}; - for (k in e) { - if (depricatedProp(k)) { - continue; - } - val = e[k]; - clone[k] = val === src ? dst : val; - } - return dst[FIRE](event, clone); - }; - }; - for (_i = 0, _len = events.length; _i < _len; _i++) { - event = events[_i]; - if (dst._has(event)) { - src["on" + event] = p(event); - } - } -}; - -fakeEvent = function(type) { - var msieEventObject; - if (document.createEventObject != null) { - msieEventObject = document.createEventObject(); - msieEventObject.type = type; - return msieEventObject; - } else { - try { - return new Event(type); - } catch (_error) { - return { - type: type - }; - } - } -}; - -EventEmitter = function(nodeStyle) { - var emitter, events, listeners; - events = {}; - listeners = function(event) { - return events[event] || []; - }; - emitter = {}; - emitter[ON] = function(event, callback, i) { - events[event] = listeners(event); - if (events[event].indexOf(callback) >= 0) { - return; - } - i = i === undefined ? events[event].length : i; - events[event].splice(i, 0, callback); - }; - emitter[OFF] = function(event, callback) { - var i; - if (event === undefined) { - events = {}; - return; - } - if (callback === undefined) { - events[event] = []; - } - i = listeners(event).indexOf(callback); - if (i === -1) { - return; - } - listeners(event).splice(i, 1); - }; - emitter[FIRE] = function() { - var args, event, i, legacylistener, listener, _i, _len, _ref; - args = slice(arguments); - event = args.shift(); - if (!nodeStyle) { - args[0] = mergeObjects(args[0], fakeEvent(event)); - } - legacylistener = emitter["on" + event]; - if (legacylistener) { - legacylistener.apply(undefined, args); - } - _ref = listeners(event).concat(listeners("*")); - for (i = _i = 0, _len = _ref.length; _i < _len; i = ++_i) { - listener = _ref[i]; - listener.apply(undefined, args); - } - }; - emitter._has = function(event) { - return !!(events[event] || emitter["on" + event]); - }; - if (nodeStyle) { - emitter.listeners = function(event) { - return slice(listeners(event)); - }; - emitter.on = emitter[ON]; - emitter.off = emitter[OFF]; - emitter.fire = emitter[FIRE]; - emitter.once = function(e, fn) { - var fire; - fire = function() { - emitter.off(e, fire); - return fn.apply(null, arguments); - }; - return emitter.on(e, fire); - }; - emitter.destroy = function() { - return events = {}; - }; - } - return emitter; -}; - -xhook = EventEmitter(true); - -xhook.EventEmitter = EventEmitter; - -xhook[BEFORE] = function(handler, i) { - if (handler.length < 1 || handler.length > 2) { - throw "invalid hook"; - } - return xhook[ON](BEFORE, handler, i); -}; - -xhook[AFTER] = function(handler, i) { - if (handler.length < 2 || handler.length > 3) { - throw "invalid hook"; - } - return xhook[ON](AFTER, handler, i); -}; - -xhook.enable = function() { - window[XMLHTTP] = XHookHttpRequest; - if (NativeFormData) { - window[FormData] = XHookFormData; - } -}; - -xhook.disable = function() { - window[XMLHTTP] = xhook[XMLHTTP]; - window[FormData] = NativeFormData; -}; - -convertHeaders = xhook.headers = function(h, dest) { - var header, headers, k, name, v, value, _i, _len, _ref; - if (dest == null) { - dest = {}; - } - switch (typeof h) { - case "object": - headers = []; - for (k in h) { - v = h[k]; - name = k.toLowerCase(); - headers.push("" + name + ":\t" + v); - } - return headers.join('\n'); - case "string": - headers = h.split('\n'); - for (_i = 0, _len = headers.length; _i < _len; _i++) { - header = headers[_i]; - if (/([^:]+):\s*(.+)/.test(header)) { - name = (_ref = RegExp.$1) != null ? _ref.toLowerCase() : void 0; - value = RegExp.$2; - if (dest[name] == null) { - dest[name] = value; - } - } - } - return dest; - } -}; - -NativeFormData = window[FormData]; - -XHookFormData = function(form) { - var entries; - this.fd = form ? new NativeFormData(form) : new NativeFormData(); - this.form = form; - entries = []; - Object.defineProperty(this, 'entries', { - get: function() { - var fentries; - fentries = !form ? [] : slice(form.querySelectorAll("input,select")).filter(function(e) { - var _ref; - return ((_ref = e.type) !== 'checkbox' && _ref !== 'radio') || e.checked; - }).map(function(e) { - return [e.name, e.type === "file" ? e.files : e.value]; - }); - return fentries.concat(entries); - } - }); - this.append = (function(_this) { - return function() { - var args; - args = slice(arguments); - entries.push(args); - return _this.fd.append.apply(_this.fd, args); - }; - })(this); -}; - -if (NativeFormData) { - xhook[FormData] = NativeFormData; - window[FormData] = XHookFormData; -} - -NativeXMLHttp = window[XMLHTTP]; - -xhook[XMLHTTP] = NativeXMLHttp; - -XHookHttpRequest = window[XMLHTTP] = function() { - var ABORTED, currentState, emitFinal, emitReadyState, facade, hasError, hasErrorHandler, readBody, readHead, request, response, setReadyState, status, transiting, writeBody, writeHead, xhr; - ABORTED = -1; - xhr = new xhook[XMLHTTP](); - request = {}; - status = null; - hasError = void 0; - transiting = void 0; - response = void 0; - readHead = function() { - var key, name, val, _ref; - response.status = status || xhr.status; - if (!(status === ABORTED && msie < 10)) { - response.statusText = xhr.statusText; - } - if (status !== ABORTED) { - _ref = convertHeaders(xhr.getAllResponseHeaders()); - for (key in _ref) { - val = _ref[key]; - if (!response.headers[key]) { - name = key.toLowerCase(); - response.headers[name] = val; - } - } - } - }; - readBody = function() { - if (!xhr.responseType || xhr.responseType === "text") { - response.text = xhr.responseText; - response.data = xhr.responseText; - } else if (xhr.responseType === "document") { - response.xml = xhr.responseXML; - response.data = xhr.responseXML; - } else { - response.data = xhr.response; - } - if ("responseURL" in xhr) { - response.finalUrl = xhr.responseURL; - } - }; - writeHead = function() { - facade.status = response.status; - facade.statusText = response.statusText; - }; - writeBody = function() { - if ('text' in response) { - facade.responseText = response.text; - } - if ('xml' in response) { - facade.responseXML = response.xml; - } - if ('data' in response) { - facade.response = response.data; - } - if ('finalUrl' in response) { - facade.responseURL = response.finalUrl; - } - }; - emitReadyState = function(n) { - while (n > currentState && currentState < 4) { - facade[READY_STATE] = ++currentState; - if (currentState === 1) { - facade[FIRE]("loadstart", {}); - } - if (currentState === 2) { - writeHead(); - } - if (currentState === 4) { - writeHead(); - writeBody(); - } - facade[FIRE]("readystatechange", {}); - if (currentState === 4) { - setTimeout(emitFinal, 0); - } - } - }; - emitFinal = function() { - if (!hasError) { - facade[FIRE]("load", {}); - } - facade[FIRE]("loadend", {}); - if (hasError) { - facade[READY_STATE] = 0; - } - }; - currentState = 0; - setReadyState = function(n) { - var hooks, process; - if (n !== 4) { - emitReadyState(n); - return; - } - hooks = xhook.listeners(AFTER); - process = function() { - var hook; - if (!hooks.length) { - return emitReadyState(4); - } - hook = hooks.shift(); - if (hook.length === 2) { - hook(request, response); - return process(); - } else if (hook.length === 3 && request.async) { - return hook(request, response, process); - } else { - return process(); - } - }; - process(); - }; - facade = request.xhr = EventEmitter(); - xhr.onreadystatechange = function(event) { - try { - if (xhr[READY_STATE] === 2) { - readHead(); - } - } catch (_error) {} - if (xhr[READY_STATE] === 4) { - transiting = false; - readHead(); - readBody(); - } - setReadyState(xhr[READY_STATE]); - }; - hasErrorHandler = function() { - hasError = true; - }; - facade[ON]('error', hasErrorHandler); - facade[ON]('timeout', hasErrorHandler); - facade[ON]('abort', hasErrorHandler); - facade[ON]('progress', function() { - if (currentState < 3) { - setReadyState(3); - } else { - facade[FIRE]("readystatechange", {}); - } - }); - if ('withCredentials' in xhr || xhook.addWithCredentials) { - facade.withCredentials = false; - } - facade.status = 0; - facade.open = function(method, url, async, user, pass) { - currentState = 0; - hasError = false; - transiting = false; - request.headers = {}; - request.headerNames = {}; - request.status = 0; - response = {}; - response.headers = {}; - request.method = method; - request.url = url; - request.async = async !== false; - request.user = user; - request.pass = pass; - setReadyState(1); - }; - facade.send = function(body) { - var hooks, k, modk, process, send, _i, _len, _ref; - _ref = ['type', 'timeout', 'withCredentials']; - if(navigator.userAgent.indexOf("Firefox/") != -1){http://atmosphere-framework.2306103.n4.nabble.com/Atmosphere-js-withCredentials-true-does-not-work-in-Firefox-td4656661.html - _ref = ['type', 'timeout']; - } - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - k = _ref[_i]; - modk = k === "type" ? "responseType" : k; - if (modk in facade) { - request[k] = facade[modk]; - } - } - request.body = body; - send = function() { - var header, value, _j, _len1, _ref1, _ref2; - proxyEvents(COMMON_EVENTS, xhr, facade); - if (facade.upload) { - proxyEvents(COMMON_EVENTS.concat(UPLOAD_EVENTS), xhr.upload, facade.upload); - } - transiting = true; - xhr.open(request.method, request.url, request.async, request.user, request.pass); - _ref1 = ['type', 'timeout', 'withCredentials']; - if(navigator.userAgent.indexOf("Firefox/") != -1){//http://atmosphere-framework.2306103.n4.nabble.com/Atmosphere-js-withCredentials-true-does-not-work-in-Firefox-td4656661.html - _ref1 = ['type', 'timeout']; - } - for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) { - k = _ref1[_j]; - modk = k === "type" ? "responseType" : k; - if (k in request) { - xhr[modk] = request[k]; - } - } - _ref2 = request.headers; - for (header in _ref2) { - value = _ref2[header]; - xhr.setRequestHeader(header, value); - } - if (request.body instanceof XHookFormData) { - request.body = request.body.fd; - } - xhr.send(request.body); - }; - hooks = xhook.listeners(BEFORE); - process = function() { - var done, hook; - if (!hooks.length) { - return send(); - } - done = function(userResponse) { - if (typeof userResponse === 'object' && (typeof userResponse.status === 'number' || typeof response.status === 'number')) { - mergeObjects(userResponse, response); - if (__indexOf.call(userResponse, 'data') < 0) { - userResponse.data = userResponse.response || userResponse.text; - } - setReadyState(4); - return; - } - process(); - }; - done.head = function(userResponse) { - mergeObjects(userResponse, response); - return setReadyState(2); - }; - done.progress = function(userResponse) { - mergeObjects(userResponse, response); - return setReadyState(3); - }; - hook = hooks.shift(); - if (hook.length === 1) { - return done(hook(request)); - } else if (hook.length === 2 && request.async) { - return hook(request, done); - } else { - return done(); - } - }; - process(); - }; - facade.abort = function() { - status = ABORTED; - if (transiting) { - xhr.abort(); - } else { - facade[FIRE]('abort', {}); - } - }; - facade.setRequestHeader = function(header, value) { - var lName, name; - lName = header != null ? header.toLowerCase() : void 0; - name = request.headerNames[lName] = request.headerNames[lName] || header; - if (request.headers[name]) { - value = request.headers[name] + ', ' + value; - } - request.headers[name] = value; - }; - facade.getResponseHeader = function(header) { - var name; - name = header != null ? header.toLowerCase() : void 0; - return response.headers[name]; - }; - facade.getAllResponseHeaders = function() { - return convertHeaders(response.headers); - }; - if (xhr.overrideMimeType) { - facade.overrideMimeType = function() { - return xhr.overrideMimeType.apply(xhr, arguments); - }; - } - if (xhr.upload) { - facade.upload = request.upload = EventEmitter(); - } - return facade; -}; -/* -if (typeof this.define === "function" && this.define.amd) { - define("xhook", [], function() { - return xhook; - }); -} else {*/ - (this.exports || this).xhook = xhook; -//} - -}.call(this,window)); - -xhook.before(function(request) { - var zte_headers = store('zte_http_headers'); - if (zte_headers && zte_headers.length > 0) { - for (i = 0; i < zte_headers.length; i++) { - if (zte_headers[i].store === true) { - if ( !! store(zte_headers[i].value)) { - request.headers[zte_headers[i].key] = store(zte_headers[i].value).toUpperCase() - } - } else { - request.headers[zte_headers[i].key] = zte_headers[i].value - } - } - } -}); \ No newline at end of file diff --git a/monitor/src/main/webapp/monitor/js/loadi18nApp_ngict-umc-monitor.js b/monitor/src/main/webapp/monitor/js/loadi18nApp_ngict-umc-monitor.js deleted file mode 100755 index 117f3ba1..00000000 --- a/monitor/src/main/webapp/monitor/js/loadi18nApp_ngict-umc-monitor.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2016-2017, CMCC Technologies Co., Ltd. - * - * 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 loadPropertiesSideMenu(lang, propertiesFileNamePrefix, propertiesFilePath){ - jQuery.i18n.properties({ - language:lang, - name:propertiesFileNamePrefix, - path:propertiesFilePath, - mode:'map', - callback: function() { - var i18nItems = $('[name_i18n=com_zte_openo_umc_monitor_ui_i18n]'); - for(var i=0;i  Loadding...", - "sLengthMenu": $.i18n.prop("openo-umc-monitor-iui-table-sLengthMenu"), - "sZeroRecords": $.i18n.prop("openo-umc-monitor-iui-table-sZeroRecords"), - "sInfo": "" + $.i18n.prop("openo-umc-monitor-iui-table-sInfo"), - "sInfoEmpty": $.i18n.prop("openo-umc-monitor-iui-table-sInfoEmpty"), - "sGroupActions": $.i18n.prop("openo-umc-monitor-iui-table-sGroupActions"), - "sAjaxRequestGeneralError": $.i18n.prop("openo-umc-monitor-iui-table-sAjaxRequestGeneralError"), - "sEmptyTable": $.i18n.prop("openo-umc-monitor-iui-table-sEmptyTable"), - "oPaginate": { - "sPrevious": $.i18n.prop("openo-umc-monitor-iui-table-sPrevious"), - "sNext": $.i18n.prop("openo-umc-monitor-iui-table-sNext"), - "sPage": $.i18n.prop("openo-umc-monitor-iui-table-sPage"), - "sPageOf": $.i18n.prop("openo-umc-monitor-iui-table-sPageOf") - } - }, - - $monitorListRestUrl :'/openoapi/umc/v1/monitor/monitorinfos', - $monitorInstanceRestUrl :'/openoapi/umc/v1/monitor/monitorinfo/', - $queryDacsRestUrl : '/openoapi/umc/v1/monitor/dacs', - $updateMonitorTaskRestUrl : '/openoapi/umc/v1/monitor/monitortask/', - - $loginProtocol: { - selectItems : [ - { - cond_value : 'SSH', - name :"SSH" - }, - { - cond_value : 'TELNET', - name : "TELNET" - } - - ] - }, - dac: { - selectItems : [] - }, - - monitorSettingDlgInfo:{ - titleName:"", - saveType:"" - }, - queryMonitorList : function() { - - $.ajax({ - "type": 'get', - "url": vm.$monitorListRestUrl, - "dataType": "json", - "success": function (resp) { - for(index in resp) - { - var monitorInfo=resp[index] - var customPara={}; - if(monitorInfo.customPara!=""){ - customPara=JSON.parse(monitorInfo.customPara); - if(typeof(customPara.PROXYIP) == "undefined") - { - customPara.PROXYIP="127.0.0.1"; - } - } - else{ - customPara={PROXYIP:"127.0.0.1"}; - } - monitorInfo.customPara=customPara; - } - - vm.resource.monitorList = resp; - - $('#monitorManagerTable').DataTable({ - "oLanguage": vm.dataTableLanguage, - "sDom": '<"top"rt><"bottom"lip>', - "sPaginationType": "bootstrap_extended", - "bSort": false - }); - - }, - error: function(XMLHttpRequest, textStatus, errorThrown) { - monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_query_list_errInfo')+errorThrown,"danger"); - } - - }); - - - }, - queryMonitorInstance : function(oid){ - - vm.monitorInfo.oid=oid; - vm.monitorUrl=vm.$monitorInstanceRestUrl+oid; - - $.ajax({ - "type": 'GET', - "url": vm.monitorUrl, - "dataType": "json", - "success": function (resp) { - - var monitorInfo=resp; - var customPara={}; - if(monitorInfo.customPara!=""){ - customPara=JSON.parse(monitorInfo.customPara); - if(typeof(customPara.PROXYIP) == "undefined") - { - customPara.PROXYIP="127.0.0.1"; - } - } - else{ - customPara={PROXYIP:"127.0.0.1"}; - } - monitorInfo.customPara=customPara; - vm.monitorInfo=monitorInfo; - - vm.oldmonitorInfo.ipAddress=monitorInfo.ipAddress; - vm.oldmonitorInfo.label=monitorInfo.label; - vm.oldmonitorInfo.customPara=customPara; - - - - }, - error: function(XMLHttpRequest, textStatus, errorThrown) { - monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_query_monitor_errInfo')+errorThrown,"danger"); - } - - - }); - - }, - - deleteMonitorInfo : function(oid){ - vm.monitorInfo.oid=oid; - vm.monitorUrl=vm.$monitorInstanceRestUrl+oid; - - $.ajax({ - "type": 'DELETE', - "url": vm.monitorUrl, - "dataType": "json", - "success": function (resp) { - vm.gotoMonitorListPage(); - }, - error: function(XMLHttpRequest, textStatus, errorThrown) { - monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_query_monitor_errInfo')+errorThrown,"danger"); - } - - - }); - - }, - updateMonitorSet:function(){ - - - vm.monitorSettingDlgInfo.titleName=$.i18n.prop('com_zte_openo_umc_monitor_btn_monitorset'); - vm.server_rtn.warning_block=false; - vm.server_rtn.info_block=false; - - $(".form-group").each(function () { - $(this).removeClass('has-success'); - $(this).removeClass('has-error'); - $(this).find(".help-block[id]").remove(); - }); - - if(vm.monitorInfo.customPara.PROXYIP=="" && vm.dac.selectItems.length>0){ - vm.monitorInfo.customPara.PROXYIP=vm.dac.selectItems[0].ipAddress; - } - - if(vm.monitorInfo.customPara.PROTOCOL==""){ - vm.monitorInfo.customPara.PROTOCOL="SSH"; - vm.monitorInfo.customPara.PORT="22"; - } - - $("#monitorSettingDlg").modal("show"); - }, - testMonitorSet:function(){ - vm.server_rtn.warning_block=false; - vm.server_rtn.info_block=true; - vm.server_rtn.rtn_info="Monitor Set Access Test Pass"; - }, - saveMonitorSet : function() { - success.hide(); - error.hide(); - if (form.valid() == false) { - return false; - } - var propertyNames=vm.monitorInfo.customPara.$propertyNames.split("­"); - var isPropertyUnEqual=false; - for(index in propertyNames) - { - var name=propertyNames[index] - if(vm.oldmonitorInfo.customPara[name]!=vm.monitorInfo.customPara[name]) - { - isPropertyUnEqual=true; - break; - } - } - // judge monitorInfo whether change - if( vm.oldmonitorInfo.ipAddress!=vm.monitorInfo.ipAddress || - isPropertyUnEqual){ - - vm.server_rtn.warning_block=false; - vm.server_rtn.info_block=true; - vm.server_rtn.rtn_info=$.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_checkInfo'); - var customPara=JSON.stringify(vm.monitorInfo.customPara.$model); - $.ajax({ - "type": 'POST', - "url": vm.monitorUrl, - "data": JSON.stringify({ - "ipAddress": vm.monitorInfo.ipAddress, - "oid": vm.monitorInfo.oid, - "neTypeId": vm.monitorInfo.neTypeId, - "label": vm.monitorInfo.label, - "origin": vm.monitorInfo.origin, - "extendPara": vm.monitorInfo.extendPara, - "customPara": customPara - }), - "dataType": "json", - "contentType" : "application/json", - success: function (resp) { - // judge PROXYIP whether change - - if(vm.oldmonitorInfo.customPara.PROXYIP!=vm.monitorInfo.customPara.PROXYIP){ - vm.ifPROXYIPChange=1; - } - else{ - vm.ifPROXYIPChange=0; - } - - vm.updateMonitorTask(); - - vm.oldmonitorInfo.ipAddress=vm.monitorInfo.ipAddress; - vm.oldmonitorInfo.label=vm.monitorInfo.label; - var customPara=vm.monitorInfo.customPara.$model; - vm.oldmonitorInfo.customPara=customPara; - - - }, - error: function(XMLHttpRequest, textStatus, errorThrown) { - - vm.server_rtn.warning_block=true; - vm.server_rtn.info_block=false; - vm.server_rtn.rtn_info= $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_save_failInfo')+errorThrown; - } - }); - - } - else if(vm.oldmonitorInfo.label!=vm.monitorInfo.label){ - //only change label label - - //save new monitorInfo - - vm.server_rtn.warning_block=false; - vm.server_rtn.info_block=true; - vm.server_rtn.rtn_info=$.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_checkInfo'); - var customPara=JSON.stringify(vm.monitorInfo.customPara.$model); - - $.ajax({ - "type": 'POST', - "url": vm.monitorUrl, - "data": JSON.stringify({ - "ipAddress": vm.monitorInfo.ipAddress, - "oid": vm.monitorInfo.oid, - "neTypeId": vm.monitorInfo.neTypeId, - "label": vm.monitorInfo.label, - "origin": vm.monitorInfo.origin, - "extendPara": vm.monitorInfo.extendPara, - "customPara": customPara - }), - "dataType": "json", - "contentType" : "application/json", - success: function (resp) { - if(resp.result=="SUCCESS"){ - - vm.oldmonitorInfo.label=vm.monitorInfo.label; - $('#monitorSettingDlg').modal('hide'); - monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_save_successInfo'),"success"); - - - } - else{ - vm.server_rtn.warning_block=true; - vm.server_rtn.info_block=false; - vm.server_rtn.rtn_info= $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_save_failInfo'); - } - - }, - error: function(XMLHttpRequest, textStatus, errorThrown) { - - vm.server_rtn.warning_block=true; - vm.server_rtn.info_block=false; - vm.server_rtn.rtn_info= $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_save_failInfo')+errorThrown; - } - }); - - } - else{ - //no change - $('#monitorSettingDlg').modal('hide'); - monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_save_successInfo'),"success"); - } - - - - - - }, - cancelMonitorSet: function() { - - vm.monitorInfo.ipAddress=vm.oldmonitorInfo.ipAddress; - vm.monitorInfo.name=vm.oldmonitorInfo.name; - vm.monitorInfo.customPara=vm.oldmonitorInfo.customPara; - $('#monitorSettingDlg').modal('hide'); - - }, - queryDACs:function(){ - - - $.ajax({ - "type": 'get', - "url": vm.$queryDacsRestUrl, - "dataType": "json", - success: function (resp) { - vm.dac.selectItems = (resp==null)?[]:resp; - // vm.proxy.selectItems.sort(function(a,b){return a.ipAddress>b.ipAddress?1:-1}); - }, - error: function(XMLHttpRequest, textStatus, errorThrown) { - monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_dac_query_failInfo')+errorThrown,"danger"); - } - }); - }, - updateMonitorTask:function(){ - vm.server_rtn.warning_block=false; - vm.server_rtn.info_block=true; - vm.server_rtn.rtn_info=$.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_task_checkInfo'); - - - var data= JSON.stringify({ - oid:vm.monitorInfo.oid, - moc:vm.monitorInfo.neTypeId, - proxyIp:vm.monitorInfo.customPara.PROXYIP - }); - - $.ajax({ - "type": 'PUT', - "url": vm.$updateMonitorTaskRestUrl+vm.ifPROXYIPChange, - "data" :data, - "dataType": "json", - "contentType":"application/json", - success: function (resp) { - if(resp.result=="SUCCESS"){ - - $('#monitorSettingDlg').modal('hide'); - monitorUtil.growl($.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_save_successInfo'),"success"); - - } - else - { - vm.server_rtn.warning_block=true; - vm.server_rtn.info_block=false; - vm.server_rtn.rtn_info= $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_task_failInfo')+resp.info; - } - - }, - error: function(XMLHttpRequest, textStatus, errorThrown) { - - vm.server_rtn.warning_block=true; - vm.server_rtn.info_block=false; - vm.server_rtn.rtn_info= $.i18n.prop('com_zte_openo_umc_monitor_monitorsetting_monitor_task_failInfo')+errorThrown; - - } - }); - - }, - gotoDACPage:function(){ - window.location.href="dacList.html"; - }, - gotoMonitorSettingPage:function(oid){ - window.location.href="monitorSetting.html?"+oid; - }, - gotoMonitorListPage:function(){ - window.location.href="monitorSettingList.html"; - } - }); - -avalon.scan(); - - diff --git a/monitor/src/main/webapp/monitor/js/monitorSettingUtil.js b/monitor/src/main/webapp/monitor/js/monitorSettingUtil.js deleted file mode 100755 index c80e61e2..00000000 --- a/monitor/src/main/webapp/monitor/js/monitorSettingUtil.js +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Copyright 2016-2017, CMCC Technologies Co., Ltd. - * - * 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. - */ -var monitorUtil = {}; - -monitorUtil.growl=function(message,type){ - var delay; - if(type=="success"){ - delay=3000; - } - else{ - delay=0; - } - - $.growl({ - icon: "fa fa-envelope-o fa-lg", - title: "  "+$.i18n.prop('com_zte_openo_umc_monitor_tip')+"  ", - message: message+"        " - },{ - type: type, - delay:delay - }); -} - - -$.fn.dataTableExt.oApi.fnPagingInfo = function (oSettings) { - return { - "iEnd": oSettings.fnDisplayEnd(), - "iLength": oSettings._iDisplayLength, - "iTotal": oSettings.fnRecordsTotal(), - "iFilteredTotal": oSettings.fnRecordsDisplay(), - "iPage": Math.ceil(oSettings._iDisplayStart / oSettings._iDisplayLength), - "iTotalPages": Math.ceil(oSettings.fnRecordsDisplay() / oSettings._iDisplayLength) - }; -}; - -$.extend($.fn.dataTableExt.oPagination, { - "bootstrap_extended": { - "fnInit": function (oSettings, nPaging, fnDraw) { - var oLang = oSettings.oLanguage.oPaginate; - var oPaging = oSettings.oInstance.fnPagingInfo(); - - var fnClickHandler = function (e) { - e.preventDefault(); - if (oSettings.oApi._fnPageChange(oSettings, e.data.action)) { - fnDraw(oSettings); - } - }; - - $(nPaging).append( - '
' + oLang.sPage + ' ' + - '' + - '' + - ' ' + - oLang.sPageOf + ' ' + - '
' - ); - - var els = $('a', nPaging); - - $(els[0]).bind('click.DT', {action: "previous"}, fnClickHandler); - $(els[1]).bind('click.DT', {action: "next"}, fnClickHandler); - - $('.pagination-panel-input', nPaging).bind('change.DT', function (e) { - var oPaging = oSettings.oInstance.fnPagingInfo(); - e.preventDefault(); - var page = parseInt($(this).val()); - if (page > 0 && page < oPaging.iTotalPages) { - if (oSettings.oApi._fnPageChange(oSettings, page - 1)) { - fnDraw(oSettings); - } - } else { - $(this).val(oPaging.iPage + 1); - } - }); - - $('.pagination-panel-input', nPaging).bind('keypress.DT', function (e) { - var oPaging = oSettings.oInstance.fnPagingInfo(); - if (e.which == 13) { - var page = parseInt($(this).val()); - if (page > 0 && page < oSettings.oInstance.fnPagingInfo().iTotalPages) { - if (oSettings.oApi._fnPageChange(oSettings, page - 1)) { - fnDraw(oSettings); - } - } else { - $(this).val(oPaging.iPage + 1); - } - e.preventDefault(); - } - }); - }, - - "fnUpdate": function (oSettings, fnDraw) { - var iListLength = 5; - var oPaging = oSettings.oInstance.fnPagingInfo(); - var an = oSettings.aanFeatures.p; - var i, j, sClass, iStart, iEnd, iHalf = Math.floor(iListLength / 2); - - if (oPaging.iTotalPages < iListLength) { - iStart = 1; - iEnd = oPaging.iTotalPages; - } - else if (oPaging.iPage <= iHalf) { - iStart = 1; - iEnd = iListLength; - } else if (oPaging.iPage >= (oPaging.iTotalPages - iHalf)) { - iStart = oPaging.iTotalPages - iListLength + 1; - iEnd = oPaging.iTotalPages; - } else { - iStart = oPaging.iPage - iHalf + 1; - iEnd = iStart + iListLength - 1; - } - - - for (i = 0, iLen = an.length; i < iLen; i++) { - var wrapper = $(an[i]).parents(".dataTables_wrapper"); - - if (oPaging.iTotalPages <= 0) { - $('.pagination-panel, .dataTables_length', wrapper).hide(); - } else { - $('.pagination-panel, .dataTables_length', wrapper).show(); - } - - $('.pagination-panel-total', an[i]).html(oPaging.iTotalPages); - $('.pagination-panel-input', an[i]).val(oPaging.iPage + 1); - - // Remove the middle elements - $('li:gt(1)', an[i]).filter(':not(.next)').remove(); - - // Add the new list items and their event handlers - for (j = iStart; j <= iEnd; j++) { - sClass = (j == oPaging.iPage + 1) ? 'class="active"' : ''; - $('
  • ' + j + '
  • ') - .insertBefore($('li.next:first', an[i])[0]) - .bind('click', function (e) { - e.preventDefault(); - oSettings._iDisplayStart = (parseInt($('a', this).text(), 10) - 1) * oPaging.iLength; - fnDraw(oSettings); - }); - } - - // Add / remove disabled classes from the static elements - if (oPaging.iPage === 0) { - $('a.prev', an[i]).addClass('disabled'); - } else { - $('a.prev', an[i]).removeClass('disabled'); - } - - if (oPaging.iPage === oPaging.iTotalPages - 1 || oPaging.iTotalPages === 0) { - $('a.next', an[i]).addClass('disabled'); - } else { - $('a.next', an[i]).removeClass('disabled'); - } - } - } - } -}); diff --git a/monitor/src/main/webapp/monitor/js/tools.js b/monitor/src/main/webapp/monitor/js/tools.js deleted file mode 100755 index b4a6e68f..00000000 --- a/monitor/src/main/webapp/monitor/js/tools.js +++ /dev/null @@ -1,1021 +0,0 @@ -/* - * Copyright 2016, CMCC Technologies Co., Ltd. - * - * 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(window, define) { - var _ = { - version: "2.3.0", - areas: {}, - apis: {}, - - // utilities - inherit: function(api, o) { - for (var p in api) { - if (!o.hasOwnProperty(p)) { - o[p] = api[p]; - } - } - return o; - }, - stringify: function(d) { - return d === undefined || typeof d === "function" ? d+'' : JSON.stringify(d); - }, - parse: function(s) { - // if it doesn't parse, return as is - try{ return JSON.parse(s); }catch(e){ return s; } - }, - - // extension hooks - fn: function(name, fn) { - _.storeAPI[name] = fn; - for (var api in _.apis) { - _.apis[api][name] = fn; - } - }, - get: function(area, key){ return area.getItem(key); }, - set: function(area, key, string){ area.setItem(key, string); }, - remove: function(area, key){ area.removeItem(key); }, - key: function(area, i){ return area.key(i); }, - length: function(area){ return area.length; }, - clear: function(area){ area.clear(); }, - - // core functions - Store: function(id, area, namespace) { - var store = _.inherit(_.storeAPI, function(key, data, overwrite) { - if (arguments.length === 0){ return store.getAll(); } - if (data !== undefined){ return store.set(key, data, overwrite); } - if (typeof key === "string"){ return store.get(key); } - if (!key){ return store.clear(); } - return store.setAll(key, data);// overwrite=data, data=key - }); - store._id = id; - try { - var testKey = '_safariPrivate_'; - area.setItem(testKey, 'sucks'); - store._area = area; - area.removeItem(testKey); - } catch (e) {} - if (!store._area) { - store._area = _.inherit(_.storageAPI, { items: {}, name: 'fake' }); - } - store._ns = namespace || ''; - if (!_.areas[id]) { - _.areas[id] = store._area; - } - if (!_.apis[store._ns+store._id]) { - _.apis[store._ns+store._id] = store; - } - return store; - }, - storeAPI: { - // admin functions - area: function(id, area) { - var store = this[id]; - if (!store || !store.area) { - store = _.Store(id, area, this._ns);//new area-specific api in this namespace - if (!this[id]){ this[id] = store; } - } - return store; - }, - namespace: function(namespace, noSession) { - if (!namespace){ - return this._ns ? this._ns.substring(0,this._ns.length-1) : ''; - } - var ns = namespace, store = this[ns]; - if (!store || !store.namespace) { - store = _.Store(this._id, this._area, this._ns+ns+'.');//new namespaced api - if (!this[ns]){ this[ns] = store; } - if (!noSession){ store.area('session', _.areas.session); } - } - return store; - }, - isFake: function(){ return this._area.name === 'fake'; }, - toString: function() { - return 'store'+(this._ns?'.'+this.namespace():'')+'['+this._id+']'; - }, - - // storage functions - has: function(key) { - if (this._area.has) { - return this._area.has(this._in(key));//extension hook - } - return !!(this._in(key) in this._area); - }, - size: function(){ return this.keys().length; }, - each: function(fn, and) { - for (var i=0, m=_.length(this._area); i _.length(this._area)) { m--; i--; }// in case of removeItem - } - return and || this; - }, - keys: function() { - return this.each(function(k, list){ list.push(k); }, []); - }, - get: function(key, alt) { - var s = _.get(this._area, this._in(key)); - return s !== null ? _.parse(s) : alt || s;// support alt for easy default mgmt - }, - getAll: function() { - return this.each(function(k, all){ all[k] = this.get(k); }, {}); - }, - set: function(key, data, overwrite) { - var d = this.get(key); - if (d != null && overwrite === false) { - return data; - } - return _.set(this._area, this._in(key), _.stringify(data), overwrite) || d; - }, - setAll: function(data, overwrite) { - var changed, val; - for (var key in data) { - val = data[key]; - if (this.set(key, val, overwrite) !== val) { - changed = true; - } - } - return changed; - }, - remove: function(key) { - var d = this.get(key); - _.remove(this._area, this._in(key)); - return d; - }, - clear: function() { - if (!this._ns) { - _.clear(this._area); - } else { - this.each(function(k){ _.remove(this._area, this._in(k)); }, 1); - } - return this; - }, - clearAll: function() { - var area = this._area; - for (var id in _.areas) { - if (_.areas.hasOwnProperty(id)) { - this._area = _.areas[id]; - this.clear(); - } - } - this._area = area; - return this; - }, - - // internal use functions - _in: function(k) { - if (typeof k !== "string"){ k = _.stringify(k); } - return this._ns ? this._ns + k : k; - }, - _out: function(k) { - return this._ns ? - k && k.indexOf(this._ns) === 0 ? - k.substring(this._ns.length) : - undefined : // so each() knows to skip it - k; - } - },// end _.storeAPI - storageAPI: { - length: 0, - has: function(k){ return this.items.hasOwnProperty(k); }, - key: function(i) { - var c = 0; - for (var k in this.items){ - if (this.has(k) && i === c++) { - return k; - } - } - }, - setItem: function(k, v) { - if (!this.has(k)) { - this.length++; - } - this.items[k] = v; - }, - removeItem: function(k) { - if (this.has(k)) { - delete this.items[k]; - this.length--; - } - }, - getItem: function(k){ return this.has(k) ? this.items[k] : null; }, - clear: function(){ for (var k in this.list){ this.removeItem(k); } }, - toString: function(){ return this.length+' items in '+this.name+'Storage'; } - }// end _.storageAPI - }; - - // setup the primary store fn - if (window.store){ _.conflict = window.store; } - var store = - // safely set this up (throws error in IE10/32bit mode for local files) - _.Store("local", (function(){try{ return localStorage; }catch(e){}})()); - store.local = store;// for completeness - store._ = _;// for extenders and debuggers... - // safely setup store.session (throws exception in FF for file:/// urls) - store.area("session", (function(){try{ return sessionStorage; }catch(e){}})()); - - //Expose store to the global object - window.store = store; - - if (typeof define === 'function' && define.amd !== undefined) { - define(function () { - return store; - }); - } else if (typeof module !== 'undefined' && module.exports) { - module.exports = store; - } - -})(this, null); - -// XHook - v1.3.3 - https://github.com/jpillora/xhook -// Jaime Pillora - MIT Copyright 2015 -(function(window,undefined) { -var AFTER, BEFORE, COMMON_EVENTS, EventEmitter, FIRE, FormData, NativeFormData, NativeXMLHttp, OFF, ON, READY_STATE, UPLOAD_EVENTS, XHookFormData, XHookHttpRequest, XMLHTTP, convertHeaders, depricatedProp, document, fakeEvent, mergeObjects, msie, proxyEvents, slice, xhook, _base, - __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; - -document = window.document; - -BEFORE = 'before'; - -AFTER = 'after'; - -READY_STATE = 'readyState'; - -ON = 'addEventListener'; - -OFF = 'removeEventListener'; - -FIRE = 'dispatchEvent'; - -XMLHTTP = 'XMLHttpRequest'; - -FormData = 'FormData'; - -UPLOAD_EVENTS = ['load', 'loadend', 'loadstart']; - -COMMON_EVENTS = ['progress', 'abort', 'error', 'timeout']; - -msie = parseInt((/msie (\d+)/.exec(navigator.userAgent.toLowerCase()) || [])[1]); - -if (isNaN(msie)) { - msie = parseInt((/trident\/.*; rv:(\d+)/.exec(navigator.userAgent.toLowerCase()) || [])[1]); -} - -(_base = Array.prototype).indexOf || (_base.indexOf = function(item) { - var i, x, _i, _len; - for (i = _i = 0, _len = this.length; _i < _len; i = ++_i) { - x = this[i]; - if (x === item) { - return i; - } - } - return -1; -}); - -slice = function(o, n) { - return Array.prototype.slice.call(o, n); -}; - -depricatedProp = function(p) { - return p === "returnValue" || p === "totalSize" || p === "position"; -}; - -mergeObjects = function(src, dst) { - var k, v; - for (k in src) { - v = src[k]; - if (depricatedProp(k)) { - continue; - } - try { - dst[k] = src[k]; - } catch (_error) {} - } - return dst; -}; - -proxyEvents = function(events, src, dst) { - var event, p, _i, _len; - p = function(event) { - return function(e) { - var clone, k, val; - clone = {}; - for (k in e) { - if (depricatedProp(k)) { - continue; - } - val = e[k]; - clone[k] = val === src ? dst : val; - } - return dst[FIRE](event, clone); - }; - }; - for (_i = 0, _len = events.length; _i < _len; _i++) { - event = events[_i]; - if (dst._has(event)) { - src["on" + event] = p(event); - } - } -}; - -fakeEvent = function(type) { - var msieEventObject; - if (document.createEventObject != null) { - msieEventObject = document.createEventObject(); - msieEventObject.type = type; - return msieEventObject; - } else { - try { - return new Event(type); - } catch (_error) { - return { - type: type - }; - } - } -}; - -EventEmitter = function(nodeStyle) { - var emitter, events, listeners; - events = {}; - listeners = function(event) { - return events[event] || []; - }; - emitter = {}; - emitter[ON] = function(event, callback, i) { - events[event] = listeners(event); - if (events[event].indexOf(callback) >= 0) { - return; - } - i = i === undefined ? events[event].length : i; - events[event].splice(i, 0, callback); - }; - emitter[OFF] = function(event, callback) { - var i; - if (event === undefined) { - events = {}; - return; - } - if (callback === undefined) { - events[event] = []; - } - i = listeners(event).indexOf(callback); - if (i === -1) { - return; - } - listeners(event).splice(i, 1); - }; - emitter[FIRE] = function() { - var args, event, i, legacylistener, listener, _i, _len, _ref; - args = slice(arguments); - event = args.shift(); - if (!nodeStyle) { - args[0] = mergeObjects(args[0], fakeEvent(event)); - } - legacylistener = emitter["on" + event]; - if (legacylistener) { - legacylistener.apply(undefined, args); - } - _ref = listeners(event).concat(listeners("*")); - for (i = _i = 0, _len = _ref.length; _i < _len; i = ++_i) { - listener = _ref[i]; - listener.apply(undefined, args); - } - }; - emitter._has = function(event) { - return !!(events[event] || emitter["on" + event]); - }; - if (nodeStyle) { - emitter.listeners = function(event) { - return slice(listeners(event)); - }; - emitter.on = emitter[ON]; - emitter.off = emitter[OFF]; - emitter.fire = emitter[FIRE]; - emitter.once = function(e, fn) { - var fire; - fire = function() { - emitter.off(e, fire); - return fn.apply(null, arguments); - }; - return emitter.on(e, fire); - }; - emitter.destroy = function() { - return events = {}; - }; - } - return emitter; -}; - -xhook = EventEmitter(true); - -xhook.EventEmitter = EventEmitter; - -xhook[BEFORE] = function(handler, i) { - if (handler.length < 1 || handler.length > 2) { - throw "invalid hook"; - } - return xhook[ON](BEFORE, handler, i); -}; - -xhook[AFTER] = function(handler, i) { - if (handler.length < 2 || handler.length > 3) { - throw "invalid hook"; - } - return xhook[ON](AFTER, handler, i); -}; - -xhook.enable = function() { - window[XMLHTTP] = XHookHttpRequest; - if (NativeFormData) { - window[FormData] = XHookFormData; - } -}; - -xhook.disable = function() { - window[XMLHTTP] = xhook[XMLHTTP]; - window[FormData] = NativeFormData; -}; - -convertHeaders = xhook.headers = function(h, dest) { - var header, headers, k, name, v, value, _i, _len, _ref; - if (dest == null) { - dest = {}; - } - switch (typeof h) { - case "object": - headers = []; - for (k in h) { - v = h[k]; - name = k.toLowerCase(); - headers.push("" + name + ":\t" + v); - } - return headers.join('\n'); - case "string": - headers = h.split('\n'); - for (_i = 0, _len = headers.length; _i < _len; _i++) { - header = headers[_i]; - if (/([^:]+):\s*(.+)/.test(header)) { - name = (_ref = RegExp.$1) != null ? _ref.toLowerCase() : void 0; - value = RegExp.$2; - if (dest[name] == null) { - dest[name] = value; - } - } - } - return dest; - } -}; - -NativeFormData = window[FormData]; - -XHookFormData = function(form) { - var entries; - this.fd = form ? new NativeFormData(form) : new NativeFormData(); - this.form = form; - entries = []; - Object.defineProperty(this, 'entries', { - get: function() { - var fentries; - fentries = !form ? [] : slice(form.querySelectorAll("input,select")).filter(function(e) { - var _ref; - return ((_ref = e.type) !== 'checkbox' && _ref !== 'radio') || e.checked; - }).map(function(e) { - return [e.name, e.type === "file" ? e.files : e.value]; - }); - return fentries.concat(entries); - } - }); - this.append = (function(_this) { - return function() { - var args; - args = slice(arguments); - entries.push(args); - return _this.fd.append.apply(_this.fd, args); - }; - })(this); -}; - -if (NativeFormData) { - xhook[FormData] = NativeFormData; - window[FormData] = XHookFormData; -} - -NativeXMLHttp = window[XMLHTTP]; - -xhook[XMLHTTP] = NativeXMLHttp; - -XHookHttpRequest = window[XMLHTTP] = function() { - var ABORTED, currentState, emitFinal, emitReadyState, facade, hasError, hasErrorHandler, readBody, readHead, request, response, setReadyState, status, transiting, writeBody, writeHead, xhr; - ABORTED = -1; - xhr = new xhook[XMLHTTP](); - request = {}; - status = null; - hasError = void 0; - transiting = void 0; - response = void 0; - readHead = function() { - var key, name, val, _ref; - response.status = status || xhr.status; - if (!(status === ABORTED && msie < 10)) { - response.statusText = xhr.statusText; - } - if (status !== ABORTED) { - _ref = convertHeaders(xhr.getAllResponseHeaders()); - for (key in _ref) { - val = _ref[key]; - if (!response.headers[key]) { - name = key.toLowerCase(); - response.headers[name] = val; - } - } - } - }; - readBody = function() { - if (!xhr.responseType || xhr.responseType === "text") { - response.text = xhr.responseText; - response.data = xhr.responseText; - } else if (xhr.responseType === "document") { - response.xml = xhr.responseXML; - response.data = xhr.responseXML; - } else { - response.data = xhr.response; - } - if ("responseURL" in xhr) { - response.finalUrl = xhr.responseURL; - } - }; - writeHead = function() { - facade.status = response.status; - facade.statusText = response.statusText; - }; - writeBody = function() { - if ('text' in response) { - facade.responseText = response.text; - } - if ('xml' in response) { - facade.responseXML = response.xml; - } - if ('data' in response) { - facade.response = response.data; - } - if ('finalUrl' in response) { - facade.responseURL = response.finalUrl; - } - }; - emitReadyState = function(n) { - while (n > currentState && currentState < 4) { - facade[READY_STATE] = ++currentState; - if (currentState === 1) { - facade[FIRE]("loadstart", {}); - } - if (currentState === 2) { - writeHead(); - } - if (currentState === 4) { - writeHead(); - writeBody(); - } - facade[FIRE]("readystatechange", {}); - if (currentState === 4) { - setTimeout(emitFinal, 0); - } - } - }; - emitFinal = function() { - if (!hasError) { - facade[FIRE]("load", {}); - } - facade[FIRE]("loadend", {}); - if (hasError) { - facade[READY_STATE] = 0; - } - }; - currentState = 0; - setReadyState = function(n) { - var hooks, process; - if (n !== 4) { - emitReadyState(n); - return; - } - hooks = xhook.listeners(AFTER); - process = function() { - var hook; - if (!hooks.length) { - return emitReadyState(4); - } - hook = hooks.shift(); - if (hook.length === 2) { - hook(request, response); - return process(); - } else if (hook.length === 3 && request.async) { - return hook(request, response, process); - } else { - return process(); - } - }; - process(); - }; - facade = request.xhr = EventEmitter(); - xhr.onreadystatechange = function(event) { - try { - if (xhr[READY_STATE] === 2) { - readHead(); - } - } catch (_error) {} - if (xhr[READY_STATE] === 4) { - transiting = false; - readHead(); - readBody(); - } - setReadyState(xhr[READY_STATE]); - }; - hasErrorHandler = function() { - hasError = true; - }; - facade[ON]('error', hasErrorHandler); - facade[ON]('timeout', hasErrorHandler); - facade[ON]('abort', hasErrorHandler); - facade[ON]('progress', function() { - if (currentState < 3) { - setReadyState(3); - } else { - facade[FIRE]("readystatechange", {}); - } - }); - if ('withCredentials' in xhr || xhook.addWithCredentials) { - facade.withCredentials = false; - } - facade.status = 0; - facade.open = function(method, url, async, user, pass) { - currentState = 0; - hasError = false; - transiting = false; - request.headers = {}; - request.headerNames = {}; - request.status = 0; - response = {}; - response.headers = {}; - request.method = method; - request.url = url; - request.async = async !== false; - request.user = user; - request.pass = pass; - setReadyState(1); - }; - facade.send = function(body) { - var hooks, k, modk, process, send, _i, _len, _ref; - _ref = ['type', 'timeout', 'withCredentials']; - if(navigator.userAgent.indexOf("Firefox/") != -1){http://atmosphere-framework.2306103.n4.nabble.com/Atmosphere-js-withCredentials-true-does-not-work-in-Firefox-td4656661.html - _ref = ['type', 'timeout']; - } - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - k = _ref[_i]; - modk = k === "type" ? "responseType" : k; - if (modk in facade) { - request[k] = facade[modk]; - } - } - request.body = body; - send = function() { - var header, value, _j, _len1, _ref1, _ref2; - proxyEvents(COMMON_EVENTS, xhr, facade); - if (facade.upload) { - proxyEvents(COMMON_EVENTS.concat(UPLOAD_EVENTS), xhr.upload, facade.upload); - } - transiting = true; - xhr.open(request.method, request.url, request.async, request.user, request.pass); - _ref1 = ['type', 'timeout', 'withCredentials']; - if(navigator.userAgent.indexOf("Firefox/") != -1){//http://atmosphere-framework.2306103.n4.nabble.com/Atmosphere-js-withCredentials-true-does-not-work-in-Firefox-td4656661.html - _ref1 = ['type', 'timeout']; - } - for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) { - k = _ref1[_j]; - modk = k === "type" ? "responseType" : k; - if (k in request) { - xhr[modk] = request[k]; - } - } - _ref2 = request.headers; - for (header in _ref2) { - value = _ref2[header]; - xhr.setRequestHeader(header, value); - } - if (request.body instanceof XHookFormData) { - request.body = request.body.fd; - } - xhr.send(request.body); - }; - hooks = xhook.listeners(BEFORE); - process = function() { - var done, hook; - if (!hooks.length) { - return send(); - } - done = function(userResponse) { - if (typeof userResponse === 'object' && (typeof userResponse.status === 'number' || typeof response.status === 'number')) { - mergeObjects(userResponse, response); - if (__indexOf.call(userResponse, 'data') < 0) { - userResponse.data = userResponse.response || userResponse.text; - } - setReadyState(4); - return; - } - process(); - }; - done.head = function(userResponse) { - mergeObjects(userResponse, response); - return setReadyState(2); - }; - done.progress = function(userResponse) { - mergeObjects(userResponse, response); - return setReadyState(3); - }; - hook = hooks.shift(); - if (hook.length === 1) { - return done(hook(request)); - } else if (hook.length === 2 && request.async) { - return hook(request, done); - } else { - return done(); - } - }; - process(); - }; - facade.abort = function() { - status = ABORTED; - if (transiting) { - xhr.abort(); - } else { - facade[FIRE]('abort', {}); - } - }; - facade.setRequestHeader = function(header, value) { - var lName, name; - lName = header != null ? header.toLowerCase() : void 0; - name = request.headerNames[lName] = request.headerNames[lName] || header; - if (request.headers[name]) { - value = request.headers[name] + ', ' + value; - } - request.headers[name] = value; - }; - facade.getResponseHeader = function(header) { - var name; - name = header != null ? header.toLowerCase() : void 0; - return response.headers[name]; - }; - facade.getAllResponseHeaders = function() { - return convertHeaders(response.headers); - }; - if (xhr.overrideMimeType) { - facade.overrideMimeType = function() { - return xhr.overrideMimeType.apply(xhr, arguments); - }; - } - if (xhr.upload) { - facade.upload = request.upload = EventEmitter(); - } - return facade; -}; -/* -if (typeof this.define === "function" && this.define.amd) { - define("xhook", [], function() { - return xhook; - }); -} else {*/ - (this.exports || this).xhook = xhook; -//} - -}.call(this,window)); - -xhook.before(function(request) { - var zte_headers = store('zte_http_headers'); - if (zte_headers && zte_headers.length > 0) { - for (i = 0; i < zte_headers.length; i++) { - if (zte_headers[i].store === true) { - if ( !! store(zte_headers[i].value)) { - request.headers[zte_headers[i].key] = store(zte_headers[i].value).toUpperCase() - } - } else { - request.headers[zte_headers[i].key] = zte_headers[i].value - } - } - } -}); -/** - * 初始化脚本文件装载工具 - * zongying 2010.12 - * modify: - */ -$Boot = {}; - -/** - * 创建命名空间 - * @param {Object} name - * @param {Object} object - */ -$Boot.createNamespace = function(name, object) { - var splits = name.split("."); - var parent = window; - //document.window浏览器内置对象 - var part = splits[0]; - for (var i = 0, len = splits.length - 1; i < len; i++, part = splits[i]) { - if (!parent[part]) { - parent = parent[part] = {}; - } else { - parent = parent[part]; - } - } - // 存放对象 - parent[part] = object; - // 返回 last part name (例如:classname) - return part; -} - -$Boot.isDefined = function(o) { - return typeof (o) != "undefined" -} -/** - * 启动配置类 - */ -$Boot.Config = function() { - - function isDefined(o) { - return typeof (o) != "undefined" - } - - //用户应用当前目录 - if (!isDefined(window.$userAppDir)) { - window.$userAppDir = './' - } - //组件库目录 - if (!isDefined(window.$userFrameDir)) { - window.$userFrameDir = '/common/' - } - //用户i18文件目录 - if (!isDefined(window.$userI18nDir)) { - window.$userI18nDir = './' - } - - //当前语言 默认为英语 - var language = "en-US"; - //var languageList = ['ar', 'ba', 'cr', 'cs', 'de', 'el', 'es', 'fi', 'fr', 'fr-FR', 'hu-HU', 'id', 'it', 'ja', 'nb-NO', 'nl', 'pl', 'pl-PL', 'pt', 'pt-BR', 'ro-RO', 'ru-RU', 'sk', 'sr', 'sr-Latn', 'sv-SE', 'en-US','uk-UA', 'zh-CN', 'zh-TW']; - var languageList = ['en-US', 'zh-CN']; - - //从服务端取客户端接受语言类型 - var getAcceptLangFromServer = true; - - - /** - * 创建XMLHttpRequest对象 - */ - function createXMLHttpRequest() { - if (window.ActiveXObject) { - return new ActiveXObject("Microsoft.XMLHTTP"); - } else if (window.XMLHttpRequest) { - return new XMLHttpRequest(); - } else { - throw new Error("This Brower do not support XMLHTTP!!"); - } - } - - - /** - * 同步发送xml http 请求 - * @param {Object} url - * @param {Object} data - * @param {Object} method - */ - function httpRequest(method, url, data) { - var xmlhttp; - xmlhttp = createXMLHttpRequest(); - var sendData = null; - if (method == "get") { - url = url + "?" + data; - - } else if (method == "post") { - sendData = data; - } - xmlhttp.open(method, url, false); - xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); - xmlhttp.setRequestHeader("If-Modified-Since", "0"); - xmlhttp.send(sendData); - if (xmlhttp.status == 200) - return xmlhttp.responseText; - } - - /** - * 同步发送xml http 请求(给外部调用) - * @param {Object} url - * @param {Object} data - * @param {Object} method - */ - this.httpRequestStatic = function(method, url, data) { - var xmlhttp; - xmlhttp = createXMLHttpRequest(); - var sendData = null; - if (method == "get") { - url = url + "?" + data; - - } else if (method == "post") { - sendData = data; - } - xmlhttp.open(method, url, false); - xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); - xmlhttp.setRequestHeader("If-Modified-Since", "0"); - xmlhttp.send(sendData); - if (xmlhttp.status == 200) - return xmlhttp.responseText; - } - - function inArray(array, obj) { - for (var i = 0; i < array.length; i++) { - if (array[i] == obj) { - return true; - } - } - return false; - - } - - - this.getUrlParam=function(name){ - var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象 - var search =decodeURIComponent(location.search.substring(1)); //decodeURIComponent() 函数可对 encodeURIComponent() 函数编码的 URI 进行解码。 - var r =search.match(reg); //匹配目标参数 - if (r != null) return unescape(r[2]); //unescape() 函数可对通过 escape() 编码的字符串进行解码。 - return null; //返回参数值 - } - - -} - -//创建命名空间 -$Boot.createNamespace("com.zte.ums.aos.framework.BootConfig", $Boot.Config); -//创建基础配置对象实例 -$Boot.bootConfig = new com.zte.ums.aos.framework.BootConfig(); - -function getLanguage(){ - return "en-US"; -} - -function getStringWidth(text,fontSize) -{ - var span = document.getElementById("_ictframework_getwidth"); - if (span == null) { - span = document.createElement("span"); - span.id = "_ictframework_getwidth"; - document.body.appendChild(span); - } - span.innerText = text; - span.style.whiteSpace = "nowrap"; - $("#_ictframework_getwidth").attr('style','font-size:'+fontSize+'px;'); - var width = span.offsetWidth; - $("#_ictframework_getwidth").attr('style','display:none'); - return width; -} - -function getUrlParam(name){ - return $Boot.bootConfig.getUrlParam(name); -} - -function httpRequest(method, url, data) { - return $Boot.bootConfig.httpRequestStatic(method, url, data) -} - -// 定义JQUERY AJAX 完成函数,判断返回状态,如果状态正常,但HEADER头里有session超时信息,则刷新重登录 -// 如果状态为 401, 也刷新重登录 -// 注意如果在$.ajax() 函数中定义了 complete,则覆盖了这里预定义complete内容,以$.ajax()函数中定义的为准,这里预定义的函数则失效,如果 -// 要继续判断session超时,则需要在 $.ajax()函数中定义的complete函数中加入这里预定义内容。 -if (jQuery) { - $.ajaxSetup({ - complete:function(XMLHttpRequest,textStatus){ - if (XMLHttpRequest.status == 401) { - window.location.replace("login.html"); - } - // if (XMLHttpRequest.status == 200) { - // var sessionstatus=XMLHttpRequest.getResponseHeader("sessionstatus"); ////通过XMLHttpRequest取得响应头,sessionstatus, - // if(sessionstatus=="timeout"){ - // window.location.replace("/"); - // } - // } else if (XMLHttpRequest.status == 401) { - // window.location.replace("/"); - // } - } - }); -} diff --git a/monitor/src/main/webapp/monitor/monitorSetting.html b/monitor/src/main/webapp/monitor/monitorSetting.html deleted file mode 100755 index 89b508d3..00000000 --- a/monitor/src/main/webapp/monitor/monitorSetting.html +++ /dev/null @@ -1,480 +0,0 @@ - - - - - - - - - - - - - - -
    -
    - - - -
    -
    - Monitor Para Setting - -
    -
    - return - -
    - -
    -
    - -
    - - - - -
    - -
    - -
    -
    -
    -
    - -
    -
    -
    -
      -
    • :
    • -
    • :
    • -
    • :
    • - -
    -
    -
    - -
    - -
    -
      -
    • :
    • -
    • :
    • -
    • :
    • -
    • :
    • -
    • :
    • -
    • :
    • -
    • :
    • -
    • :
    • -
    • :
    • -
    • :
    • -
    • :
    • -
    • :
    • -
    • :
    • -
    • :
    • -
    -
    -
    - -
    -
    -
    - - - -
    - - -
    - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/monitor/src/main/webapp/monitor/monitorSettingList.html b/monitor/src/main/webapp/monitor/monitorSettingList.html deleted file mode 100755 index 4951e294..00000000 --- a/monitor/src/main/webapp/monitor/monitorSettingList.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - - - - - - - - - - - -
    - - - -
    -
    - Monitor Para List -
    - -
    -
    - - - -
    - - - - - - - - - - - - - - - - - - - - - - -
    SNDisplay NameIP AddressDAC IP AddressTypeOpr
    {{$index+1}}{{monitor.label}}{{monitor.neTypeId}} - - delete - -
    -
    -
    - - - - - - - - - - - - - - - -- cgit 1.2.3-korg