Chocobo1
2e97311147
Unify translation files loading action
...
Since it is possible alternative WebUI could be coded in languages other than English,
WebUI must be able to load user-provided webui_en.qm.
At least one translated string must exist in order to generate an usable .qm file.
2018-12-24 18:19:28 +02:00
sledgehammer999
93365d3b20
Update WebUI .ts files
2018-12-24 18:19:11 +02:00
Chocobo1
9380209afb
Revise CSP header
...
The majority of the CSP is tuned for built-in WebUI, it may not be
suitable for alternative UI.
Also add QLatin1String to strings. This code path is called repeatedly,
it is worth adding QLatin1String to squeeze out the last bit of
performance.
2018-12-17 00:49:07 +02:00
Chocobo1
be2895ac6f
Enforce referrer-policy in WebUI
...
This stops leaking private data to other websites via Referrer header.
2018-12-17 00:49:06 +02:00
Thomas Piccirello
e26d4642b8
Add torrent name filtering to WebUI
...
Closes #721
2018-12-17 00:49:05 +02:00
Thomas Piccirello
f470972bd4
Send numeric status without translation
2018-12-17 00:49:04 +02:00
Thomas Piccirello
e20dbe34a4
Simplify map initialization
2018-12-17 00:49:01 +02:00
Thomas Piccirello
86bde47a06
Add WebUI Trackers context menu
2018-12-17 00:49:00 +02:00
Thomas Piccirello
e273c777c7
Add DHT, PeX, and LSD to WebUI Tracker list
2018-12-17 00:48:59 +02:00
Thomas Piccirello
17845c6b25
Add additional Tracker columns to WebUI
2018-12-17 00:48:58 +02:00
Thomas Piccirello
27827ce16a
Use const where appropriate
2018-12-17 00:48:57 +02:00
sledgehammer999
73ceee52f8
Bump Web API version
2018-12-17 00:48:54 +02:00
Thomas Piccirello
86cce76e9d
Fix display bugs in WebUI Files tab. Remove <IE9 support
...
Priority select boxes would frequently go blank due to an unexpected priority value. On first load, the torrent-scoped file checkbox's state was inconsistent with the state of the torrent's files.
2018-12-17 00:48:52 +02:00
Thomas Piccirello
3358fd8e91
Fix incorrect priority value sent from WebUI
...
Closes #9070 .
2018-12-17 00:48:51 +02:00
Thomas Piccirello
120965f823
Set priority for multiple files in one WebAPI request
...
Closes #6259 .
2018-12-17 00:48:50 +02:00
Thomas Piccirello
a2d8e84e83
Match WebUI Peers table column order to GUI
2018-12-17 00:48:47 +02:00
Thomas Piccirello
2f0646e7f0
Fetch data less frequently when torrents tab isn't visible
2018-12-17 00:41:28 +02:00
Thomas Piccirello
1a8a6dcef7
Add Search tab to WebUI
...
Closes #859 , #8107 .
2018-12-17 00:41:27 +02:00
Thomas Piccirello
990f961126
Allow tables to be added without a parent panel
2018-12-17 00:41:26 +02:00
Thomas Piccirello
06f04dea19
Simplify implementation
2018-12-17 00:41:25 +02:00
Thomas Piccirello
8eced2ef1f
Add ability to pass urls to the webui download page
2018-12-17 00:41:24 +02:00
Tom Piccirello
1e486ea92e
Fix JavaScript error
...
Fixes a JavaScript error caused by the element lookup returning null
2018-12-17 00:41:22 +02:00
Thomas Piccirello
b47f38675e
Disallow setting a blank alternative WebUI location
2018-12-17 00:41:21 +02:00
Thomas Piccirello
864f3393a0
Add slow torrent options
2018-12-17 00:41:20 +02:00
Thomas Piccirello
cebef74326
Add "Use alternative Web UI" option
2018-12-17 00:41:19 +02:00
Thomas Piccirello
e257b35cac
Add "Apply rate limit to peers on LAN" option
2018-12-17 00:41:17 +02:00
Thomas Piccirello
1f33991e4b
Add email "From" option
2018-12-17 00:41:16 +02:00
Thomas Piccirello
794053f212
Set WebUI download options using set preferences
...
"Start torrent" and "Create subfolder" are now set depending on the user's set preferences, which matches the behavior exhibited by the GUI.
2018-12-17 00:41:14 +02:00
Thomas Piccirello
3a130e1f74
Show list of categories on WebUI download page
2018-12-17 00:41:13 +02:00
Thomas Piccirello
3423f93230
Hide WebUI text input for custom monitor save locations
2018-12-17 00:41:12 +02:00
Thomas Piccirello
2219167253
Add "When adding a torrent" options
2018-12-17 00:41:10 +02:00
Thomas Piccirello
a0a32b89a6
Add WebUI Auto TMM options
2018-12-17 00:41:08 +02:00
Thomas Piccirello
59162bf426
Replace all line breaks and fix legend code style.
2018-12-17 00:41:07 +02:00
Thomas Piccirello
dfd148f55f
Add speed limit icons to WebUI Speed options
2018-12-17 00:41:05 +02:00
Thomas Piccirello
3af720b3bc
Add WebUI Random port button and proxy unencrypted password notice
2018-12-17 00:41:04 +02:00
Thomas Piccirello
11240d0837
Replace WebUI Options fixed-width labels
...
This allows the labels to auto-expand based on the language used, and also removes unnecessary whitespace. Additionally, this results in a look more consistent with the GUI which right-aligns labels.
2018-12-17 00:40:53 +02:00
Thomas Piccirello
e64fd9c544
Reorder WebUI options to match GUI
2018-12-17 00:28:35 +02:00
thalieht
bd4d2fa424
Combine qAsConst() with copyAsConst() to asConst()
2018-12-17 00:28:33 +02:00
thalieht
e2ee928017
Convert all foreach() to range-based for()
2018-12-17 00:28:32 +02:00
Thomas Piccirello
f0a50424be
Allow WebUI sidebar to be collapsed
2018-12-17 00:28:18 +02:00
Thomas Piccirello
aded9afc0e
Show ellipsis when WebUI sidebar is too narrow
2018-12-17 00:28:17 +02:00
Tom Piccirello
7f2a01dcd6
Fix WebUI bug on override of Start Download option
...
Disabled form values aren't submitted, causing the add_paused value not to be sent when Start Torrent was checked. qBittorrent would then fall back to the global Start Download preference.
Closes #9855 .
2018-12-17 00:28:15 +02:00
Chocobo1
fef0e70c9f
Fix missing words in WebUI
...
This is because Qt translator returns empty string when the translation
is not provided, now we fallback to the original string from source code.
Closes #9868 .
2018-12-17 00:28:14 +02:00
Thomas Piccirello
9cc112aa4e
Add SameSite attribute to WebUI session cookie
...
This attribute prevents the cookie from being submitted on any cross-site request, strongly limiting CSRF.
Closes #9877 .
2018-12-17 00:28:14 +02:00
Chocobo1
44d4d41365
Put WebUI security related options into a groupbox
2018-12-17 00:28:13 +02:00
Chocobo1
a21c386dbf
Add option for WebUI Host header validation
...
Closes #9743 .
2018-12-17 00:28:12 +02:00
Thomas Piccirello
1c4139906a
Show icon in WebUI sorted column
2018-12-17 00:28:11 +02:00
Chocobo1
b8fcc1fed2
Fix divide-by-zero crash
...
Previously here was using a cheap method to avoid divisor becoming < 0, but from
the crash stacktrace it seems this is not enough, now the divisor is properly
clamped to have 1 as the minimum.
Also it will now display "Unknown" for invalid calculation results.
Closes #9857 .
2018-11-19 01:19:10 +02:00
Chocobo1
780ece0c25
Remove speed limit checkbox in Options dialog
...
This unifies speed limit UI elements throughout the program.
2018-11-14 23:39:57 +02:00
Chocobo1
d4a4b02cf6
Fix MSVC warning C4804
...
Full message of the warning:
webui\api\searchcontroller.cpp(54): warning C4804: '>': unsafe use of type 'bool'
in operation
2018-11-14 23:39:57 +02:00