/
setup.html
358 lines (305 loc) · 14.4 KB
/
setup.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
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
<!--
=========================================================
* BLK Design System- v1.0.0
=========================================================
* Product Page: https://www.creative-tim.com/product/blk-design-system
* Copyright 2019 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT
* Coded by Creative Tim
=========================================================
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="apple-touch-icon" sizes="76x76" href="./assets/blk/img/apple-icon.png">
<link rel="icon" type="image/png" href="./assets/blk/img/favicon.png">
<title>
Etica GUI Wallet
</title>
<!-- Fonts and icons -->
<link href="./assets/blk/css/googlefontpoppins.css" rel="stylesheet" />
<link href="./assets/blk/css/fontawesome.css" rel="stylesheet">
<!-- Nucleo Icons -->
<link href="./assets/blk/css/nucleo-icons.css" rel="stylesheet" />
<!-- CSS Files -->
<link href="./assets/blk/css/blk-design-system.css?v=1.0.0" rel="stylesheet" />
<!-- CSS Just for demo purpose, don't include it in your project -->
<link href="./assets/blk/demo/demo.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/gh/ethereum/web3.js@1.0.0-beta.36/dist/web3.min.js" integrity="sha256-nWBTbvxhJgjslRyuAKJHK+XcZPlCnmIAAMixz6EefVk=" crossorigin="anonymous"></script>
<style>
.scrollable {
height: 75vh;
overflow: auto;
}
.onewalletlist{
cursor: pointer;
font-family: cursive;
/*color: #6e9593;*/
color: #ffffff;
}
#selectfolderhelper {
display: none;
}
#SetupConnectionLoader{
display: none;
}
.loader-bar {
width: 1px;
height: 15px;
background: #fff;
display: inline-block;
transform-origin: bottom center;
border-top-right-radius: 20px;
border-top-left-radius: 20px;
/* box-shadow:5px 10px 20px inset rgba(255,23,25.2); */
animation: loader 1.2s linear infinite;
}
.loader-bar1 {
animation-delay: 0.1s;
}
.loader-bar2 {
animation-delay: 0.2s;
}
.loader-bar3 {
animation-delay: 0.3s;
}
.loader-bar4 {
animation-delay: 0.4s;
}
.loader-bar5 {
animation-delay: 0.5s;
}
.loader-bar6 {
animation-delay: 0.6s;
}
.loader-bar7 {
animation-delay: 0.7s;
}
.loader-bar8 {
animation-delay: 0.8s;
}
@keyframes loader {
0% {
transform: scaleY(0.1);
}
50% {
transform: scaleY(1);
background: #1aaba4;
}
100% {
transform: scaleY(0.1);
background: transparent;
}
}
#selectfolderhelper {
background: #ffffff;
}
</style>
<script>
if (typeof module === 'object') {
window.module = module;
module = undefined;
}
</script>
<!-- Core JS Files -->
<script src="./assets/blk/js/core/jquery.min.js" type="text/javascript"></script>
<script src="./assets/blk/js/core/popper.min.js" type="text/javascript"></script>
<script src="./assets/blk/js/core/bootstrap.min.js" type="text/javascript"></script>
<script src="./assets/blk/js/plugins/perfect-scrollbar.jquery.min.js"></script>
<!-- Plugin for Switches, full documentation here: http://www.jque.re/plugins/version3/bootstrap.switch/ -->
<script src="./assets/blk/js/plugins/bootstrap-switch.js"></script>
<!-- Plugin for the Sliders, full documentation here: http://refreshless.com/nouislider/ -->
<script src="./assets/blk/js/plugins/nouislider.min.js" type="text/javascript"></script>
<!-- Chart JS -->
<script src="./assets/blk/js/plugins/chartjs.min.js"></script>
<!-- Plugin for the DatePicker, full documentation here: https://github.com/uxsolutions/bootstrap-datepicker -->
<script src="./assets/blk/js/plugins/moment.min.js"></script>
<script src="./assets/blk/js/plugins/bootstrap-datetimepicker.js" type="text/javascript"></script>
<!-- Black Dashboard DEMO methods, don't include it in your project! -->
<script src="./assets/blk/demo/demo.js"></script>
<!-- Control Center for Black UI Kit: parallax effects, scripts for the example pages etc -->
<script src="./assets/blk/js/blk-design-system.min.js?v=1.0.0" type="text/javascript"></script>
</head>
<body class="index-page">
<!-- Navbar -->
<nav class="navbar navbar-expand-lg fixed-top navbar-transparent " color-on-scroll="100">
<div class="container">
<div class="navbar-translate">
<a class="navbar-brand" href="#" rel="tooltip" title="https://github.com/etica/etica-gui" data-placement="bottom" target="_blank">
<span>Etica GUI•</span> V1
</a>
</div>
<!-- <div style="position: absolute;left: 47%;">
<span style="color:white;cursor:pointer;" title="Directory, set directory to keep wallet list after new version">Setup Directory: </span><button class="btn btn-link btn-primary" style="margin-left:0;padding-left:1px;">/D:/EticaWalletDirHERE</button>
</div> -->
</div>
</nav>
<!-- End Navbar -->
<div class="wrapper">
<div class="page-header header-filter">
<div class="squares square1"></div>
<div class="squares square2"></div>
<div class="squares square3"></div>
<div class="squares square4"></div>
<div class="squares square5"></div>
<div class="squares square6"></div>
<div class="squares square7"></div>
<div class="container">
<div class="content-center brand">
<h1 class="h1-seo">ETICA•</h1>
<h3>Open Source Wallet</h3>
</div>
<div id="SetupHomeBtns" class="row" style="position: absolute;top: 64%;left: 35%;">
<div class="col-md-12">
<a class="btn btn-primary" href="./assets/templates/setup/importseed.html">Import from seed</a>
<a class="btn btn-primary" href="./assets/templates/setup/newwallet.html">New Wallet</a>
</div>
<div class="col-md-12">
<button class="btn btn-success" id="selectWalletFolder">Select Wallet from directory</button>
</div>
<div class="col-md-8" id="selectfolderhelper" style="background-color: white;color: black;padding: 2%;border: solid 1px white;text-align: center;right: 10%;top: 2vh;">
<i style="color:#000000;">Select a FOLDER to scan</i> <br>
<i style="color:#070707;">(Etica GUI will scan the folder to find Etica wallets)</i>
</div>
</div>
</div>
</div>
</div>
<!-- Form Modal -->
<div class="modal modal-black" id="SelectWalletsfromListModal" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: #000000eb;">
<div class="modal-dialog">
<div style="height: 75vh;background: #0e0e0e;color: rgb(6 108 104 / 80%);" class="modal-content scrollable">
<div class="modal-header justify-content-center">
<button type="button" id="closewalletsfoundbox" class="close" data-dismiss="modal" aria-hidden="true">
<i class="tim-icons icon-simple-remove text-white"></i>
</button>
<div class="text-muted text-center ml-auto mr-auto">
<h3 class="mb-0" style="color:#424242;">ETICA GUI</h3>
</div>
</div>
<div class="modal-body">
<div id="setupwalletlist">
<div class="btn-wrapper text-center">
<a href="#" class="btn btn-neutral btn-icon" style="background-color: #202020 !important;background-image: unset;">
<img src="./assets/images/etica-logo-sanstexte.png">
</a>
<a href="#" class="btn btn-neutral btn-icon" style="background-color: #202020 !important;background-image: unset;">
<img src="./assets/images/etica-logo-fond-noir-sanstitre.png">
</a>
</div>
<div class="text-center text-muted mb-4 mt-3">
<small id="checkeddirectorymsg" style="color:#ffffff;">Wallets found in this directory</small>
<br>
<div class="col-md-12">
<button class="btn btn-success" id="selectWalletFolder2">Select Wallet from another directory</button>
</div>
</div>
<small style="color:#ffffff;">(click on a wallet name to launch it)</small>
<div id="walletsList" style="height: 50vh;">
</div>
</div>
<div id="setupconnection" style="display:none;">
<div class="btn-wrapper text-center">
<a href="#" class="btn btn-neutral btn-icon" style="background-color: #202020 !important;background-image: unset;">
<img src="./assets/images/etica-logo-sanstexte.png">
</a>
<a href="#" class="btn btn-neutral btn-icon" style="background-color: #202020 !important;background-image: unset;">
<img src="./assets/images/etica-logo-fond-noir-sanstitre.png">
</a>
</div>
<div class="text-center text-muted mb-4 mt-3">
<small id="SetupConnectName" style="color:#ffffff;"></small>
</div>
<div class="row">
<div class="col-sm-12 col-lg-12">
<div class="form-group">
<div>
<input style="background-color: #141414;" id="SetupConnectPw" type="password" value="" placeholder="password" class="form-control" />
<i class="far fa-eye" id="togglePassword" style="cursor: pointer;position: absolute;right: 2%;bottom: 5vh;color: #b5b5b5;"></i>
</div>
<input style="background-color: #141414;" id="SetupConnectAddress" type="text" value="" class="form-control" hidden />
<input style="background-color: #141414;" id="PreLoadDirectory" type="text" value="" class="form-control" hidden />
<input style="background-color: #141414;" id="PreLoadWalletMode" type="text" value="" class="form-control" hidden />
<i id="SetupConnectError" style="color:#e50000;margin-left: 1%;"></i>
</div>
</div>
<div id="SetupConnectionBtns" class="col-md-12" style="text-align:center;display: inline-flex;">
<button class="btn btn-secondary" id="SetupBackBtn" style="background: #363636;margin-left: 22%;margin-right: 1%;">Back</button> <button class="btn btn-secondary" id="SetupBackBtnFromPreload" style="background: #363636;display: none;margin-left: 22%;margin-right: 1%;">Back</button> <button class="btn btn-primary" id="SetupConnectBtn">Connect</button>
</div>
<div id="SetupUpdateWalletSettingBtns" class="col-md-12" style="text-align:center;display: inline-flex;margin-top: 2vh;">
<span style="margin-left: 6%;">Connection issue? </span> <span id="SetupShowWalletSettingsBox" style="cursor:pointer;text-decoration: underline;">Update wallet connection settings</span>
</div>
<div id="SetupConnectionLoader" class="col-md-12" style="text-align:center;">
<div class="loader-middle">
<div class="loader-bar loader-bar1"></div>
<div class="loader-bar loader-bar2"></div>
<div class="loader-bar loader-bar3"></div>
<div class="loader-bar loader-bar4"></div>
<div class="loader-bar loader-bar5"></div>
<div class="loader-bar loader-bar6"></div>
<div class="loader-bar loader-bar7"></div>
<div class="loader-bar loader-bar8"></div>
</div>
</div>
</div>
</div>
<div id="setupupdatesettings" style="display:none;">
<div class="btn-wrapper text-center">
<a href="#" class="btn btn-neutral btn-icon" style="background-color: #202020 !important;background-image: unset;">
<img src="./assets/images/etica-logo-sanstexte.png">
</a>
<a href="#" class="btn btn-neutral btn-icon" style="background-color: #202020 !important;background-image: unset;">
<img src="./assets/images/etica-logo-fond-noir-sanstitre.png">
</a>
</div>
<div class="text-center text-muted mb-4 mt-3">
<small style="color:#ffffff;">Update wallet settings</small>
</div>
<div class="card-panel" style="padding-bottom: 0px;background-color:#030404;">
<div class="col-sm-12 col-lg-12">
<div class="form-group">
<div>
<label class="active" style="color:#9e9e9e;">--ws.addr:</label>
<input style="background-color: #141414; color: #ffffff;" id="setupsettingsWalletWsAddress" placeholder="ws address (node websocket address)" type="text" disabled class="form-control" />
</div>
<div>
<label class="active" style="color:#9e9e9e;" for="setupsettingsWalletPort">--port:</label>
<input style="background-color: #141414; color: #ffffff;" id="setupsettingsWalletPort" placeholder="port (node port)" type="text" class="form-control" />
</div>
<div>
<label class="active" style="color:#9e9e9e;" for="setupsettingsWalletWsPort">--ws.port:</label>
<input style="background-color: #141414; color: #ffffff;" id="setupsettingsWalletWsPort" placeholder="ws port (node websocket port)" type="text" class="form-control" />
</div>
<div>
<label class="active" style="color:#9e9e9e;" for="setupsettingsWalletEnode">Enode (the initial peer the wallet should connect to):</label>
<input style="background-color: #141414; color: #ffffff;" id="setupsettingsWalletEnode" placeholder="Enter the new main peer enode" type="text" class="form-control" />
</div>
<i id="SetupUpdateSettingsSuccess" style="color:#08e500;margin-left: 1%;"></i>
<i id="SetupUpdateSettingsError" style="color:#e50000;margin-left: 1%;"></i>
<div class="row" style="margin-top: -1vh;margin-bottom: 0;">
<div class="input-field col s12">
<button class="btn btn-secondary" id="SetupSettingsBackBtn" style="background: #363636;margin-left: 22%;margin-right: 1%;">Back</button> <button type="button" class="btn btn-primary" id="SetupUpdateWalletSettingsBtn">Update</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End Modal -->
</body>
<script>
// You can also require other files to run in this process
require('./renderer/setup.js');
require('./renderer/blockchain.js');
</script>
<script>
const scrollbar = new PerfectScrollbar('.scrollable');
</script>
</html>