Mike Tzou
c967bf31ff
Merge pull request #13336 from Chocobo1/webui
...
Minor WebUI improvements
2020-09-09 11:48:55 +08:00
Chocobo1
5677ce1cc9
Use proper uppercase "UTF-8" in charset field
2020-09-08 14:31:19 +08:00
Chocobo1
2f1016494b
Specify UTF-8 charset when forming data from plain text
...
This suppresses a browser warning about unspecified character encoding
of an HTTP response.
2020-09-08 14:30:55 +08:00
an0n666
73b39a8dec
Expose libtorrent max_concurrent_http_announces in advanced settings
2020-09-08 06:05:45 +06:00
Chocobo1
2c01ac4b75
Improve handling of empty iframe src
...
"about:blank" is suggested in https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe
2020-09-07 12:14:11 +08:00
Mike Tzou
cae5c5cea0
Merge pull request #13257 from Sophist-UK/patch-1
...
Expose LibTorrent peer_turnover settings
2020-08-30 11:28:28 +08:00
Sophist
4c37c229d9
Expose LibTorrent peer_turnover settings
...
This PR exposes the LibTorrent Peer Turnover Settings in qBT Advanced Settings in order to allow users to adjust how frequently slow and uninteresting connections are closed to allow potentially better / faster connections to be made.
The default settings are to turnover peers when the number of connections is at least 90% of allowed global or per torrent connections, and to disconnect the least attractive 4% of these connections every 5 minutes.
See https://www.libtorrent.org/reference-Settings.html#peer_turnover
2020-08-19 20:11:58 +01:00
Chocobo1
8869dc543f
Fix seeding time checkbox placement in WebUI
2020-08-19 15:55:16 +08:00
Chocobo1
ed2756b885
Convert to the proper type
2020-08-19 15:55:16 +08:00
Chocobo1
f7f0a27d76
Clean up coding style
2020-08-19 15:55:06 +08:00
Chocobo1
b2f951a269
Remove duplicate code
2020-08-19 15:12:55 +08:00
Sepro
e07c7d57d2
Change api requests in RSS WebUI to relative paths
2020-08-16 06:40:15 +02:00
FranciscoPombal
8f8f7ebd15
Remove DISABLE_COUNTRIES_RESOLUTION define
2020-07-08 01:07:50 +01:00
brvphoenix
4d9c6b9f02
WebUI: fix the url for banPeers method
2020-07-03 01:17:06 -07:00
Sepro
d1c084e3b0
Remove redundant empty value tags on inputs in WebUI
2020-06-13 00:40:47 +02:00
Sepro
04c8c4e846
Add newRule and removeRule buttons to RSS downloader WebUI
...
New buttons for the basic actions instead of only relying on the context menu.
2020-06-13 00:40:42 +02:00
Sepro
23a2675665
Fix input overlap off RSS downloader WebUI
...
The text input's in the RSS downloader window where not correctly inside their bounding box.
2020-06-12 13:23:53 +02:00
Sepro
65636e644f
Remove maxlength limit from RSS feeds in WebUI
...
URL's and feed names including paths could be longer then 100 characters, so the limit was removed.
2020-06-12 13:20:50 +02:00
Mike Tzou
17205802ec
Merge pull request #12557 from SeproDE/webui-rss
...
Implemented RSS reader and auto downloader in reference WebUI
2020-06-09 14:34:56 +08:00
thalieht
7076fc29e0
Preselect "Default save path" in WebUI watched folders
2020-06-02 16:45:25 +03:00
Vladimir Golovnev
c003a12f1f
Merge pull request #12884 from glassez/custom-storage
...
Find complete files when checking torrent
2020-05-26 19:00:37 +03:00
MR
af6cae0e09
WebUI: Fix wrong file renaming selection range
2020-05-26 16:38:54 +08:00
Vladimir Golovnev (Glassez)
f4efa530dc
Create header for common BitTorrent declarations
2020-05-25 20:32:35 +03:00
Chocobo1
2319bdd23b
Move qbittorrent32.png to WebUI images folder
2020-05-23 20:53:32 +08:00
Sepro
2b3c92a4a8
WebUI: Add RSS functionality
...
Implemented RSS Reader and AutoDownloader in reference WebUI.
2020-05-22 14:21:45 +02:00
Mike Tzou
de85b8b552
Merge pull request #12859 from Chocobo1/gif
...
Move WebUI icons to its own folder
2020-05-21 10:59:52 +08:00
Mike Tzou
c85d2e547b
Merge pull request #12835 from Piccirello/web-content-type
...
Specify Content-Type in Web API error responses
2020-05-20 14:05:20 +08:00
Thomas Piccirello
6e4f49fc57
Always specify Content-Type in Web API error responses
2020-05-19 01:08:06 -07:00
Chocobo1
e6f0c81355
Remove unused WebUI images
2020-05-19 15:09:44 +08:00
Chocobo1
02c25dbe2a
Move WebUI icons to its own folder
...
After this change: "http://<server>/icons" will point to "src/icons"
folder and "http://<server>/images" points to the real "images" folder
in the relative path.
2020-05-19 14:58:49 +08:00
Vladimir Golovnev
dde7421f59
Merge pull request #12848 from jagannatharjun/move-icons
...
Move all icon resources in icons folder root
2020-05-19 07:39:55 +03:00
jagannatharjun
ab91d546e5
Move all icon resources to icon folder root
2020-05-18 20:30:51 +05:30
Tom Piccirello
ecc17018b7
Fix Enter button behavior in web UI textarea
...
Hitting the enter button inside the textarea would submit the form, rather than advancing to the next line.
2020-05-14 03:25:11 -07:00
Mike Tzou
e015710ffd
Merge pull request #12793 from Chocobo1/prebuilt_headers
...
Prebuild HTTP headers
2020-05-12 10:13:35 +08:00
Mike Tzou
1839e3d96a
Merge pull request #12748 from Piccirello/webui_sidebar_trackers
...
Add Trackers section to Web UI sidebar
2020-05-12 10:13:06 +08:00
Chocobo1
be152f45c9
Define and use Http::HeaderMap type
2020-05-11 00:34:28 +08:00
Chocobo1
d57b9be706
Rename function
2020-05-10 02:53:32 +08:00
Chocobo1
74a2168bc1
Define and use a proper HTTP header structure
2020-05-10 02:53:11 +08:00
Chocobo1
957d697aee
Prebuild HTTP headers as much as possible
...
This avoids some branching when building a HTTP response.
2020-05-10 02:50:13 +08:00
Thomas Piccirello
ad4d8d28ec
Add Trackers section to Web UI sidebar
...
Closes #7601 .
2020-05-07 19:10:55 -07:00
Mike Tzou
991a064002
Merge pull request #12705 from Piccirello/webui_search_categories
...
Fix Web UI search categories only working in English
2020-05-05 12:35:20 +08:00
Thomas Piccirello
84a40c1665
Include trackers in /sync/maindata API endpoint
2020-05-04 00:11:45 -07:00
Thomas Piccirello
92ed5c76f3
Bump Web API version
2020-05-03 02:23:22 -07:00
Thomas Piccirello
8e8cd59d90
Fix Web UI search categories only working in English
...
Closes #10239 .
2020-05-03 02:23:22 -07:00
Thomas Piccirello
cb8a9518d1
Shrink Web UI search bar on small screens
2020-05-02 15:45:57 -07:00
Mike Tzou
8110912e4e
Merge pull request #12706 from Piccirello/webui_search_small_screen
...
Hide additional Web UI search filters on small screens
2020-05-02 11:53:08 +08:00
Mike Tzou
2aa80fe9ba
Merge pull request #12689 from thalieht/subfolder
...
Rename "Create subfolder" option to "Keep subfolder"
2020-05-01 14:09:17 +08:00
Vladimir Golovnev
7ca0592694
Merge pull request #12684 from an0n666/requires-restart
...
Remove "requires restart" from network interface settings
2020-05-01 07:38:36 +03:00
Thomas Piccirello
d5b8399a01
Hide additional Web UI search filters on small screens
...
Closes #11386 .
2020-04-30 17:14:47 -07:00
Mike Tzou
4f820163ff
Merge pull request #12691 from Chocobo1/iterator
...
Support range-based iteration in IndexRange class
2020-04-30 13:10:13 +08:00
Mike Tzou
7061242681
Merge pull request #12176 from NotTsunami/ssl
...
Add HTTPS tracker certificate validation option
2020-04-30 13:09:31 +08:00
Chocobo1
6d167e9a28
Remove const from class variables
...
It prohibits copy construction, copy assignment and move semantics.
2020-04-29 21:32:34 +08:00
an0n666
1d3bb705c8
Remove "requires restart" from network interface settings
...
Network interface changes are applied on the fly. A restart is not required.
2020-04-29 12:42:49 +06:00
thalieht
1bdffe1729
Rename "Create subfolder" to "Keep top-level folder"
...
Closes #12673
2020-04-29 03:09:38 +03:00
Chocobo1
4e961845cf
Clean up variable initialization order
2020-04-26 10:21:23 +08:00
sledgehammer999
480e732694
Bump Web API version
2020-04-25 00:20:15 +03:00
sledgehammer999
13a96407b3
Sync translations from Transifex and run lupdate
2020-04-25 00:11:21 +03:00
Vladimir Golovnev
c10318b576
Merge pull request #12549 from SeproDE/rss-api
...
Expand RSS related WebAPI
2020-04-24 07:46:37 +03:00
Chocobo1
2729c0cb6d
Suppress misleading warning message
...
QString::split() was giving a non-empty QStringList, and
that caused Session::setBannedIPs() to emit misleading warning message.
2020-04-23 21:01:33 +08:00
Chocobo1
bb80b378c1
Add ability to send custom HTTP headers
2020-04-23 12:13:01 +08:00
NotTsunami
cc1ebbf379
Add HTTPS tracker certificate validation option
...
This commit adds a new libtorrent setting to validate HTTPS tracker
certificates. When enabled, libtorrent will validate the certificate
of HTTPS trackers against the system's certificate store. This option
is only enabled on libtorrent versions >= 1.2.6 and on non-Windows
systems, as OpenSSL does not use the system's certificate store on
Windows.
2020-04-22 15:50:17 -04:00
Sepro
98bb63b390
WebAPI: Change delimiter from string to char in preferences API
2020-04-22 19:14:06 +02:00
Sepro
a3b58e59da
WebAPI: Expand RSS related API
...
Added markAsRead API method with optional parameter for specifying single article.
Added the rss_smart_episode_filters and rss_download_repack_proper_episodes keys to preference api.
Added matchingArticles API method for retrieving articles that match specified rule.
2020-04-22 19:13:17 +02:00
sledgehammer999
f1d02c6aee
Sync translations from Transifex and run lupdate
2020-04-22 18:44:30 +03:00
Mike Tzou
5cfec83385
Merge pull request #12568 from NotTsunami/upnp-fix
...
WebUI: Fix UPnP lease duration get/set
2020-04-22 02:01:08 +08:00
NotTsunami
075633cc40
WebUI: Fix UPnP lease duration get/set
...
Add missing setProperty and getProperty calls for the new UPnP lease
duration setting.
Fixes 6b4925d222
.
Closes #12566 .
2020-04-21 01:36:13 -04:00
Mike Tzou
8ed63d69de
Merge pull request #12528 from thalieht/proxycheckbox
...
Don't uncheck Authentication checkbox when changing proxy type
2020-04-21 01:28:21 +08:00
thalieht
5d16379941
Don't uncheck Authentication checkbox when changing proxy type
...
Closes #12525
2020-04-19 21:28:21 +03:00
Chocobo1
d3d3f7dbb3
Add final specifier to classes
...
This allow compilers to generate more efficient code.
2020-04-17 13:18:40 +08:00
Vladimir Golovnev (Glassez)
1132b84548
Split TorrentHandle interface and implementation
2020-04-16 20:22:26 +03:00
Mike Tzou
c25b3e623c
Merge pull request #12423 from an0n666/remove-strict-superseeding
...
Remove deprecated strict super seeding mode from advanced settings
2020-04-12 00:41:28 +08:00
Sepro
2c8230f1ae
Fix unable to add multiple peers in WebUI
...
Wrong delimiter was used.
2020-04-08 18:55:02 +02:00
an0n666
026aad2c04
Remove deprecated strict super seeding mode from advanced settings
2020-04-07 09:54:32 +06:00
Chocobo1
42d5d63867
Remove redundant type attribute
...
It already defaults to `text/css` if value is absent (in HTML5).
2020-04-03 00:15:04 +08:00
Chocobo1
e0c841d1e6
Fix mismatch ID
2020-04-03 00:00:32 +08:00
sledgehammer999
0dfa3a9c6f
Sync translations from Transifex and run lupdate
2020-04-01 17:41:24 +03:00
Mike Tzou
8a8607bf93
Merge pull request #12175 from NotTsunami/upnp
...
Add UPnP lease duration advanced option
2020-03-29 12:29:10 +08:00
Mike Tzou
4d99328b8f
Merge pull request #12228 from LameLemon/alt-title
...
Added alt and title tags for WebUI footer
2020-03-29 12:28:35 +08:00
NotTsunami
6b4925d222
Add UPnP lease duration advanced option
...
This is a new setting added that is pending addition to
libtorrent 1.2.6. This setting is important because some routers do
not support expiration times on port-maps and do not return an error
either, silently failing. The previous default of permanent leases is
retained.
2020-03-28 00:32:32 -04:00
LameLemon
757274d315
Add alt and title tags for WebUI footer
...
Improves accessibility of the WebUI. Closes #12219 .
2020-03-26 19:05:16 +00:00
Chocobo1
2c23840947
Allow to translate error messages
2020-03-25 12:00:11 +08:00
sledgehammer999
fcc87b4e9b
Sync translations from Transifex and run lupdate
2020-03-24 16:29:43 +02:00
FranciscoPombal
e496e664db
WebAPI: Always allow whitespace in category names
2020-03-22 12:16:06 +00:00
Mike Tzou
a9111b1357
Merge pull request #12180 from FranciscoPombal/fix_stats
...
Fix total connected peers count calculation
2020-03-19 12:07:20 +08:00
FranciscoPombal
a81789f4af
Fix total connected peers count calculation
...
Also fix small typo in function name.
2020-03-17 18:01:57 +00:00
Chocobo1
b7e7d8019c
Use helper function to construct QString
...
This is shorter and avoids the need of 2 constructors.
2020-03-16 21:27:42 +08:00
sledgehammer999
ea1481beef
Use IP geolocation database by DB-IP instead of MaxMind
...
Closes #11792
2020-02-18 16:11:28 +02:00
sledgehammer999
322ae3e0bc
Merge pull request #11825 from FranciscoPombal/stalled_filter
...
Add stalled filters to GUI and Web API/UI
2020-02-16 18:32:37 +02:00
Mike Tzou
dbea2d95f9
Merge pull request #12004 from Chocobo1/authCount
...
Add configurable ban options for WebUI
2020-02-15 09:43:16 +08:00
Chocobo1
6eb190c373
Expose WebUI ban duration to users
2020-02-14 16:23:30 +08:00
Chocobo1
ec61ef5145
Fix coding inconsistencies in preferences.html
...
1. Format table tags properly
2. Add a proper label tag
3. Don't use abbreviation for seconds, we use full name everywhere else
2020-02-14 16:23:03 +08:00
Chocobo1
4f7b799732
Use QDeadlineTimer for tracking WebUI banned duration
...
It simplifies our code and the new timer is monotonic.
2020-02-14 16:22:52 +08:00
Chocobo1
45bd79ee74
Close document properly after writing
...
Closing document explicitly is recommended by MDN:
https://developer.mozilla.org/en-US/docs/Web/API/Document/write
2020-02-14 12:47:18 +08:00
Chocobo1
f88d6b2e55
Expose WebUI ban counter to users
2020-02-14 12:31:12 +08:00
Nick Korotysh
1e59dcdb6c
Inherit text color for filter list elements
...
Filter list (left side panel) in WebUI is implemented using <a> tags,
CSS defines default style for all <a> elements, and specific style for
filter list elements. Default style for <a> elements sets color, and
this color also used in list. This is looks not so well. So lets just
inherit text color from parent element, and as so as it is not set, so
default text color will be used.
This makes filter list looks like other UI elemets, making all UI more
consistent (like in desktop app).
2020-02-12 10:40:08 +03:00
Nick Korotysh
536580ca6b
Use SVG image for WebUI favicon
...
This will allow browsers to get high quality icon with required
resolution instead of resizing some small raster image.
Browsers can have even more benefit from it. For example, Firefox uses
high resolution icon to display it in "Top Sites" instead of page
preview.
Nothing changes for browsers which doesn't support SVG favicons, older
PNG icon will be used in such case.
2020-02-09 08:52:32 +03:00
NotTsunami
6748e8d787
Remove redundant null checks
...
Attempting to delete a null pointer is a noop in C++.
Closes #2864 .
[1] https://isocpp.org/wiki/faq/freestore-mgmt#delete-handles-null
2020-02-03 16:38:51 -05:00
Mike Tzou
e27c9bd020
Merge pull request #11871 from NotTsunami/bitwise
...
WebUI: Use correct operators in logical expressions
2020-01-14 12:54:56 +08:00
Mike Tzou
146e8213a5
Merge pull request #11781 from FranciscoPombal/piece_extent_affinity
...
Add piece_extent_affinity to AdvancedSettings
2020-01-14 12:53:39 +08:00
Vladimir Golovnev
990e451765
Merge pull request #11865 from shemanaev/fix/webui-files-rename
...
WebUI: Fix first row renaming in files tab
2020-01-14 07:14:13 +03:00