Commit Graph

1246 Commits

Author SHA1 Message Date
DecDuck 4db9ebe66a fix(ws): fixed websocket authentication 2024-11-16 18:28:38 +11:00
DecDuck e4a8dbc67b feat(sessions): cleanup and raw accessors 2024-11-16 18:23:44 +11:00
DecDuck be52466426 feat(session): under the hood organisation and consolidation 2024-11-16 18:20:14 +11:00
DecDuck 38e0d087c2 fix: properly disconnect websockets from task handler 2024-11-16 17:27:27 +11:00
quexeky 2f245e56b6 chore(downloads): Ran cargo clippy & cargo fmt
Side note, I'm going to start using chore to declare these rather than refactor because I don't think that it actually qualifies

Signed-off-by: quexeky <git@quexeky.dev>
2024-11-16 17:05:24 +11:00
DecDuck 16ab7fbe3b feat: new ws handler 2024-11-16 17:03:52 +11:00
quexeky b24e106420 feat(downloads): Added AgentInterfaceData to get information about all downloads in queue
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-16 17:03:37 +11:00
DecDuck 1a884eae50 fix: admin invitation w/ system user 2024-11-16 17:03:04 +11:00
DecDuck fd69348f5e fix: split prisma schemas 2024-11-16 16:30:22 +11:00
DecDuck efc6f3267f refactor: rename admin socket session map 2024-11-16 16:27:38 +11:00
DecDuck 3731b3fcf4 refactor: split prisma schemas 2024-11-16 16:24:23 +11:00
DecDuck 7685db03a2 feat: introduction of 'system user' 2024-11-16 16:18:15 +11:00
DecDuck 2ace2eb844 refactor: more consistent naming for object handler 2024-11-16 16:11:20 +11:00
DecDuck c884a28bb5 feat(ui): smoother bar in admin task ui 2024-11-16 16:08:41 +11:00
DecDuck 046c9e6fd2 feat(ui): user widget now redirects to actual page 2024-11-16 16:08:23 +11:00
DecDuck 7442287bf8 feat(registration): require lowercase usernames 2024-11-16 16:08:02 +11:00
quexeky 18c7a9b2bc docs(download manager): Added description on how the DownloadManager works
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-13 22:17:30 +11:00
quexeky 6428611689 style(downloads): Fixing some references to "id" vs "game_id"
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-13 21:55:28 +11:00
quexeky f508391b6d refactor(downloads): Ran cargo fmt
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-13 21:28:24 +11:00
quexeky cee86b43ed refactor(downloads): Ran cargo clippy & moved DownloadManagerInterface
Created file "download_manager_interface.rs" to contain the DownloadManagerInterface

Signed-off-by: quexeky <git@quexeky.dev>
2024-11-13 21:05:25 +11:00
quexeky 928b60483a feat(downloads): Added Download Manager
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-13 20:38:00 +11:00
DecDuck 86f77daa01 chore(downloads): partial download manager 2024-11-12 09:06:28 +11:00
quexeky aa17db3d42 refactor(downloads): Reordered DownloadThreadControlFlag to agree with From<bool>
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-12 09:03:36 +11:00
quexeky f8ce05b9c2 fix(downloads): Chunk counting logic error
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-12 09:02:58 +11:00
quexeky 92ff527d50 refactor(downloads): ran cargo clippy & cargo fmt
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-11 18:27:39 +11:00
quexeky e601bbc26b refactor: Removed unnecessary dependencies
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-11 18:25:26 +11:00
quexeky 281f7844fd feat(downloads): Separated chunk updates into individual counters
Also added a From<bool> for DownloadThreadControlFlag because I accidentally was calling the wrong one before and had meant to add it anyway

Signed-off-by: quexeky <git@quexeky.dev>
2024-11-11 18:07:45 +11:00
quexeky 97f1db9aa1 feat(downloads): Added DownloadThreadControl struct
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-11 10:05:49 +11:00
quexeky 628898ec23 feat(downloads): Convert DownloadThreadControlFlag to AtomicBool
Also ran cargo fmt & cargo clipy

Signed-off-by: quexeky <git@quexeky.dev>
2024-11-11 09:39:25 +11:00
quexeky 1443d7f605 refactor: Created file settings.rs
Add constant values here to have a central management point for any relevant constants

Signed-off-by: quexeky <git@quexeky.dev>
2024-11-11 09:11:46 +11:00
quexeky d4c3bb08a1 refactor(downloads): Convert DOWNLOAD_MAX_THREADS to const
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-11 07:58:49 +11:00
DecDuck 2a83814f07 fix(download dir): fix logic error in detecting dir 2024-11-10 22:31:11 +11:00
DecDuck bc6aabc58d feat(downloads): reduce scope of download agent
due to a miscommunication, the scope of the download agent has grown too
much. this commit reduces that scopes, and intends for a lot of the
heavy lifting to be done by the soon-to-be-implemented download manager.
2024-11-10 22:25:54 +11:00
DecDuck 24fcc694d2 feat: content length header for chunk downloads 2024-11-10 22:14:01 +11:00
quexeky 74b8ed39d1 refactor: Ran cargo clippy & cargo fmt
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-10 13:21:37 +11:00
quexeky 3258a3d709 feat(library): Added option to change root directory
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-10 13:18:28 +11:00
quexeky 2f506a2068 refactor(database): Convert DATA_ROOT_DIR to Mutex
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-09 22:44:44 +11:00
quexeky 4aadb77e87 feat(downloads): Added function to take and set any game state
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-09 21:26:44 +11:00
quexeky f80bbe1b0e feat(downloads): Generic function to set download state
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-09 20:15:04 +11:00
quexeky e7169dd1b1 style(downloads): Added GAME_PAUSE_CHECK_INTERVAL value
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-09 20:00:05 +11:00
quexeky e288f2472b refactor: Cleaning up downloads playing and pausing
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-09 19:57:53 +11:00
quexeky da1f39c061 feat(downloads): Pausing and resuming game downloads
Signed-off-by: quexeky <git@quexeky.dev>
2024-11-09 19:55:36 +11:00
DecDuck 4c727a9cec fix(client reg): prisma create footprint 2024-11-09 17:25:35 +11:00
DecDuck 7192164f8c fix(admin library): results are returned alphabetically 2024-11-08 21:31:22 +11:00
DecDuck 73d70179a7 feat(game page): more subtle design improvements 2024-11-08 21:23:31 +11:00
DecDuck 8851a62220 feat(game page): slightly improved game page 2024-11-08 20:59:17 +11:00
DecDuck b5b31494d7 fix(invitations): fix types 2024-11-08 20:44:38 +11:00
DecDuck 28a965a6f5 feat(invitations): completed admin UI, with minor changes to backend 2024-11-07 23:23:49 +11:00
DecDuck 023f8bcbb2 fix(invitations): fix expires requirement in the admin endpoint 2024-11-07 20:07:53 +11:00
DecDuck e9a19ecb46 chore(invitations): add expires field 2024-11-07 19:07:05 +11:00