mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2025-10-27 08:49:27 +00:00
Allow alerts to have more than one DX callsign, and parse the "as CALL" fields from NG3K. Not yet working #38
This commit is contained in:
@@ -708,17 +708,21 @@ components:
|
||||
type: string
|
||||
description: Unique identifier based on a hash of the alert to distinguish this one from any others.
|
||||
example: 442c5d56ac467341f1943e8596685073b38f5a5d4c3802ca1e16ecf98967956c
|
||||
dx_call:
|
||||
type: string
|
||||
description: Callsign of the operator that is going to be activating
|
||||
example: M0TRT
|
||||
dx_calls:
|
||||
type: array
|
||||
description: Callsigns of the operator(s) that are going to be activating
|
||||
items:
|
||||
type: string
|
||||
example: M0TRT
|
||||
dx_name:
|
||||
type: string
|
||||
description: Name of the operator that is going to be activating
|
||||
example: Ian
|
||||
type: array
|
||||
description: Names of the operator(s) that are going to be activating
|
||||
items:
|
||||
type: string
|
||||
example: Ian
|
||||
dx_country:
|
||||
type: string
|
||||
description: Country of the DX operator
|
||||
description: Country of the DX operator. This, and the subsequent fields, assume that all activators will be in the same country!
|
||||
example: United Kingdom
|
||||
dx_flag:
|
||||
type: string
|
||||
|
||||
@@ -171,7 +171,8 @@ function addAlertRowsToTable(tbody, alerts) {
|
||||
// Populate the row
|
||||
$tr.append(`<td class='nowrap'>${start_time_formatted}</td>`);
|
||||
$tr.append(`<td class='nowrap'>${end_time_formatted}</td>`);
|
||||
$tr.append(`<td class='nowrap'><span class='flag-wrapper hideonmobile' title='${dx_country}'>${dx_flag}</span><a class='dx-link' href='https://qrz.com/db/${a["dx_call"]}' target='_new'>${a["dx_call"]}</a></td>`);
|
||||
// TODO take a["dx_calls"] and add a callsign to the following td for every one in the list.
|
||||
$tr.append(`<td class='nowrap'><span class='flag-wrapper hideonmobile' title='${dx_country}'>${dx_flag}</span><a class='dx-link' href='https://qrz.com/db/${call}' target='_new'>${call}</a></td>`);
|
||||
$tr.append(`<td class='hideonmobile'>${freqsModesText}</td>`);
|
||||
$tr.append(`<td class='hideonmobile'>${commentText}</td>`);
|
||||
$tr.append(`<td class='nowrap hideonmobile'><span class='icon-wrapper'><i class='fa-solid fa-${a["icon"]}'></i></span> ${sigSourceText}</td>`);
|
||||
|
||||
Reference in New Issue
Block a user