Commit Graph

66 Commits

Author SHA1 Message Date
rootdarkarchon
b2276a1883 Client rework for API change and paradigm shift (#39)
* most of the groups refactoring on client

* register OnMethods for group stuff

* start implementing client (still pretty broken)

* finish implementing new api first iteration

* idk rework everything for pair shit (still WIP); goal is to remove PairedClients and GroupPairClients from ApiController

* move everything to PairManager, remove dictionaries from APiController

* remove admin stuff from client, cleanup

* adjust reconnection handling, add new settings, todo still to remove access from old stuff that's marked obsolete from config

* add back adding servers, fix intro ui

* fix obsolete calls

* adjust config namespace

* add UI for setting animation/sound permissions to syncshells

* add ConfigurationService to hot reload config on change from external

* move transient data cache to configuration

* add deleting service to ui

* fix saving of transient resources

* fix group pair user assignments

* halt scanner when penumbra inactive, add visible/online/offline split to individual pairs and tags

* add presence to syncshell ui

* move fullpause from config to server config

* fixes in code style

* more codestyle

* show info icon on player in shells, don't show icon when no changes from default state are made, add online notifs

* fixes to intro UI

---------

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2023-01-29 15:13:53 +01:00
rootdarkarchon
05aa350c34 fix queue cancellation 2023-01-22 00:37:41 +01:00
Stanley Dimant
523135c5b2 bump version and make ct not optional 2023-01-18 15:09:36 +01:00
Stanley Dimant
6c3716516e Merge branch 'main' of https://github.com/Penumbra-Sync/client 2023-01-18 15:06:26 +01:00
Stanley Dimant
8357eb350e fix SendRequestAsync 2023-01-18 15:06:20 +01:00
rootdarkarchon
fd986012a4 bump version 2023-01-18 11:41:23 +01:00
Stanley Dimant
f8ca9fed67 add a check for queue status to avoid hanging downloads 2023-01-18 11:04:21 +01:00
rootdarkarchon
8c2f17b75f add more debugging info 2023-01-17 13:16:24 +01:00
rootdarkarchon
eb42079e85 move Path.GetTempFIleName() to try catch 2023-01-17 01:30:37 +01:00
rootdarkarchon
8913798870 move GetTempFileName into try catch 2023-01-16 22:59:46 +01:00
rootdarkarchon
5a16a15e8b Download rework (#36)
* handle download ready from signalr

* add cancellation to the server

* adjust queue for removal and cancellation

* adjust api to main

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2023-01-15 16:00:10 +01:00
rootdarkarchon
f5f9b9c6fc bump version, increase timespan for re-checking queue 2023-01-15 01:41:17 +01:00
rootdarkarchon
099ac2b3a1 Update for 6.3 and change to File Service Queue (#34)
* add request queue processing on clientside, switch to net7

* reuse httpclient

* dispose and renew httpclient on building connection

* add handling of QueueRequestDto to downloads

* group download by host and port

* refactor SendAsync to SendRequestAsync for readability

* add holding ctrl before clearing cache, add tooltip

* update pathing

* fixes to api usage in client

* fix rendermodel offsets

* fixes for downloads

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2023-01-11 14:41:13 +01:00
rootdarkarchon
964b29b87e group downloads by host, download only one file per host at once 2023-01-08 00:48:18 +01:00
rootdarkarchon
f09cd8264f reverify server existing file hashes 2023-01-04 16:12:30 +01:00
rootdarkarchon
e2931c73ed Switch to JWT authentication (#32)
* switch to jwt authentication

* update api to main/jwt

* bump version

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2023-01-02 17:08:56 +01:00
rootdarkarchon
6aace54910 sequentialize file uploads, bump version 2022-12-23 01:53:01 +01:00
rootdarkarchon
ffd896168c remove Penumbra dependency and use nuget, minor internal refactoring of structs, more resilent downloads 2022-12-18 13:00:34 +01:00
rootdarkarchon
a807a874f0 wrap File.Delete on catch 2022-12-11 20:44:42 +01:00
rootdarkarchon
fc4cee1a3a delete empty files on failed downloads 2022-12-11 20:42:50 +01:00
rootdarkarchon
189ec03173 reduce linq usage for download transferred bytes 2022-12-11 12:59:26 +01:00
rootdarkarchon
189da9201b change download handling 2022-12-08 17:19:24 +01:00
rootdarkarchon
fafb103ce2 remove requirement to hold ctrl, remove puzzle 2022-11-26 22:19:09 +01:00
rootdarkarchon
14e5b5bb21 fix cleanup of outdated files in filescanner 2022-11-15 20:55:38 +01:00
rootdarkarchon
605c1d3774 fixes uploads cancelling early 2022-11-03 20:45:44 +01:00
Stanley Dimant
5694eb7d08 fixes to upload logic 2022-11-03 10:16:58 +01:00
Stanley Dimant
db6cd1bfb8 fixes for cache 2022-10-22 19:05:26 +02:00
rootdarkarchon
f9cf26ed69 migrate to strong api calls (#29)
* migrate to strong api calls

* set last added user to null on changing notes popup setting
2022-10-08 14:35:30 +02:00
Stanley Dimant
260c4a48ee add analyzers and api 2022-10-03 15:58:51 +02:00
Stanley Dimant
ac6c46390c add api to mare, change all to file scoped namespace 2022-09-29 15:52:33 +02:00
Stanley Dimant
ff4079a16d remove double invoke 2022-09-28 17:23:29 +02:00
Stanley Dimant
1fee097481 small fixes 2022-09-28 17:03:21 +02:00
Stanley Dimant
c2e92c094c remove database, use in-memory 2022-09-28 15:44:29 +02:00
Stanley Dimant
afb1cf1429 fix issue when penumbra mod folder contains a part of the path of cache folder 2022-09-25 20:51:03 +02:00
Stanley Dimant
ea411811e4 fixes uploads and error during of collection enumeration 2022-09-25 15:58:03 +02:00
Stanley Dimant
0d7e173a97 add periodic file scanner, parallelize downloads, fix transient files being readded when not necessary, fix disposal of players on plugin shutdown 2022-09-25 14:38:06 +02:00
Stanley Dimant
6bf16e1d56 minor fixes 2022-09-09 17:42:21 +02:00
Stanley Dimant
7265dab8a7 change downloads to concurrentdictionary 2022-09-06 13:39:33 +02:00
Stanley Dimant
ddb762c698 add fileswaps first test 2022-09-04 21:17:52 +02:00
Stanley Dimant
ce6764cbf8 add some locking around modifiedfiles 2022-09-03 17:57:09 +02:00
Stanley Dimant
61d6458707 fix imports and update to api11 2022-08-19 11:35:43 +02:00
Stanley Dimant
2a2b0c3b57 preliminary update client for new server download url stuff 2022-08-15 17:58:09 +02:00
Stanley Dimant
110dbd7bdf do not use sendfiles when not necessary 2022-08-13 14:50:10 +02:00
thattuys
f718ebef9b Update ApIController.Functions.Files.cs
Only replace the first occurrence of "ws" in the Uri string
2022-08-02 19:36:28 -04:00
thattuys
04afc4db02 Update ApIController.Functions.Files.cs 2022-08-02 19:22:22 -04:00
thattuys
143c0b1e81 Support downloading from http
Add http support to downloads(ws:// connections and uploads already work, this is just fixing the downloads)
2022-08-02 19:12:41 -04:00
Stanley Dimant
42f598b9d5 add intermediate version to allow usage for now 2022-08-01 11:20:22 +02:00
Stanley Dimant
4ca2419f46 fix for crashes on unloading mare while downloading files 2022-07-29 12:33:31 +02:00
Stanley Dimant
cf6b89454b maybe fix issue with char data being accidentally yeeted without reason and sent empty 2022-07-29 01:31:36 +02:00
Stanley Dimant
fc18b19a4b use static files to download from service 2022-07-28 18:06:45 +02:00