Commit Graph

101 Commits

Author SHA1 Message Date
JustArchi
0e29aaf20f Mark /Api/WWW/Send as obsolete 2021-03-08 22:33:26 +01:00
JustArchi
a4310d28f7 Add /Api/WWW/GitHub/Wiki/History endpoint 2021-03-08 22:27:03 +01:00
JustArchi
1f3a064dc0 Add /Api/WWW/GitHub/Wiki/Page endpoint 2021-03-08 21:46:12 +01:00
JustArchi
210e89be8e Remove /Api/WWW/Directory/{directory} endpoint
No longer used by ASF-ui
2021-03-08 20:13:29 +01:00
JustArchi
e83597db7a Misc 2021-03-08 20:04:07 +01:00
JustArchi
4700ed2706 Further code cleanup 2021-01-04 17:42:31 +01:00
JustArchi
45a5fec95a Happy 2021
And let's hope it'll be better than 2020
2021-01-03 22:24:22 +01:00
JustArchi
626fa7f059 Use the cancellation token logic also with sends 2020-12-16 12:47:46 +01:00
JustArchi
79a9f97157 Add two more exceptions to NLogGet
Even with cancellation token, it seems that it's not always possible to abort the connection in the clean way, pointless to throw on them since there is nothing else we can do.
2020-12-16 12:11:21 +01:00
JustArchi
c140b302eb Correct CI
I forgot this is a struct, not a class
2020-12-16 10:21:16 +01:00
JustArchi
58ae29d1eb Small fixes after #2087
- Add guard against cancellationToken being null
- Use cancellationToken for all webSocket operations
- Use no cancellation token for semaphore release
- Log TaskCanceledException on user-debugging level
2020-12-16 10:18:05 +01:00
Bartosz Chrostowski
3e2c7dcf2c Add cancellation token to web socket (#2087)
* Add cancelation token to web socket

* Add catching cancelation exception from web scoket
2020-12-16 10:03:13 +01:00
JustArchi
9d2bb9939d Misc 2020-12-11 23:00:54 +01:00
JustArchi
6265aa7271 Misc code improvements 2020-12-05 20:27:10 +01:00
JustArchi
82ff7762f2 Convert possible substring calls to string ranges 2020-12-02 23:45:20 +01:00
JustArchi
ba702a1dae Misc 2020-11-28 23:18:23 +01:00
JustArchi
e82560259b Final code cleanup 2020-11-14 22:37:00 +01:00
JustArchi
47b42d6fc0 More code cleanups 2020-11-11 19:51:52 +01:00
JustArchi
60ae4977da Initial code cleanup 2020-11-11 16:51:31 +01:00
JustArchi
f99d296687 Closes #2014 2020-11-04 23:39:57 +01:00
JustArchi
fe0df93176 Expose CanUpdate property in ASF API 2020-10-18 20:29:56 +02:00
JustArchi
deb886066b Misc 2020-10-14 14:24:53 +02:00
JustArchi
42f388e370 Closes #1950 2020-09-05 12:51:03 +02:00
JustArchi
b3d476dea4 Round 2 of nullable checks 2020-08-23 20:45:24 +02:00
Łukasz Domeradzki
9fc1ea65a5 Closes #1543 (#1944)
* Start working on nullable checks

help me

* Update GlobalConfig.cs

* Finish initial fixup round

* nullability code review
2020-08-22 21:41:01 +02:00
JustArchi
e21994d54c Remove deprecated endpoints 2020-08-20 16:11:10 +02:00
JustArchi
1763a109c4 Move new handle under /Confirmations root 2020-08-10 14:57:04 +02:00
JustArchi
6b241d7439 Maintain backwards compatibility 2020-08-10 14:02:28 +02:00
JustArchi
40531e9554 Misc
damn sneaky boi
2020-08-10 13:25:46 +02:00
JustArchi
7a5a9c8a51 Enhance TwoFactorAuthentication/Confirmations IPC API by allowing to specify additional parameters 2020-08-10 13:24:12 +02:00
JustArchi
5246b2b82d Always serialize default values in API case, and never in save case 2020-06-25 14:05:39 +02:00
JustArchi
69936d55b6 Add GET /Api/Plugins endpoint,
In regards to https://github.com/JustArchiNET/ASF-ui/issues/1015
2020-06-24 20:54:41 +02:00
JustArchi
a5d85a211d Add /Api/{Bots}/Input endpoint
Makes https://github.com/JustArchiNET/ASF-ui/issues/888 (and similar actions) possible
2020-06-03 19:26:59 +02:00
JustArchi
4b4b323164 R# code improvements 2020-04-18 16:54:57 +02:00
JustArchi
0370168b02 Happy new year 2020-02-01 23:33:35 +01:00
JustArchi
b416e30612 Misc 2019-10-05 16:37:30 +02:00
JustArchi
012290e61d Move to version string also for /Api/ASF/Update 2019-10-05 15:40:32 +02:00
JustArchi
067293eeb5 Start with .NET Core 3.0 code enhancements 2019-09-27 20:43:11 +02:00
JustArchi
ba30ac8e85 Kill deprecated commands API endpoint 2019-08-01 12:39:34 +02:00
JustArchi
498fb2cd51 Misc 2019-07-29 17:04:16 +02:00
JustArchi
96ccb331dc Rewrite GitHub releases for ASF-ui
@JustArchiNET/asf-ui-dev Summary of changes:

Old:
- GET GitHub/Releases is rip (rewritten)
- GET GitHub/Releases/{version:required} is rip (renamed)

New:
- GET GitHub/Release, returns the most recent release (can be pre, can be stable)
- GET GitHub/Release/{version:required}, works like before, but also accepts "latest" as version for fetching latest stable release.

Expected usage:
- GET GitHub/Release for fetching most recent release
- If release equals user release, don't do anything more and save requests, display changelog
- Check if the release you fetched is stable, if yes, skip the extra request, otherwise, GET GitHub/Release/latest for latest stable.
- If stable release equals user's release, don't do anything more and save request, show both changelogs (pre and stable)
- Otherwise, decide if you want to also GET GitHub/Release/{userVersion} for that specific release.

Adapt appropriately for usage (I'd recommend to check if user has enabled pre-releases in the first place, because if he's on stable channel then likely you shouldn't display him pre-release changelogs at all, and skip the first request).

If in doubt, check swagger doc.
2019-07-29 17:01:09 +02:00
JustArchi
178ca64cfa Implement non-blocking IO saving for databases 2019-07-25 17:09:20 +02:00
JustArchi
697952eded Closes #1314 2019-07-06 17:56:11 +02:00
JustArchi
513b821b60 IPC controllers cleanup 2019-04-11 22:47:21 +02:00
JustArchi
e55e668530 Misc 2019-04-02 20:48:06 +02:00
JustArchi
4920e28ac9 Misc string comparison optimizations 2019-04-02 20:43:17 +02:00
JustArchi
19891c3f59 Respect additional config properties in APIs 2019-03-08 16:24:49 +01:00
JustArchi
65968b4302 Respect custom BotsComparer when navigating through bot names 2019-02-23 08:40:56 +01:00
JustArchi
57272c2b31 Misc 2019-02-23 05:02:22 +01:00
JustArchi
5a55a7860b Disallow empty botNames during rename 2019-02-19 00:10:42 +01:00