-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
329 lines (271 loc) · 16.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
<!doctype html>
<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>
<html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>ForkLift</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/animate.css" />
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/style.css">
<style>
.Loading {
display: inline-block;
vertical-align: middle;
background-position: center;
background: no-repeat;
background-image:
url('data:image/gif;base64,R0lGODlhFAAUAIQAAGRmZLS2tNze3IyOjPTy9Hx6fMTGxKSmpOzq7Pz6/ISChMzOzJSWlKyurHRydMTCxOTm5JSSlPT29Hx+fMzKzOzu7Pz+/ISGhNTS1LSytP///wAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQIBgAAACwAAAAAFAAUAAAFsqAmjqKEIBKpipYlJhCEQMnrkslcJcQ8S4mKrMbyQQgmGYogk90szZMmmTo1b5qKr7Ji6nBaAnZk6VWwCeBqJSRMYwj3WgShGAxK5Vxk7zdlexoLdxQUEkpyc3V3EBo8KYEaTIkIDAUHkDgLGQ9cLBMAoQcrCwemATcVoaEFGhQDAxQaGQcNpkQJDqsRAhe+FwIPpgcZRBoYugoID78XDwQBxI04Yhq9vwIaZcZzFBGxcyEAIfkECAYAAAAsAAAAABQAFACEZGZktLa03N7clJKU9PL0zM7MpKak7OrsnJqc/Pr81NbUhIaExMbErK6sbG5svLq85ObklJaU9Pb01NLUrKqs7O7snJ6c/P783Nrc////AAAAAAAAAAAAAAAAAAAAAAAABbZgJo6idBwSqYrXJSYQdEDJ65LJXCXEPEuJiqzG8kEIJhmKIJPdLs1TJpk6NW+Ziq+yYupwWgJ2dOlVsIqAYrXi1QKA+IM98kIkjjjAQRdZT3lxfH1WMg96c31eBwQZGAEYfSM8KSIEFBEPlSQXAhMKmxcIC6SJJAIMqRM3BKSkCBkKDQ1rE6kFDEQJA64UEBQGwAcKqQwFRI68CAQTwQYGEwm2BY04Yhm/zhAZFwnIdAoUFGtsIQAh+QQIBgAAACwAAAAAFAAUAIRkZmS0trTc3tyMjoz08vTExsR8enykpqTs6uz8+vzMzsyEgoSsrqx0cnTEwsTk5uSUkpT09vTMyszs7uz8/vzU0tSEhoS0srT///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAFrSAmjmKEIBGpislE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rqxsbmy8urzk5uSUlpT09vTU0tSsqqzs7uycnpz8/vzc2tz///8AAAAAAAAAAAAAAAAAAAAAAAAFsWAmjqLSNAqpildyZRBlyFB2EYlaFcwkTbPZpIJYDASjC4/BwMQM0NhiOshlEkzmJDM5YTKR6ZTAmmSRqocY8RIlMBNBm5R4IChkkQS3Wk0CKRIHEAd5fRkBAIoPg42HIg6KAA6NhI8ZkYoOBIQQEpcPkg9XfJcZCg9bLBWFc0kEBxVWIgeNFSucg7csnbUZggefjYNtF5WyvXu9cwm6N704FYSzLG0JnRBWF659wJ99IQAh+QQIBgAAACwAAAAAFAAUAAAFtaAmjiJEURCpipYlEoZBGYRmSYmaIFCVQLIYhBA4ZFIsHo9Qmc0Ij4M0k7NBlAiNCaXJSKWSUUVZWVEa0oBLlBgT1qQEJfCosXGrlcAg0EggV3Z5GgYXhhQIWIMiA4YXEVeAWYuNhgN/iYJ5hYcaCQRhiyICFH0sbnAjEgcTEZMiY4ErBwC1CmsWkYl+iWEFtbV2Fko9P0oSEcAOVZ48PphXEggKAA4YKi1sumEWBMyD0hChKyEAIfkECAYAAAAsAAAAABQAFACEZGZktLa03N7clJKU9PL0zM7MpKak7OrsnJqc/Pr81NbUhIaExMbErK6sdHJ0vLq85ObklJaU9Pb01NLUrKqs7O7snJ6c/P783Nrc////AAAAAAAAAAAAAAAAAAAAAAAABbRgJo6idBwSqYrXJSYQdEBJdiU1mcxVQswziWTCKFRGFyCEYJKhMIxoIXeROTPNFDHKyGUqwKNKIJ14E2CCSwWbmEcJiXc1gkwg2NiBQB8pKAYUCidXfRkNgQYNVjKGhwaBFBJOfIZ/kAoZPimOGXYHSGlrOgEIFGIiYDKVJAELrxZrVUAHFwEODgEXCK+vlUlWFQoAxAATFL0DZzwJAcUAARW8AxgqLSITzxM2BHN0D7gBfSEAOw==');
width: 20px;
height: 20px;
margin-top: 6px;
margin-right: 7px;
}
</style>
</head>
<!-- Page Directory: @_PAGEDIRECTORY_@ -->
<body ng-app="forkliftmonitor">
<div class="col-lg-12" ng-controller="ForkLiftControler as ctrl">
<div class="bs-component" >
<center>
<table><tr><td><h1>Forklift</h1></td><td rowspan="2"><img src="img/forklift.jpg" width="150" heigth="150" /></td></tr>
<tr><td style="font-size:0.8em"> V1.7.0</td></tr>
<tr><td>
</td></tr>
</table>
</center>
</div>
<div class="bs-component" >
<ul class="nav nav-tabs" ng-class="{'nav-stacked': vertical, 'nav-justified': justified}" style="border-bottom: 1px solid #c2c2c2;">
<li ng-class="{active: active, disabled: false}" id="form-tab" heading="All" active="true" title="Artifacts" select="ctrl.navbaractiv == 'Artifacts'" class="{{ctrl.getNavClass('Artifacts')}}" style="{{ctrl.getNavStyle('Artifacts')}}">
<a ng-click="ctrl.navbaractiv = 'Artifacts';" class="ng-binding">Artifacts</a>
</li>
<li ng-class="{active: active, disabled: false}" id="form-tab" heading="All" active="true" title="Parameters" select="ctrl.navbaractiv == 'Parameters'" class="{{ctrl.getNavClass('Parameters')}}" style="{{ctrl.getNavStyle('Parameters')}}">
<a ng-click="ctrl.navbaractiv = 'Parameters';" class="ng-binding">Parameters</a>
</li>
</ul>
</div> <!-- end navigation -->
<!-- ************************************************************ -->
<!-- Detection -->
<!-- ************************************************************ -->
<div class="bs-component" ng-if="ctrl.navbaractiv == 'Artifacts'">
<p>
<center>
<span ng-if="ctrl.wait">
<span class="Loading">.</span>
</span>
<button ng-click="ctrl.synchronisationDetect()" class="btn btn-info" ng-disabled="ctrl.wait">Detection</button><p>
</center>
<!-- what to display -->
<div class="label label-info">
Show:
<input type="checkbox" ng-model="ctrl.showartefact.layout">Layout</input>
<input type="checkbox" ng-model="ctrl.showartefact.theme">Theme</input>
<input type="checkbox" ng-model="ctrl.showartefact.lookandfeel">Look and feel</input>
<!-- <input type="checkbox" ng-model="ctrl.showartefact.bdm">BDM</input> -->
<input type="checkbox" ng-model="ctrl.showartefact.organization">Organization</input>
<input type="checkbox" ng-model="ctrl.showartefact.restapi" >RestAPI</input>
<input type="checkbox" ng-model="ctrl.showartefact.pages" >Pages</input>
<input type="checkbox" ng-model="ctrl.showartefact.process" >Process</input>
<input type="checkbox" ng-model="ctrl.showartefact.profile" >Profiles</input>
<input type="checkbox" ng-model="ctrl.showartefact.livingapp" >Living Application</input>
</div>
<table class="table table-striped table-hover table-condensed">
<tr >
<th>Type</th>
<th>Name</th>
<th>Version</th>
<th>Date</th>
<th>Analysis</th>
<th style="background:#fcf8e3">Current version</th>
<th style="background:#fcf8e3">Deployed date</th>
<th colspan="2">Decision</th>
</tr>
<tbody ng-repeat="item in ctrl.getItems() track by $index">
<tr >
<td>{{item.type}}</td>
<td><a title="Store: {{item.bonitastoredisplayname}}">{{item.bonitaname}}</a></td>
<td style="font-size: 10px">{{item.version}}</td>
<td style="font-size: 10px">{{item.date}}</td>
<td>{{item.analysis}}
<a ng_click="item.showinfo = ! item.showinfo"><span class="glyphicon glyphicon-info-sign"></span></a>
<div ng-if="item.showinfo" class="well well-sm" style="font-size: 10px;">{{item.loganalysis}}</div>
</td>
<td style="background:#fcf8e3;font-size: 10px">{{item.presentversion}}</td>
<td style="background:#fcf8e3;font-size: 10px">{{item.presentdate}}</td>
<td>
<span ng-if="item.detectionstatus == 'NEWARTEFAC'" class="label label-success">New Artifact</span>
<span ng-if="item.detectionstatus == 'SAME'" class="label label-warning">Same</span>
<span ng-if="item.detectionstatus == 'OLDVERSION'" class="label label-danger">Old Version</span>
<span ng-if="item.detectionstatus == 'NEWVERSION'" class="label label-info">New</span>
<span ng-if="item.detectionstatus == 'UNDETERMINED'" class="label label-info">Undetermined</span>
</td>
<td>
<div ng-if="item.invaliddecision == true">
Done
</div>
<div ng-if="! item.invaliddecision == true">
<select ng-model="item.action" style="width: 150px;">
<option ng-repeat="onestatus in ctrl.synchronisation.actions" value="{{onestatus.type}}" ng-selected="item.action==onestatus.type">{{onestatus.name}}</option>
</select>
</div>
<br>
<span ng-if="item.deploystatus=='NOTHINGDONE'" class="label label-warning">Nothing done</span>
<span ng-if="item.deploystatus=='NEWALREADYINPLACE'" class="label label-warning">New already in place</span>
<span ng-if="item.deploystatus=='REMOVEFAIL'" class="label label-danger">Remove failed done</span>
<span ng-if="item.deploystatus=='LOADFAILED'" class="label label-danger">Load failed</span>
<span ng-if="item.deploystatus=='DEPLOYEDFAILED'" class="label label-danger">Deployment failed</span>
<span ng-if="item.deploystatus=='LOADED'" class="label label-info">Loaded (deployed, not enabled)</span>
<span ng-if="item.deploystatus=='DEPLOYED'" class="label label-success">Deployed</span>
<span ng-if="item.deploystatus=='DELETED'" class="label label-success">Removed</span>
<div ng-bind-html="ctrl.getListEvents( item.listevents )"></div>
</td>
</tr>
</tbody>
</table>
<center>
<span ng-if="ctrl.wait">
<span class="Loading">.</span>
</span>
<button ng-click="ctrl.synchronisationExecute()" class="btn btn-warning" ng-disabled="ctrl.wait">Apply</button><p>
</center>
<div ng-bind-html="ctrl.getListEvents(ctrl.synchronisation.listevents)"></div>
<input type="checkbox" ng-model="ctrl.showreport">Detail report
<div ng-if="ctrl.showreport">
<textarea ng-model="ctrl.synchronisation.report" rows="20" style="width:100%;" readonly></textarea>
</div>
</div>
<!-- ************************************************************ -->
<!-- parameter -->
<!-- ************************************************************ -->
<div class="bs-component" ng-if="ctrl.navbaractiv == 'Parameters'">
<p>
<!-- --------------------------------------------------------- Source -->
<table class="table table-striped table-hover">
<tbody ng-repeat="source in ctrl.config.sources track by $index">
<tr>
<td colspan="3" style="background-color:aliceblue">
<h4>{{source.name}}</h4>
<span class="explanation">{{source.explanation}}</span><p>
</td>
</tr>
<tr>
<td>
Name:
</td>
<td>
<input type="text" ng-model="source.displayname" size="30" ng-disabled="ctrl.wait">
<button ng-click="ctrl.removeOneSource( source )" class="btn btn-danger btn-xs" ng-disabled="ctrl.wait">Remove</button>
</td>
</tr>
<tr ng-if="source.type=='Dir'">
<td>
Monitor Directory:
</td>
<td>
<input type="text" ng-model="source.directory" size="60" ng-disabled="ctrl.wait">
</td>
</tr>
<tr ng-if="source.type=='BCD'">
<td>
Target Directory:
</td>
<td>
<input type="text" ng-model="source.directory" size="60" ng-disabled="ctrl.wait">
</td>
</tr>
<tr ng-if="source.type=='BonitaServer'">
<td>Protocole (http, https..):</td><td> <input type="text" ng-model="source.protocole" ></td>
</tr>
<tr ng-if="source.type=='BonitaServer'">
<td>Host:</td><td> <input type="text" ng-model="source.host" size="60" ></td>
</tr>
<tr ng-if="source.type=='BonitaServer'">
<td>Port:</td><td> <input type="number" ng-model="source.port" ></td>
</tr>
<tr ng-if="source.type=='BonitaServer'">
<td>Login:</td><td> <input type="text" ng-model="source.login" ></td>
</tr>
<tr ng-if="source.type=='BonitaServer'">
<td>Password:</td><td> <input type="password" ng-model="source.password" ></td>
</tr>
<tr ng-if="source.type=='BonitaServer'">
<td>Scope :<br>
(only artifact deployed AFTER this delay)
</td><td style="vertical-align:top"> <input type="number" ng-model="source.scopeinhour" > hours</td>
</tr>
<!--
<tr ng-if="source.type=='BonitaServer'">
<td colspan="2">
<button ng-click="ctrl.testConnection( source )" class="btn btn-primary btn-xs">Test connection</button>
<div ng-bind-html="ctrl.getListEvents(source.listevents)"></div>
</td>
</tr>
-->
</tbody>
</table>
Add a source:
<select ng-model="ctrl.config.toadd" style="width: 150px;" ng-disabled="ctrl.wait">
<option ng-repeat="oneconf in ctrl.config.options" value="{{oneconf.type}}">{{oneconf.name}}</option>
</select>
<button ng-click="ctrl.addOneSource( ctrl.config.toadd )" class="btn btn-primary btn-xs" ng-disabled="ctrl.wait">Add</button>
<!-- --------------------------------------------------------- Frequency
<legend class="text-primary">Frequency</legend>
<input type="checkbox" ng-model="ctrl.frequency.active">Active<p>
<span class="explanation">Active and fix the frequency of the verification</span><p>
Months <input type="number" ng-model="ctrl.frequency.months" ng-disabled="!ctrl.frequency.active" size="3">
Days <input type="number" ng-model="ctrl.frequency.days" ng-disabled="!ctrl.frequency.active" size="3">
Hours <input type="number" ng-model="ctrl.frequency.hours" ng-disabled="!ctrl.frequency.active" size="3">
Minutes <input type="number" ng-model="ctrl.frequency.minutes" ng-disabled="!ctrl.frequency.active" size="3">
Seconds <input type="number" ng-model="ctrl.frequency.secondes" ng-disabled="!ctrl.frequency.active" size="3">
-->
<!-- --------------------------------------------------------- Content -->
<legend class="text-primary">Content</legend>
<table>
<tr>
<td style="padding-left:10px;vertical-align:top"><input type="checkbox" ng-model="ctrl.config.content.layout" >Layout</input></td>
<td style="padding-left:10px;vertical-align:top"><input type="checkbox" ng-model="ctrl.config.content.theme" >Theme</input></td>
<td style="padding-left:10px;vertical-align:top"><input type="checkbox" ng-model="ctrl.config.content.lookandfeel" >Look and feel</input></td>
<!-- <input type="checkbox" ng-model="ctrl.config.content.bdm" ng-disabled="1==1">Business Data Model</input>-->
<td style="padding-left:10px;vertical-align:top"><input type="checkbox" ng-model="ctrl.config.content.organization" >Organization</input></td>
<td style="padding-left:10px;vertical-align:top"><input type="checkbox" ng-model="ctrl.config.content.restapi" >RestAPI</input></td>
<td style="padding-left:10px;vertical-align:top"><input type="checkbox" ng-model="ctrl.config.content.custompage" >Pages</input></td>
<td style="padding-left:10px;vertical-align:top"><input type="checkbox" ng-model="ctrl.config.content.process" >Process</input><br>
<input type="checkbox" ng-model="ctrl.config.content.processenable" ng-disabled="!ctrl.config.content.process" > Enabled immediately the process<br>
<input type="checkbox" ng-model="ctrl.config.content.processmanageractor" ng-disabled="!ctrl.config.content.process" > Actor 'ProcessManager' is used to generate the Process Manager<br>
<input type="checkbox" ng-model="ctrl.config.content.processcategory" ng-disabled="!ctrl.config.content.process"> In the process's description, 'Category:<Name>,<Name>' are exploded to register the process in category
</td>
<td style="padding-left:10px;vertical-align:top"><input type="checkbox" ng-model="ctrl.config.content.profile" >Profiles</input></td>
<td style="padding-left:10px;vertical-align:top"><input type="checkbox" ng-model="ctrl.config.content.livingapp" >Living Application</input></td>
</tr>
<tr><td colspan="9"><button ng-click="ctrl.checkContent( true )" class="btn btn-info btn-xs" style="width:100%">Check All</button></td></tr>
</table>
<p>
<center>
<span ng-show="ctrl.wait">
<span class="Loading">.</span>
</span>
<button ng-click="ctrl.saveConfiguration()" class="btn btn-success" ng-disabled="ctrl.wait">Save</button>
</center>
<div ng-bind-html="ctrl.getListEvents(ctrl.config.listevents)"></div>
</div>
</div>
<!-- Third party dependencies -->
<script src="3rd-party/jquery.min.js"></script>
<script src="3rd-party/angular.min.js"></script>
<script src="3rd-party/angular-resource.min.js"></script>
<script src="3rd-party/angular-cookies.min.js"></script>
<script src="3rd-party/bootstrap.min.js"></script>
<script src="3rd-party/angular-sanitize.min.js"></script>
<!-- Application dependencies -->
<script src="pageResource?page=custompage_forklift&location=forkliftmonitor.js&v=@_CURRENTTIMEMILIS_@"></script>
</body>
</html>