Commit Graph

217 Commits

Author SHA1 Message Date
4e2ca64319 Fixed all high and medium security issues from gosec 2025-01-07 19:02:14 +02:00
4c2672b497 Added gosec to CI, will fail 2025-01-07 18:23:48 +02:00
121feb261c Fixed linting issues, should now pass in CI 2025-01-07 18:19:23 +02:00
4234068c58 Added linting to CI, should fail 2025-01-07 18:10:34 +02:00
f9f0f769f6 Fixed formatting, CI should pass 2025-01-07 18:03:35 +02:00
6e1b96900f Added formatting check to CI and broke formatting on purpose 2025-01-07 17:53:24 +02:00
8dcccbfaa4 Removed failing on purpose, test should now pass 2025-01-07 17:23:45 +02:00
06a15e6c70 Refactored to better embed the certifcates and also made sure to read at
runtime the server.key instead of containing it in the server's
executable using go embed
2025-01-07 17:21:02 +02:00
740bb37620 Temporarily added CI to branches that trigger CI 2025-01-07 16:42:25 +02:00
cd34911ce6 Testing if CI runs tests 2025-01-07 16:41:17 +02:00
c0f55da0c4 Fixed network deletion error due to incorrect syntax in SQL trigger,
also this is bad practice to modify a migration (they should be
immutable) but didn't want to have one with syntax errors and I will be
refactoring and splitting this one huge migration into multiple separate
migrations later on
2025-01-06 19:06:47 +02:00
14caa1959c Network deletion now propagates to all active connections that are in
that network
2025-01-06 18:31:27 +02:00
17969fd39e Implemented deleting for networks on the client 2025-01-06 18:29:22 +02:00
63790c069f Server and client now properly handle the same user logging in from
different locations, fixed the issue where it'd only work for the first
time by checking if the addresses match before remove the session
2025-01-06 18:23:41 +02:00
1a218730e9 Server now disconnects connection when a new connection matches the same
user ID, note that there seems to be a weird thing where if 2 clients
are from the same IP, the disconnected client will just reconnect to the
new client's socket, so they will both use the same connection for
communication
2025-01-06 17:34:47 +02:00
db57a31b08 Fixed bug where certain messages wouldn't get rendered 2025-01-06 16:47:55 +02:00
547593d315 Fleshed out and fixed issues in both the server and client for how
networks and members work
2025-01-06 16:17:59 +02:00
6be63e6df6 Refactored quite a bit and added the MembersInfo packet server-side 2025-01-05 18:11:14 +02:00
73935243e3 Fixed server so it compiles 2025-01-04 19:09:23 +02:00
614cc4d9da Implemented joining functionality 2025-01-04 18:35:44 +02:00
feb8562dd0 Implmented Ui for network joining 2025-01-04 16:59:44 +02:00
1b15db0fe9 Fixed issues with frequencies (I think) 2024-12-24 18:54:26 +02:00
f6eb3d665e Scrolling beyond the first message is now impossible even when the
screen is not filled with messages
2024-12-24 18:35:56 +02:00
d3d027f19e Fixed overflow in frequency list 2024-12-24 18:22:30 +02:00
2d4b0df290 Fixed bug where if not at the bottom of the screen but index is -1 then
moving down was impossible
2024-12-24 17:56:26 +02:00
d4ca377a72 Made the message view more stateful by remembering where in the view the
user was
2024-12-24 17:52:01 +02:00
0746f3de04 Selected message resets when focus is lost 2024-12-24 17:41:07 +02:00
534ef0df87 Implemented g to go to the top message and shift+g/enter to go to the
bottom
2024-12-24 17:17:59 +02:00
7cf2bbd1b6 Users can no longer scroll beyond the highest message 2024-12-24 17:10:58 +02:00
6ca8b70e66 Fixed a bug where headers won't render as "selected" when you hover over them 2024-12-24 16:45:52 +02:00
54fb740184 Added ctrl+d/ctrl+u for scrolling up/down in messages view 2024-12-24 16:24:09 +02:00
2618785d10 Changed error when a frequency is empty to a gray message saying it's
empty and suggesting to send a message
2024-12-23 20:32:27 +02:00
f49f48d17b Improved scrolling by adding a blank line between message groups,
but skipping the bottom line when selecting for better UX and selecting
while not in "SnapToBottom" will now start from the bottom of the
screen, not the last message
2024-12-23 20:16:11 +02:00
d87c6090d4 Fixed viminput crash where pressing backspace in insertmode while on the
first char in a non-blank line crashes due to index out of bounds
2024-12-23 18:48:45 +02:00
8e5a560f98 Implemented basic scrolling, needs improvements 2024-12-23 18:43:07 +02:00
2b5b32fc47 Backup 2024-12-23 18:07:41 +02:00
25f6fbc476 Excess messages now truncate instead of overflow viewport height 2024-12-23 16:51:33 +02:00
8d1174a2e1 Implemented per-line selection in messages view 2024-12-23 16:39:33 +02:00
08f21ff857 Reimplemented message rendering by traversing backwards 2024-12-23 15:17:08 +02:00
3072e921d6 Commiting for backup 2024-12-23 15:09:34 +02:00
6837fb4515 Fixed server not compiling 2024-12-22 15:58:32 +02:00
eb6156ff10 Refactored local config and added support for tab in insert mode in
viminput
2024-12-21 19:42:01 +02:00
e6237f5b12 Prevented deletion of frequency if it's the only one in the network 2024-12-21 19:00:37 +02:00
e88c5f242d Implemented fetching existing messages when changing frequencies 2024-12-21 18:29:29 +02:00
3c35c3dbfa Fixed message-remembering issues and implemented non persistent "last
frequency" per network
2024-12-21 18:08:32 +02:00
90c54591cc Implemented remembering messages in frequencies 2024-12-21 16:54:43 +02:00
4db087dbe4 Selected message automatically diselects itself when switching frequency 2024-12-21 16:21:16 +02:00
cee4c74bf5 Implemented selecting a message (and changing the background to show
which message)
2024-12-20 18:38:40 +02:00
1c3d456169 Implemented nice-looking messages 2024-12-20 17:41:19 +02:00
bae7f78b9c Added support for basic display of messages 2024-12-19 19:57:31 +02:00