-
Notifications
You must be signed in to change notification settings - Fork 224
/
connections.html
210 lines (210 loc) · 10.4 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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<!--
~ 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: 600px;">
<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>
<button class="btn btn-outline-secondary btn-sm" data-bs-toggle="modal"
data-bs-target="#create_connection_modal">
<i class="bi bi-plus-square"></i>
</button>
<button class="btn btn-outline-secondary btn-sm button_round_right" id="buttonDeleteConnection"
data-bs-toggle="tooltip" title="Delete connection with the given id">
<i class="bi bi-trash3"></i>
</button>
</div>
<div class="table-wrap mb-3">
<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-4 resizable_flex_column">
<h6>Connection</h6>
<div class="input-group input-group-sm mb-1">
<label class="input-group-text">Id</label>
<input type="text" class="form-control form-control-sm" disabled="true" id="inputConnectionId"></input>
<button class="btn btn-outline-secondary btn-sm" id="buttonSaveConnection" data-bs-toggle="tooltip"
title="Save connection with the given connection configuration json. If there is no id given, a new connection will be created">
<i class="bi bi-save2"></i>
Save
</button>
</div>
<div class="ace_container" style="flex-grow: 1;">
<div class="script_editor" id="connectionEditor"></div>
</div>
</div>
<div class="col-md-4 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>
<div class="modal fade" id="create_connection_modal" tabindex="-1">
<div class="modal-dialog dialog-sm">
<div class="modal-content">
<div class="modal-header">
Create Connection
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
<label>Select Connection Template</label>
<hr />
<fieldset class="form-group">
<div class="row">
<label class="col-form-label col-sm-2 pt-0">Type</label>
<div class="col-sm-10" id="connectionTemplateRadios"></div>
</div>
</fieldset>
<!-- <div class="input-group input-group-sm mb-1">
<label class="input-group-text">Type</label>
<select class="form-control form-control-sm" id="connectionTemplate"></select>
</div> -->
<div class="input-group input-group-sm" style="flex-direction: row-reverse;">
<button class="btn btn-outline-secondary btn-sm" data-bs-dismiss="modal"
id="buttonCreateConnection">Create</button>
</div>
</div>
</div>
</div>
</div>
<!-- <div class="row" style="height:300px;">
</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: 600px;">
<div class="col-md-4 resizable_flex_column">
<ul class="nav nav-tabs">
<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>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>
<textarea class="form-control form-control-sm" style="resize:none; flex-grow: 1;"
spellcheck="false" id="textareaConnectionStatusDetail"></textarea>
</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="Enable connection logs for the selected connection">
<i class="bi bi-toggle-off"></i>
Enable
</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="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>
<textarea class="form-control form-control-sm" style="resize:none; flex-grow: 1;" spellcheck="false"
id="textareaConnectionLogDetail"></textarea>
</div>
</div>
</div>