mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
[CodeFactor] Apply fixes
This commit is contained in:
parent
27bf6177ea
commit
956fbf9fa9
3 changed files with 37 additions and 24 deletions
|
@ -34,9 +34,10 @@ function getMaidenheadDistance(dxGrid) {
|
|||
//
|
||||
}
|
||||
}
|
||||
function pushToPing(origin)
|
||||
{
|
||||
window.dispatchEvent(new CustomEvent("stationSelected", {bubbles:true, detail: origin }));
|
||||
function pushToPing(origin) {
|
||||
window.dispatchEvent(
|
||||
new CustomEvent("stationSelected", { bubbles: true, detail: origin }),
|
||||
);
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
|
@ -62,12 +63,15 @@ function pushToPing(origin)
|
|||
<th scope="col" id="thSnr">SNR</th>
|
||||
<!--<th scope="col">Off</th>-->
|
||||
<th scope="col" id="thSnr">AFK?</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="gridHeardStations">
|
||||
<!--https://vuejs.org/guide/essentials/list.html-->
|
||||
<tr v-for="item in state.heard_stations" :key="item.origin" @click="pushToPing(item.origin)">
|
||||
<tr
|
||||
v-for="item in state.heard_stations"
|
||||
:key="item.origin"
|
||||
@click="pushToPing(item.origin)"
|
||||
>
|
||||
<td>
|
||||
{{ getDateTime(item.timestamp) }}
|
||||
</td>
|
||||
|
|
|
@ -93,7 +93,10 @@ export async function getSerialDevices() {
|
|||
}
|
||||
|
||||
export async function setModemBeacon(enabled = false, away_from_key = false) {
|
||||
return await apiPost("/modem/beacon", { enabled: enabled, away_from_key: away_from_key});
|
||||
return await apiPost("/modem/beacon", {
|
||||
enabled: enabled,
|
||||
away_from_key: away_from_key,
|
||||
});
|
||||
}
|
||||
|
||||
export async function sendModemCQ() {
|
||||
|
|
|
@ -33,7 +33,7 @@ import {
|
|||
export async function loadAllData() {
|
||||
// TODO: Make this working
|
||||
let stateData = await getModemState();
|
||||
console.log(stateData)
|
||||
console.log(stateData);
|
||||
|
||||
getRemote();
|
||||
getOverallHealth();
|
||||
|
@ -185,12 +185,15 @@ export function eventDispatcher(data) {
|
|||
100;
|
||||
stateStore.arq_total_bytes =
|
||||
data["arq-transfer-outbound"].received_bytes;
|
||||
stateStore.arq_speed_list_timestamp.value =
|
||||
toRaw(data["arq-transfer-outbound"].statistics.time_histogram);
|
||||
stateStore.arq_speed_list_bpm.value =
|
||||
toRaw(data["arq-transfer-outbound"].statistics.bpm_histogram);
|
||||
stateStore.arq_speed_list_snr.value =
|
||||
toRaw(data["arq-transfer-outbound"].statistics.snr_histogram);
|
||||
stateStore.arq_speed_list_timestamp.value = toRaw(
|
||||
data["arq-transfer-outbound"].statistics.time_histogram,
|
||||
);
|
||||
stateStore.arq_speed_list_bpm.value = toRaw(
|
||||
data["arq-transfer-outbound"].statistics.bpm_histogram,
|
||||
);
|
||||
stateStore.arq_speed_list_snr.value = toRaw(
|
||||
data["arq-transfer-outbound"].statistics.snr_histogram,
|
||||
);
|
||||
//console.log(toRaw(stateStore.arq_speed_list_timestamp.value));
|
||||
return;
|
||||
|
||||
|
@ -274,15 +277,18 @@ export function eventDispatcher(data) {
|
|||
stateStore.arq_total_bytes =
|
||||
data["arq-transfer-inbound"].received_bytes;
|
||||
//console.log(data["arq-transfer-inbound"].statistics.time_histogram);
|
||||
stateStore.arq_speed_list_timestamp.value =
|
||||
toRaw(data["arq-transfer-inbound"].statistics.time_histogram);
|
||||
stateStore.arq_speed_list_bpm.value =
|
||||
toRaw(data["arq-transfer-inbound"].statistics.bpm_histogram);
|
||||
stateStore.arq_speed_list_snr.value =
|
||||
toRaw(data["arq-transfer-inbound"].statistics.snr_histogram);
|
||||
console.log((stateStore.arq_speed_list_timestamp.value));
|
||||
console.log((stateStore.arq_speed_list_bpm.value));
|
||||
console.log((stateStore.arq_speed_list_snr.value));
|
||||
stateStore.arq_speed_list_timestamp.value = toRaw(
|
||||
data["arq-transfer-inbound"].statistics.time_histogram,
|
||||
);
|
||||
stateStore.arq_speed_list_bpm.value = toRaw(
|
||||
data["arq-transfer-inbound"].statistics.bpm_histogram,
|
||||
);
|
||||
stateStore.arq_speed_list_snr.value = toRaw(
|
||||
data["arq-transfer-inbound"].statistics.snr_histogram,
|
||||
);
|
||||
console.log(stateStore.arq_speed_list_timestamp.value);
|
||||
console.log(stateStore.arq_speed_list_bpm.value);
|
||||
console.log(stateStore.arq_speed_list_snr.value);
|
||||
return;
|
||||
|
||||
case "ENDED":
|
||||
|
|
Loading…
Reference in a new issue