Linkified JS8 callsigns.

This commit is contained in:
Marat Fayzullin 2024-04-05 21:07:09 -04:00
parent fb8422dc55
commit d8950a7d52
3 changed files with 6 additions and 5 deletions

View File

@ -1,10 +1,10 @@
**1.2.54**
- Made FT8/JS8/WSPR/etc. messages show in monospace font.
- Added ability to click on FT8/etc. callsigns.
- Added ability to click on FT8/JS8/etc. callsigns.
- Added columns to the time displays.
- Fixed locators not aging when updated.
- Fixed race condition between move-profile requests.
- Now defaulting all fields to kHz in new profiles.
- Now defaulting all new profile fields to kHz.
**1.2.53**
- Added ability to reorder profiles in the Settings.

4
debian/changelog vendored
View File

@ -1,11 +1,11 @@
openwebrx (1.2.54) bullseye jammy; urgency=low
* Made FT8/JS8/WSPR/etc. messages show in monospace font.
* Added ability to click on FT8/etc. callsigns.
* Added ability to click on FT8/JS8/etc. callsigns.
* Added columns to the time displays.
* Fixed locators not aging when updated.
* Fixed race condition between move-profile requests.
* Now defaulting all fields to kHz in new profiles.
* Now defaulting all new profile fields to kHz.
-- Marat Fayzullin <luarvique@gmail.com> Mon, 8 Apr 2024 16:12:00 +0000

View File

@ -44,7 +44,8 @@ Js8Thread.prototype.renderMessages = function() {
} else if (i === 0 || msg.timestamp - this.messages[i - 1].timestamp > this.getMessageDuration()) {
res.push(' ... ');
}
res.push(msg.msg);
var matches = msg.msg.match(/^([A-Z0-9]+)(:.*)$/);
res.push(matches? Utils.linkifyCallsign(matches[1]) + matches[2] : msg.msg);
if (msg.thread_type & 2) {
res.push(' ]');
} else if (i === this.messages.length -1) {