Commit Graph

21 Commits

Author SHA1 Message Date
Trim21
2a0d29c1f5 style: add new rule for imports (#785) 2024-08-13 22:31:39 +00:00
Trim21
5a0d2bec84 docs: cleanup jsdoc types (#651) 2023-11-29 07:39:57 +00:00
Jesse Chan
efdd620192 dependencies: bump (major)
TODO: drop the "const argv = argvObj as Record<string, any>;" hack

Refs: yargs/yargs#2175
2022-05-07 16:41:10 -07:00
Jesse Chan
e09accd696 server: drop databases before removing user 2022-05-01 14:55:50 -07:00
Jesse Chan
a94bbb4198 server: flatten directory structure a bit 2021-11-28 19:57:27 -08:00
Jesse Chan
a75498b110 server: isolate rTorrent specific functions 2020-10-17 13:24:14 +08:00
Jesse Chan
95cf01f598 server: migrate torrent details functions to TypeScript 2020-10-17 13:24:14 +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
61e6e79497 shared: types: move API types to api folder 2020-10-10 12:50:26 +08:00
Jesse Chan
7a687fb1be server: migrate setTorrentsTags and setTorrentContentsPriority to clientGatewayService 2020-10-10 12:33:28 +08:00
Jesse Chan
79a7c9c6f0 server: migrate add torrents functions to clientGatewayService 2020-10-10 12:26:20 +08:00
Jesse Chan
dbde60b35e server: migrate getDirectoryList to TypeScript 2020-10-07 19:46:24 +08:00
Jesse Chan
16465f4239 server: migrate method call configs to immutable arrays 2020-10-07 00:36:11 +08:00
Jesse Chan
8c69786c2e server: services: replace null checks with optional chaining 2020-10-06 19:52:32 +08:00
Jesse Chan
5e1c09153c feature: allow multi-torrent priority change 2020-10-04 21:28:29 +08:00
Jesse Chan
f5f8952df9 moveTorrents: get sourceBasePath and baseFileName in server
With these two properties, it is hard for third party to utilize API
to move torrents without retrieving torrent details first.

Plus, client-supplied paths and filenames can lead to arbitrary file
system access which is a security issue.

In conclusion, it doesn't make sense to let client to provide these
two properties.
2020-09-29 17:32:13 +08:00
Jesse Chan
912c66d497 server: migrate moveTorrents to clientGatewayService 2020-09-29 13:38:13 +08:00
Jesse Chan
69276b5fa4 server: migrate checkHash to clientGatewayService 2020-09-29 12:40:07 +08:00
Jesse Chan
97ead47fe9 server: migrate startTorrents and stopTorrents to clientGatewayService 2020-09-29 12:04:40 +08:00
Jesse Chan
ab42dae278 docs: improve documentation of delete torrents API 2020-09-28 00:01:37 +08:00
Jesse Chan
43b2d8fbbf server: services: migrate to TypeScript 2020-09-27 22:27:14 +08:00