Commit graph

62 commits

Author SHA1 Message Date
HB9HIL
986222f3d6
serial reservation 2026-07-29 23:45:26 +02:00
HB9HIL
9faacf5d4b
simplify 2026-07-22 13:36:00 +02:00
HB9HIL
9d8a0ffa04
catch bad calls in contesting 2026-07-18 11:02:49 +02:00
HB9HIL
bbfedfecb6
log qso to the set location instead the active one 2026-07-17 07:42:09 +02:00
HB9HIL
66b54b167d
multi delete in contest session table 2026-07-16 13:47:18 +02:00
HB9HIL
ee74b3cc1c
use a parameter array instead single function parameters 2026-07-12 12:18:30 +02:00
HB9HIL
40b55cf7ba
serial per band option 2026-07-12 12:00:05 +02:00
Fabian Berg
4c22b8f824
Merge branch 'dev' into contest_qrg 2026-07-11 23:26:09 +02:00
HB9HIL
0ae9582731
qrg display and editable in qso list 2026-07-11 20:01:59 +02:00
HB9HIL
7751393526
leftover copy paste 2026-07-11 17:47:05 +02:00
HB9HIL
9bdfa010f7
autoload the user_model 2026-07-06 18:32:58 +02:00
HB9HIL
a5d5d59569
store bands lowercase instead uppercase 2026-07-05 20:54:44 +02:00
HB9HIL
dd152aec33
make scp smaller if winkeyer is enabled 2026-06-30 19:59:05 +02:00
HB9HIL
8e3069378c
invert logic 2026-06-26 15:21:06 +02:00
HB9HIL
a5f2ff2074
be able to disable switch_operator feature 2026-06-26 15:19:14 +02:00
kc9uhi
554518d6a9
contesting fix 2026-06-21 12:14:00 -07:00
kc9uhi
a29f7c16ab
contesting follows stations_active_log_only 2026-06-21 11:55:36 -07:00
int2001
8aa4dd9ca5
Fix issue that a switched OP cannot switch back 2026-06-19 08:40:45 +00:00
HB9HIL
1b9d4365bb
switch operator feature for contesting 2026-06-18 23:03:43 +02:00
HB9HIL
30db22b6ab
fence also around logging_engine call
was not vulnerable before since some other checks failed but better to redirect and check explicitly.
2026-06-18 00:10:22 +02:00
HB9HIL
ac644e5a2e
more secure check of contest session info (validate server side) 2026-06-18 00:04:31 +02:00
HB9HIL
fc9762af34
check uid in logging token 2026-06-17 23:49:32 +02:00
int2001
cd2d7cd17a
Remove Dash (-) from allowed chars (IARU-Conform) 2026-06-16 14:00:24 +00:00
HB9HIL
a959aebea1
sanitize callsign 2026-06-16 13:35:42 +02:00
HB9HIL
a2d1464533
bind hmac token to a topic instead to a session id
this was a leftover during development and is not needed anymore. It also allows better verification of permissions
2026-06-16 12:20:49 +02:00
Fabian Berg
0a44e3340f
New Wavelog Contesting and Basics for Wavelog Worker (#3063)
* initial commit for new contesting in Wavelog

* implemented cache buster to match logic from upstream dev branch

* refactore data-store to idb since this will be much faster with a lot of QSOs (scale for the future)

* implementation of other exchange types (wip)

* updated migration version

* renamed mig

* renamed mig

* updated mig

* ESC Handler to reset form

* Add Websocket

* stretch maxDuration warning

We can stretch the maxDuration warning to 2 seconds to allow for more network latency and processing time. The heartbeat is protected against multiple parallel requests, so we can afford to be more lenient with the duration before showing a warning. This should help reduce false positives in environments with higher latency or slower processing.

* worked before warning in qso form

While input the logic checks in the qso list if the callisgn already exists on the same band and mode.

* translations

* fix band buttons

* updated migration after release 2.4.2

* Fixing create new contest, add clubstation permission check, add time check to contests

* Adding attach QSO to Contest

* Remove redundant clubstation checks

* Fix function tip

* Remove time check when launch contest

* Fixing contest attach main logbook, adding detach contest qso

* Enable clubstation contest QSO detach attach

* add space handler for callsign input

* set rst default to 599 for cw, 59 for others

* add grid and refactor some ui to make a better fitting here and there

* adjust tabindex

* add "copy exchange to" feature

* fix css for all themes

* adif and cbr export

* fix bug with wrong operator callsign

* add exchange type "exchange+grid"

* introduce new logic for exchangetypes and more flexible order selection

* fix broken qso list scroll

* legacy import feature

* more precise wording

* feat: inline editing of QSOs by double click in the QSO list

* redirect cabrillo to contesting manager

* Fix QSO permission check

* remove unused cabrillo stuff

* remove duplicate function

* fix check if worked before on band change

tnx to @int2001

* fix flash message for legacy importer

* make dropdown searchable and place "other" at the top

* add hint about "Other" contest

* avoid "flash" of winkeyer settings in qso logging, it shows up if cw is set as mode

* winkeyer for the new contesting

need proper testing by @AndreasK79 and @phl0 since I don't have a winkeyer myself. I tested with a python simulator...

* english comments

* proper singular/plural

* fix dropdown

* preselect active station location

* allow editing time aswell

* fix fontsize in radio buttons

* remove redundant qso count query

* cache last updated value for contest qsos to reduce db load

* index on user id

* cache also qso count

* you can now resize windows also on the edges

requested by @xyz667 in https://github.com/wavelog/wavelog/pull/3063#issuecomment-4557850867

* fix oversized clock

* click to prepare logging for contesting

Logic:
- if qso windows is open, call is sent to qso form
- if contest log is open, call is sent to contest log
- if both are open, call is sent to contest log
- if none is open, click opens qso form and call is sent to qso form

* handle exchange s prefill with data from the last qso and make exchange always uppercase

* add dropdown to qso list with option to delete qsos

* language fixes

* english comments

* center text

* fix missing dropdown on new qsos

* add date presets for contest session creator/editor

* basic worker implementation

* support multiple workers for clustering

* remove unnecessary node column

* simple availability check

* websocket for contesting

* bonus: add vip for visibilty in debug view

* use vip if available

* worker disabled in debug view if disabled in config

* racecondition for winkeyer breaks edit/delete dropdown

* racecondition for winkeyer breaks edit/delete dropdown

* qso handling for worker in contesting, no high interval heartbeat anymore

* clear heartbeat intervall

* fix some timing bugs

* remove dedicated worker controller as it's not needed

* handle whitespace

* trigger sync engine after processing QSO sync response and adjust last sync time to avoid spurious resyncs

* fix set and setLocal

* fix change detection and sync logic

* fix the lost of seconds due to edit

* fix table rendering

* watermark handling for true delta

* remove caching as it brings more problems here as benefits

* make serial as default exchangetype

* Add clarification on cluster setup requirements for worker URLs

* add operator to qso list if this is a clubstation

* fix bug for editing qsos in clubmode

* remove redundant code

* integers must be null in database

* fix bug in tabindex if 3 exchangefields are configured (serial, exchange, grid)

* nice contesting map (draft)

* map autofit

* add grid overlay

* calculate distanz and azimuth

* include rotor control via waveloggate (ws only)

* implement simple dedicated callbook lookup

* simpler and faster lookup

* option in contest session to disabled callbook lookup and only calculate dxcc

* syntax issue

* fix bug in CBR export

* catch empty result on contest

* remove some leftovers

* removed some comments

* remove unused stuff

* removed old todos/comments

* add 4s timeout for ajax transport

* you need to be admin for this

* translations

* add option to delete qso's aswell when deleting a session (opt in)

* add quickstart button in manager

* removed old todo

* fix "grows to bottom"

* disable "copy exchange to" if no exchange is set

* clear map on qso clear aswell

* same for scp

* updated documentation link

* calculate distanze and azimut also on grid only

* better space usage in qso input

* callbook db first approach, online lookup can be disabled while being cached for all users when enabled

* some input validation

* use only one sot for qrgtoband

* basic stats component

* fix html encoding

* render all aswell

* ascii

* store locally which time frame the user wants

* sync settings and warn user if something happend on the backend

* dev leftover

* show errors if callbook fails or callsign is invalid

* easier syntax

* Revert "easier syntax" - that was a mistake

This reverts commit 80c75dbf1e.

* fix for callbook lookup

* make pathline more visible

* better visibility of qsos

* add classic coordinates bar to the map

* fix bug in stats

* stretch max duration to 4s.. just in case

* simple sanity check in js to prevent unnecessary callbook lookups

* simulate tab after filling the call from scp

* fix poll radios with enabled worker

* reset po/mo files back to upstream/dev

* split contest exports, add back reg1test edi format

* keep the menu item but redirect to contesting

* better syntax and bugfix

* break it down further and fix typo ("constraint")

* use monospace font for input fields

* fix: in worker driven mode we need to do the heartbeat also on not focused windows otherwise we loose this contact

* fix: error handling on invalid times

* wavelog Ø

* more styling

* band lowercase fix

* Other is not a very descriptive title for a contest logger window, so we rename it to "Contest"

* custom contest name

* compare the whole array instead just a few settings

---------

Co-authored-by: int2001 <joerg@dj7nt.de>
Co-authored-by: HadleySo <71105018+HadleySo@users.noreply.github.com>
Co-authored-by: DB4SCW <dev@db4scw.de>
2026-06-14 14:23:00 +02:00
HB9HIL
dcd91c0be4
fences for staticmap images 2026-06-13 11:23:22 +02:00
HB9HIL
82cc0cf99d
remove filemtime from single js loads and load it global in the footerdata script by using the cache_buster 2026-02-13 16:58:57 +01:00
int2001
22a86fa36a
Fix first population of start_date 2025-08-28 06:15:05 +00:00
Fabian Berg
c70c2ec5cd
Clubstations for Wavelog (#1334)
* feat[clubstations]: New DB structure

* feat[clubstations]: Add clubstationstable in user managment

* feat[clubstations]: Show last operator

* feat[clubstations]: Better solution for last operator. tnx for the hint @int2001

* feat[clubstations]: New Club Model and Controller

* feat[clubstations]: Add "Add User" and "Edit User" functionality

* docs[clubstations]: move comment

* feat[clubstations]: Add "Delete Member" functionality

* feat[clubstations]: some enhancements and javascript

* fix[clubstations]: Wrong message class for flashmessages

* feat[clubstations]: Added Switch in the Header menu (not functional yet)

* feat[clubstations]: clubswitch modal

* fix[clubstations]: Load encryption library if not already loaded

* fix[clubstations]: Prevent direct login attempts to clubstations and enhance impersonation authorization

* fix[clubstations]: Typo

* feat[clubstations]: Only show the operator dialog if there is something fishy

* fix[user]: little UI bug

* feat[impersonate]: Add source uid to session data

* fix[impersonate]: logic adjustment

* feat[clubstations]: Add manage button in header menu for club officers

* fix[clubstations]: typo in permission level check

* fix[clubstations]: Full rights for the admin

* feat[impersonate]: Custom sessiondata

* feat[impersonate]: Implement stop impersonation feature with modal confirmation; "the way back"

* fix(modal): Fix bug where modal was hidden when mouse leaved the browser content

* docs(config): Adjust config description for special callsigns and clubstations

* feat(club): Add club access check helper

* typo

* fix[impersonation]: Better text

* feat(club): Selectize for a efficient user search

* feat(clubstations): Restrict clubstations based on users permission level part 1/x

* adjustments for dev merge

* Adjusted club right for the advanced logbook

* feat[user]: Refactoring of the Action Buttons in the user table

* fix[club_permissions]: normal button instead small one for club permissions

* remove unnecessary line break in modal body

* feat[clubstations]: Add Club Mode badge to the header

* fix[clubstations]: fix maintenance mode

* allow switch back on http

* feat(simplefle): display operator input based on club_access

* small UI adjustments

* small UI adjustments

* moved api page to a index.php file and added support for clubstations

* removed unused stuff

* typo

* radios and api keys

* missed one binding

* fix qso view, even officers do just see their own radios in QSO logging

* omit the need for a relogin to see the changes as an admin

* Omit the need for relogin after club changes in general. It's a question of UX. It's better to accept a little higher DB load (if clubstations are enabled) then the need of an user to relogin. There is some room for improvement by changing user_model->get_by_id() and adding a join there. This can be done later if we see that the load is too high

* If the user is not the creator of the API key, it's likely a clubstation. In this case the callsign of the clubstation can not be the same as the callsign of the user (operator call provided by the user). If this is the case, we need to use the callsign of the creator of the API key

* remove debug messages

* better UI in header

* found a typo

* full access in clubstations for admins (if accessed via admin usertable)

* adjusted text

* adjusted text

* adjust text

* reduce required chars

* bugfix: missing the correct authentication in case the admin was not member of the club. he wasn't able to switch back

* reduce debug messages

* fixed UI bug related to tooltips

* load js in controller

* upps..

* some UI adjustments

* corrected permissions

* if user gets delete we need to remove data in club_permissions and also api keys which were created by this user

* Notify members about new memberships or changes in permission level

* add spinner to save button

* make login/logout process more bulletproof

* remove the relogin cookie after the attempt

* better strategy

* bug where switch back failed if user is no admin

* make api keys more secure

* mask not owned api keys

* removed annoying link

* if a user gets removed from a club we also should delete the corresponding api keys and cat radios

* adjusted wiki link

* Auto creation of logbook and location when new user is created

* store and display locator in uppercase

* same for callsign

* fixed a bug in user/club creation

* Revert "Auto creation of logbook and location when new user is created"
We found another solution to which will be addressed in a second PR
This reverts commit f05f4b7bf0.

* Optimized SQL for stats at userlist

* Source query for lastop "out", because mysql<9.0 can't handle Windowed functions

* adjust migration

* add new columns to users table to get created_at and modified_at

* added a partial down function

* add operator dropdown for clubstations

* fix mig version

* Add some backend restrictions in case a user wants to try something funny with the club

---------

Co-authored-by: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com>
Co-authored-by: int2001 <joerg@dj7nt.de>
2025-01-02 10:22:23 +01:00
HB9HIL
fdb1f4c7a8 make sure browser uses the most recent version of contesting.js 2024-09-07 19:15:57 +02:00
HB9HIL
d4517bf61f xss_cleaning in contesting controller 2024-08-27 14:39:23 +02:00
HB9HIL
5dee1b9968 You're not allowed to do that! 2024-08-16 10:08:44 +02:00
HB9HIL
98f1677144
Merge branch 'dev' into default_radio 2024-08-06 17:18:44 +02:00
github-actions
696b79fb5a same for contesting and in footer 2024-08-06 13:12:15 +02:00
github-actions
c6bd33d16a show which radio was last updated 2024-08-06 00:04:59 +02:00
Andreas Kristiansen
a232db3c98 [Contesting} Set userdata radio when logging 2024-07-17 18:24:44 +02:00
HB9HIL
2a5c6538aa page titles 2024-06-08 11:01:59 +02:00
HB9HIL
d7e7c8a79f $this and $ci lang fixes 2024-06-06 21:32:42 +02:00
HB9HIL
8ae5723d14 get rid of unnessesary lang loads 2024-06-06 10:47:30 +02:00
int2001
6ba56a814b
One should really save the session :P 2024-04-29 05:13:11 +00:00
int2001
9307de021c
Code-Formatting and Cleanup of CI 2024-04-28 14:52:16 +00:00
int2001
ef48375819
Return new session-content directly after save 2024-04-28 14:39:31 +00:00
int2001
858a3ec8b7
Little Contest-Tunging 2024-04-28 14:21:00 +00:00
int2001
f22bb9fb85
PHP-Part of adding bearing to contest 2024-03-08 08:45:46 +00:00
int2001
88cf148055
Added "ago" to the relative Time, truncated seconds 2023-12-31 07:01:43 +00:00
int2001
48838c4365
Added absolute Time of last-qso to "worked before" banner 2023-12-31 06:55:25 +00:00
int2001
70db88b521
Added time of "Worked before" in Contest-Section 2023-12-30 20:17:24 +00:00
phl0
83b3261034
Fix lookups for empty contest sessions 2023-11-09 15:11:36 +01:00
HB9HIL
ae949e3b2f Contest Controller Adjustments 2023-10-06 13:14:54 +02:00