-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcell-settings.html
More file actions
486 lines (462 loc) · 18.9 KB
/
cell-settings.html
File metadata and controls
486 lines (462 loc) · 18.9 KB
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
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<!-- Logo -->
<link rel="simpleadmin-logo" href="favicon.ico" />
<link rel="stylesheet" href="css/bulma/bulma.scss" />
<link rel="stylesheet" href="css/bulma/css/bulma.min.css" />
<link rel="stylesheet" href="css/bulma/css/bulma.css" />
<link rel="stylesheet" href="css/custom.css" />
<!-- Font awesome icons -->
<script
src="https://kit.fontawesome.com/b0caedfab3.js"
crossorigin="anonymous"
></script>
<script src="js/styles/toggle-theme.js"></script>
<script src="/js/styles/nav-burger.js"></script>
<script src="/js/styles/modal-trigger.js"></script>
<script src="/js/utils/reboot.js"></script>
<script src="/js/utils/restart-connection.js"></script>
<script src="/js/cell-settings/fetch-settings.js"></script>
<script src="/js/cell-settings/apn-profile.js"></script>
<script defer src="/js/auth/auth.js"></script>
<script>
(function () {
const savedTheme = localStorage.getItem("theme") || "theme-dark";
document.documentElement.classList.add(savedTheme);
})();
</script>
<title>QuecManager</title>
</head>
<body class="body-margin">
<nav class="navbar is-transparent">
<div class="navbar-brand">
<a class="navbar-item" href="/">
<img src="/assets/logo.png" alt="Logo" />
<span class="title">QuecManager</span>
</a>
<a
role="button"
class="navbar-burger"
aria-label="menu"
aria-expanded="false"
data-target="navMenu"
>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div id="navMenu" class="navbar-menu">
<div class="navbar-start ml-6">
<a class="navbar-item" href="/"> Home </a>
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link has-text-weight-bold"> Cellular </a>
<div class="navbar-dropdown is-boxed">
<a class="navbar-item" href="/cell-settings.html"
>Cell Settings</a
>
<a class="navbar-item" href="/bandlock.html"> Band Locking </a>
<a class="navbar-item" href="/cell-locking.html">Cell Locking</a>
<a class="navbar-item" href="/cell-scanner.html">Cell Scanner</a>
<a class="navbar-item" href="/cell-sms.html"> Cell SMS </a>
</div>
</div>
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link"> Advance </a>
<div class="navbar-dropdown is-boxed">
<a class="navbar-item" href="/advance-settings.html">
Advance Settings
</a>
<a class="navbar-item" href="#">Experimental Features</a>
<a class="navbar-item" href="/cgi-bin/luci">OpenWRT Luci</a>
</div>
</div>
<a class="navbar-item" href="/about.html"> About </a>
</div>
<div class="navbar-end">
<div class="navbar-item">
<div class="buttons is-flex-direction-column-mobile">
<div class="control is-expanded-mobile">
<div
id="restartConnectionBtn"
class="button is-link is-outlined is-fullwidth-mobile"
>
<span class="icon">
<i class="fas fa-arrows-rotate"></i>
</span>
<span>Restart Connection</span>
</div>
</div>
<div class="is-flex is-mobile is-align-items-center">
<div class="control">
<div
class="button is-warning is-outlined reboot-modal"
data-target="reboot-modal"
>
<span class="icon">
<i class="fas fa-power-off"></i>
</span>
</div>
</div>
<p class="control ml-2 is-mobile">
<a
href="#"
class="button is-warning is-outlined js-theme-toggle"
>
<span class="icon">
<i class="fas fa-sun"></i>
</span>
</a>
</p>
<p class="control ml-2 is-mobile">
<a
href="#"
class="button is-warning is-outlined js-theme-toggle"
id="logoutButton"
>
<span class="icon">
<i class="fas fa-right-from-bracket"></i>
</span>
</a>
</p>
</div>
</div>
</div>
</div>
</div>
</nav>
<div class="column-margin">
<div class="columns">
<div class="column">
<div class="card">
<div class="card-header">
<div class="card-header-title">Basic Cellular Settings</div>
</div>
<div class="card-content">
<div class="fixed-grid has-2-cols has-1-cols-mobile">
<div class="grid is-gap-5">
<div class="cell">
<div class="field">
<label class="label">Current APN</label>
<div class="control">
<input
class="input"
type="text"
placeholder="Current APN Here"
id="currentAPN"
/>
</div>
<p class="help">
Changing this will disable automatic APN.
</p>
</div>
</div>
<div class="cell">
<div class="field">
<label class="label">APN PDP Type</label>
<p class="control has-icons-left">
<span class="select">
<select id="apnPDP">
<option selected>Select APN PDP Type</option>
<option value="IP">IPv4 Only</option>
<option value="IPV6">IPv6 Only</option>
<option value="IPV4V6">IPv4 and IPv6</option>
<option value="PPP">P2P Protocol</option>
</select>
</span>
<span class="icon is-small is-left">
<i class="fas fa-globe"></i>
</span>
</p>
</div>
</div>
<div class="cell">
<div class="field">
<label class="label">Preferred Network Mode</label>
<p class="control has-icons-left">
<span class="select">
<select id="networkPreference">
<option value="placeholder" selected>
Select Preferred Network Mode
</option>
<option value="AUTO">Automatic</option>
<option value="LTE">LTE Only</option>
<option value="NR5G">5G SA Only</option>
<option value="LTE:NR5G">5G NSA Only</option>
</select>
</span>
<span class="icon is-small is-left">
<i class="fas fa-signal"></i>
</span>
</p>
<p class="help">
Selecting a mode will apply immediately.
</p>
</div>
</div>
<div class="cell">
<div class="field">
<label class="label">NR5G Mode Control</label>
<p class="control has-icons-left">
<span class="select">
<select id="nr5gModeControl">
<option selected>Select NR5G Mode Control</option>
<option value="0">Enable NR5G SA and NSA</option>
<option value="2">Enable SA Only</option>
<option value="1">Enable NSA Only</option>
</select>
</span>
<span class="icon is-small is-left">
<i class="fas fa-podcast"></i>
</span>
</p>
<p class="help">
Selecting a mode will apply immediately.
</p>
</div>
</div>
<div class="cell">
<div class="field">
<label class="label">U-SIM Slot Configuration</label>
<p class="control has-icons-left">
<span class="select">
<select id="simSlot">
<option value="">Select active SIM slot</option>
<option value="1">SIM Slot 1</option>
<option value="2">SIM Slot 2</option>
</select>
</span>
<span class="icon is-small is-left">
<i class="fas fa-sim-card" id="simCardIcon"></i>
</span>
</p>
<p class="help">
Selecting a mode will apply immediately.
</p>
</div>
</div>
</div>
</div>
</div>
<div class="card-footer">
<a
href="#"
class="card-footer-item has-text-link has-text-weight-semibold has-text-white"
>
Save APN
</a>
<a
href="#"
class="card-footer-item has-text-link has-text-weight-semibold has-text-white"
>
Reset APN
</a>
</div>
</div>
</div>
<div class="column">
<div class="card" id="apnProfileForm">
<div class="card-header">
<div class="card-header-title">APN and ICCID Based Locking</div>
</div>
<div class="card-content">
<div class="fixed-grid has-1-cols">
<div class="grid is-gap-5">
<div class="cell">
<div class="fixed-grid has-2-cols has-1-cols-mobile">
<div class="grid is-gap-3">
<div class="cell is-col-span-2-mobile">
<div class="field">
<label class="label">APN Profile 1</label>
<div class="control">
<input
class="input"
type="text"
placeholder="APN Here"
id="apnProfile1"
/>
</div>
<p class="help">
This will override the current APN.
</p>
</div>
</div>
<div class="cell is-col-span-2-mobile">
<div class="field">
<label class="label">APN PDP Type</label>
<p class="control has-icons-left">
<span class="select">
<select id="apnPDPType1">
<option selected>Select APN PDP Type</option>
<option value="IP">IPv4 Only</option>
<option value="IPV6">IPv6 Only</option>
<option value="IPV4V6">IPv4 and IPv6</option>
<option value="PPP">P2P Protocol</option>
</select>
</span>
<span class="icon is-small is-left">
<i class="fas fa-globe"></i>
</span>
</p>
</div>
</div>
<div class="cell is-col-span-2">
<div class="field">
<label class="label">ICCID Profile 1</label>
<div class="control">
<input
class="input"
type="text"
placeholder="ICCID Here"
id="iccidProfile1"
/>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="cell">
<div class="fixed-grid has-2-cols">
<div class="grid is-gap-3">
<div class="cell is-col-span-2-mobile">
<div class="field">
<label class="label">APN Profile 2</label>
<div class="control">
<input
class="input"
type="text"
placeholder="APN Here"
id="apnProfile2"
/>
</div>
<p class="help">
This will override the current APN.
</p>
</div>
</div>
<div class="cell is-col-span-2-mobile">
<div class="field">
<label class="label">APN PDP Type</label>
<p class="control has-icons-left">
<span class="select">
<select id="apnPDPType2">
<option selected>Select APN PDP Type</option>
<option value="IP">IPv4 Only</option>
<option value="IPV6">IPv6 Only</option>
<option value="IPV4V6">IPv4 and IPv6</option>
<option value="PPP">P2P Protocol</option>
</select>
</span>
<span class="icon is-small is-left">
<i class="fas fa-globe"></i>
</span>
</p>
</div>
</div>
<div class="cell is-col-span-2">
<div class="field">
<label class="label">ICCID Profile 2</label>
<div class="control">
<input
class="input"
type="text"
placeholder="ICCID Here"
id="iccidProfile2"
/>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="card-footer">
<a
href="#"
class="card-footer-item has-text-link has-text-weight-semibold has-text-white"
id="saveAPNProfile"
>
Save APN Profile
</a>
<a
href="#"
class="card-footer-item has-text-link has-text-weight-semibold has-text-white"
id="resetAPNProfile"
>
Reset APN Profile
</a>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="content">
<div class="fixed-grid has-2-cols has-1-cols-mobile">
<div class="grid">
<div class="cell">
<div class="icon-text">
<span class="icon has-text-info">
<i class="fas fa-info-circle"></i>
</span>
<span>Information</span>
</div>
<p class="block has-text-weight-semibold">
Changing APN disconnects and reconnects the network
automatically.
<br />
If problem persists after changing settings, please reboot the
modem.
<br />
Please use the settings with caution.
</p>
</div>
<div class="cell">
<div class="icon-text">
<span class="icon has-text-info">
<i class="fas fa-info-circle"></i>
</span>
<span>Information</span>
</div>
<p class="block has-text-weight-semibold">
APN and ICCID Based Locking will use a stored APN profile based
on the current SIM's ICCID.
<br />
Currently experimental.
<br />
</p>
</div>
</div>
</div>
</div>
</footer>
<div id="reboot-modal" class="modal">
<div class="modal-background"></div>
<div class="modal-card">
<section class="modal-card-body rounded-edge">
<p class="subtitle" id="modal-message">
Do you want to reboot the device?
</p>
<div id="loading-content" style="display: none">
<div class="custom-loader"></div>
<div class="countdown-text">
Rebooting... <span id="countdown">90</span>s
</div>
</div>
<div class="buttons" id="modal-buttons">
<button class="button is-warning" id="rebootModem">Reboot</button>
<button class="button cancel" aria-label="close">Cancel</button>
</div>
</section>
</div>
</div>
</body>
</html>