From c1852a4d5fb440d06a80c36cffbb5b2b79b0c928 Mon Sep 17 00:00:00 2001 From: Mashintime Date: Sun, 3 Dec 2023 13:01:46 -0500 Subject: [PATCH] Grid HSL updates/testing --- .../components/grid_active_heard_stations.vue | 20 ++++++++--------- .../grid_active_heard_stations_mini.vue | 22 ++++++++----------- 2 files changed, 19 insertions(+), 23 deletions(-) diff --git a/gui/src/components/grid_active_heard_stations.vue b/gui/src/components/grid_active_heard_stations.vue index 7d523a64..191ff332 100644 --- a/gui/src/components/grid_active_heard_stations.vue +++ b/gui/src/components/grid_active_heard_stations.vue @@ -29,7 +29,7 @@ function getDateTime(timestampRaw) { function getMaidenheadDistance(dxGrid) { try { - return parseInt(distance(settings.mygrid, dxGrid)); + return parseInt(distance(settings.remote.STATION.mygrid, dxGrid)); } catch (e) { // } @@ -43,7 +43,7 @@ function getMaidenheadDistance(dxGrid) { Heard stations -
+
@@ -61,33 +61,33 @@ function getMaidenheadDistance(dxGrid) { - + diff --git a/gui/src/components/grid_active_heard_stations_mini.vue b/gui/src/components/grid_active_heard_stations_mini.vue index 7392efe1..07b3f624 100644 --- a/gui/src/components/grid_active_heard_stations_mini.vue +++ b/gui/src/components/grid_active_heard_stations_mini.vue @@ -16,7 +16,7 @@ function getDateTime(timestampRaw) { navigator.language, { hourCycle: "h23", - year: "numeric", + month: "2-digit", day: "2-digit", hour: "2-digit", @@ -29,7 +29,7 @@ function getDateTime(timestampRaw) { function getMaidenheadDistance(dxGrid) { try { - return parseInt(distance(settings.mygrid, dxGrid)); + return parseInt(distance(settings.remote.STATION.mygrid, dxGrid)); } catch (e) { // } @@ -43,7 +43,7 @@ function getMaidenheadDistance(dxGrid) { Heard stations -
+
{{ - getDateTime(item.timestamp) + getDateTime(item[1].timestamp) }} {{ item.frequency / 1000 }} kHz{{ item[1].frequency / 1000 }} kHz - {{ item.dxcallsign }} + {{ item[1].origin }} - {{ item.dxgrid }} + {{ item[1].gridsquare }} {{ getMaidenheadDistance(item.dxgrid) }} km{{ getMaidenheadDistance(item[1].gridsquare) }} km - {{ item.datatype }} + {{ item[1].activity_type }} - {{ item.snr }} + {{ item[1].snr }}
@@ -51,29 +51,25 @@ function getMaidenheadDistance(dxGrid) { - + - + - > -
Time DXCallGridSNR
- {{ - getDateTime(item.timestamp) + {{ + getDateTime(item[1].timestamp) }} - {{ item.dxcallsign }} + {{ item[1].origin }} - {{ item.dxgrid }} - - {{ item.snr }} + {{ item[1].snr }}