diff --git a/gui/src/components/main_active_heard_stations.vue b/gui/src/components/main_active_heard_stations.vue index 06406b61..7f8b6012 100644 --- a/gui/src/components/main_active_heard_stations.vue +++ b/gui/src/components/main_active_heard_stations.vue @@ -83,13 +83,33 @@ function getMaidenheadDistance(dxGrid) { - {{ getDateTime(item.timestamp) }} - {{ item.frequency/1000 }} kHz - {{ item.dxcallsign }} - {{ item.dxgrid }} - {{ getMaidenheadDistance(item.dxgrid) }} km - {{ item.datatype }} - {{ item.snr }} + + {{ + getDateTime(item.timestamp) + }} + + + {{ item.frequency / 1000 }} kHz + + + {{ item.dxcallsign }} + + + {{ item.dxgrid }} + + + {{ getMaidenheadDistance(item.dxgrid) }} km + + + {{ item.datatype }} + + + {{ item.snr }} + diff --git a/gui/src/components/main_active_rig_control.vue b/gui/src/components/main_active_rig_control.vue index 70050c5e..3a120b43 100644 --- a/gui/src/components/main_active_rig_control.vue +++ b/gui/src/components/main_active_rig_control.vue @@ -8,17 +8,14 @@ const state = useStateStore(pinia); import { set_frequency, set_mode, set_rf_level } from "../js/sock.js"; +function updateFrequencyAndApply(frequency) { + state.new_frequency = frequency; + set_frequency(state.new_frequency); +} - function updateFrequencyAndApply(frequency) { - state.new_frequency = frequency; - set_frequency(state.new_frequency); - } - - function set_hamlib_frequency_manually(){ - - set_frequency(state.new_frequency); - } - +function set_hamlib_frequency_manually() { + set_frequency(state.new_frequency); +} function set_hamlib_mode() { set_mode(state.mode); @@ -29,7 +26,6 @@ function set_hamlib_rf_level() { } - diff --git a/gui/src/components/main_footer_navbar.vue b/gui/src/components/main_footer_navbar.vue index 5967aa4a..4df19e5a 100644 --- a/gui/src/components/main_footer_navbar.vue +++ b/gui/src/components/main_footer_navbar.vue @@ -25,7 +25,9 @@ const state = useStateStore(pinia); type="button" style="pointer-events: auto" disabled - data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="PTT trigger state" + data-bs-toggle="tooltip" + data-bs-placement="top" + data-bs-title="PTT trigger state" > diff --git a/gui/src/js/chatHandler.ts b/gui/src/js/chatHandler.ts index 14740172..4867fc1a 100644 --- a/gui/src/js/chatHandler.ts +++ b/gui/src/js/chatHandler.ts @@ -1000,19 +1000,24 @@ async function checkForWaitingMessages(dxcall) { console.log(message); displayToast("info", "bi bi-info-circle", message, 5000); - console.log(result) - console.log(result.docs) - console.log(result.docs.length) + console.log(result); + console.log(result.docs); + console.log(result.docs.length); // handle result // @ts-expect-error if (result.docs.length > 0) { // only want to process the first available item object, then return // this ensures, we are only sending one message at once - console.log(result.docs[0]) - console.log("attempt: " + result.docs[0].attempt + "/" + settings.max_retry_attempts) + console.log(result.docs[0]); + console.log( + "attempt: " + + result.docs[0].attempt + + "/" + + settings.max_retry_attempts, + ); // @ts-expect-error if (result.docs[0].attempt < settings.max_retry_attempts) { - console.log("repeating message...") + console.log("repeating message..."); // @ts-expect-error repeatMessageTransmission(result.docs[0].uuid); } diff --git a/gui/src/main.ts b/gui/src/main.ts index 1a7c01d0..8ae35e1c 100644 --- a/gui/src/main.ts +++ b/gui/src/main.ts @@ -2,16 +2,13 @@ import { createApp } from "vue"; import { createPinia } from "pinia"; import { loadSettings } from "./js/settingsHandler"; import "./styles.css"; -import { Chart, Filler } from 'chart.js'; +import { Chart, Filler } from "chart.js"; // Register the Filler plugin globally Chart.register(Filler); // Import our custom CSS //import './scss/styles.scss' - - - import App from "./App.vue"; const app = createApp(App); //.mount('#app').$nextTick(() => postMessage({ payload: 'removeLoading' }, '*')) @@ -22,18 +19,15 @@ app.use(pinia); // Import all of Bootstrap's JS //import * as bootstrap from 'bootstrap' -import * as bootstrap from 'bootstrap' +import * as bootstrap from "bootstrap"; import "bootstrap/dist/css/bootstrap.css"; import "bootstrap-icons/font/bootstrap-icons.css"; -const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]') -const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl)) - - - - - - - +const tooltipTriggerList = document.querySelectorAll( + '[data-bs-toggle="tooltip"]', +); +const tooltipList = [...tooltipTriggerList].map( + (tooltipTriggerEl) => new bootstrap.Tooltip(tooltipTriggerEl), +); loadSettings(); @@ -41,4 +35,3 @@ loadSettings(); import "./js/daemon"; import "./js/sock.js"; //import './js/settingsHandler.js' -