Prettified Code!

This commit is contained in:
DJ2LS 2023-02-12 07:44:27 +00:00 committed by GitHub Action
parent 5e8008324c
commit d0c8af2623
2 changed files with 548 additions and 568 deletions

View file

@ -421,7 +421,6 @@ window.addEventListener("DOMContentLoaded", () => {
"hidden";
document.getElementById("radio-control-disabled").style.display = "none";
document.getElementById("radio-control-network").style.visibility =
"hidden";
document.getElementById("radio-control-network").style.display = "none";
@ -437,8 +436,6 @@ window.addEventListener("DOMContentLoaded", () => {
"radio-control-switch-rigctld-info"
).checked = false;
document.getElementById("radio-control-network").style.display = "none";
document.getElementById("radio-control-network").style.visibility =
"hidden";
@ -519,13 +516,10 @@ window.addEventListener("DOMContentLoaded", () => {
document.getElementById("radio-control-disabled").style.visibility =
"visible";
document.getElementById("radio-control-network").style.display = "none";
document.getElementById("radio-control-network").style.visibility =
"hidden";
document.getElementById("radio-control-rigctld-info").style.visibility =
"hidden";
document.getElementById("radio-control-rigctld-info").style.display =
@ -535,8 +529,6 @@ window.addEventListener("DOMContentLoaded", () => {
fs.writeFileSync(configPath, JSON.stringify(config, null, 2));
});
// // radio settings 'network' event listener
document
.getElementById("radio-control-switch-network")

View file

@ -69,7 +69,7 @@
</label>
</div>
<div class="input-group input-group-sm me-2" id="remote-tnc-field">
<span class="input-group-text" >TNC IP</span>
<span class="input-group-text">TNC IP</span>
<input
type="text"
class="form-control"
@ -81,7 +81,7 @@
aria-label="Username"
aria-describedby="basic-addon1"
/>
<span class="input-group-text" >:</span>
<span class="input-group-text">:</span>
<input
type="text"
class="form-control"
@ -278,7 +278,7 @@
</div>
<div class="card-body p-2 mb-1">
<div class="input-group input-group-sm mb-1">
<span class="input-group-text" >
<span class="input-group-text">
<i
class="bi bi-mic-fill"
style="font-size: 1rem; color: black"
@ -293,7 +293,7 @@
</select>
</div>
<div class="input-group input-group-sm mb-1">
<span class="input-group-text" >
<span class="input-group-text">
<i
class="bi bi-volume-up"
style="font-size: 1rem; color: black"
@ -337,14 +337,12 @@
>
disabled
</label>
</div>
<div
class="btn-group btn-group-sm"
role="group"
aria-label="radio-control-switch-rigctld"
>
<input
type="radio"
class="btn-check"
@ -400,9 +398,7 @@
<!-- RADIO CONTROL NETWORK -->
<div id="radio-control-network">
<div class="input-group input-group-sm mb-1">
<span class="input-group-text"
>Rigctld IP</span
>
<span class="input-group-text">Rigctld IP</span>
<input
type="text"
class="form-control"
@ -411,7 +407,7 @@
aria-label="Device IP"
aria-describedby="basic-addon1"
/>
<span class="input-group-text" >:</span>
<span class="input-group-text">:</span>
<input
type="text"
class="form-control"
@ -473,7 +469,7 @@
data-bs-html="false"
title="Enter your callsign and save it"
>
<span class="input-group-text" >
<span class="input-group-text">
<i
class="bi bi-person-bounding-box"
style="font-size: 1rem; color: black"
@ -522,7 +518,7 @@
data-bs-html="false"
title="Enter your gridsquare and save it"
>
<span class="input-group-text" >
<span class="input-group-text">
<i
class="bi bi-house-fill"
style="font-size: 1rem; color: black"
@ -1080,9 +1076,7 @@
<div class="row">
<div class="col">
<div class="input-group input-group-sm">
<span class="input-group-text"
>Mode</span
>
<span class="input-group-text">Mode</span>
<select
class="form-select form-select-sm"
aria-label=".form-select-sm"
@ -1098,9 +1092,7 @@
</div>
<div class="col-auto">
<div class="input-group input-group-sm">
<span class="input-group-text"
>Frames</span
>
<span class="input-group-text">Frames</span>
<select
class="form-select form-select-sm"
aria-label=".form-select-sm"
@ -1379,7 +1371,7 @@
</div>
<div class="col-sm-3">
<div class="input-group input-group-sm">
<span class="input-group-text" >
<span class="input-group-text">
<i
class="bi bi-speedometer2"
style="font-size: 1rem; color: black"
@ -1398,7 +1390,7 @@
style="font-size: 1rem; color: black"
></i>
</span>
<span class="input-group-text" >
<span class="input-group-text">
<i
class="bi bi-file-earmark-binary"
style="font-size: 1rem; color: black"
@ -1415,7 +1407,6 @@
>
<span
class="input-group-text"
data-bs-toggle="tooltip"
title="Indicates if a session is active"
><span class="bi bi-chat-fill" id="spnConnectedWith"></span
@ -1483,15 +1474,15 @@
</div>
<div class="modal-body">
<div class="input-group input-group-sm mb-1">
<span class="input-group-text" >Test-Frame</span>
<span class="input-group-text">Test-Frame</span>
<button type="button" id="sendTestFrame" class="btn btn-danger">
Transmit
</button>
</div>
<div class="input-group input-group-sm mb-1">
<span class="input-group-text" >TX Level</span>
<span class="input-group-text">TX Level</span>
<span class="input-group-text" id="audioLevelTXvalue">---</span>
<span class="input-group-text w-75" >
<span class="input-group-text w-75">
<input
type="range"
class="form-range"
@ -1612,9 +1603,7 @@
tabindex="0"
>
<div class="input-group input-group-sm mb-1">
<span class="input-group-text w-50"
>GUI theme</span
>
<span class="input-group-text w-50">GUI theme</span>
<select
class="form-select form-select-sm w-50"
id="theme_selector"
@ -1648,9 +1637,7 @@
</select>
</div>
<div class="input-group input-group-sm mb-1">
<span class="input-group-text w-50"
>Waterfall theme</span
>
<span class="input-group-text w-50">Waterfall theme</span>
<select
class="form-select form-select-sm w-50"
id="wftheme_selector"
@ -1690,9 +1677,7 @@
/>
</div>
<div class="input-group input-group-sm mb-1">
<span class="input-group-text w-50"
>Update channel</span
>
<span class="input-group-text w-50">Update channel</span>
<select
class="form-select form-select-sm w-50"
id="update_channel_selector"
@ -1712,7 +1697,9 @@
tabindex="0"
>
<div class="input-group input-group-sm mb-1">
<span class="input-group-text" style="width: 180px">Rigctld command</span>
<span class="input-group-text" style="width: 180px"
>Rigctld command</span
>
<input
type="text"
class="form-control"
@ -1722,7 +1709,7 @@
aria-describedby="basic-addon1"
/>
</div>
<hr class="m-2">
<hr class="m-2" />
<div class="input-group input-group-sm mb-1">
<span class="input-group-text" style="width: 180px"
>Rigctld Path</span
@ -1749,13 +1736,14 @@
aria-describedby="basic-addon1"
/>
</div>
<hr class="m-2">
<hr class="m-2" />
<div class="input-group input-group-sm mb-1">
<span class="input-group-text" style="width: 180px">
<i
class="bi bi-projector-fill me-2"
style="font-size: 0.8rem; color: black"
></i> Radio model
></i>
Radio model
</span>
<input
class="form-control"
@ -1857,9 +1845,7 @@
<option value="2045">Elecraft KX3</option>
<option value="2046">Hilberling PT-8000A</option>
<option value="2047">Elecraft K4</option>
<option value="2048">
FlexRadio/ANAN PowerSDR/Thetis
</option>
<option value="2048">FlexRadio/ANAN PowerSDR/Thetis</option>
<option value="2049">Malachite DSP</option>
<option value="3002">Icom IC-1275</option>
<option value="3003">Icom IC-271</option>
@ -2017,9 +2003,7 @@
<option value="25015">Funkamateur FA-SDR</option>
<option value="25016">AE9RB Si570 Peaberry V1</option>
<option value="25017">AE9RB Si570 Peaberry V2</option>
<option value="25018">
AMSAT-UK FUNcube Dongle Pro+
</option>
<option value="25018">AMSAT-UK FUNcube Dongle Pro+</option>
<option value="25019">HobbyPCB RS-HFIQ</option>
<option value="26001">Video4Linux SW/FM radio</option>
<option value="26002">Video4Linux2 SW/FM radio</option>
@ -2044,9 +2028,10 @@
<i
class="bi bi-usb-symbol"
style="font-size: 1rem; color: black"
></i> Device Port
></i>
Device Port
</span>
<span class="input-group-text" >
<span class="input-group-text">
<input
class="form-check-sm form-check-input"
type="checkbox"
@ -2062,17 +2047,16 @@
<!--<option selected value="/dev/ttyUSB0">/dev/ttyUSB0</option>
<option value="/dev/ttyUSB1">/dev/ttyUSB1</option>-->
</select>
</div>
<div class="input-group input-group-sm mb-1">
<span class="input-group-text" style="width: 180px"
><i
class="bi bi-speedometer"
style="font-size: 1rem; color: black"
></i
> Serial Speed</span>
<span class="input-group-text" >
></i>
Serial Speed</span
>
<span class="input-group-text">
<input
class="form-check-sm form-check-input"
type="checkbox"
@ -2097,8 +2081,10 @@
</select>
</div>
<div class="input-group input-group-sm mb-1">
<span class="input-group-text" style="width: 180px">Data bits</span>
<span class="input-group-text" >
<span class="input-group-text" style="width: 180px"
>Data bits</span
>
<span class="input-group-text">
<input
class="form-check-sm form-check-input"
type="checkbox"
@ -2115,8 +2101,10 @@
</select>
</div>
<div class="input-group input-group-sm mb-1">
<span class="input-group-text" style="width: 180px">Stop Bits</span>
<span class="input-group-text" >
<span class="input-group-text" style="width: 180px"
>Stop Bits</span
>
<span class="input-group-text">
<input
class="form-check-sm form-check-input"
type="checkbox"
@ -2133,8 +2121,10 @@
</select>
</div>
<div class="input-group input-group-sm mb-1">
<span class="input-group-text" style="width: 180px">Serial Handshake</span>
<span class="input-group-text" >
<span class="input-group-text" style="width: 180px"
>Serial Handshake</span
>
<span class="input-group-text">
<input
class="form-check-sm form-check-input"
type="checkbox"
@ -2156,8 +2146,9 @@
class="bi bi-usb-symbol"
style="font-size: 1rem; color: black"
></i
>PTT Device Port</span>
<span class="input-group-text" >
>PTT Device Port</span
>
<span class="input-group-text">
<input
class="form-check-sm form-check-input"
type="checkbox"
@ -2173,8 +2164,10 @@
</select>
</div>
<div class="input-group input-group-sm mb-1">
<span class="input-group-text" style="width: 180px">PTT Type</span>
<span class="input-group-text" >
<span class="input-group-text" style="width: 180px"
>PTT Type</span
>
<span class="input-group-text">
<input
class="form-check-sm form-check-input"
type="checkbox"
@ -2198,7 +2191,7 @@
</div>
<div class="input-group input-group-sm mb-1">
<span class="input-group-text" style="width: 180px">DCD</span>
<span class="input-group-text" >
<span class="input-group-text">
<input
class="form-check-sm form-check-input"
type="checkbox"
@ -2218,10 +2211,10 @@
<option value="CD">CD</option>
<option value="PARALLEL">PARALLEL</option>
</select>
</div>
</div>
<div class="input-group input-group-sm mb-1">
<span class="input-group-text" style="width: 180px">DTR</span>
<span class="input-group-text" >
<span class="input-group-text">
<input
class="form-check-sm form-check-input"
type="checkbox"
@ -2238,9 +2231,6 @@
<option value="ON">ON</option>
</select>
</div>
</div>
<!-- TNC Tab contents-->
@ -2277,9 +2267,7 @@
</select>
</div>
<div class="input-group input-group-sm mb-1">
<span class="input-group-text w-50"
>Beacon interval</span
>
<span class="input-group-text w-50">Beacon interval</span>
<select
class="form-select form-select-sm"
aria-label=".form-select-sm"