updated responsiveness

This commit is contained in:
DJ2LS 2023-04-20 11:54:47 +02:00
parent dd5eb1bbcb
commit 1a97b6b763
2 changed files with 47 additions and 67 deletions

View file

@ -1944,24 +1944,24 @@ ipcRenderer.on("action-update-tnc-state", (event, arg) => {
// PTT STATE // PTT STATE
switch (arg.ptt_state) { switch (arg.ptt_state) {
case "True": case "True":
document.getElementById("ptt_state").className = "btn btn-sm btn-danger"; document.getElementById("ptt_state").className = "btn btn-sm btn-danger me-1";
break; break;
case "False": case "False":
document.getElementById("ptt_state").className = "btn btn-sm btn-success"; document.getElementById("ptt_state").className = "btn btn-sm btn-success me-1";
break; break;
default: default:
document.getElementById("ptt_state").className = document.getElementById("ptt_state").className =
"btn btn-sm btn-secondary"; "btn btn-sm btn-secondary me-1";
break; break;
} }
// AUDIO RECORDING // AUDIO RECORDING
if (arg.audio_recording == "True") { if (arg.audio_recording == "True") {
document.getElementById("startStopRecording").textContent = document.getElementById("startStopRecording").textContent =
"Stop recording"; "Stop Rec";
} else { } else {
document.getElementById("startStopRecording").textContent = document.getElementById("startStopRecording").textContent =
"Start recording"; "Record";
} }
//CHANNEL CODEC2 BUSY STATE //CHANNEL CODEC2 BUSY STATE
if (arg.is_codec2_traffic == "True") { if (arg.is_codec2_traffic == "True") {
@ -1989,17 +1989,17 @@ ipcRenderer.on("action-update-tnc-state", (event, arg) => {
// BUSY STATE // BUSY STATE
switch (arg.busy_state) { switch (arg.busy_state) {
case "BUSY": case "BUSY":
document.getElementById("busy_state").className = "btn btn-sm btn-danger"; document.getElementById("busy_state").className = "btn btn-sm btn-danger me-1";
//Seems to be no longer user accessible //Seems to be no longer user accessible
//document.getElementById("startTransmission").disabled = true; //document.getElementById("startTransmission").disabled = true;
break; break;
case "IDLE": case "IDLE":
document.getElementById("busy_state").className = document.getElementById("busy_state").className =
"btn btn-sm btn-success"; "btn btn-sm btn-success me-1";
break; break;
default: default:
document.getElementById("busy_state").className = document.getElementById("busy_state").className =
"btn btn-sm btn-secondary"; "btn btn-sm btn-secondary me-1";
//Seems to be no longer user accessible //Seems to be no longer user accessible
//document.getElementById("startTransmission").disabled = true; //document.getElementById("startTransmission").disabled = true;
break; break;
@ -2008,13 +2008,13 @@ ipcRenderer.on("action-update-tnc-state", (event, arg) => {
// ARQ STATE // ARQ STATE
switch (arg.arq_state) { switch (arg.arq_state) {
case "True": case "True":
document.getElementById("arq_state").className = "btn btn-sm btn-warning"; document.getElementById("arq_state").className = "btn btn-sm btn-warning me-1";
//Seems to be no longer user accessible //Seems to be no longer user accessible
//document.getElementById("startTransmission").disabled = false; //document.getElementById("startTransmission").disabled = false;
break; break;
default: default:
document.getElementById("arq_state").className = document.getElementById("arq_state").className =
"btn btn-sm btn-secondary"; "btn btn-sm btn-secondary me-1";
//Seems to be no longer user accessible //Seems to be no longer user accessible
//document.getElementById("startTransmission").disabled = false; //document.getElementById("startTransmission").disabled = false;
break; break;
@ -2024,17 +2024,17 @@ ipcRenderer.on("action-update-tnc-state", (event, arg) => {
switch (arg.arq_session) { switch (arg.arq_session) {
case "True": case "True":
document.getElementById("arq_session").className = document.getElementById("arq_session").className =
"btn btn-sm btn-warning"; "btn btn-sm btn-warning me-1";
break; break;
default: default:
document.getElementById("arq_session").className = document.getElementById("arq_session").className =
"btn btn-sm btn-secondary"; "btn btn-sm btn-secondary me-1";
break; break;
} }
if (arg.arq_state == "True" || arg.arq_session == "True") { if (arg.arq_state == "True" || arg.arq_session == "True") {
document.getElementById("spnConnectedWith").className = document.getElementById("spnConnectedWith").className =
"bi bi-chat-fill text-success"; "bi bi-chat-fill text-success me-1";
} else { } else {
document.getElementById("spnConnectedWith").className = "bi bi-chat-fill"; document.getElementById("spnConnectedWith").className = "bi bi-chat-fill";
} }
@ -2042,24 +2042,24 @@ ipcRenderer.on("action-update-tnc-state", (event, arg) => {
// HAMLIB STATUS // HAMLIB STATUS
if (arg.hamlib_status == "connected") { if (arg.hamlib_status == "connected") {
document.getElementById("rigctld_state").className = document.getElementById("rigctld_state").className =
"btn btn-success btn-sm"; "btn btn-success btn-sm me-1";
} else { } else {
document.getElementById("rigctld_state").className = document.getElementById("rigctld_state").className =
"btn btn-secondary btn-sm"; "btn btn-secondary btn-sm me-1";
} }
// BEACON // BEACON
switch (arg.beacon_state) { switch (arg.beacon_state) {
case "True": case "True":
document.getElementById("startBeacon").className = document.getElementById("startBeacon").className =
"btn btn-sm btn-success"; "btn btn-sm btn-success ms-1";
if (document.getElementById("beaconInterval").disabled == false) { if (document.getElementById("beaconInterval").disabled == false) {
document.getElementById("beaconInterval").disabled = true; document.getElementById("beaconInterval").disabled = true;
} }
break; break;
default: default:
document.getElementById("startBeacon").className = document.getElementById("startBeacon").className =
"btn btn-sm btn-outline-secondary"; "btn btn-sm btn-outline-secondary ms-1";
if (document.getElementById("beaconInterval").disabled == true) { if (document.getElementById("beaconInterval").disabled == true) {
document.getElementById("beaconInterval").disabled = false; document.getElementById("beaconInterval").disabled = false;
} }

View file

@ -283,7 +283,7 @@
--> -->
</nav> </nav>
<div id="blurdiv" style="-webkit-filter: blur(0px); filter: blur(0px)"> <div id="blurdiv" style="-webkit-filter: blur(0px); filter: blur(0px);">
<!--beginn of blur div --> <!--beginn of blur div -->
<!-------------------------------- MAIN AREA ----------------> <!-------------------------------- MAIN AREA ---------------->
<!-------------------------------- INFO TOASTS ----------------> <!-------------------------------- INFO TOASTS ---------------->
@ -306,7 +306,7 @@
<div class="card-header p-1"> <div class="card-header p-1">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-auto"> <div class="col-1">
<i class="bi bi-volume-up" style="font-size: 1.2rem"></i> <i class="bi bi-volume-up" style="font-size: 1.2rem"></i>
</div> </div>
<div class="col-10"> <div class="col-10">
@ -362,13 +362,13 @@
<div class="card-header p-1"> <div class="card-header p-1">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-auto"> <div class="col-1">
<i class="bi bi-projector" style="font-size: 1.2rem"></i> <i class="bi bi-projector" style="font-size: 1.2rem"></i>
</div> </div>
<div class="col-3"> <div class="col-4">
<strong class="fs-5">Rig control</strong> <strong class="fs-5">Rig control</strong>
</div> </div>
<div class="col-7"> <div class="col-6">
<div <div
class="btn-group btn-group-sm" class="btn-group btn-group-sm"
role="group" role="group"
@ -530,7 +530,7 @@
<div class="card-header p-1"> <div class="card-header p-1">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-auto"> <div class="col-1">
<i class="bi bi-house-door" style="font-size: 1.2rem"></i> <i class="bi bi-house-door" style="font-size: 1.2rem"></i>
</div> </div>
<div class="col-10"> <div class="col-10">
@ -639,16 +639,16 @@
<div class="card-header p-1 d-flex"> <div class="card-header p-1 d-flex">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-auto"> <div class="col-1">
<i <i
class="bi bi-cloud-download" class="bi bi-cloud-download"
style="font-size: 1.2rem" style="font-size: 1.2rem"
></i> ></i>
</div> </div>
<div class="col-2"> <div class="col-3">
<strong class="fs-5">Updater</strong> <strong class="fs-5">Updater</strong>
</div> </div>
<div class="col-8"> <div class="col-7">
<div class="progress w-100 ms-1 m-1"> <div class="progress w-100 ms-1 m-1">
<div <div
class="progress-bar" class="progress-bar"
@ -729,10 +729,10 @@
<div class="col-1"> <div class="col-1">
<i class="bi bi-volume-up" style="font-size: 1.2rem"></i> <i class="bi bi-volume-up" style="font-size: 1.2rem"></i>
</div> </div>
<div class="col-4"> <div class="col-5">
<strong class="fs-5">Audio level</strong> <strong class="fs-5">Audio level</strong>
</div> </div>
<div class="col-6"> <div class="col-5">
<button <button
type="button" type="button"
id="audioModalButton" id="audioModalButton"
@ -886,7 +886,7 @@
<div class="card-header p-1"> <div class="card-header p-1">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-auto"> <div class="col-1">
<i class="bi bi-broadcast" style="font-size: 1.2rem"></i> <i class="bi bi-broadcast" style="font-size: 1.2rem"></i>
</div> </div>
<div class="col-10"> <div class="col-10">
@ -969,39 +969,23 @@
></i> ></i>
</button> </button>
--> -->
</div>
</div>
<div class="col-md-auto">
<div
class="input-group input-group-sm mb-0"
data-bs-placement="bottom"
data-bs-toggle="tooltip"
data-bs-trigger="hover"
data-bs-html="false"
title="Send a CQ to the world"
>
<button <button
class="btn btn-sm btn-outline-secondary" class="btn btn-sm btn-outline-secondary ms-1"
id="sendCQ" id="sendCQ"
type="button" type="button"
title="Send a CQ to the world"
> >
Call CQ Call CQ
</button> </button>
</div>
</div>
<div class="col-md-auto">
<div
class="input-group input-group-sm"
data-bs-placement="bottom"
data-bs-toggle="tooltip"
data-bs-trigger="hover"
data-bs-html="false"
title="Toggle beacon mode. The interval can be set in settings. While sending a beacon, you can receive ping requests and open a datachannel. If a datachannel is opened, the beacon pauses."
>
<button <button
type="button" type="button"
id="startBeacon" id="startBeacon"
class="btn btn-sm btn-outline-secondary" class="btn btn-sm btn-outline-secondary ms-1"
title="Toggle beacon mode. The interval can be set in settings. While sending a beacon, you can receive ping requests and open a datachannel. If a datachannel is opened, the beacon pauses."
> >
<i class="bi bi-soundwave"></i> Toggle beacon <i class="bi bi-soundwave"></i> Toggle beacon
</button> </button>
@ -1433,7 +1417,7 @@
<div class="btn-toolbar" role="toolbar" style="margin-left: 2px"> <div class="btn-toolbar" role="toolbar" style="margin-left: 2px">
<div class="btn-group btn-group-sm me-1" role="group"> <div class="btn-group btn-group-sm me-1" role="group">
<button <button
class="btn btn-sm btn-secondary" class="btn btn-sm btn-secondary me-1"
id="ptt_state" id="ptt_state"
type="button" type="button"
data-bs-placement="top" data-bs-placement="top"
@ -1444,10 +1428,9 @@
> >
<i class="bi bi-broadcast-pin" style="font-size: 0.8rem"></i> <i class="bi bi-broadcast-pin" style="font-size: 0.8rem"></i>
</button> </button>
</div>
<div class="btn-group btn-group-sm me-1" role="group">
<button <button
class="btn btn-sm btn-secondary" class="btn btn-sm btn-secondary me-1"
id="busy_state" id="busy_state"
type="button" type="button"
data-bs-placement="top" data-bs-placement="top"
@ -1458,10 +1441,9 @@
> >
<i class="bi bi-cpu" style="font-size: 0.8rem"></i> <i class="bi bi-cpu" style="font-size: 0.8rem"></i>
</button> </button>
</div>
<div class="btn-group btn-group-sm me-1" role="group">
<button <button
class="btn btn-sm btn-secondary" class="btn btn-sm btn-secondary me-1"
id="arq_session" id="arq_session"
type="button" type="button"
data-bs-placement="top" data-bs-placement="top"
@ -1472,10 +1454,9 @@
> >
<i class="bi bi-arrow-left-right" style="font-size: 0.8rem"></i> <i class="bi bi-arrow-left-right" style="font-size: 0.8rem"></i>
</button> </button>
</div>
<div class="btn-group btn-group-sm me-1" role="group">
<button <button
class="btn btn-sm btn-secondary" class="btn btn-sm btn-secondary me-1"
id="arq_state" id="arq_state"
type="button" type="button"
data-bs-placement="top" data-bs-placement="top"
@ -1489,10 +1470,9 @@
style="font-size: 0.8rem" style="font-size: 0.8rem"
></i> ></i>
</button> </button>
</div>
<div class="btn-group btn-group-sm me-1" role="group">
<button <button
class="btn btn-sm btn-secondary" class="btn btn-sm btn-secondary me-1"
id="rigctld_state" id="rigctld_state"
type="button" type="button"
data-bs-placement="top" data-bs-placement="top"
@ -1690,7 +1670,7 @@
</div> </div>
<div class="col-lg-4"> <div class="col-lg-4">
<div style="margin-right: 2px"> <div style="margin-right: 2px">
<div class="progress w-100" style="height: 30px; min-width: 300px"> <div class="progress w-100" style="height: 30px; min-width: 200px">
<div <div
class="progress-bar progress-bar-striped bg-primary force-gpu" class="progress-bar progress-bar-striped bg-primary force-gpu"
id="transmission_progress" id="transmission_progress"