-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
141 lines (141 loc) · 8.48 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
<html lang="en">
<head>
<title>ditto explorer</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta2/css/all.min.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/jquery-ui-bootstrap/0.5pre/css/custom-theme/jquery-ui-1.10.0.custom.css" rel="stylesheet"/>
<link rel="stylesheet" href="index.css"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://code.jquery.com/ui/1.13.0/jquery-ui.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.12/ace.js" integrity="sha512-GZ1RIgZaSc8rnco/8CXfRdCpDxRCphenIiZ2ztLy3XQfCbQUSCuk8IudvNHxkRA3oUg6q0qejgN/qqyG1duv5Q==" crossorigin="anonymous" type="text/javascript" charset="utf-8"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/jsonpath-plus@5.0.3/dist/index-browser-esm.min.js"></script>
<script type="module" src="main.js"></script>
</head>
<body>
<nav class="navbar fixed-top navbar-expand-sm flex-sm-nowrap bg-info navbar-dark">
<a class="navbar-brand"><img src="https://www.eclipse.org/ditto/images/ditto_allwhite_symbolonly.svg" style="height:30px;"></a>
<a class="navbar-brand"><img src="https://www.eclipse.org/ditto/images/ditto_allwhite_textonly.svg" style="height:25px;"></a>
<a class="navbar-brand">explorer</a>
<div class="navbar-collapse collapse w-100 justify-content-center">
<ul class="navbar-nav text-center">
<li class="nav-item active mainUser">
<a class="nav-link" data-target="#collapseThings:not(.show)" data-toggle="collapse" href="#">Things</a>
</li>
<li class="nav-item mainUser" id="tabPolicies">
<a class="nav-link" data-target="#collapsePolicy:not(.show)" data-toggle="collapse" href="#">Policies</a>
</li>
<li class="nav-item devOpsUser">
<a class="nav-link" data-target="#collapseConnections:not(.show)" data-toggle="collapse" href="#">Connections</a>
</li>
<li class="nav-item mainUser" id="tabEnvironments">
<a class="nav-link" data-target="#collapseSettings:not(.show)" data-toggle="collapse" href="#">Environments</a>
</li>
</ul>
</div>
<ul class="navbar-nav w-50">
<a class="nav-link active">Environment:</a>
<select class="form-control form-control-sm" id="environmentSelector" style="margin-top: auto; margin-bottom: auto;"></select>
<button id="authorize" class="btn btn-outline-light btn-sm" style="margin-left:5px;" data-toggle="modal" data-target=".bd-example-modal-sm">Authorize</button>
</ul>
</nav>
<div class="container-fluid py-3 overflowauto" id="page-content">
<div class="collapse show" id="collapseThings" data-parent="#page-content">
<div id="thingsHtml"></div>
<div id="featuresHtml"></div>
</div>
<div class="collapse" id=collapsePolicy data-parent="#page-content">
<div id="policyHtml"></div>
</div>
<div class="collapse" id=collapseConnections data-parent="#page-content">
<div id="connectionsHtml"></div>
</div>
<div class="collapse" id="collapseSettings" data-parent="#page-content">
<div id="environmentsHtml"></div>
</div>
</div>
<!-- Notifications to user ----------------------------------------------------------------->
<div class="position-fixed bottom-0 end-0 p-3" style="z-index: 5; right: 0; bottom: 0">
<div class="toast hide bg-warning" role="alert" data-delay="5000" aria-live="assertive" aria-atomic="true" id="errorToast">
<div class="toast-header" id="errorHeader"></div>
<div class="toast-body" id="errorBody"></div>
</div>
<div class="toast hide bg-success" role="alert" data-delay="2000" aria-live="assertive" aria-atomic="true" id="successToast">
<div class="toast-header" id="successHeader"></div>
<div class="toast-body" id=successBody></div>
</div>
</div>
<!-- Authorization modal ----------------------------------------------------------------->
<div class="modal fade bd-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
Authorize
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<h5>Basic Auth</h5>
<hr/>
<div class="row">
<div class="col-md-4">
<label>Main User</label>
</div>
<div class="col-md-8">
<div class="input-group input-group-sm mb-1">
<div class="input-group-prepend">
<label class="input-group-text">Username</label>
</div>
<input type="text" class="form-control form-control-sm" id="userName"></input>
</div>
<div class="input-group input-group-sm mb-1">
<div class="input-group-prepend">
<label class="input-group-text">Password</label>
</div>
<input type="password" class="form-control form-control-sm" id="password"></input>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4">
<label>DevOps User<br/><small>(for Connections, optional)</small></label>
</div>
<div class="col-md-8">
<div class="input-group input-group-sm mb-1">
<div class="input-group-prepend">
<label class="input-group-text">DevOps Username</label>
</div>
<input type="text" class="form-control form-control-sm" id="devOpsUserName"></input>
</div>
<div class="input-group input-group-sm mb-1">
<div class="input-group-prepend">
<label class="input-group-text">DevOps Password</label>
</div>
<input type="password" class="form-control form-control-sm" id="devOpsPassword"></input>
</div>
</div>
</div>
<div class="input-group input-group-sm" style="flex-direction: row-reverse;">
<button class="btn btn-outline-secondary btn-sm" data-dismiss="modal" id="authorizeBasic">Authorize</button>
</div>
<h5>Bearer</h5>
<hr/>
<div class="input-group input-group-sm mb-1">
<div class="input-group-prepend">
<label class="input-group-text">Value</label>
</div>
<input type="password" class="form-control form-control-sm" id="bearer"></input>
</div>
<div class="input-group input-group-sm" style="flex-direction: row-reverse;">
<button class="btn btn-outline-secondary btn-sm" data-dismiss="modal" id="authorizeBearer">Authorize</button>
</div>
</div>
</div>
</div>
</div>
</body>
</html>