Skip to content

Commit a4a6dcc

Browse files
author
mariellebonita
authored
Merge pull request #9 from Bonitasoft-Community/Feat(EnvironmentDetails)DisplayJavaVersion
[ILA] Feat(EnvironmentDetails) Display Java version + Java vendor
2 parents e587098 + 4501eea commit a4a6dcc

File tree

2 files changed

+212
-165
lines changed

2 files changed

+212
-165
lines changed

index.html

+179-155
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99
<html class="no-js">
1010
<!--<![endif]-->
1111
<head>
12-
<meta charset="utf-8">
13-
<title>BigApp</title>
14-
<meta name="description" content="">
15-
<meta name="viewport" content="width=device-width">
16-
<link rel="stylesheet" href="style/animate.css" />
17-
<link rel="stylesheet" href="style/bootstrap.min.css">
18-
<link rel="stylesheet" href="style/style.css">
19-
<link rel="stylesheet" href="style/main.css">
20-
<link rel="stylesheet" href="style/style.css">
21-
22-
<!--<script type="text/javascript" src="https://www.google.com/jsapi"></script>
12+
<meta charset="utf-8">
13+
<title>BigApp</title>
14+
<meta name="description" content="">
15+
<meta name="viewport" content="width=device-width">
16+
<link rel="stylesheet" href="style/animate.css"/>
17+
<link rel="stylesheet" href="style/bootstrap.min.css">
18+
<link rel="stylesheet" href="style/style.css">
19+
<link rel="stylesheet" href="style/main.css">
20+
<link rel="stylesheet" href="style/style.css">
21+
22+
<!--<script type="text/javascript" src="https://www.google.com/jsapi"></script>
2323
<script type="text/javascript" src="https://www.google.com/uds/?file=visualization&amp;v=1&amp;hl=fr&amp;packages=corechart&amp;async=2"></script>
2424
<link type="text/css" href="https://www.google.com/uds/api/visualization/1.0/ff67c3772da186a412ae3231c32409e9/ui+fr.css" rel="stylesheet">-->
2525

@@ -40,150 +40,174 @@
4040
.AutocompleteDropDown {
4141
background-color: #fcf8e3;
4242
}
43+
44+
45+
4346
</style>
44-
</head>
45-
<body ng-app="bigapp">
46-
47-
<!-- Page Directory: @_PAGEDIRECTORY_@ -->
48-
49-
<div class="col-lg-12" class="bs-component" ng-controller="BigAppControler as ctrl">
50-
<center>
51-
<table>
52-
<tr>
53-
<td><h1>BigApp</h1></td>
54-
<td rowspan="2"><img src="img/bigapp.jpg?" width="150" heigth="150" /></td>
55-
</tr>
56-
<tr>
57-
<td style="font-size: 0.8em"><strong><u>V1.2.1</u></strong></td>
58-
</tr>
59-
<tr>
60-
<td>
61-
<div id="showHistory" ng-show="bigappctrl.isshowhistory" style="border-width: 2px; border-style: ridge; border-color: blue">
62-
1.0 First version<br> 1.1 New request to detect the missing timer<br> 2.0 Execute Groovy script 2.2 Add SQL parameters in Groovy Script
63-
</div>
64-
</td>
65-
</tr>
66-
</table>
67-
</center>
68-
<br/>
69-
<!--<ul class="nav nav-tabs" ng-class="{'nav-stacked': vertical, 'nav-justified': justified}" ng-transclude>
70-
71-
<li ng-class="{active: active, disabled: false" id="form-tab" heading="All" active="true" title="Environment" select="ctrl.navbaractiv == 'environment'" class="{{ctrl.getNavClass('environment')}}"
72-
style=""><a ng-click="ctrl.navbaractiv = 'environment';" tab-heading-transclude="" class="ng-binding">Environment</a></li>
73-
</ul>-->
74-
75-
<!-- ************************************************************ -->
76-
<!-- Tab Environment -->
77-
<!-- ************************************************************ -->
78-
<center>
79-
<div class="col-lg-12">
80-
<div class="col-lg-4">
81-
</div>
82-
<div class="col-lg-4">
83-
<div class="panel panel-custom">
84-
<div class="panel-heading"><strong>Environmental information</strong></div>
85-
<div class="panel-body">
86-
<table>
87-
<tr>
88-
<td>Operating system</td>
89-
<td><center>{{ctrl.environment.operatingSystemInfos}}</center></td>
90-
</tr>
91-
<tr>
92-
<td>Server</td>
93-
<td><center>{{ctrl.environment.WebServer}}</center></td>
94-
</tr>
95-
<tr>
96-
<td>Java machine</td>
97-
<td><center>{{ctrl.environment.javaMachine}}</center></td>
98-
</tr>
99-
<tr>
100-
<td>Total physical memory</td>
101-
<td><center>{{ctrl.environment.MemTotalPhysicalMemory}} Gb</center></td>
102-
</tr>
103-
<tr>
104-
<td>Memory usage</td>
105-
<td><center>{{ctrl.environment.memoryUsage}}</center></td>
106-
</tr>
107-
</table>
108-
</div>
109-
</div>
110-
</div>
111-
</div>
112-
</center>
113-
<center>
114-
<div class="col-lg-12">
115-
<div class="col-lg-3">
116-
</div>
117-
<div class="col-lg-6">
118-
<div class="panel panel-custom">
119-
<div class="panel-heading"><strong>Log files</strong></div>
120-
<div class="panel-body">
121-
<table class="table table-striped table-bordered" style="width:100%">
122-
<center>
123-
<!--
124-
<td width="40%" onclick="if ( this.style.backgroundColor=='' && this.style.color=='' ) { this.style.backgroundColor='#DD0033'; this.style.color='#F9F9F9'; } else { if( this.style.backgroundColor=='rgb(221, 0, 51)' && this.style.color=='rgb(249, 249, 249)' ) { this.style.backgroundColor='#F9F9F9'; this.style.color='#2C3E50'; } else { this.style.backgroundColor='#DD0033'; this.style.color='#F9F9F9'; } }" ng-model="mapFile.selected" align="center" ng-click="count = !count; ctrl.setListLogs(mapFile.name,count)">
125-
{{mapFile.name}}
126-
</td>-->
127-
128-
<tr ng-repeat="mapFile in ctrl.getLogsPage()">
129-
<td width="30%"></td>
130-
<td width="40%" align="center" ng-click="mapFile.selected=!mapFile.selected; mapFile.selected=ctrl.setListLogs(mapFile.name, mapFile.selected)"
131-
style="{{ ctrl.getLogStyle(mapFile.name, mapFile.selected) }}">
132-
{{mapFile.name}}
133-
</td>
134-
135-
<td width="30%"></td>
136-
</tr>
137-
</center>
138-
</table>
139-
140-
<pagination ng-show="true" ng-model="ctrl.logPagination.pageNumber" total-items="ctrl.logPagination.totalItems" items-per-page="ctrl.logPagination.itemsPerPage">
141-
</pagination><br/>
142-
<center>
143-
<input ng-model="mapFile.selected" type="checkbox" ng-init="mapFile.selected=true" ng-change="ctrl.pullConfActivated=!ctrl.pullConfActivated" onchange="{{ ctrl.pullConfActivated = ( mapFile.selected == '' ) ? !ctrl.pullConfActivated : ( mapFile.selected == 'false' ) ? false : true ; ctrl.getCheckboxValue(mapFile.selected) }}" /><b> Include configuration files</b> <br/><br/>
144-
<a class="btn btn-primary" href="?page=custompage_bigapp&action=getSetupConfiguration&listLogs={{ctrl.listLogFiles.toString()}}&pullConfActivated={{ ctrl.pullConfActivated }}&t={{ctrl.currentTime}}">Download Files</a>
145-
</center>
146-
</div>
147-
</div>
148-
</div>
149-
<div class="col-lg-3">
150-
</div>
151-
</div>
152-
153-
154-
</center>
155-
<!-- div class="col-lg-4">
156-
<div class="panel panel-custom">
157-
<div class="panel-heading">Setup Configuration</div>
158-
<div class="panel-body">
159-
<center><button ng-click="ctrl.setPullFunc(); showVar = true" ng-init="showVar=false" class="btn btn-primary">Pull</button></center><br/> <!-- alert('Setup Pull was done successfully!') -->
160-
<!-- <center>
161-
<div ng-show="showVar"><span class="glyphicon glyphicon-ok-sign text-success"></span>&nbsp;&nbsp;Setup Pull was done successfully!</div>
162-
</center>
163-
</div>
164-
165-
</div>
166-
</div> -->
167-
168-
</div>
169-
<!-- end tab environment -->
170-
171-
<!-- Third party dependencies -->
172-
173-
<script src="3rd-party/jquery.min.js"></script>
174-
175-
<script src="3rd-party/angular.min.js"></script>
176-
177-
<script src="3rd-party/angular-resource.min.js"></script>
178-
<script src="3rd-party/angular-cookies.min.js"></script>
179-
180-
<script src="3rd-party/bootstrap/js/bootstrap.min.js"></script>
181-
<script src="3rd-party/angular-bootstrap-tpls.min.js"></script>
182-
<script src="3rd-party/angular-sanitize.min.js"></script>
183-
184-
<script src="bigAppMonitor.js?v=@_CURRENTTIMEMILIS_@"></script>
185-
186-
<!-- Application dependencies -->
187-
</center>
47+
</head>
48+
<body ng-app="bigapp">
49+
50+
<!-- Page Directory: @_PAGEDIRECTORY_@ -->
51+
52+
<div class="col-lg-12" class="bs-component" ng-controller="BigAppControler as ctrl">
53+
<center>
54+
<table>
55+
<tr>
56+
<td><h1>BigApp</h1></td>
57+
<td rowspan="2"><img src="img/bigapp.jpg?" width="150" heigth="150"/></td>
58+
</tr>
59+
<tr>
60+
<td style="font-size: 0.8em"><strong><u>V1.2.1</u></strong></td>
61+
</tr>
62+
<tr>
63+
<td>
64+
<div id="showHistory" ng-show="bigappctrl.isshowhistory"
65+
style="border-width: 2px; border-style: ridge; border-color: blue">
66+
1.0 First version<br> 1.1 New request to detect the missing timer<br> 2.0 Execute Groovy script
67+
2.2 Add SQL parameters in Groovy Script
68+
</div>
69+
</td>
70+
</tr>
71+
</table>
72+
</center>
73+
<br/>
74+
<!--<ul class="nav nav-tabs" ng-class="{'nav-stacked': vertical, 'nav-justified': justified}" ng-transclude>
75+
76+
<li ng-class="{active: active, disabled: false" id="form-tab" heading="All" active="true" title="Environment" select="ctrl.navbaractiv == 'environment'" class="{{ctrl.getNavClass('environment')}}"
77+
style=""><a ng-click="ctrl.navbaractiv = 'environment';" tab-heading-transclude="" class="ng-binding">Environment</a></li>
78+
</ul>-->
79+
80+
<!-- ************************************************************ -->
81+
<!-- Tab Environment -->
82+
<!-- ************************************************************ -->
83+
<center>
84+
<div class="col-lg-12">
85+
<div class="col-lg-4">
86+
</div>
87+
<div class="col-lg-4">
88+
<div class="panel panel-custom">
89+
<div class="panel-heading"><strong>Environmental information</strong></div>
90+
<div class="panel-body">
91+
<table>
92+
<tr>
93+
<td>Operating system</td>
94+
<td>
95+
<center>{{ctrl.environment.operatingSystemInfos}}</center>
96+
</td>
97+
</tr>
98+
<tr>
99+
<td>Server</td>
100+
<td>
101+
<center>{{ctrl.environment.WebServer}}</center>
102+
</td>
103+
</tr>
104+
<tr>
105+
<td>Java version</td>
106+
<td>
107+
<center>{{ctrl.environment.javaVersion}}</center>
108+
</td>
109+
</tr>
110+
<tr>
111+
<td>Total physical memory</td>
112+
<td>
113+
<center>{{ctrl.environment.MemTotalPhysicalMemory}}</center>
114+
</td>
115+
</tr>
116+
<tr>
117+
<td>Memory usage</td>
118+
<td>
119+
<center>{{ctrl.environment.memoryUsage}}</center>
120+
</td>
121+
</tr>
122+
</table>
123+
</div>
124+
</div>
125+
</div>
126+
</div>
127+
</center>
128+
<center>
129+
<div class="col-lg-12">
130+
<div class="col-lg-3">
131+
</div>
132+
<div class="col-lg-6">
133+
<div class="panel panel-custom">
134+
<div class="panel-heading"><strong>Log files</strong></div>
135+
<div class="panel-body">
136+
<table class="table table-striped table-bordered" style="width:100%">
137+
<center>
138+
<!--
139+
<td width="40%" onclick="if ( this.style.backgroundColor=='' && this.style.color=='' ) { this.style.backgroundColor='#DD0033'; this.style.color='#F9F9F9'; } else { if( this.style.backgroundColor=='rgb(221, 0, 51)' && this.style.color=='rgb(249, 249, 249)' ) { this.style.backgroundColor='#F9F9F9'; this.style.color='#2C3E50'; } else { this.style.backgroundColor='#DD0033'; this.style.color='#F9F9F9'; } }" ng-model="mapFile.selected" align="center" ng-click="count = !count; ctrl.setListLogs(mapFile.name,count)">
140+
{{mapFile.name}}
141+
</td>-->
142+
143+
<tr ng-repeat="mapFile in ctrl.getLogsPage()">
144+
<td width="30%"></td>
145+
<td width="40%" align="center"
146+
ng-click="mapFile.selected=!mapFile.selected; mapFile.selected=ctrl.setListLogs(mapFile.name, mapFile.selected)"
147+
style="{{ ctrl.getLogStyle(mapFile.name, mapFile.selected) }}">
148+
{{mapFile.name}}
149+
</td>
150+
151+
<td width="30%"></td>
152+
</tr>
153+
</center>
154+
</table>
155+
156+
<pagination ng-show="true" ng-model="ctrl.logPagination.pageNumber"
157+
total-items="ctrl.logPagination.totalItems"
158+
items-per-page="ctrl.logPagination.itemsPerPage">
159+
</pagination>
160+
<br/>
161+
<center>
162+
<input ng-model="mapFile.selected" type="checkbox" ng-init="mapFile.selected=true"
163+
ng-change="ctrl.pullConfActivated=!ctrl.pullConfActivated"
164+
onchange="{{ ctrl.pullConfActivated = ( mapFile.selected == '' ) ? !ctrl.pullConfActivated : ( mapFile.selected == 'false' ) ? false : true ; ctrl.getCheckboxValue(mapFile.selected) }}"/><b>
165+
Include configuration files</b> <br/><br/>
166+
<a class="btn btn-primary"
167+
href="?page=custompage_bigapp&action=getSetupConfiguration&listLogs={{ctrl.listLogFiles.toString()}}&pullConfActivated={{ ctrl.pullConfActivated }}&t={{ctrl.currentTime}}">Download
168+
Files</a>
169+
</center>
170+
</div>
171+
</div>
172+
</div>
173+
<div class="col-lg-3">
174+
</div>
175+
</div>
176+
177+
178+
</center>
179+
<!-- div class="col-lg-4">
180+
<div class="panel panel-custom">
181+
<div class="panel-heading">Setup Configuration</div>
182+
<div class="panel-body">
183+
<center><button ng-click="ctrl.setPullFunc(); showVar = true" ng-init="showVar=false" class="btn btn-primary">Pull</button></center><br/> <!-- alert('Setup Pull was done successfully!') -->
184+
<!-- <center>
185+
<div ng-show="showVar"><span class="glyphicon glyphicon-ok-sign text-success"></span>&nbsp;&nbsp;Setup Pull was done successfully!</div>
186+
</center>
187+
</div>
188+
189+
</div>
190+
</div> -->
191+
192+
</div>
193+
<!-- end tab environment -->
194+
195+
<!-- Third party dependencies -->
196+
197+
<script src="3rd-party/jquery.min.js"></script>
198+
199+
<script src="3rd-party/angular.min.js"></script>
200+
201+
<script src="3rd-party/angular-resource.min.js"></script>
202+
<script src="3rd-party/angular-cookies.min.js"></script>
203+
204+
<script src="3rd-party/bootstrap/js/bootstrap.min.js"></script>
205+
<script src="3rd-party/angular-bootstrap-tpls.min.js"></script>
206+
<script src="3rd-party/angular-sanitize.min.js"></script>
207+
208+
<script src="bigAppMonitor.js?v=@_CURRENTTIMEMILIS_@"></script>
209+
210+
<!-- Application dependencies -->
211+
</center>
188212
</body>
189213
</html>

0 commit comments

Comments
 (0)