Commit Graph

1882 Commits

Author SHA1 Message Date
chint95
ba23f0166e i18n: new translations for German (#88) 2020-11-15 21:48:00 +08:00
Jesse Chan
6351325d12 README: revise Configuration section 2020-11-15 21:39:35 +08:00
Jesse Chan
ba3478eafd README: move rTorrent info from Pre-Requisites to Troubleshooting 2020-11-15 21:13:50 +08:00
Jesse Chan
2d77aee64c run, scripts: remove unused files 2020-11-15 20:45:37 +08:00
Jesse Chan
9ec5aeff30 README: switch to SVG logo 2020-11-15 20:41:23 +08:00
Jesse Chan
150572ea38 client: remove unused typed-css-modules-loader 2020-11-15 20:41:23 +08:00
Jesse Chan
7b2bf411ee client: remove unused svg component generator 2020-11-15 20:08:40 +08:00
Jesse Chan
3b07fdf9fa ProgressBar, Dropdown, TagSelect, TextboxRepeater: migrate to FC 2020-11-15 20:07:56 +08:00
Jesse Chan
cd32716a06 AlertStore: run scheduled close in action 2020-11-15 16:10:49 +08:00
Jesse Chan
8fa5efbbfc Textbox: fix wrong ?? operator 2020-11-15 00:11:51 +08:00
Jesse Chan
ae83c1d88e ContextMenu: don't react to right click on menu item 2020-11-14 23:08:10 +08:00
Jesse Chan
5ce5b950e4 ContextMenu: don't pop up the browser menu on right click while open 2020-11-14 23:05:17 +08:00
Jesse Chan
5ed2f3533e i18n: new placeholders (#87) 2020-11-14 22:56:16 +08:00
Jesse Chan
672ab25160 TorrentListRow: allow a small shift of finger in long press detection 2020-11-14 22:44:57 +08:00
Jesse Chan
f0f08abca4 TorrentListRow: only display torrent details on consecutive touches 2020-11-14 22:43:05 +08:00
Jesse Chan
ac01af496a TableHeading, Textbox: replace setRef with forwardRef 2020-11-14 22:19:07 +08:00
Jesse Chan
7f91d3f244 client: simplify ContextMenu components 2020-11-14 20:53:53 +08:00
Jesse Chan
492d12153c TorrentListRow: handle torrent selection with touch events 2020-11-14 15:57:15 +08:00
Jesse Chan
ca9890a69c schema: config: make floodServerProxy and ssl properties optional 2020-11-14 15:31:59 +08:00
Jesse Chan
ed98e210f4 server: schema validate configurations
Unfortunately there are still many people who prefer static config
file. As such, schema validate the configurations to ensure that
the failure happens loud and early when the config.js is broken.

Also enforces that the length of secret must be larger than 30 as
the JWT secret can be brute forced locally without interaction with
the server.

This ensures that we always have proper configurations and avoids
unnecessary and bad defensive programming practices.
2020-11-14 15:20:23 +08:00
Jesse Chan
ac11f3190b server: rTorrent: ensure the temporary file is world-readable
This allows rTorrent to read the file when the Flood and rTorrent
are running in different users and when the system has a restrictive
default umask.

Bug: #86
2020-11-14 01:33:07 +08:00
Jesse Chan
006512c013 MoveTorrentsModal, RemoveTorrentsModal: fix submission
Fixes: e6181ef2c9
2020-11-14 01:03:52 +08:00
Jesse Chan
9038177630 feature: store the last used "Add Torrents" tab
Bug: Flood-UI/flood#329
2020-11-14 00:28:53 +08:00
Jesse Chan
5675bad221 RemoveTorrentsModal: convert to Functional Component 2020-11-14 00:12:03 +08:00
Jesse Chan
96315e4935 RemoveTorrentsModal: move delete data toggle to the action row 2020-11-13 23:54:55 +08:00
Jesse Chan
ee946f4932 ConfirmModal, RemoveTorrentsModal: remove center alignment
This is out-of-line.
2020-11-13 23:52:34 +08:00
Jesse Chan
e0d156fa4c FileDropzone: fix add multi file at once 2020-11-13 23:39:12 +08:00
Jesse Chan
7a14bd2e19 client: simplify AlertStore and fix "error" alerts 2020-11-13 23:33:53 +08:00
Jesse Chan
e6181ef2c9 client: convert more components to Functional Component 2020-11-13 23:09:47 +08:00
Jesse Chan
3380c701e2 dependencies: bump (minor) 2020-11-13 13:28:11 +08:00
Jesse Chan
aeefd6954d server: allow fallback to default or last destination 2020-11-13 13:28:11 +08:00
Jesse Chan
7542ad51e1 client: convert "add torrents" modals to Functional Component 2020-11-13 13:28:11 +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
7abeede3c6 server: tests: fix wrong endpoint in add-files test 2020-11-13 12:02:46 +08:00
chint95
a738b37d71 i18n: new translations for German (#84) 2020-11-12 12:06:55 +08:00
T-z3P
51ebf7339e i18n: new translations for Romanian (#84) 2020-11-12 12:06:55 +08:00
Jesse Chan
aa5339d9bd server: ensure WebAssembly support early in the process 2020-11-12 11:43:53 +08:00
Jesse Chan
4ab66d310e server: switch to hash-wasm impl of argon2 2020-11-12 11:30:27 +08:00
Jesse Chan
20172fe2a4 flood: 4.0.2 2020-11-11 23:55:07 +08:00
chint95
ecd459bd4f i18n: new translations for German (#82) 2020-11-11 23:53:20 +08:00
T-z3P
aa9ccb6961 i18n: new translations for Romanian (#82) 2020-11-11 23:53:20 +08:00
Jesse Chan
e556b4a198 flood: 4.0.1 2020-11-10 21:18:56 +08:00
Jesse Chan
0d4a60f636 NotificationsButton: re-fetch notification only when count > 0 2020-11-10 20:56:18 +08:00
Jesse Chan
971a54390f notificationService: emit update only after change applied 2020-11-10 20:41:15 +08:00
Jesse Chan
00504393f6 FloodActions: do not fetchNotifications after clearNotifications
This avoids race between state changes. Server should be trusted
and assumed to have done the job.
2020-11-10 19:37:51 +08:00
Jesse Chan
c21af9ab37 NotificationStore: make hasNotification a computed property 2020-11-10 19:28:56 +08:00
Jesse Chan
033515a9f2 NotificationsButton: dismiss tooltip before clear request
Otherwise, clear request will trigger handleNotificationCountChange
and fetch notifications again unnecessarily right before clearAll.
2020-11-10 19:00:51 +08:00
Jesse Chan
7221312e3a NotificationStore: also reset notificationCount when clearAll 2020-11-10 18:50:55 +08:00
Jesse Chan
120e7527bb dependencies: bump (minor) 2020-11-10 18:22:24 +08:00
Jesse Chan
ab6b9814ba CI: revise release workflow 2020-11-09 17:37:18 +08:00