Chocobo1
d022457e0c
Use force refresh on WebUI logout
...
Regardless of the cache header settings, the logout action should never be
allowed to load from cache.
2019-04-17 20:17:26 +08:00
Chocobo1
6e1e7a45a1
Align WebUI login button to the right
2019-04-17 13:34:32 +08:00
Mike Tzou
18be4732b3
Merge pull request #10476 from Piccirello/webui-table-cell-hover
...
Set title attribute for all WebUI table cells
2019-04-17 13:13:45 +08:00
Thomas Piccirello
238ca03936
Set title attribute for all WebUI table cells
...
Except the Progress Bar
2019-04-15 22:44:28 -07:00
CzBiX
d254a98662
Always use index.html as default page
2019-04-13 18:41:29 +08:00
Mike Tzou
460b73ebda
Merge pull request #10438 from Chocobo1/timer
...
Work around the crash occurred in QTimer
2019-04-09 13:53:48 +08:00
Chocobo1
94aeeed95f
Work around the crash occurred in QTimer
...
See Qt commit:
https://code.qt.io/cgit/qt/qtbase.git/commit/src/corelib/kernel/qtimer.cpp?id=a623fe8d2a60ff333d5779f877e3b20f0e141ff1
Fixes #9985 .
2019-04-07 15:13:33 +08:00
thalieht
371a090cec
Rename "Prefer encryption" to "Allow encryption"
...
Because it actually prefers non-encryption but allows it if requested.
2019-04-05 14:18:49 +03:00
Chocobo1
7e99ce6d7f
Document current WebUI browser compatibility
2019-03-23 12:32:20 +08:00
Vladimir Golovnev (Glassez)
ead078a38e
Add preliminary support of libtorrent v1.2
...
libtorrent v1.2 should be built with deprecated features enabled.
2019-03-18 15:17:03 +03:00
Mike Tzou
20f2c86d25
Merge pull request #10214 from AceLewis/master
...
Remove autocorrect/autocapitalise in WebUI
2019-03-17 15:05:19 +08:00
thalieht
bcfa62cc76
Rename "#" column to "Tier" in the tracker list
2019-03-13 21:08:40 +02:00
sledgehammer999
c2d1af9853
Merge pull request #10338 from sledgehammer999/raise_qt5_ver
...
Raise minimum Qt version to 5.9.0
2019-03-08 00:42:26 +02:00
Chocobo1
adbd34c795
Move helper functions to Utils::Gui namespace
2019-03-05 14:55:22 +08:00
sledgehammer999
5c63ad3b95
Raise minimum Qt version to 5.9.0
2019-03-04 16:48:49 +02:00
thalieht
ce437817de
Make various minor changes
2019-02-25 17:05:15 +02:00
thalieht
8a19a0d4a0
Remove const in declarations' arguments that are passed by value
2019-02-25 17:05:15 +02:00
thalieht
70f1537d9f
Add const to almost all remaining vars and arguments that qualify
2019-02-25 17:05:15 +02:00
thalieht
8c944bd4e1
Avoid repeating the return type
2019-02-16 18:54:18 +02:00
thalieht
92a290895b
Convert vars into refs to avoid copy construction from const refs
2019-02-16 18:54:17 +02:00
thalieht
d8cbc9266a
Use 'auto' to avoid duplicating the type name
2019-02-16 18:54:17 +02:00
thalieht
947c7e1d64
Convert to range-based for loop
2019-02-16 16:53:26 +02:00
Mike Tzou
78ab0e4ba9
Merge pull request #10220 from thalieht/const
...
Add const to many vars and arguments
2019-02-13 12:11:00 +08:00
thalieht
ca3ce87e06
Add const to many vars and arguments
...
Also remove const in declarations' arguments that are passed by value
2019-02-11 20:19:41 +02:00
Mike Tzou
efed3fc78c
Merge pull request #10256 from Chocobo1/license
...
Add license header
2019-02-08 12:07:08 +08:00
Mike Tzou
c540e57f55
Merge pull request #10227 from Chocobo1/login
...
Prevent login credential appearing in URL
2019-02-07 13:16:24 +08:00
Chocobo1
6d29a3af60
Make use of std algorithms
2019-02-05 13:35:54 +08:00
Chocobo1
f789df7edf
Add license header
2019-02-04 17:28:55 +08:00
AceLewis
bfdd674054
Remove autocorrect/autocapitalise from filepaths on WebUI
2019-02-02 13:50:02 +01:00
Chocobo1
4483b72bfd
Move JavaScript code to its own file
2019-02-02 15:00:53 +08:00
Chocobo1
8096e49c24
Display warning when Javascript is disabled
2019-02-02 14:55:08 +08:00
Chocobo1
32474b05c5
Remove mootools lib from login page
2019-02-01 13:38:14 +08:00
Chocobo1
0738b3860b
Prevent login credential appearing in URL
...
Closes #10221 .
2019-02-01 13:38:12 +08:00
Mike Tzou
40eb8a1f4a
Merge pull request #10175 from Chocobo1/cert
...
Load WebUI certificate & key from file path
2019-02-01 13:37:13 +08:00
Mike Tzou
0facdf3dfb
Merge pull request #10190 from Piccirello/webui-sorted-icon
...
Fix direction of Web UI sorted column icon
2019-02-01 13:20:54 +08:00
Mike Tzou
899b0c1104
Merge pull request #10096 from Piccirello/webui-libtorrent-version
...
Match WebUI About page to GUI
2019-01-31 13:14:46 +08:00
Chocobo1
5cdb3b6a2d
Load WebUI certificate & key from file path
...
This allow users to update certificate & key more easily, i.e. without the need to import them
into qbt.
Closes #6675 , #7547 , #8315 , #8564 .
2019-01-28 16:33:48 +08:00
Vladimir Golovnev (Glassez)
b0446380c6
Separate URL components before percent-decoding
...
Allow special characters in query string parameters.
Closes #9116 .
2019-01-27 15:33:19 +03:00
Mike Tzou
b8def07cd8
Merge pull request #10146 from Piccirello/webui-escape-key
...
Add Web UI support for escape key
2019-01-22 11:30:50 +08:00
Thomas Piccirello
d1dc9a39ae
Match WebUI About page to GUI
2019-01-20 18:40:25 -08:00
Thomas Piccirello
86c21baf40
Simplify tab logic
2019-01-20 18:39:15 -08:00
Thomas Piccirello
ece27b84cc
Fix wrong element id being used
2019-01-20 16:00:29 -08:00
Thomas Piccirello
81943fb3b0
Fix direction of Web UI sorted column icon
2019-01-20 15:52:38 -08:00
Tom Piccirello
972b8d11fe
Fix broken image link
2019-01-18 17:49:55 -08:00
sledgehammer999
2ac7f2defe
Update copyright year
2019-01-17 01:08:51 +02:00
Mike Tzou
ec90b69c9e
Merge pull request #10061 from Piccirello/webui-cache-bust
...
Include application version in css/js url for cache busting
2019-01-16 12:32:04 +08:00
Thomas Piccirello
dbaebf4f33
Rename parametrics.js to speedslider.js
2019-01-14 02:00:08 -08:00
Thomas Piccirello
851c02acb0
Capitalize event name
2019-01-14 00:57:24 -08:00
Thomas Piccirello
2f33ecf37b
Fix bug where input wouldn't always be focused
2019-01-14 00:57:24 -08:00
Thomas Piccirello
74a772aafb
Add Web UI support for escape key
2019-01-14 00:57:24 -08:00
Mike Tzou
2e5c09aeba
Merge pull request #10130 from Chocobo1/svg
...
Fix icon issues
2019-01-14 10:52:45 +08:00
Vladimir Golovnev
7e98035df5
Merge pull request #10136 from glassez/drop-old-libtorrent
...
Drop support of libtorrent < 1.1.10
2019-01-12 09:44:24 +03:00
Vladimir Golovnev
198034f976
Merge pull request #10145 from glassez/drop-legacy-webapi
...
Drop legacy WebAPI support
2019-01-11 17:41:53 +03:00
Vladimir Golovnev (Glassez)
302c99d7d5
Drop support of libtorrent < 1.1.10
2019-01-11 15:13:17 +03:00
Mike Tzou
b7091cf9a4
Merge pull request #10006 from Piccirello/webui-tables
...
Allow WebUI Trackers and Content tables to be manipulated
2019-01-11 14:10:27 +08:00
Chocobo1
a8ba5bda79
Update WebUI img to use svg images
2019-01-11 13:53:32 +08:00
Chocobo1
6f34afce21
Fix speed limit icon too large on WebUI
...
Closes #10127 .
2019-01-11 13:51:46 +08:00
Vladimir Golovnev (Glassez)
2ce3aa9731
Drop legacy WebAPI support
2019-01-10 20:16:06 +03:00
Thomas Piccirello
f0e67cbb53
Remove excanvas from WebUI
...
Excanvas adds Canvas support to IE 8 and lower, which we no longer support.
2019-01-04 23:48:17 -08:00
Mike Tzou
d7c561df6b
Merge pull request #10106 from Chocobo1/js
...
Various fixes in WebUI
2019-01-05 10:45:15 +08:00
Bert Verhelst
9f8f9b6702
Converted remaining icons to svg
2019-01-04 00:24:30 +02:00
Chocobo1
a0f3678163
Fix only the first newline char is replaced
...
Must use regex to replace all instances of newline chars.
2019-01-04 00:56:54 +08:00
Chocobo1
9289b009b6
Fix missing semicolon in WebUI
2019-01-04 00:56:43 +08:00
Thomas Piccirello
28fa5a895c
Allow WebUI Content tab to be sorted
2019-01-03 00:34:59 -08:00
Thomas Piccirello
06edabb9be
Encode torrent name before passing in URL
2019-01-03 00:34:59 -08:00
Thomas Piccirello
26a9af850b
Move WebUI Peers code to separate file
2019-01-03 00:34:59 -08:00
Thomas Piccirello
a5266c7018
Prevent WebUI tables from being highlighted
2019-01-03 00:34:59 -08:00
Thomas Piccirello
5d114614bb
Allow WebUI Trackers table to be manipulated
2019-01-03 00:34:59 -08:00
Mike Tzou
f3c65f34b6
Merge pull request #10075 from Chocobo1/login
...
Add autocomplete attribute to WebUI
2019-01-03 14:15:11 +08:00
Chocobo1
d133ccc69f
Add autocomplete attribute to WebUI
...
This helps the password manager to identify each field and provide
adequate actions.
2018-12-31 19:36:53 +08:00
sledgehammer999
d322e10a83
Merge pull request #10027 from glassez/compile-ts
...
Compile translations at build time
2018-12-31 11:31:45 +02:00
Thomas Piccirello
877a2a2802
Include application version in css/js url for cache busting
...
This change forces new versions of all css and js files to be picked up when qBittorrent is updated.
2018-12-28 13:35:49 -05:00
Thomas Piccirello
9197b0a5ea
Add version to lib file name. Move parametrics out of lib folder.
2018-12-28 13:34:48 -05:00
sledgehammer999
7c172edd50
Sync translations from Transifex and run lupdate
2018-12-24 18:44:53 +02:00
Vladimir Golovnev (Glassez)
7b3eed323b
QMake: Compile translations at build time
2018-12-22 16:02:17 +03:00
Mike Tzou
8aa2789ded
Merge pull request #10023 from Chocobo1/html
...
Change qbt exit message to HTML5
2018-12-21 19:31:59 +08:00
Mike Tzou
25cefee0f8
Merge pull request #9959 from Chocobo1/strict
...
Use Javascript strict mode
2018-12-20 20:16:39 +08:00
Chocobo1
8dd334dc5d
Change qbt exit message to HTML5
2018-12-19 18:29:00 +08:00
Chocobo1
e98d4e874f
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-18 23:14:09 +08:00
sledgehammer999
b69dd05216
Update WebUI .ts files
2018-12-17 01:16:23 +02:00
Mike Tzou
deed457764
Merge pull request #9993 from Chocobo1/referer
...
Enforce referrer-policy in WebUI
2018-12-14 13:23:04 +08:00
Mike Tzou
eebbf3b1ee
Merge pull request #9981 from Piccirello/webui-torrent-filter
...
Add torrent name filtering to WebUI
2018-12-14 13:18:29 +08:00
Chocobo1
c1912e17c1
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-13 15:31:32 +08:00
Chocobo1
d0886f8db0
Reformat WebUI code
2018-12-12 12:30:39 +08:00
Chocobo1
ba32525b45
Fix errors from using strict mode
2018-12-12 12:09:55 +08:00
Chocobo1
1cb065edc6
Use Javascript strict mode
2018-12-12 12:07:31 +08:00
Thomas Piccirello
7f349732ee
Send numeric status without translation
2018-12-11 01:37:33 -05:00
Thomas Piccirello
9e1f7a72b7
Simplify map initialization
2018-12-11 01:37:32 -05:00
Thomas Piccirello
33351e3d8d
Add WebUI Trackers context menu
2018-12-11 01:37:32 -05:00
Thomas Piccirello
4947b0a44f
Add DHT, PeX, and LSD to WebUI Tracker list
2018-12-11 01:37:32 -05:00
Thomas Piccirello
b8e4c6b0be
Add additional Tracker columns to WebUI
2018-12-11 00:41:18 -05:00
Thomas Piccirello
dd790d94c9
Use const where appropriate
2018-12-11 00:41:18 -05:00
sledgehammer999
cd2c448e6d
Bump Web API version
2018-12-11 00:41:18 -05:00
Mike Tzou
cf9d903ba9
Merge pull request #9541 from Piccirello/webui-file-priority
...
Set priority for multiple files in one WebAPI request
2018-12-11 13:32:53 +08:00
Thomas Piccirello
66015164d7
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-10 23:21:09 -05:00
Thomas Piccirello
a44ed9cfd3
Fix incorrect priority value sent from WebUI
...
Closes #9070 .
2018-12-10 23:21:09 -05:00
Thomas Piccirello
c5b8f62780
Set priority for multiple files in one WebAPI request
...
Closes #6259 .
2018-12-10 23:21:09 -05:00
Chocobo1
7fd30fa90f
Enforce referrer-policy in WebUI
...
This stops leaking private data to other websites via Referrer header.
2018-12-10 22:17:04 +08:00
Mike Tzou
e1f19b7c75
Merge pull request #9986 from Piccirello/webui-peers-columns
...
Match WebUI Peers table column order to GUI
2018-12-10 12:34:11 +08:00
Thomas Piccirello
66f6823965
Add torrent name filtering to WebUI
...
Closes #721
2018-12-09 11:30:56 -05:00
Mike Tzou
2eb213e2f9
Merge pull request #9758 from Piccirello/new-search-webui-2
...
Add Search feature to WebUI
2018-12-09 16:01:21 +08:00
Mike Tzou
0418401ddd
Merge pull request #9976 from Piccirello/fix-js-error
...
Fix JavaScript error
2018-12-09 15:56:38 +08:00
Thomas Piccirello
f3c1e82199
Match WebUI Peers table column order to GUI
2018-12-09 00:36:43 -05:00
Thomas Piccirello
a8d5b146be
Fetch data less frequently when torrents tab isn't visible
2018-12-07 23:33:15 -05:00
Thomas Piccirello
b7ad751ec3
Add Search tab to WebUI
...
Closes #859 , #8107 .
2018-12-07 23:33:15 -05:00
Tom Piccirello
adcfbf0b8c
Fix JavaScript error
...
Fixes a JavaScript error caused by the element lookup returning null
2018-12-07 18:41:32 -05:00
Thomas Piccirello
3aeaf6a054
Disallow setting a blank alternative WebUI location
2018-12-07 00:57:59 -05:00
Thomas Piccirello
402715004c
Add slow torrent options
2018-12-07 00:55:29 -05:00
Thomas Piccirello
2ebc6a056e
Add "Use alternative Web UI" option
2018-12-07 00:55:29 -05:00
Thomas Piccirello
c237accf82
Add "Apply rate limit to peers on LAN" option
2018-12-07 00:55:29 -05:00
Thomas Piccirello
e499e1ba85
Add email "From" option
2018-12-07 00:55:29 -05:00
Thomas Piccirello
abf43b695b
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-07 00:55:29 -05:00
Thomas Piccirello
7151d6babd
Show list of categories on WebUI download page
2018-12-07 00:55:29 -05:00
Thomas Piccirello
a7c2ee3ce6
Hide WebUI text input for custom monitor save locations
2018-12-07 00:55:29 -05:00
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
Mike Tzou
84df2794dc
Merge pull request #8944 from Chocobo1/literal
...
Make use of QStringLiteral
2018-05-23 13:23:41 +08:00
Chocobo1
9eeef0be97
Add option to control CSRF protection
...
Some users are using WebUI with simple port-forwarding from their router,
providing an option to control the protection will save them from setting up an
non-trival web proxy.
Closes #7274 .
2018-05-22 12:57:03 +08:00
Chocobo1
bad4d94f77
Add option to control WebUI clickjacking protection
...
Some users actually want embedding WebUI into their custom build iframe.
Closes #7370 .
2018-05-22 01:07:25 +08:00
Chocobo1
e8a69dd60c
Update Options dialog layout in WebUI
2018-05-21 23:57:11 +08:00
Chocobo1
ceaf755ac6
Make use of QStringLiteral
...
Only changed instances that are initialized at program start.
2018-05-18 02:14:49 +08:00
Vladimir Golovnev
e157ca2430
Merge pull request #8932 from glassez/rss-settings
...
Properly set RSS settings via API. Closes #8925
2018-05-17 06:07:25 +03:00
Vladimir Golovnev (Glassez)
98ca274169
Rename RSS properties to follow other names
2018-05-15 16:05:51 +03:00
Vladimir Golovnev (Glassez)
2a0b104e5e
Properly set RSS settings via API
...
Closes #8925 .
2018-05-15 15:59:28 +03:00
Mike Tzou
3b1fa19ea8
Merge pull request #8895 from Chocobo1/locale
...
Apply locale changes immediately in WebUI
2018-05-15 00:29:45 +08:00
Mike Tzou
a0f200be0d
Merge pull request #8894 from Chocobo1/tr
...
Make strings translatable
2018-05-14 12:53:40 +08:00
Vladimir Golovnev
7afbc346d5
Merge pull request #8906 from glassez/fix-webui
...
Fix WebUI bugs
2018-05-13 17:02:24 +03:00
Chocobo1
61e61a1fd5
Rename variables
...
Variable name should not start with underscore as C++ standard stated it
is reserved.
2018-05-13 19:24:59 +08:00
Vladimir Golovnev
8906c47798
Merge pull request #8782 from mj-p/filterByHashes
...
Filter torrent info endpoint by hashes
2018-05-13 13:20:00 +03:00
sledgehammer999
375b15727d
Show rechecking progress
...
When having big torrents, the rechecking might take a while to
complete. Users need some sort of feedback that progress is being made.
Also, I changed the float to qreal since that's the return type.
2018-05-13 12:32:17 +03:00
Chocobo1
5ae926a376
Refactor code
...
Add const to variables.
No functionality change.
2018-05-13 15:05:30 +08:00
Chocobo1
92a4e73a22
Apply locale changes immediately in WebUI
2018-05-13 15:05:29 +08:00
sledgehammer999
565ffa7d1e
Add 'Moving' state for torrents being relocated/moved
...
This is another indication to the user that something is happening
behind the scenes.
Uses the same icon/color as "Checking" status.
Torrents in the `Moving` state are considered as "Active". This should
prevent accidental program exit from the user and inhibit system sleep.
2018-05-12 20:49:33 +03:00
Vladimir Golovnev (Glassez)
88f2a66aac
Fix params handling for some legacy API methods
...
Closes #8880 .
2018-05-12 07:35:35 +03:00
Vladimir Golovnev (Glassez)
0fda49c060
Improve legacy API params handling
2018-05-12 07:35:31 +03:00
Vladimir Golovnev (Glassez)
afcf232bd8
Fix invalid API calls in WebUI
...
Closes #8899 .
2018-05-12 07:35:27 +03:00
Chocobo1
b1304057ec
Fix i18n in WebUI
...
Closes #8844 .
2018-05-11 20:20:51 +08:00
thalieht
20ca90800d
Fix coding style
2018-05-09 17:06:22 +03:00
Chocobo1
0b63f35a54
Use 32px icons for favicon
...
One less resource to manage and 16px size can be downsampled from 32px
on-the-fly anyway.
2018-05-09 15:53:34 +08:00
Mike Tzou
99a1343b9d
Merge pull request #8862 from Chocobo1/cleanup
...
Code cleanups
2018-05-09 14:33:49 +08:00
Vladimir Golovnev
3a0e5e51df
Merge pull request #8761 from thalieht/nullptr
...
Replace the zeroing of pointers with nullptr
2018-05-08 17:10:37 +03:00
Chocobo1
c0df292567
Remove debug messages
2018-05-08 12:18:18 +08:00
Vladimir Golovnev (Glassez)
85dd446198
Fix wrong API method names
...
Closes #8828 .
2018-05-07 17:46:01 +03:00
Marcel Petersen
fc58e8a0c6
Filter torrent info endpoint by hashes
...
Added hashes parameter to info action.
Allows filtering seralized torrents by passing it into the TorrentFilter.
2018-05-02 10:07:48 +02:00
Chocobo1
8b575484e6
Fix path separator in log messages
2018-04-24 01:02:54 +08:00
Vladimir Golovnev (Glassez)
001bd38557
Fix pauseAll/resumeAll legacy API methods
...
Closes #8766 .
2018-04-20 14:30:25 +03:00
thalieht
3e4099fe5b
Replace the zeroing of pointers with nullptr
2018-04-15 13:06:31 +03:00
Mike Tzou
a70942ed53
Merge pull request #8598 from Piccirello/limit-share-ratio
...
WebUI Add Limit Share Ratio context menu option
2018-04-15 00:39:27 +08:00
Mike Tzou
1055cc0f45
Merge pull request #8691 from Chocobo1/js
...
Partially revert "Remove unused JavaScript library"
2018-04-12 00:07:37 +08:00
Thomas Piccirello
9f36b54b04
WebUI Add Limit Share Ratio context menu option
...
Closes #6815 , #7602 .
2018-04-11 23:45:54 +08:00
Thomas Piccirello
1f42ab8c4f
Remove unused/superfluous variables
2018-04-11 23:45:54 +08:00
Thomas Piccirello
3f0fbc0810
WebUI rename property to match its definition
2018-04-11 23:45:54 +08:00
Mike Tzou
fa380c8b2c
Merge pull request #8622 from Chocobo1/formatter
...
Unify coding style for WebUI files
2018-04-10 14:51:32 +08:00
Vladimir Golovnev (Glassez)
cb505a07fe
Fix setting preferences via WebAPI
...
Closes #7335 .
2018-04-09 18:54:43 +03:00
Chocobo1
cf2c0bd47e
Apply formatting to Web UI files
2018-04-07 21:45:56 +08:00
Chocobo1
208d21ff73
Add js-beautify config
...
Try to standardize coding style for HTML & JavaScript via this tool
2018-04-05 12:19:54 +08:00
Chocobo1
2df71dbde5
Partially revert "Remove unused JavaScript library"
...
This reverts commit 470e993c2d
.
2018-04-05 03:22:34 +08:00
Chocobo1
470e993c2d
Remove unused JavaScript library
2018-04-02 01:34:49 +08:00
Chocobo1
cbf10ebb7f
Update clipboard.js to v2.0.0
2018-04-02 01:34:49 +08:00
Chocobo1
89f06274bb
Move JavaScript libraries to its own folder
2018-04-02 01:34:43 +08:00
Chocobo1
ed03456999
Update WebUI to be more compliant with HTML5 standard
...
Use modern and shorter "charset" attribute.
Remove "type", "charset" attributes in script/style tags, these are redundant in HTML5.
2018-03-23 00:04:43 +08:00
Thomas Piccirello
a15cfae03a
Fix spacing
2018-03-21 00:04:21 -04:00
Thomas Piccirello
c2a195360a
Resolve JavaScript errors
2018-03-21 00:04:21 -04:00
Thomas Piccirello
a4f99995bb
Consolidate CSS into style.css
2018-03-21 00:04:18 -04:00
Thomas Piccirello
16616f4e0e
Remove unused CSS from WebUI login page
2018-03-20 15:25:04 -04:00
Vladimir Golovnev
a5294e1e08
Merge pull request #8558 from luis-pereira/containter-anti-pattern
...
Don't create temporary containers just to iterate over them
2018-03-19 13:06:01 +03:00
Luís Pereira
ac42ccb5e4
Don't create temporary containers just to iterate over them
...
Stops temporary containers being created needlessly due to API misuse.
For example, it’s common for developers to assume QHash::values() and
QHash::keys() are free and abuse them, failing to realize their
implementation internally actually iterates the whole container, allocates
memory, and fills a new QList.
Added a removeIf generic algorithm, similar to std ones. We can't use std
algorithms with Qt dictionaries because Qt iterators have different
behavior from the std ones.
Found using clazy.
2018-03-18 16:22:12 +03:00
Mike Tzou
68ca95faf0
Merge pull request #8603 from Chocobo1/typo
...
Fix typo
2018-03-17 00:49:41 +08:00
Mike Tzou
1f28122428
Merge pull request #8595 from Chocobo1/runExt
...
Add Tags parameter to "Run External Program"
2018-03-16 19:37:34 +08:00
Chocobo1
423511765a
Fix typo
2018-03-14 23:37:08 +08:00
Thomas Piccirello
4863078744
Use correct API method URL in WebUI
...
Fix up 27d8dbf
.
Closes #8596 .
2018-03-14 03:08:46 -04:00
Chocobo1
88881de8c6
Add Tags parameter to "Run External Program"
...
Closes #8586 .
Also sort headers.
2018-03-14 10:12:32 +08:00
Chocobo1
141a2d2856
Prevent detach from containers
2018-03-11 22:25:07 +08:00
Mike Tzou
7233274110
Merge pull request #8562 from Chocobo1/lint
...
Fix warnings from clazy
2018-03-11 12:41:58 +08:00
Mike Tzou
0cacd71503
Merge pull request #8403 from Piccirello/webui-download-height
...
Make WebUI iframe windows scrollable on iOS. Closes #8401 , #7932 .
2018-03-09 19:46:29 +08:00
Chocobo1
fdf3ebbb6c
Remove usage of deprecated functions
...
Also use proper type for storing date/time data
2018-03-09 19:20:58 +08:00
Mike Tzou
5261d4375f
Merge pull request #8551 from Chocobo1/override
...
Fix warnings from linters
2018-03-09 00:36:52 +08:00
Thomas Piccirello
0b56cd5fa0
Make WebUI iframe windows scrollable on iOS
...
Closes #8401 , #7932 .
2018-03-08 01:30:13 -05:00
Vladimir Golovnev
e22946ef61
Merge pull request #8525 from glassez/url-query
...
Parse URL query string at application level
2018-03-07 17:16:21 +03:00
Chocobo1
0457fd260e
Avoid temporary QString allocations
...
This fixes clazy warning: Use multi-arg instead [-Wclazy-qstring-arg]
2018-03-07 20:06:00 +08:00
Chocobo1
c60b7b213e
Add missing 'override' specifier
...
This fixes clang warning:
'notify' overrides a member function but is not marked 'override'
[-Winconsistent-missing-override]
2018-03-07 20:05:52 +08:00
Chocobo1
307736e263
Fix broken WebUI
...
Fix up c47e4efade
.
Closes #8545 .
2018-03-06 14:03:01 +08:00
Mike Tzou
7aa5bc4bc1
Merge pull request #8484 from Piccirello/improve-webui-stats
...
Improve WebUI stats dialog (addendum to #8349 )
2018-03-06 00:49:49 +08:00
Thomas Piccirello
c47e4efade
Save WebUI Statistics window size
2018-03-05 01:40:21 -05:00
Vladimir Golovnev (Glassez)
1aca3b0adc
Parse URL query string at application level
2018-03-04 17:08:48 +03:00
Tom Piccirello
1a9b009951
Enable Statistics window to be scrolled and resized
...
Text may go offscreen due to translations.
2018-03-02 02:18:42 -05:00
Vladimir Golovnev (Glassez)
34456a7459
Fix Legacy Web API to be fully available
2018-02-28 18:25:48 +03:00
Mike Tzou
6f7f7d87c6
Merge pull request #8218 from Piccirello/webui-selection-bug
...
Reselect webui torrents after full_update. Temporary fix for #8209 .
2018-02-27 13:33:39 +08:00
Thomas Piccirello
2227c3afc1
Reselect torrents in WebUI after full update
...
Temp fix for #8209 .
2018-02-25 01:09:06 -05:00
Mike Tzou
050af8a793
Merge pull request #7894 from Piccirello/auto-management
...
Disable options when Force Proxy is enabled
2018-02-25 01:44:58 +08:00
Thomas Piccirello
4110bb874f
Right align stat values
2018-02-23 14:54:31 -05:00
Thomas Piccirello
5c74f374af
Re-order and rename stats
2018-02-23 14:54:24 -05:00
Thomas Piccirello
a8420a43f9
Format Read cache hits as percentage
2018-02-23 14:46:47 -05:00
Vladimir Golovnev
5c2f698cb4
Merge pull request #8325 from luis-pereira/prevent-c++11-range-loop-detach
...
Prevent possible c++11 range-loop container detach
2018-02-22 16:28:04 +03:00
Luís Pereira
1a913c502b
Prevent possible c++11 range-loop container detach
...
Explicit or implicit calls to begin() and end() cause a non-const
container to detach from shared data, ie. to perform a deep-copy to gain
a unique copy of the data.
That can be a expensive although unneeded operation.
In order to assist the developer a copyAsConst function is added.
copyAsConst returns a const copy of the object.
For lvalues just use qAsConst. It's only available on Qt 5.7.0. But we
added also for earlier versions. The developer can always use qAsConst.
Intended uses:
QString s = ...;
for (const auto &ch : qAsConst(s))
process(ch);
for (const auto &ch : copyAsConst(funcReturningQString()))
process(ch);
2018-02-20 19:28:51 +00:00
Vladimir Golovnev
3035184d25
Merge pull request #8445 from glassez/fix-webapi
...
Fix POST params handling. Closes #8443
2018-02-20 11:11:33 +03:00
Thomas Piccirello
e0c74c2d39
Remove conditionals
2018-02-20 02:22:40 -05:00
Thomas Piccirello
288f372914
Rename onClick property to onclick
2018-02-20 02:16:16 -05:00
Thomas Piccirello
ba331436fa
Add More Information link
2018-02-20 02:16:16 -05:00
Thomas Piccirello
afd4069eb4
Disable options when force proxy is enabled
2018-02-20 02:16:15 -05:00
Vladimir Golovnev
387f9b1230
Merge pull request #8438 from Piccirello/webui-proxy-only
...
Add "Use proxy only for torrents" option to webui
2018-02-20 09:06:30 +03:00
Mike Tzou
b87ca60c5a
Merge pull request #8134 from Piccirello/webui-show-status-bar
...
Add option to show/hide webui status bar
2018-02-20 00:09:09 +08:00
Mike Tzou
6d44075662
Merge pull request #8228 from Piccirello/webui-save-window-size
...
WebUI Save user's resized windows
2018-02-20 00:02:32 +08:00
Thomas Piccirello
69af205094
Use .each(). Refactor conditionals.
2018-02-18 23:54:48 -05:00
Thomas Piccirello
8a2e3f5d93
Add option to show/hide webui status bar
2018-02-18 23:46:27 -05:00
Thomas Piccirello
3f79726ab9
Make download + upload windows resizable
2018-02-18 22:50:21 -05:00
Thomas Piccirello
d1c4b1599a
WebUI Save user's resized window sizes
2018-02-18 22:50:21 -05:00
Vladimir Golovnev (Glassez)
29042e4841
Fix wrong WebAPI param name
2018-02-18 19:54:08 +03:00
Thomas Piccirello
0d55599e02
Add "Use proxy only for torrents" option to webui
2018-02-17 21:25:42 -05:00
Luís Pereira
ea1b0b26b1
Don't implicitly cast iterator to const_iterator
...
It prevents detachments:
To illustrate:
QMap<QString, QString> map;
/* code compiles and works fine but find() returns the non-const
QMap::iterator that detaches!
*/
QMap<QString, QString>::const_iterator it = map.find("girish");
but also some subtle bugs:
QHash<int, int> wrong;
if (wrong.find(1) == wrong.cend()) {
qDebug() << "Not found";
} else {
/* find() detached the container before cend() was called, so it
prints "Found"
*/
qDebug() << "Found";
}
QHash<int, int> right;
if (right.constFind(1) == right.cend()) {
qDebug() << "Not found"; // This is correct now !
} else {
qDebug() << "Found";
}
Enforced by QT_STRICT_ITERATORS definition.
2018-02-17 17:02:52 +00:00
Vladimir Golovnev (Glassez)
27d8dbf13b
Redesign Web API
...
Normalize Web API method names.
Allow to use alternative Web UI.
Switch Web API version to standard form (i.e. "2.0").
Improve Web UI translation code.
Retranslate changed files.
Add Web API for RSS subsystem.
2018-01-28 19:16:24 +03:00
Vladimir Golovnev (Glassez)
bb683bd393
Switch built-in Web UI html to HTML5
2018-01-23 11:08:37 +03:00
Vladimir Golovnev
56ccf28000
Merge pull request #8133 from Piccirello/webui-statistics-format
...
WebUI Statistics parity with GUI
2018-01-23 10:15:39 +03:00
Vladimir Golovnev
0a45fc9ffe
Merge pull request #7990 from Piccirello/subnet-whitelist-refactor
...
Refactor ip subnet whitelist
2018-01-23 10:03:00 +03:00
Tom Piccirello
ebea0d91af
Remove default case, fix #8302
2018-01-22 02:05:41 -05:00
Thomas Piccirello
65e0aa6b82
Add default case
2018-01-18 23:30:19 -05:00
Thomas Piccirello
6d0cceca83
Use switch statement
2018-01-18 00:15:13 -05:00
Thomas Piccirello
8e9b928b61
Match webui statuses to gui, closes #7516
2018-01-18 00:15:12 -05:00
sledgehammer999
95c32221a2
Update copyright year.
2018-01-06 02:23:09 +02:00
Thomas Piccirello
9b919b6c34
Add missing units
2018-01-05 02:48:41 -05:00
Thomas Piccirello
49d3b7bf30
Right-align stat values
2018-01-05 02:48:41 -05:00
Chocobo1
ec337a8a84
Sort filename lists in .pri files
2017-12-31 11:53:45 +08:00
Thomas Piccirello
ddd6c82dd7
Use https for www.qbittorrent.org
2017-12-26 18:22:03 -05:00
Vladimir Golovnev
155dc49c5a
Merge pull request #7914 from Piccirello/webui-columns
...
Webui add torrent columns to match gui
2017-12-26 22:03:07 +03:00
sledgehammer999
94b64884f8
Merge pull request #7997 from Piccirello/webui-content-columns
...
Add "Remaining" and "Availability" columns to webui Content tab
2017-12-23 20:32:46 +02:00
Chocobo1
fb6bdbefd5
WebUI: Only prepend scheme when it is not present. Closes #8057 .
2017-12-18 14:12:31 +08:00
Thomas Piccirello
0f6dff6315
Make value formatting consistent with GUI
2017-12-12 01:25:06 -05:00
Thomas Piccirello
97b4e4a3d3
Add "Remaining" and "Availability" columns to webui Content tab
2017-12-12 01:25:06 -05:00
Vladimir Golovnev (Glassez)
fcde1ba09c
Fix WebUI is not reachable via IPv6
2017-12-09 09:57:19 +03:00
Thomas Piccirello
d184bd8c82
Perform ip string validation inside setWebUiAuthSubnetWhitelist
2017-12-06 02:05:33 -05:00
Thomas Piccirello
a05562cdc5
Add Time Active column
2017-12-03 15:01:35 -05:00
Thomas Piccirello
ee37f1db3d
Add Tags columns
2017-12-03 15:01:35 -05:00
sledgehammer999
2124ef261a
Merge pull request #7964 from Chocobo1/typeError
...
[WebUI] Fix logout behavior
2017-12-02 14:23:38 +02:00
Chocobo1
b234fcec9c
[WebUI] Use POST for logout command
...
This is to avoid browser being smart to prefetch the link then logging
out the user.
2017-12-02 14:32:40 +08:00
Chocobo1
1a45145c1e
[WebUI] Add check to avoid type error after logout
2017-12-02 14:32:40 +08:00
Chocobo1
c1a282aa7b
Fix missing qbt logo on login page in webUI. Closes #7953 .
2017-12-02 14:31:48 +08:00
Thomas Piccirello
e1f8e6aa6f
Reposition Total Size column to match gui
2017-11-26 19:37:20 -05:00
sledgehammer999
4e96a1065e
Bump API_VERSION to 16.
2017-11-22 01:14:33 +02:00
Chocobo1
27090f0cfb
Remove superfluous QString::fromUtf8()
2017-11-21 22:48:00 +08:00
Chocobo1
77f66be493
[WebUI] Fix logo missing in login page
2017-11-21 03:41:07 +08:00
Vladimir Golovnev
f41cb8089d
Merge pull request #6779 from Piccirello/disable-web-auth
...
Add ip subnet whitelist for bypassing webui auth
2017-11-20 21:52:33 +03:00
sledgehammer999
af5a02d971
Merge pull request #7673 from sledgehammer999/webui_clean_exit
...
WebUI: Correctly exit depending if mainloop is running.
2017-11-19 19:12:30 +02:00
Vladimir Golovnev (Glassez)
71bb6538db
Fix WebUI error handling
2017-11-19 19:10:04 +02:00
Mike Tzou
d821bdc9f3
Merge pull request #7669 from Chocobo1/portCheck
...
[WebAPI] Improve error messages
2017-11-10 23:41:19 +08:00
Thomas Piccirello
95bf63330e
Add ip subnet whitelist for bypassing webui auth
2017-11-08 22:39:49 -05:00
sledgehammer999
ffa6f7ea34
Bump API_VERSION to 16.
2017-11-03 01:57:32 +02:00
Chocobo1
aa4107478e
[WebAPI] Improve error messages
...
Also refactor to use class methods
2017-11-02 23:01:14 +08:00
Chocobo1
fc0628d35b
Allow SMTP sender to be set. Closes #7575 .
2017-10-26 17:57:32 +08:00
Mike Tzou
acdb7a27dc
Merge pull request #7638 from Chocobo1/msg
...
[WebUI] Improve log messages
2017-10-24 20:19:12 +08:00
Mike Tzou
b6be5afb89
Merge pull request #7584 from Chocobo1/refactor
...
[WebAPI] Refactor
2017-10-23 19:36:28 +08:00
Chocobo1
157b809e21
[WebUI] Improve log messages
2017-10-23 16:45:41 +08:00
Mike Tzou
f74e2b0130
Merge pull request #7631 from Chocobo1/webUIaddr
...
Reinitialize webUI server when "IP address" setting changed
2017-10-23 14:11:50 +08:00