-
Notifications
You must be signed in to change notification settings - Fork 224
/
connections.html
192 lines (192 loc) · 9.79 KB
/
connections.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
<!--
~ Copyright (c) 2022 Contributors to the Eclipse Foundation
~
~ See the NOTICE file(s) distributed with this work for additional
~ information regarding copyright ownership.
~
~ This program and the accompanying materials are made available under the
~ terms of the Eclipse Public License 2.0 which is available at
~ http://www.eclipse.org/legal/epl-2.0
~
~ SPDX-License-Identifier: EPL-2.0
-->
<h5 data-bs-toggle="collapse" data-bs-target="#connectionsEdit">
Manage Connections
</h5>
<hr />
<div class="collapse show" id="connectionsEdit">
<div class="row resizable_pane" style="height: 80vh;">
<div class="col-md-4 resizable_flex_column">
<div class="input-group input-group-sm mt-1 mb-1" role="group">
<div style="flex-grow: 1;"></div>
<button class="btn btn-outline-secondary btn-sm button_round_left" id="buttonLoadConnections">
<i class="bi bi-arrow-clockwise"></i>
Refresh
</button>
</div>
<div class="input-group has-validation">
<input class="form-control" id="tableValidationConnections" hidden="true"></input>
<div class="invalid-feedback"></div>
</div>
<div class="table-wrap mb-1">
<table class="table table-striped table-hover table-sm">
<thead>
<tr>
<th>Name</th>
<th>Live Status</th>
<th>Recovery Status</th>
</tr>
</thead>
<tbody id="tbodyConnections"></tbody>
</table>
</div>
</div>
<div class="col-md-8 resizable_flex_column">
<h6>CRUD Connection</h6>
<crud-toolbar label="Connection Id" id="crudConnection" style="flex-grow: 1;" extraeditclass="editForgroundBig">
<div class="input-group input-group-sm mb-1">
<label class="input-group-text">Template</label>
<div class="btn-group dropend">
<button class="btn btn-outline-secondary btn-sm dropdown-toggle"
data-bs-toggle="dropdown" id="buttonConnectionTemplates" disabled></button>
<ul id="ulConnectionTemplates" class="dropdown-menu" style="position: fixed; top: auto;"></ul>
</div>
<input type="text" class="form-control form-control-sm" id="inputConnectionTemplate" disabled></input>
</div>
<div class="input-group has-validation">
<input class="form-control" id="editorValidationConnection" hidden="true"></input>
<div class="invalid-feedback"></div>
</div>
<div class="row mb-1" style="flex-grow: 1;">
<div class="col-md-6 resizable_flex_column">
<div class="ace_container" style="flex-grow: 1;">
<div class="script_editor" id="connectionEditor"></div>
</div>
</div>
<div class="col-md-6 resizable_flex_column">
<h6>Incoming JavaScript Mapping</h6>
<div class="ace_container mb-3" style="flex-grow: 1;">
<div class="script_editor" id="connectionIncomingScript"></div>
</div>
<h6>Outgoing JavaScript Mapping</h6>
<div class="ace_container" style="flex-grow: 1;">
<div class="script_editor" id="connectionOutgoingScript"></div>
</div>
</div>
</div>
</crud-toolbar>
</div>
</div>
</div>
<h5 data-bs-toggle="collapse" data-bs-target="#tabConnectionHelper">
Connection Status, Metrics and Logs
</h5>
<hr />
<div class="collapse show" id="tabConnectionHelper">
<div class="row resizable_pane" style="height: 80vh;">
<div class="col-md-4 resizable_flex_column">
<ul class="nav nav-tabs nav-fill">
<li class="nav-item">
<a class="nav-link active" data-bs-toggle="tab" data-bs-target="#tabConnectionMetrics">Metrics</a>
</li>
<li class="nav-item">
<a class="nav-link" data-bs-toggle="tab" data-bs-target="#tabConnectionStatus">Status</a>
</li>
</ul>
<div class="tab-content" style="flex-grow: 1; overflow: hidden">
<div class="tab-pane container active no-margin" id="tabConnectionMetrics">
<div class="resizable_flex_column">
<div class="input-group input-group-sm mb-1 mt-1">
<button class="btn btn-outline-secondary btn-sm button_round_both"
id="buttonResetConnectionMetrics" data-bs-toggle="tooltip"
title="Reset connection metrics for the selected connection">
<i class="bi bi-x-circle"></i>
Reset
</button>
<div class="form-control-sm" style="flex-grow: 1;"></div>
<button class="btn btn-outline-secondary btn-sm button_round_both"
id="buttonRetrieveConnectionMetrics" data-bs-toggle="tooltip"
title="Refresh connection metrics for the selected connection">
<i class="bi bi-arrow-clockwise"></i>
Refresh
</button>
</div>
<div class="table-wrap">
<table class="table table-striped table-hover table-sm">
<thead>
<tr>
<th>Direction</th>
<th>Type</th>
<th>Level</th>
<th>1m</th>
<th>1h</th>
<th>24h</th>
</tr>
</thead>
<tbody id="tbodyConnectionMetrics"></tbody>
</table>
</div>
</div>
</div>
<div class="tab-pane container fade no-margin" id="tabConnectionStatus">
<div class="resizable_flex_column">
<div class="input-group input-group-sm mb-1 mt-1">
<div class="form-control-sm" style="flex-grow: 1;"></div>
<button class="btn btn-outline-secondary btn-sm button_round_both"
id="buttonRetrieveConnectionStatus" data-bs-toggle="tooltip"
title="Refresh connection status">
<i class="bi bi-arrow-clockwise"></i>
Refresh
</button>
</div>
<div class="ace_container" style="flex-grow: 1;">
<div class="script_editor" id="connectionStatusDetail"></div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4 resizable_flex_column">
<h6>Connection Logs</h6>
<div class="input-group input-group-sm mb-1">
<button class="btn btn-outline-secondary btn-sm button_round_left" id="buttonEnableConnectionLogs"
data-bs-toggle="tooltip" title="Click to enable connection logs for the selected connection">
<i class="bi bi-toggle-off"></i>
<span>Enable</span>
</button>
<button class="btn btn-outline-secondary btn-sm button_round_right" id="buttonResetConnectionLogs"
data-bs-toggle="tooltip" title="Reset connection logs for the selected connection">
<i class="bi bi-x-circle"></i>
Reset
</button>
<div class="form-control-sm" style="flex-grow: 1;"></div>
<button class="btn btn-outline-secondary btn-sm button_round_both" id="buttonRetrieveConnectionLogs"
data-bs-toggle="tooltip" title="Refresh connection logs for the selected connection">
<i class="bi bi-arrow-clockwise"></i>
Refresh
</button>
</div>
<!-- <div class="input-group input-group-sm mb-1">
<input id="inputConnectionLogFilter" type="search" class="form-control form-control-sm" placeholder="Filter logs..."></input>
</div> -->
<div class="table-wrap">
<table class="table table-striped table-hover table-sm">
<thead>
<tr>
<th>Timestamp</th>
<th>Type</th>
<th>Level</th>
</tr>
</thead>
<tbody id="tbodyConnectionLogs"></tbody>
</table>
</div>
</div>
<div class="col-md-4 resizable_flex_column">
<h6>Connection Log Detail</h6>
<div class="ace_container" style="flex-grow: 1;">
<div class="script_editor" id="connectionLogDetail"></div>
</div>
</div>
</div>
</div>