-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
209 lines (189 loc) · 10.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Signature for Developers - API Testing Hub</title>
<!-- Add CSS URI -->
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/bootstrap.css">
<link rel="stylesheet" href="assets/css/prism.min.css" />
<!-- Add JS URI -->
<script type="text/javascript" src="assets/js/script.js"></script>
<script src="assets/js/bootstrap.bundle.js"></script>
<script src="assets/js/qrcode.js"></script>
<script src="assets/js/browser_detect.js"></script>
<script src="assets/js/prism-core.min.js"></script>
<script src="assets/js/prism-autoloader.min.js"></script>
</head>
<body class="d-flex flex-column h-100">
<header>
<div class="px-3 py-2 text-bg-dark">
<div class="container">
<div class="d-flex flex-wrap align-items-center justify-content-center justify-content-lg-start">
<a href="#"
class="d-flex align-items-center my-2 my-lg-0 me-lg-auto text-white text-decoration-none">
<img src="assets/img/signature-devs-logo.png" alt="Signature for Developers" width="150"
height="50">
</a>
<ul class="nav col-12 col-lg-auto my-2 justify-content-center my-md-0 text-small text-center">
<li>
<a class="nav-link text-white" onclick="window.location.reload()">
<img class="bi d-block mx-auto mb-1" src="assets/img/developer-profile-picture.png"
alt="Home" width="32" height="32">
</a>
</li>
</ul>
</div>
</div>
</div>
<div class="px-3 py-2 border-bottom mb-3">
<div class="container d-flex flex-wrap justify-content-center">
<div class="col-12 col-lg-auto mb-2 mb-lg-0 me-lg-auto my-2">
<b>API Testing Hub</b>
</div>
<div class="text-end">
<select onchange="selectAccount()" id="accountselector" name="account" class="form-select"
aria-label="Default">
<option selected value="">Select Account</option>
<option value="test-account" id="account1">Test Account</option>
<option value="test-account-2" id="account2">Test Account 2</option>
</select>
</div>
</div>
</div>
</header>
<main class="flex-shirnk-0">
<div class="container my-4">
<div class="row">
<div class="col-3 border border-black border-1 rounded-3">
<label for="account" class="mt-4 form-label">Developer Name</label>
<select id="selected" class="mb-3 form-select" aria-disabled="true" disabled>
<option id="selectedaccount" value="">Select an Account</option>
</select>
<label for="app" class="mt-2 form-label">App Name</label>
<div id="noaccount">
<select id="selected" class="mb-3 form-select" aria-disabled="true" disabled>
<option id="selectedapp" value="">Select an Application</option>
</select>
</div>
<div id="accounttwo" style="display: none;">
<select onchange="selectApp()" id="appselector" class="mb-3 form-select">
<option selected value="">Select an Application</option>
<option value="Business Bank.com">Business Bank</option>
<option value="Brand Shop.com">Brand Shop</option>
</select>
</div>
<div id="accountone" style="display: none;">
<select onchange="selectApp()" id="appselector" class="mb-3 form-select">
<option selected value="">Select an Application</option>
<option value="Anovenus">Anovenus</option>
<option value="Calibux">Calibux</option>
</select>
</div>
<!-- <select onchange="selectApp()" id="appselector" class="mb-3 form-select" aria-label="Default">
<option selected value="">Select an Application</option>
<option value="Business Bank">Business Bank</option>
<option value="Brand Shop">Brand Shop</option>
<option value="Anovenus">Anovenus</option>
</select> -->
<label class="mt-2 form-label">Domain</label>
<div class="mb-3 form-select" aria-label="Default">
<div id="domain">www.domain.com</div>
</div>
<!-- <div class="input-group mb-3">
<span class="input-group-text">ID</span>
<div class="form-floating">
<input type="text" class="form-control" id="floatingInputGroup1" placeholder="Username">
<label for="floatingInputGroup1">User ID</label>
</div>
</div>
<div class="input-group mb-3">
<span class="input-group-text">@</span>
<div class="form-floating">
<input type="text" class="form-control" id="floatingInputGroup1" placeholder="Username">
<label for="floatingInputGroup1">Issuer Secret Key</label>
</div>
</div> -->
<form action="">
<label for="add-new-app" class="mt-2 form-label"><b>Add New Application</b></label>
<div class="input-group mb-3">
<span class="input-group-text">Name</span>
<div class="form-floating">
<input type="text" class="form-control" id="newappname" placeholder="appname" required>
<label for="appname">Enter New App Name</label>
</div>
</div>
<div class="input-group mb-3">
<span class="input-group-text">Domain</span>
<div class="form-floating">
<input type="text" class="form-control" id="newappdomain" placeholder="Domain" required>
<label for="domain">Enter Domain</label>
</div>
</div>
<div class="input-group mb-3">
<input type="submit" onclick="addApp()" class="btn btn-light w-100 border border-1"
value="Add Application">
</div>
<p class="text-center" id="notice"></p>
</form>
</div>
<div class="col-5 border rounded-3 border-black">
<div id="qrcode" class="bg-light pt-3 px-2"></div>
<img id="dummybg" style="display: block;" src="assets/img/image.jpg" alt="image"
class="bg-light pt-3 px-2 opacity-25" height="500px" width="500px">
<div class="console bg-dark rounded-3 fixed mb-3">
<div class="console-body mt-3 p-3 text-white">
<div class="command">
<div class="command-line">
<span class="command-line-prompt">> </span>
<span id="command" class="command-line-input">Connecting to
<span class='text-info'>wss://signature-devs.web.app:8080/auth</span></span>
</div>
<div class="command-output px-3 mb-2">
<div class="progress mt-3">
<div id="progress"
class="progress-bar progress-bar-striped progress-bar-animated bg-success"
role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"
style="width: 0%"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-4 border border-black border-1 rounded-3">
<div class="mx-auto mt-2 mb-3">
<label for="a" class="mt-2 form-label"><b>JSON Data</b></label>
<div class="code-box">
<pre><code id="viewcode" class="language-json">{
header;
}
{
payload;
}
{
signature;
}</code></pre>
</div>
<label for="a" class="mt-3 form-label"><b>JWT (Json Web Token)</b></label>
<textarea id="token" class="mb-1 form-control" id="jwt"
rows="7">JWT will show here</textarea>
</div>
</div>
</div>
</div>
</main>
<footer class="footer mt-auto py-3 bg-light mt-3 border-1 border-top">
<div class="container d-flex justify-content-between">
<span class="text-muted text-start">
© <script>document.write(new Date().getFullYear());</script> <a href="https://github.com/aratheunseen/signature-for-developers" style="text-decoration: none">Signature for Developers</a>
</span>
<span class="text-muted text-end">
by [ <a href="https://github.com/aratheunseen" style="text-decoration: none">Ashiqur Rahman Alif</a> ]
</span>
</div>
</footer>
</body>
</html>