Thomas Piccirello
19ccd8c7d3
Add "When adding a torrent" options
2018-12-07 00:55:29 -05:00
Thomas Piccirello
d05cf47169
Add WebUI Auto TMM options
2018-12-07 00:55:29 -05:00
Thomas Piccirello
bf4df54fb8
Replace all line breaks and fix legend code style.
2018-12-07 00:55:29 -05:00
Thomas Piccirello
127e4acb24
Add speed limit icons to WebUI Speed options
2018-12-07 00:55:29 -05:00
Thomas Piccirello
b9229babfc
Add WebUI Random port button and proxy unencrypted password notice
2018-12-07 00:55:29 -05:00
Thomas Piccirello
66e3be1579
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-07 00:55:29 -05:00
Thomas Piccirello
99ca872011
Reorder WebUI options to match GUI
2018-12-07 00:52:50 -05:00
Mike Tzou
6bb4eb825b
Merge pull request #9942 from Chocobo1/pbkdf2
...
Do password hashing properly
2018-12-06 16:22:22 +08:00
Chocobo1
05d6a29416
Apply PBKDF2 when storing passwords
2018-12-05 13:28:42 +08:00
thalieht
1f36b8b89f
Combine qAsConst() with copyAsConst() to asConst()
2018-11-28 23:41:23 +02:00
thalieht
6b1d26d555
Convert all foreach() to range-based for()
2018-11-28 23:40:12 +02:00
Thomas Piccirello
4d3a894bcb
Allow tables to be added without a parent panel
2018-11-28 00:21:56 -05:00
Thomas Piccirello
881b692c58
Simplify implementation
2018-11-28 00:21:56 -05:00
Thomas Piccirello
b2f454399c
Add ability to pass urls to the webui download page
2018-11-28 00:21:56 -05:00
Thomas Piccirello
64c20bf6b2
Allow WebUI sidebar to be collapsed
2018-11-25 15:05:31 -05:00
Thomas Piccirello
2ef16f669b
Show ellipsis when WebUI sidebar is too narrow
2018-11-25 14:57:49 -05:00
Vladimir Golovnev
0e8323659e
Merge pull request #9869 from Piccirello/download-bug
...
Fix WebUI bug on override of Start Torrent option
2018-11-25 06:40:22 +03:00
Mike Tzou
45cfac6c00
Merge pull request #9891 from Chocobo1/i18n
...
Fix missing words in WebUI
2018-11-24 10:55:13 +08:00
Chocobo1
b79a231d2e
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-11-23 23:42:20 +08:00
Mike Tzou
70707a2664
Merge pull request #9884 from Piccirello/webui-cookie-samesite
...
Add SameSite attribute to WebUI session cookie
2018-11-22 10:40:37 +08:00
Thomas Piccirello
cd47380b85
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-11-20 22:12:24 -05:00
Mike Tzou
d05897c89a
Merge pull request #9859 from Chocobo1/host
...
Add option for WebUI Host header validation
2018-11-20 12:37:55 +08:00
Mike Tzou
9826aec4cf
Merge pull request #9820 from Piccirello/webui-col-icon
...
Show icon in WebUI sorted column
2018-11-19 15:06:01 +08:00
Tom Piccirello
2d7138839d
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-11-18 22:46:19 -05:00
Chocobo1
58be2d4bc2
Put WebUI security related options into a groupbox
2018-11-19 11:05:04 +08:00
Chocobo1
344e47dcfb
Add option for WebUI Host header validation
...
Closes #9743 .
2018-11-19 11:05:04 +08:00
Chocobo1
d866033a8e
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-18 13:50:23 +08:00
Thomas Piccirello
555382779c
Show icon in WebUI sorted column
2018-11-12 19:37:54 -05:00
Chocobo1
3fa5358c3f
Remove speed limit checkbox in Options dialog
...
This unifies speed limit UI elements throughout the program.
2018-11-05 11:07:52 +08:00
Chocobo1
209e6a889a
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-02 14:35:35 +08:00
Vladimir Golovnev
69bf848f32
Merge pull request #9777 from glassez/fix-altwebui
...
Fix Alternative Web UI to be available. Closes #9720
2018-10-29 09:20:14 +03:00
Vladimir Golovnev (Glassez)
f309a5279e
Fix Alternative Web UI to be available
2018-10-29 08:32:57 +03:00
Vladimir Golovnev
4fee16fafb
Merge pull request #8217 from Piccirello/webui-statusbar-freespace
...
Free disk space in WebUI status bar
2018-10-28 10:02:49 +03:00
Vladimir Golovnev (Glassez)
f0f329b402
Fix indentation in tstool.py
2018-10-26 20:46:02 +03:00
Vladimir Golovnev
30dadfceea
Merge pull request #9718 from qbittorrent/webapi-version-bump
...
Bump WebAPI version
2018-10-25 08:41:53 +03:00
Vladimir Golovnev
7e36cc746f
Merge pull request #8584 from Piccirello/new-search-api-2
...
WebUI search API. Closes #2495
2018-10-24 13:13:16 +03:00
Thomas Piccirello
f2957c721d
Use QElapsedTimer
2018-10-22 23:17:46 -04:00
Thomas Piccirello
2aea235e34
Add free disk space to WebUI status bar
...
Closes #6829 .
2018-10-22 22:06:14 -04:00
Tom Piccirello
41462a39c7
Bump WebAPI version
2018-10-17 10:54:40 -04:00
Thomas Piccirello
bab18036aa
Fix WebUI Auto TMM context menu bug
...
When multiple torrents are selected with different Auto TMM values, the Auto TMM context menu option is hidden. This option is never unhidden, requiring a refresh of the page.
2018-10-15 21:08:42 -04:00
Thomas Piccirello
ae374f6903
Catch invalid values
2018-10-15 04:31:29 -04:00
Eugene Shalygin
e590fff2fe
cmake: restore out-of-source build
...
Qt translations have to be compiled in a shared library or executable,
and since we use static libraries for the components, webui translation
files have to be compiled into the main executable.
2018-10-14 11:06:20 +02:00
Vladimir Golovnev
5d2e35d14d
Merge pull request #9026 from glassez/www-translate
...
Use independent translation for WebUI
2018-10-12 13:39:18 +03:00
Vladimir Golovnev
3e8f3d61fb
Merge pull request #9586 from Piccirello/webui-categories
...
Add categories WebAPI
2018-10-12 10:27:13 +03:00
Vladimir Golovnev (Glassez)
c1a4ef1377
Use independent translation for WebUI
2018-10-09 11:10:08 +03:00
Vladimir Golovnev (Glassez)
becb002d87
Create WebUI translation update tool
2018-10-09 11:10:07 +03:00
Thomas Piccirello
6d619e9491
Add categories WebAPI
...
Closes #5330 .
2018-10-07 14:52:34 -04:00
Mike Tzou
5aaa51881e
Merge pull request #9614 from Piccirello/js-defects
...
Fix minor JavaScript defects
2018-10-02 10:19:47 +08:00
Thomas Piccirello
0b6ae68801
Add WebUI search API controller
...
Closes #2495 .
2018-09-30 20:07:27 -04:00
Thomas Piccirello
1e6942e967
Fix minor JavaScript defects
2018-09-26 23:10:51 -04:00
Thomas Piccirello
65934a4c69
Add locale to js file path
...
This reduces the likelihood of a cached file being used after the locale is changed.
2018-09-23 16:27:47 -04:00
Thomas Piccirello
7b85473d2b
Translate WebUI torrents Status column
...
Closes #9554 .
2018-09-22 18:13:47 -04:00
sledgehammer999
bdc788c824
Bump Web API version
2018-09-16 09:37:32 +03:00
Vladimir Golovnev
28a6ac3197
Merge pull request #9228 from Piccirello/addCategory
...
Add save path and category editing to WebUI
2018-09-13 19:43:28 +03:00
Mike Tzou
5cb41c3c2d
Merge pull request #9387 from Piccirello/webui-pref-tweaks
...
Minor WebUI visual changes
2018-09-08 14:51:26 +08:00
Thomas Piccirello
fef1ad6083
Allow WebUI sidebar filters to be hidden
2018-09-05 02:40:33 -04:00
Thomas Piccirello
c10d237f7a
Don't disable DHT when using force proxy
...
Closes #9292
2018-09-02 19:48:03 -04:00
Thomas Piccirello
adad883eb6
Increase WebUI Options initial height
2018-08-31 11:38:17 -04:00
Thomas Piccirello
b05a443cad
Adjust WebUI Options form alignment
2018-08-31 11:38:10 -04:00
Thomas Piccirello
63c53766b4
Add save path and editing to WebUI new category dialog
2018-08-31 11:27:05 -04:00
Thomas Piccirello
a0e6007fc1
Include category save path in web api sync data
2018-08-18 22:04:21 -04:00
Thomas Piccirello
d89ef22d85
Require torrent category creation to be explicit
2018-08-18 22:04:21 -04:00
Chocobo1
71dcc76a64
Replace png icons with svg
2018-08-14 17:03:14 +08:00
sledgehammer999
ac1839fa6b
Bump Web API version
2018-08-12 21:08:42 +03:00
Mike Tzou
8dae7f4a87
Merge pull request #9229 from Piccirello/forceReannounce
...
Add WebUI Force Reannounce option
2018-07-31 00:19:34 +08:00
Thomas Piccirello
13075e5099
Send all rechecks in one request
2018-07-22 20:33:39 -04:00
Thomas Piccirello
cdad0dc7d3
Add WebUI Force Reannounce option
2018-07-22 20:33:17 -04:00
Chocobo1
0217d5b4c0
Replace single-character string with character literal
...
Also remove unnecessary dynamic allocation.
2018-07-21 23:26:15 +08:00
Chocobo1
e04aae686f
Cache more preference values
...
These values from Preference class are frequently used.
Also group related variables together.
2018-07-14 15:48:18 +08:00
thalieht
456270bbb1
Delete several unused #include
2018-07-03 08:38:32 +03:00
Goshik
1daadfc4ec
Create non-existing path in setLocationAction()
...
When using qbittorrent-nox it is not always possible to manually create
the target path for torrent moving. This commit allows automatic path
creation. It also allows to display error messages in the
'Set location' window.
2018-06-19 14:10:11 +03:00
Mike Tzou
40f4223d02
Merge pull request #9083 from Chocobo1/qrc
...
Move files to where it belongs
2018-06-18 00:51:19 +08:00
Vladimir Golovnev
7d9cc04c88
Merge pull request #9090 from thalieht/renamefiles
...
Rename files and classes to match them
2018-06-16 13:08:38 +03:00
Mike Tzou
dc20fff6e4
Merge pull request #9059 from Piccirello/meta-key
...
Add WebUI support for Mac ⌘ (Command) key
2018-06-16 12:21:20 +08:00
thalieht
d34ddb2e3c
Change file names and classes names to match them
2018-06-15 20:12:59 +03:00
Vladimir Golovnev
0433d5f074
Merge pull request #9042 from thalieht/codingstyle
...
Fix coding style final
2018-06-13 12:41:56 +03:00
Thomas Piccirello
232f0f4b0b
Add WebUI support for Mac ⌘ (Command) key
...
The Command key will now be recognized for WebUI Table multi-selection, as Ctrl is.
2018-06-12 20:32:24 -04:00
Thomas Piccirello
091ad6103e
Implement key functions in Class and refactor
2018-06-12 20:32:07 -04:00
Mike Tzou
c66738dc05
Merge pull request #9066 from AltruisticCompany/setlocation
...
Show current save path in 'Set location' window
2018-06-13 02:46:56 +08:00
thalieht
4022799881
Fix coding style
2018-06-12 07:17:05 +03:00
Chocobo1
26a4703398
Move .qrc files into its own directory
2018-06-11 20:01:33 +08:00
Mike Tzou
da87c2d9ae
Merge pull request #9060 from Chocobo1/preinc
...
Replace post-increment with pre-increment
2018-06-09 12:40:30 +08:00
Goshik
682ef9e2a8
Show current save path in 'Set location' window
...
The feature is useful when the user needs to move their torrent to a
sub or parent folder. If more than one torrent is chosen, the path
of the first selected torrent is used. The window was made wider to
allow more convenient editing of long paths.
2018-06-08 18:34:14 +03:00
Chocobo1
5ddbf9bba9
Replace post-increment with pre-increment
...
And post-decrement with pre-decrement.
2018-06-08 08:44:06 +08:00
Eugene Shalygin
04aea413ba
Merge pull request #9055 from zeule/cmake
...
Update CMake build scripts
2018-06-07 21:31:09 +02:00
Eugene Shalygin
fa770871e9
Refactor CMake build scripts
...
1. Use FeatureSummary module to show configuration results.
2. Invert option()/find_package() relationship: instead of
calling find_package(... REQUIRED) when option is set, rely on optional
find package call and PackageName_FOUND variable.
3. Refactor handling options that result in simple preprocessor defines
(actually copy the snippet from libtorrent) so that everything is done
in a single function call.
4. Populate target properties in order to get rid of
include_directories() calls.
2018-06-05 11:39:11 +02:00
Chocobo1
eaa276b284
Fix WebUI cache behavior for css files
...
The style.css in public & private folders share the same URI, this
confuses the browser cache, so rename one of them.
2018-06-04 20:50:09 +08:00
Chocobo1
050b78f378
Send Cache-Control header in WebUI responses
...
Tune the caching time to be shorter, in case there is a program
update.
Change the cacheability to private, as WebUI resources are not intended
to be cached at proxy.
For uncacheable responses, send out "no-store" explicitly to halt
browser caching.
2018-06-04 20:50:08 +08:00
Mike Tzou
5f8feec1c1
Merge pull request #9013 from Piccirello/strengthen-csp
...
More restrictive Content Security Policy
2018-06-03 21:43:39 +08:00
Mike Tzou
c4e4e7432d
Merge pull request #9009 from Chocobo1/login
...
Add logging messages in WebUI login action
2018-06-03 19:47:05 +08:00
Chocobo1
09f759355f
Replace QRegExp with QRegularExpression
...
Revise `static` keyword usage, static is added to frequently used
instances.
2018-05-31 22:56:49 +08:00
Chocobo1
5c72a52ea2
Reset WebUI ban counter on login success
2018-05-31 22:55:54 +08:00
Chocobo1
d782d62b34
Add logging messages in WebUI login action
2018-05-31 22:55:54 +08:00
Thomas Piccirello
9b874b8941
Rename variables for clarity
2018-05-31 00:54:57 -04:00
Thomas Piccirello
43656aaa1e
Add form-action to CSP
...
This option restricts all form submissions to the WebUI's origin.
qBittorrent only ever submits forms to the origin, so this is intended as a security measure.
2018-05-31 00:54:57 -04:00
Thomas Piccirello
8f98f87d12
Add upgrade-insecure-requests to CSP when HTTPS is enabled
...
This option automatically upgrades all http connections to https.
It ensures http urls cannot be accessed when in https mode, and is intended as a security measure.
2018-05-31 00:54:57 -04:00
Chocobo1
e8d378e167
Improve WebUI security measures
...
CSP was erroneously disabled in bad4d94f77
when clickjacking protection is off, now it is back.
Also added CSP 'frame-ancestors' directive when clickjacking
protection is enabled.
2018-05-29 13:40:52 +08:00
Mike Tzou
4a51f14328
Merge pull request #8967 from Chocobo1/protect
...
Add options to control WebUI security measures
2018-05-28 14:21:53 +08:00
sledgehammer999
6ad8d730cc
Bump Web API version
2018-05-27 19:23:25 +03:00
sledgehammer999
a1a6a7ef56
Merge pull request #8868 from Chocobo1/macos
...
Fix GUI scaling factor on macOS
2018-05-27 17:39:00 +03:00