Commit Graph

  • 8184c8d187 Added a way to change network properties both server side and client side Kyren223 2025-01-14 16:31:32 +02:00
  • fa2ba2fe8b Added icons to frequencies to visually display permissions Kyren223 2025-01-14 15:42:55 +02:00
  • 36aaaf8d92 Fixed security vulnerability where you could read "no access" frequencies even if you were a normal user and not an admin Kyren223 2025-01-13 19:02:19 +02:00
  • 8f25e33d57 Implemented ctrl+a to select all in viminput and also a very scuffed pasting from system clipboard in insert mode Kyren223 2025-01-13 18:54:05 +02:00
  • ea579d00ef Forgot to commit core changes in last commit Kyren223 2025-01-13 18:41:36 +02:00
  • 0df41fc0ed Implemented frequency syncing client-side, removed the history mechanism for frequency swapping, this will add delay when swapping frequencies but it prevents issues when the swapping packet gets received as part of the propagation Kyren223 2025-01-13 18:39:48 +02:00
  • bad60b37d0 Added frequency propagation on the server-side and fixed a bug where permission 3 would be valid even though it's not Kyren223 2025-01-13 18:38:17 +02:00
  • c692883267 Implemented frequency list scrolling, along with g/G and ctrl+d/ctrl+u for moving to the start/end and half page down/up respectively Kyren223 2025-01-13 17:17:40 +02:00
  • a43858c740 Fixed i in frequency list not working Kyren223 2025-01-13 17:17:09 +02:00
  • 2a79887c15 Changed i in networkslist to a and i is now "copy id" for the selected network Kyren223 2025-01-12 18:55:27 +02:00
  • bff19b516e Fixed network positioning issues Kyren223 2025-01-12 17:57:54 +02:00
  • 1c09d173d7 Fixed bug where it wasn't possible to type n/i in popups Kyren223 2025-01-12 17:15:00 +02:00
  • f0365e5438 Removed debug prints Kyren223 2025-01-12 16:48:47 +02:00
  • 8cdd763ec1 Fixed a bunch of security issues with people not inside a server being able to read it and also fixed some other bugs and implemented propagation for members joining/leavings servers Kyren223 2025-01-12 16:46:07 +02:00
  • 2285afec99 Implemented message propagation for real-time live chat Kyren223 2025-01-10 20:13:31 +02:00
  • 3f2236077a Removed nested logs Kyren223 2025-01-10 18:27:48 +02:00
  • 297c8e7e17 Fixed gosec Kyren223 2025-01-10 18:22:17 +02:00
  • 38ddf2d0e2 Added a proper logs dir for server logs Kyren223 2025-01-10 18:19:05 +02:00
  • 1196c041f2 Changed website user to eko user Kyren223 2025-01-10 17:57:16 +02:00
  • a1d35ab5b5 Fixed gosec warning Kyren223 2025-01-10 17:48:55 +02:00
  • b79f100987 Fixed frequencies not updating properly migrations Kyren223 2025-01-10 17:43:07 +02:00
  • e829f852b4 Fixed crashes Kyren223 2025-01-10 17:37:49 +02:00
  • f0382c2f93 Fixed gateway issues and some other stuff Kyren223 2025-01-10 17:29:14 +02:00
  • c86d41fe66 Fixed chat client side Kyren223 2025-01-10 16:59:07 +02:00
  • 97ca4e2d70 Fixed network and frequency list on the client Kyren223 2025-01-10 16:49:03 +02:00
  • 4bff6ccf4e Removed set from networks info as it'll be redundant due to no longer keeping track of position Kyren223 2025-01-10 15:20:31 +02:00
  • b09a8fba64 Fixed everything on the server-side Kyren223 2025-01-09 19:14:05 +02:00
  • 936d3cf690 Added goose for migrations, refactored SQL schema, server and client are broken Kyren223 2025-01-09 17:28:46 +02:00
  • d0cb135161 Fixed target in CD workflow Kyren223 2025-01-09 17:26:15 +02:00
  • 6a9d72c7a5 Fixed go build Kyren223 2025-01-09 15:18:56 +02:00
  • b517a11771 Actually fixed gosec (it is apparently space sensitive yay) Kyren223 2025-01-09 15:13:31 +02:00
  • fa81da2f7e Fixed formatting Kyren223 2025-01-09 15:11:35 +02:00
  • 566980d1e2 Fixed gosec issues Kyren223 2025-01-09 15:09:44 +02:00
  • dde822c8e3 Fixed CI, found another accidental formatting issue Kyren223 2025-01-08 23:41:22 +02:00
  • cc8eef8eb8 Fixed CI, should deploy successfuly Kyren223 2025-01-08 23:39:25 +02:00
  • bfbb674697 Hopefully fixed CD, CI should still fail Kyren223 2025-01-08 23:37:47 +02:00
  • 75a86ef75c Forgot to remove needs Kyren223 2025-01-08 23:34:41 +02:00
  • fb0a6ba8b4 Trying to fix CD, broke CI on purpose to see if it fails Kyren223 2025-01-08 23:33:31 +02:00
  • 576adb547c Implemented CD Kyren223 2025-01-08 23:20:38 +02:00
  • dbea21d9c3 Fixed all gosec issues Kyren223 2025-01-07 19:05:58 +02:00
  • 4e2ca64319 Fixed all high and medium security issues from gosec Kyren223 2025-01-07 19:02:14 +02:00
  • 4c2672b497 Added gosec to CI, will fail Kyren223 2025-01-07 18:23:48 +02:00
  • 121feb261c Fixed linting issues, should now pass in CI Kyren223 2025-01-07 18:19:23 +02:00
  • 4234068c58 Added linting to CI, should fail Kyren223 2025-01-07 18:10:34 +02:00
  • f9f0f769f6 Fixed formatting, CI should pass Kyren223 2025-01-07 18:03:35 +02:00
  • 6e1b96900f Added formatting check to CI and broke formatting on purpose Kyren223 2025-01-07 17:53:24 +02:00
  • 8dcccbfaa4 Removed failing on purpose, test should now pass Kyren223 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 Kyren223 2025-01-07 17:21:02 +02:00
  • 740bb37620 Temporarily added CI to branches that trigger CI Kyren223 2025-01-07 16:42:25 +02:00
  • cd34911ce6 Testing if CI runs tests Kyren223 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 Kyren223 2025-01-06 19:06:47 +02:00
  • 14caa1959c Network deletion now propagates to all active connections that are in that network Kyren223 2025-01-06 18:31:27 +02:00
  • 17969fd39e Implemented deleting for networks on the client Kyren223 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 Kyren223 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 Kyren223 2025-01-06 17:34:47 +02:00
  • db57a31b08 Fixed bug where certain messages wouldn't get rendered Kyren223 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 Kyren223 2025-01-06 16:17:59 +02:00
  • 6be63e6df6 Refactored quite a bit and added the MembersInfo packet server-side Kyren223 2025-01-05 18:11:14 +02:00
  • 73935243e3 Fixed server so it compiles Kyren223 2025-01-04 19:09:23 +02:00
  • 614cc4d9da Implemented joining functionality Kyren223 2025-01-04 18:35:44 +02:00
  • feb8562dd0 Implmented Ui for network joining Kyren223 2025-01-04 16:59:44 +02:00
  • 1b15db0fe9 Fixed issues with frequencies (I think) Kyren223 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 Kyren223 2024-12-24 18:35:56 +02:00
  • d3d027f19e Fixed overflow in frequency list Kyren223 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 Kyren223 2024-12-24 17:56:26 +02:00
  • d4ca377a72 Made the message view more stateful by remembering where in the view the user was Kyren223 2024-12-24 17:52:01 +02:00
  • 0746f3de04 Selected message resets when focus is lost Kyren223 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 Kyren223 2024-12-24 17:17:59 +02:00
  • 7cf2bbd1b6 Users can no longer scroll beyond the highest message Kyren223 2024-12-24 17:10:58 +02:00
  • 6ca8b70e66 Fixed a bug where headers won't render as "selected" when you hover over them Kyren223 2024-12-24 16:45:52 +02:00
  • 54fb740184 Added ctrl+d/ctrl+u for scrolling up/down in messages view Kyren223 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 Kyren223 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 Kyren223 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 Kyren223 2024-12-23 18:48:45 +02:00
  • 8e5a560f98 Implemented basic scrolling, needs improvements Kyren223 2024-12-23 18:43:07 +02:00
  • 2b5b32fc47 Backup Kyren223 2024-12-23 18:07:41 +02:00
  • 25f6fbc476 Excess messages now truncate instead of overflow viewport height Kyren223 2024-12-23 16:51:33 +02:00
  • 8d1174a2e1 Implemented per-line selection in messages view Kyren223 2024-12-23 16:39:33 +02:00
  • 08f21ff857 Reimplemented message rendering by traversing backwards Kyren223 2024-12-23 15:17:08 +02:00
  • 3072e921d6 Commiting for backup Kyren223 2024-12-23 15:09:34 +02:00
  • 6837fb4515 Fixed server not compiling Kyren223 2024-12-22 15:58:32 +02:00
  • eb6156ff10 Refactored local config and added support for tab in insert mode in viminput Kyren223 2024-12-21 19:42:01 +02:00
  • e6237f5b12 Prevented deletion of frequency if it's the only one in the network Kyren223 2024-12-21 19:00:37 +02:00
  • e88c5f242d Implemented fetching existing messages when changing frequencies Kyren223 2024-12-21 18:29:29 +02:00
  • 3c35c3dbfa Fixed message-remembering issues and implemented non persistent "last frequency" per network Kyren223 2024-12-21 18:08:32 +02:00
  • 90c54591cc Implemented remembering messages in frequencies Kyren223 2024-12-21 16:54:43 +02:00
  • 4db087dbe4 Selected message automatically diselects itself when switching frequency Kyren223 2024-12-21 16:21:16 +02:00
  • cee4c74bf5 Implemented selecting a message (and changing the background to show which message) Kyren223 2024-12-20 18:38:40 +02:00
  • 1c3d456169 Implemented nice-looking messages Kyren223 2024-12-20 17:41:19 +02:00
  • bae7f78b9c Added support for basic display of messages Kyren223 2024-12-19 19:57:31 +02:00
  • 6d91f3f9af Implemented processing data Kyren223 2024-12-19 18:42:53 +02:00
  • ff032e5e07 Implemented client-side message sending Kyren223 2024-12-19 17:03:18 +02:00
  • f58c860d55 Added frame around viminput which includes a statusline Kyren223 2024-12-18 19:49:01 +02:00
  • 692e10d825 Fixed extra newline due to placeholder issues Kyren223 2024-12-18 18:48:02 +02:00
  • c2ca65580d Removed line decorations from viminput Kyren223 2024-12-18 18:21:50 +02:00
  • 438e887d6f Fixed motion counts only going up to 9 in viminput Kyren223 2024-12-18 18:10:56 +02:00
  • b50ef57f44 Implemented o motion for visual and visual line in viminput Kyren223 2024-12-18 17:59:13 +02:00
  • 9e3f12d290 Implemented support for placeholders to prompt the user to send a message (only if there is exactly 1 blank line) Kyren223 2024-12-18 17:51:21 +02:00
  • 6b13e0184d Fixed a bug where blank lines in visual or visual line mode won't be highlighted Kyren223 2024-12-18 17:45:37 +02:00
  • 86c1b7aa58 Implemented scrolling in viminput Kyren223 2024-12-18 17:04:27 +02:00