Commit Graph

12 Commits

Author SHA1 Message Date
Trim21
2a0d29c1f5 style: add new rule for imports (#785) 2024-08-13 22:31:39 +00:00
Jesse Chan
2c8c7a4f3d server: drop ajaxUtil and handle responses in each endpoint 2021-02-21 23:39:55 +08:00
Jesse Chan
6f7bca075c server: consolidate services null checks to middleware 2021-02-21 23:39:55 +08:00
Jesse Chan
80ffb24d8d API: torrents: schema validate add-urls and add-files endpoints
Those endpoints use extensive amount of user-provided properties
and will be frequently used by third party developers. With Node
15, unhandled promise rejections directly crash the server, as
such, it is safer to schema validate the request before processing
it.

This change also prepares the code paths for later change that adds
destination fallbacks.
2020-11-13 13:27:31 +08:00
Jesse Chan
8efad15d5b API: client: "throttle" means "Max"
There is no need for both. So use "Speed" for better clarity.

Also switch to B/s as that's more native for everything.
2020-11-08 23:45:51 +08:00
Jesse Chan
4c24f56260 API: client: remove connection test with new settings
This simply won't work as we now support multiple clients. Each
client needs its own clientGatewayService which can only be
created by the user config.

Thus, let the form update user config directly.
2020-11-03 00:39:45 +08:00
Jesse Chan
1f76f320c5 server: clientGatewayService: define interface 2020-10-17 13:44:06 +08:00
Jesse Chan
c0ddc55810 server: migrate setSpeedLimits and setTracker to clientGatewayService 2020-10-17 13:44:06 +08:00
Jesse Chan
b2f6fdad21 server: migrate client [get/set]Settings to clientGatewayService 2020-10-17 13:44:06 +08:00
Jesse Chan
cf08d68c92 auth, Users: initial preparation for multi client support
BREAKING CHANGE
2020-10-14 10:58:52 +08:00
Jesse Chan
79a7c9c6f0 server: migrate add torrents functions to clientGatewayService 2020-10-10 12:26:20 +08:00
Jesse Chan
b201946a7d server: routes: split feed monitor APIs to feed-monitor.ts 2020-09-30 18:27:21 +08:00