Vladimir Golovnev (Glassez)
97c7f3bc67
Raise minimum Qt version to 5.14
2021-06-03 08:56:41 +03:00
Chocobo1
3b4bf90a13
Merge pull request #15017 from Chocobo1/css_formatting
...
Format and lint CSS code
2021-05-27 14:36:57 +08:00
Chocobo1
af49a4dd5a
Sort CSS properties
2021-05-25 13:20:38 +08:00
Chocobo1
b2081faf87
Remove redundant empty line
2021-05-25 13:20:37 +08:00
Chocobo1
f960934eb9
Merge same selector
2021-05-25 13:20:37 +08:00
Chocobo1
5522725f5d
Remove duplicate property
2021-05-25 13:20:37 +08:00
Chocobo1
9f3d36bab0
Remove useless property
...
The `padding` will override the former `padding-top`.
2021-05-25 13:20:37 +08:00
Chocobo1
87e7085c22
Remove empty block
2021-05-25 13:20:37 +08:00
Chocobo1
d8eac56f5e
Use stylelint for CSS linting
2021-05-25 13:20:37 +08:00
Chocobo1
65bdc4cf43
Format CSS code with prettier
2021-05-25 11:26:58 +08:00
Chocobo1
ee79c196df
Use prettier for formatting CSS code
2021-05-25 11:21:39 +08:00
sledgehammer999
34be8c9213
Merge pull request #14934 from sledgehammer999/translations
...
Update Qt translations and add new qbt translations
2021-05-23 21:59:29 +03:00
Chocobo1
40f6201509
Merge pull request #14976 from Chocobo1/options
...
Add `connection_speed` to advanced settings
2021-05-23 14:27:34 +08:00
zhuangzi926
2e8e2b04a1
Announce to all trackers if IP changed ( #15001 )
...
Closes #14545 .
2021-05-23 14:26:54 +08:00
Chocobo1
e21f46d824
Avoid data duplication
2021-05-21 14:38:06 +08:00
Chocobo1
ef79546508
Add connection_speed
to advanced settings
...
Now we follow libtorrent current default value 30.
Closes #6973 .
Also bump WebAPI version.
2021-05-21 14:37:57 +08:00
Vladimir Golovnev (Glassez)
2993fdb169
Improve "Watched folders" feature
...
Make "file system watcher" an application core component
and separate it from its presentation model.
2021-05-19 15:42:41 +03:00
sledgehammer999
2c47cfbe25
Add new languages
...
* Mongolian
* Persian
* Thai
2021-05-07 22:53:13 +03:00
thalieht
e86916a7f9
Make some strings in WebUI translatable
...
Closes #14920
2021-05-06 20:49:35 +03:00
sledgehammer999
94195d5339
Sync translations from Transifex and run lupdate
2021-05-02 18:32:42 +03:00
Chocobo1
fdc186c92f
Revise tag related implementations
...
Fix #12690 .
2021-04-27 11:47:52 +08:00
Vladimir Golovnev
376dedebb1
Merge pull request #14816 from glassez/tracker-entry
...
Improve "tracker entries" handling
2021-04-22 19:03:49 +03:00
Vladimir Golovnev (Glassez)
75e0990eb3
Provide tracker peers count via TrackerEntry
...
Don't expose additional accessor in Torrent interface.
2021-04-21 08:46:05 +03:00
Vladimir Golovnev (Glassez)
62a6c725d6
Don't overwrite tracker message
...
Use one of the tracker endpoint messages.
2021-04-21 08:45:09 +03:00
Chocobo1
6864e13e6f
Show "last activity" value under all circumstances
2021-04-20 10:03:25 +08:00
Vladimir Golovnev (Glassez)
6cf99cd0f2
Allow to specify file indexes in torrents/files API
2021-04-16 09:30:07 +03:00
sledgehammer999
21b3c61162
Merge pull request #14575 from sledgehammer999/license_clarification
...
Clarify that the license is GPLv2+
2021-04-07 14:02:59 +03:00
brvphoenix
bb9ca7f418
WebUI: Fix magnet url from the browser
2021-04-03 19:26:17 +08:00
Chocobo1
9b8bddf7b2
Revise folder monitoring functions in WebUI
...
Closes #14241 .
2021-03-31 12:04:22 +08:00
Chocobo1
8a087a876e
Clean up code
2021-03-31 11:27:57 +08:00
sledgehammer999
f6336a6056
Clarify that the license is GPLv2+
...
Regarding this license clarification there are 3 commits of interest
(commits A, B, C). Before commit A the COPYING file contained only the
text of the GPLv2 license, while all source files had a license block
at the top saying that they are under the terms of "GPLv2 or later". With
commit A there was a temporary change to GPLv3. The COPYING file contained
only the text of the GPLv3 license, while all source files had a license
block at the top saying that they are under the terms of "GPLv3 or later".
Then with commit B the COPYING file and the license block of the source
files was reverted to their state before commit A. Afterwards, with
commit C a license summary(or clarification) block was put at the top of
the COPYING file. This block indicated that the license was GPLv2 without
having the "or later" clause and it also included the OpenSSL exception.
However, the license block of each source file continued to contain the
"or later" clause which was not removed. The same license block continues
to exist in all current source files. Thus it is concluded that the ommision
of the "or later" clause with commit C in the COPYING file was accidental.
OR ALTERNATIVELY (OR IN ADDITION)
At the time commit C was made Christophe Dumez was not the sole contributor.
There is no record that the other contributors agreed with the supposed
GPLv2 only change or that there was a Contributor License Agreement,
transfering their rights to him. Thus making his license change decision
invalid/void/illegal.
Commit A: 54f9375b32
Commit B: 8df61db644
Commit C: 9835af4962
2021-03-29 00:08:14 +03:00
Chocobo1
98e02a8fed
Remove unnecessary URL encoding
...
Fix #14635 .
2021-03-28 13:16:34 +08:00
Chocobo1
121ff2b7be
Apply code formatting
2021-03-26 00:27:52 +08:00
Chocobo1
af85a8a340
Add necessary curly brackets
2021-03-26 00:27:52 +08:00
Chocobo1
5fe0e9395f
Don't use Object.prototypes builtins directly
...
See: https://eslint.org/docs/rules/no-prototype-builtins
2021-03-26 00:27:52 +08:00
Chocobo1
1f1cabd144
Remove unnecessary escape character
2021-03-26 00:27:51 +08:00
Chocobo1
c3bab70434
Remove extra semicolon
2021-03-26 00:27:51 +08:00
Chocobo1
1d6af22813
Add tools for js code formatting and linting
...
Due to eslint couldn't correctly resolve the context for the variables,
two eslint rules are disabled for now.
2021-03-26 00:27:12 +08:00
Mike Tzou
45c0d5a823
Merge pull request #14587 from Chocobo1/monitor
...
Remove wrong parentheses in WebUI
2021-03-24 12:47:11 +08:00
sledgehammer999
fda6def384
Sync translations from Transifex and run lupdate
2021-03-23 22:57:07 +02:00
Mike Tzou
4e8eb2c996
Merge pull request #14570 from brvphoenix/decode
...
WebUI: Avoid decoding strings repeatedly
2021-03-23 18:58:01 +08:00
Chocobo1
e43a9de2f3
Make global functions immutable
2021-03-23 18:53:56 +08:00
Chocobo1
901fca2d12
Remove wrong parentheses
...
Fix up 87ad8a1495
.
2021-03-23 17:09:24 +08:00
Vladimir Golovnev
b9676ac3eb
Merge pull request #14546 from glassez/regexp
...
Use QRegularExpression instead of deprecated QRegExp
2021-03-22 10:14:02 +03:00
Vladimir Golovnev (Glassez)
61d2ff359b
Use QRegularExpression instead of deprecated QRegExp
...
Now it follows closely the definition of wildcard for glob patterns.
The backslash (\) character is not an escape char in this context.
In order to match one of the special characters, place it in square
brackets (for example, [?]).
2021-03-22 07:50:47 +03:00
Mike Tzou
87ad8a1495
Merge pull request #14554 from thalieht/seeding_time_webui
...
Seeding time in WebUI
2021-03-22 12:08:18 +08:00
brvphoenix
5beb1b2cd0
WebUI: Avoid decoding strings repeatedly
...
Fix #14553
2021-03-21 02:09:53 -07:00
thalieht
d124041726
Allow >100 days in WebUI function "friendlyDuration"
...
Because it's not only used for ETA.
2021-03-20 15:36:08 +02:00
thalieht
9f30aba2b3
Fix incorrect seeding time string in WebUI General tab
2021-03-19 15:29:08 +02:00
thalieht
560ecbc6c3
Add seeding time to the active time column in WebUI
...
Closes #14526
2021-03-19 15:29:08 +02:00
Vladimir Golovnev (Glassez)
f022458383
Raise minimum supported Qt version to 5.12
2021-03-13 15:33:58 +03:00
Vladimir Golovnev (Glassez)
561b597031
Improve "info hash" handling
...
Define "torrent ID" concept, which is either a SHA1 hash for torrents of version 1,
or a SHA256 hash (truncated to SHA1 hash length) for torrents of version 2.
Add support for native libtorrent2 info hashes.
2021-03-12 12:43:14 +03:00
Vladimir Golovnev
4da4fb0676
Merge pull request #14479 from glassez/trackerentry
...
Improve tracker entries handling
2021-03-11 18:51:19 +03:00
Vladimir Golovnev (Glassez)
7a8c05dc7c
Improve tracker entries handling
2021-03-10 19:54:34 +03:00
Vladimir Golovnev (Glassez)
e2c785b2d5
Accept "share limits" when adding torrent using WebAPI
2021-03-09 20:01:15 +03:00
Mike Tzou
f3435c5e35
Merge pull request #14493 from Chocobo1/tos
...
Expose ToS setting from libtorrent
2021-03-08 10:24:42 +08:00
Chocobo1
5161758193
Expose ToS setting from libtorrent
...
Closes #14420 .
2021-03-07 15:32:07 +08:00
Vladimir Golovnev (Glassez)
8cfd803222
Drop implicit conversions between InfoHash and QString
2021-03-06 12:35:42 +03:00
Chocobo1
9a567721a8
Add missing semicolon
2021-03-06 14:44:10 +08:00
brvphoenix
59f0961594
WebUI: Properly decode strings
2021-02-24 21:48:21 +03:00
Chocobo1
e46c88580a
Revise getter function for torrrent queue position
...
This addresses https://github.com/qbittorrent/qBittorrent/pull/14335#issuecomment-774667836
The WebAPI is not affected as a workaround is added.
2021-02-08 14:24:16 +08:00
Si Yong Kim
74a5c6e745
Add hyperlink to Transifex on translator list
...
Closes #12609
2021-01-30 15:45:13 -08:00
Si Yong Kim
cfafe90fe0
Remove Hungarian translator email
2021-01-29 08:44:47 -08:00
Vladimir Golovnev (Glassez)
5b495e2f51
Bump WebAPI version
2021-01-23 13:55:09 +03:00
sledgehammer999
d1aba56096
Sync translations from Transifex and run lupdate
2021-01-17 23:20:45 +02:00
Vladimir Golovnev (Glassez)
710c5e2c31
WebUI: Correctly represent torrent content structure
2021-01-12 16:13:48 +03:00
Vladimir Golovnev (Glassez)
0b4fef19f6
Remove redundant suffix from TorrentHandle class
...
Originally, it was just a wrapper for libtorrent::torrent_handle class, so it mimicked its name.
It was then transformed into a more complex aggregate, but the name was retained (just by inertia).
Unlike libtorrent::torrent_handle class in whose name "handle" means the pattern used,
it does not matter for qBittorrent classes and just eats up space in the source code.
2021-01-06 16:28:17 +03:00
Mike Tzou
b79a1b5755
Merge pull request #14145 from Chocobo1/define
...
Generate version header when configuring project
2021-01-06 11:38:55 +08:00
sledgehammer999
1561f6f09f
Merge pull request #14156 from sledgehammer999/copyright_2021
...
Bump copyright year
2021-01-06 01:40:46 +02:00
sledgehammer999
b8d6058b28
Bump copyright year
2021-01-05 14:27:09 +02:00
Vladimir Golovnev (Glassez)
531ae501ad
Use std::optional<bool> instead of custom TriStateBool
2021-01-04 23:10:24 +03:00
Vladimir Golovnev (Glassez)
d0cac421bb
Change parseBool() to return optional bool value
2021-01-04 23:10:24 +03:00
Vladimir Golovnev (Glassez)
4429a16ca8
Use std::optional instead of boost::optional
2021-01-04 23:10:03 +03:00
Chocobo1
c669401767
Generate version header when configuring project
...
The basic idea is we create a version header template at
"src/base/version.h.in" and the build systems are expected to replace
strings that are enclosed with @ symbols and generate
"src/base/version.h" for other source files to consume/include.
2021-01-04 22:28:41 +08:00
Mike Tzou
d21fdb7546
Merge pull request #14118 from Chocobo1/fromstring
...
Move parsing of TriStateBool to a static class function
2021-01-02 12:58:00 +08:00
Vladimir Golovnev
b676ca7d96
Merge pull request #14108 from thalieht/webui-options-content-layout
...
Update "Keep top-level folder" in WebUI options
2021-01-01 15:32:49 +03:00
Chocobo1
e022c371ff
Move parsing of TriStateBool to a static class function
2021-01-01 12:59:48 +08:00
thalieht
bb698d682c
Update "Keep top-level folder" in WebUI options
2020-12-31 13:06:46 +02:00
sledgehammer999
fffa2f097e
Merge pull request #14069 from sledgehammer999/new_languages
...
Add new languages
2020-12-30 23:43:43 +02:00
Vladimir Golovnev (Glassez)
3af2168b02
Don't call non-existent elements
...
Fixed a regression where the script tries to access elements that no longer
exist on the page, because they were replaced with others by a previous change.
2020-12-30 16:45:49 +03:00
Vladimir Golovnev
f1337524f6
Merge pull request #14089 from glassez/fix-webui
...
Don't call non-existent elements
2020-12-29 22:30:00 +03:00
Vladimir Golovnev
348109a1f9
Merge pull request #13995 from glassez/rename-files
...
Improve content file/folder names handling
2020-12-29 22:27:58 +03:00
Vladimir Golovnev (Glassez)
690dbc4725
Don't call non-existent elements
...
Fixed a regression where the script tries to access elements that no longer
exist on the page, because they were replaced with others by a previous change.
2020-12-29 14:31:37 +03:00
sledgehammer999
ffebe82586
Add new languages
...
* Azerbaijani
* Estonian
2020-12-28 21:58:44 +02:00
Vladimir Golovnev (Glassez)
4453e7fcdd
Improve content file/folder names handling
...
Move files/folders renaming functions to core classes.
Query file/folder for renaming by its current path.
Add ability to rename content folders from WebAPI/WebUI.
2020-12-28 21:18:28 +03:00
Chocobo1
c8eefe749f
Capitalize locale names
2020-12-28 11:25:25 +08:00
sledgehammer999
162421a59a
Sync translations from Transifex and run lupdate
2020-12-26 21:15:29 +02:00
Vladimir Golovnev (Glassez)
79048812e9
Fix folder name extraction functions
...
It should return empty string if there is no parent folder.
2020-12-26 14:47:06 +03:00
Vladimir Golovnev
70b242f190
Merge pull request #13955 from glassez/content-policy
...
Improve content root folder handling
2020-12-26 14:44:51 +03:00
Mike Tzou
e1073de36f
Merge pull request #14039 from Chocobo1/stats
...
Don't use removed stat metric in libtorrent 2.0
2020-12-25 17:55:56 +08:00
Chocobo1
423983e023
Fix wrong JSON type returned
...
Fix up 78638a15be
.
Closes #14041 .
2020-12-24 23:15:36 +08:00
Chocobo1
90a1ea4281
Don't use removed stat metric in libtorrent 2.0
...
For now, the metric is not entirely removed due to WebAPI still needs to
access it.
2020-12-24 12:04:14 +08:00
Vladimir Golovnev (Glassez)
1d5dc283fe
Allow to add root folder to torrent content
2020-12-23 13:07:33 +03:00
Chocobo1
78638a15be
Migrate away from deprecated QVariant comparison operators
...
Fortunately, serializing to JSON limits the data types to a very small
subset and thus we are able to implement the comparison without much
hassle.
Fix up cba8d83b21
.
2020-12-18 13:19:15 +08:00
Vladimir Golovnev
c01d28a471
Merge pull request #13948 from FranciscoPombal/pragmatism
...
Use #pragma once instead of include guards
2020-12-14 13:51:02 +03:00
Chocobo1
20ae89c2a1
Add support for allow_idna
option
...
Upstream PR: https://github.com/arvidn/libtorrent/pull/5316
2020-12-13 12:12:24 +08:00
FranciscoPombal
6152b83405
Use #pragma once instead of include guards
2020-12-12 19:41:32 +00:00
Chocobo1
ff3d0346eb
Fix coding style
2020-12-09 22:50:01 +08:00
Chocobo1
498da509db
Use Qt provided forward declaration header
2020-12-09 18:21:02 +08:00
Chocobo1
9f0429ca6f
Use the correct type when referring to info hash
2020-12-06 22:04:28 +08:00
Mike Tzou
0f2df23800
Merge pull request #13893 from Chocobo1/input_length
...
Remove unnecessary restriction on input length
2020-12-02 23:13:06 +08:00
Chocobo1
6aa5abf298
Update URL to libtorrent settings
2020-12-02 13:50:41 +08:00
Chocobo1
bd672c4c4e
Move "embedded tracker" options to qbt section
2020-12-02 13:50:41 +08:00
Chocobo1
8d768bda31
Add links to libtorrent documentation
2020-12-02 13:50:40 +08:00
Chocobo1
83d17b5c0e
Remove unnecessary restriction on input length
...
Closes #13884 .
2020-12-02 11:51:41 +08:00
Jesse Chan
d0d5af8c66
WebAPI: bump version to 2.6.2
2020-12-01 01:43:03 +08:00
Jesse Chan
86f9b1f6db
WebAPI: allow to attach tags while adding torrents
2020-11-30 20:54:42 +08:00
Chocobo1
d46343fb9c
Add ability to use 'shift+delete' to delete torrents in WebUI
...
Closes #13827 .
2020-11-26 15:52:47 +08:00
sledgehammer999
9c938b91b7
Sync translations from Transifex and run lupdate
2020-11-24 16:58:42 +02:00
Thomas De Rocker
9515b40ca5
Fix confusion in date format description ( #1 )
...
* Update automatedrssdownloader.ui
* Update rssDownloader.html (#2 )
2020-11-21 10:09:47 +01:00
Vladimir Golovnev (Glassez)
c41df9ffbd
Improve coding style
2020-11-17 21:02:37 +03:00
sledgehammer999
6ec07d744e
Add Latgalian translation
...
Closes #12415
2020-11-16 20:26:54 +02:00
Chocobo1
0be2567d97
Don't use deprecated torrent state "allocating"
...
Closes #13737 .
2020-11-12 00:17:42 +08:00
Vladimir Golovnev (Glassez)
85bd0feee0
Handle torrent "paused" state at application level
2020-11-02 10:09:14 +03:00
Mike Tzou
b249216db6
Merge pull request #13659 from FranciscoPombal/whitespacev2
...
File health: trailing newlines, whitespace, etc fixes and GitHub Actions workflow
2020-11-02 11:33:21 +08:00
FranciscoPombal
ef1c7eec74
Fix trailing whitespace in multiple files
...
Also fix formatting of CODING_GUIDELINES.md
2020-10-28 14:20:11 +00:00
Chocobo1
188e679ea3
Remove outdated information
2020-10-28 13:09:37 +08:00
Mike Tzou
9ca415c665
Merge pull request #13636 from FranciscoPombal/clarify_protocol
...
Clarify protocol choice label
2020-10-26 12:26:28 +08:00
Mike Tzou
6d514c97f8
Merge pull request #13569 from brvphoenix/webui
...
Fix the issue that IPv6 address can't be banned
2020-10-26 12:15:54 +08:00
FranciscoPombal
831bf71ce6
Clarify protocol choice label
2020-10-25 00:11:57 +01:00
FranciscoPombal
aa899f0693
Expose contentPath in WebAPI torrents/info
...
Bump WebAPI version to 2.6.1
2020-10-23 17:49:28 +01:00
Mike Tzou
9ce54162c2
Merge pull request #13600 from thalieht/webuioption
...
Fix toggling advanced option in WebUI
2020-10-23 12:11:27 +08:00
brvphoenix
799ad0feff
Fix the issue that IPv6 address can't be banned
...
The ban action doesn't depend on ipfilter.
2020-10-21 18:21:07 -07:00
thalieht
1a56385cf9
Fix toggling advanced option in WebUI
...
option "Disallow connection to peers on privileged ports"
2020-10-22 01:34:11 +03:00
Chocobo1
8568f7a0fb
Avoid settings being reset via WebAPI
...
Closes #13585 .
2020-10-21 18:02:01 +08:00
Chocobo1
7e258bfe38
Fix typos
2020-10-20 18:56:30 +08:00
Sepro
6c016cf443
Place WebUI RSS description in sandboxed iframe
2020-10-19 06:39:19 +02:00
sledgehammer999
e757b4f8da
Sync translations from Transifex and run lupdate
2020-10-18 21:18:33 +03:00
Anton Bershanskiy
b4bfdd6f7a
Add option for hashing_threads, use 10 asyc IO threads
...
Add option for setting lt::settings_pack::hashing_threads
introduced by libtorrent 2.0. It has no effect for earlier
libtorrent versions.
Use 10 async IO threads, as per #11461 .
Closes #11461 .
2020-10-13 00:58:13 +03:00
Mike Tzou
4fa8862398
Merge pull request #13484 from Chocobo1/webui
...
Fix image not loading under proxy
2020-10-09 16:26:50 +08:00
Chocobo1
611f2de11f
Fix wrong capitalization
2020-10-09 00:40:29 +08:00
Chocobo1
744b89c878
Fix image not loading under proxy
...
Closes #13483 .
2020-10-09 00:37:32 +08:00
FranciscoPombal
2c10b3936b
Change some types (uint -> int) in RSS subsystem
2020-10-07 23:26:13 +01:00
FranciscoPombal
deffdbe881
Change some types (uint -> int) in Session class
2020-10-07 23:26:13 +01:00
Mike Tzou
c3b5668a07
Merge pull request #12577 from NotTsunami/peer
...
Allow users to configure no_connect_privileged_ports
2020-09-22 00:02:20 +08:00
NotTsunami
2eb3ff7f06
Allow users to configure no_connect_privileged_ports
...
Don't hardcode lt::settings_pack::no_connect_privileged_ports. We
support the peer alert for it already, so connections blocked by this
setting should be logged.
2020-09-20 22:46:28 -04:00
Mike Tzou
70d9ea8034
Merge pull request #13388 from Chocobo1/webui
...
Add missing semicolons in WebUI
2020-09-18 11:56:35 +08:00
FranciscoPombal
46123b9989
CMake: overhaul and improve scripts
...
- Bump minimum required version and
make use of more modern language features
- Rely more on target_...() commands to establish dependency
relationships between targets rather than directory property commands
- Improve libtorrent package discovery
- Enable and handle application features more explicitly
- Improve user-facing output
- Fix various compilation issues on Windows (MSVC and MinGW) and macOS
- Improve handling of translations
- Add explanatory comments where relevant
- Make CMake scripts fully independent of qmake files/details
- Remove old functions/macros
2020-09-17 13:13:26 +01:00
Chocobo1
ccdc3b201b
Add missing semicolons
...
Also trim trailing whitespaces along the way.
2020-09-17 12:11:13 +08:00
Chocobo1
554eab50bb
Disable deprecated libtorrent settings
2020-09-09 16:16:08 +08:00
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
FranciscoPombal
df2fbb1edc
Bump Web API version
2020-01-13 11:41:59 +00:00
FranciscoPombal
f4742a98c5
Add stalled filters to GUI and Web API/UI
...
`/api/v2/torrents/info` can now take the following new values for the`filter` parameter: `stalled`, `stalled_uploading` and `stalled_downloading`.
Requires Web API version bump.
Closes #11787
2020-01-13 11:41:37 +00:00
NotTsunami
82047104fc
WebUI: Use correct operators in logical expressions
...
As suggested in https://github.com/qbittorrent/qBittorrent/pull/11825#discussion_r365557626
2020-01-13 01:35:38 -05:00
FranciscoPombal
ed96a07a75
Add piece_extent_affinity to AdvancedSettings
...
Expose option in WebUI settings and WebAPI.
Requires WebAPI version bump.
Closes #11436 .
2020-01-13 00:11:29 +00:00
Denis
a7eb792372
WebUI: Fix first row renaming in files tab
...
Ids started from zero and first row converts to false.
Closes #11826 .
2020-01-12 20:05:38 +03:00
Chocobo1
029795bc19
Bump copyright year
2020-01-11 18:47:33 +08:00
An0n
bf32e90c40
Change placement of stop tracker timeout
2020-01-09 19:01:05 +00:00
Mike Tzou
057860584c
Merge pull request #11834 from an0n666/an0n666-expose-stop-tracker-timeout
...
Expose stop tracker timeout in Advanced Settings (GUI + WebUI)
2020-01-08 17:30:21 +08:00
an0n666
3f223c3a45
Expose stop_tracker_timeout in advanced settings
2020-01-08 08:21:55 +00:00
Chocobo1
c556b20018
Remove unused variable
2020-01-07 02:08:08 +08:00
Chocobo1
c34883f9af
Add explicit semicolon
2020-01-07 02:07:55 +08:00
Chocobo1
0577cf588c
Remove duplicate line
2020-01-07 01:59:02 +08:00
Mike Tzou
e906478a16
Merge pull request #11756 from FranciscoPombal/fix_webui_stats_race
...
WebUI: fix populating statistics window
2019-12-28 10:37:03 +08:00
FranciscoPombal
8be804b6ff
WebUI: fix populating statistics window
...
Closes #11665
2019-12-27 12:10:12 +00:00
Mike Tzou
5c3c1e07df
Merge pull request #11739 from Chocobo1/qt5_14
...
Migrate away from deprecated API in Qt 5.14
2019-12-26 12:43:04 +08:00
Chocobo1
2422d81de1
Migrate away from deprecated API in Qt 5.14
2019-12-25 19:23:37 +08:00
Mike Tzou
e62b550bfe
Merge pull request #11635 from FranciscoPombal/prevent_excessive_sync
...
WebUI: Prevent excessive requests to /api/v2/sync/maindata
2019-12-25 13:15:13 +08:00
Mike Tzou
07d4055de5
Merge pull request #11745 from FranciscoPombal/fixup_#11592
...
WebUI: remove unused/deprecated "Listen on IPv6 address" option
2019-12-25 13:07:24 +08:00
Mike Tzou
fea39fbcf2
Merge pull request #11726 from FranciscoPombal/fix_#11724
...
WebUI: Implement "Secure" flag for session cookie. Closes #11724
2019-12-25 13:06:40 +08:00
FranciscoPombal
0f6dfcf8a6
WebUI: Prevent excessive sync requests
...
Don't sync main data if a request to do so is already in progress.
This prevents piling up of requests and bogging down slow/busy machines, since the current implementation of `/api/v2/sync/maindata` is very computationally intensive, especially with lots of torrents.
Everything gets updated on the next scheduled request anyway (via the timeout mechanism).
2019-12-24 12:15:26 +00:00
sledgehammer999
f672df1cf1
Merge pull request #11278 from Piccirello/country_region
...
Rename Country column to "Country / Region"
2019-12-23 21:54:30 +02:00
FranciscoPombal
e693fdeaf9
WebUI: remove unused/deprecated option
...
Fixup 8200ef6
Remove "Listen on IPv6 address" option.
2019-12-23 18:57:46 +00:00
FranciscoPombal
691d5e5d89
WebUI: Implement "Secure" flag for session cookie
...
Closes #11724 .
Option is enabled by default for users using qBittorrent's built-in HTTPS capabilities. This flag will never be set if qBittorrent is using plain HTTP.
Users using HTTPS reverse proxies, like "qbt <-> (http) <-> proxy <-> (https) <-> user" should override the flag in the proxy in order to set it, if they wish to do so.
2019-12-23 17:58:08 +00:00
sledgehammer999
a25ed5f639
Sync translations from Transifex and run lupdate
2019-12-18 00:33:00 +02:00
sledgehammer999
1376e051df
Bump Web API version
2019-12-18 00:20:27 +02:00
sledgehammer999
d09c5e529c
Merge pull request #11592 from sledgehammer999/refactor_listeningAddr
...
Rework the listening IP/interface selection code
2019-12-12 20:24:45 +02:00
sledgehammer999
8200ef6bd5
Rework the listening IP/interface selection code
...
Closes #11561
2019-12-11 09:56:45 +02:00
nl6720
5f5385d4dd
Fix quoting of alert() in client.js
...
Fix alert() I broke in #11615 .
2019-12-10 12:45:55 +02:00
Mike Tzou
a652c39394
Merge pull request #11029 from Piccirello/webui-rename-file
...
Add ability to rename torrent files from the WebUI
2019-12-10 12:39:19 +08:00
Thomas Piccirello
2bce9f6179
Add ability to rename torrent files from the WebUI
...
Renaming folders is not yet supported. Closes #8892 .
2019-12-09 02:57:32 -08:00
Thomas Piccirello
9fecd18293
Fix incorrect function being used
2019-12-09 02:53:36 -08:00
nl6720
c1ef846c3d
Mention lack of HTTPS in WebUI magnet link warning
...
According to Mozilla docs, registerProtocolHandler() is only
available when using secure contexts (i.e. HTTPS for everything
outside localhost).
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerProtocolHandler
The message "Your browser does not support this feature" does not
make this obvious and can lead to confusion if the user is using a
modern browser.
2019-12-08 11:41:30 +02:00
Chocobo1
5f165c4c00
Fix HTML elements size in search tab
...
Specifying a height/width value might cut the displayed text or
obstruct centering the text in the button, so let it auto decide
instead.
Closes #11553 .
2019-12-04 18:25:14 +08:00
Thomas Piccirello
33a3624652
Rename Country column to "Country / Region"
...
Not all flags displayed strictly belong to countries.
2019-12-03 23:05:38 -08:00
Chocobo1
04f270b9bc
Fix missing translations in search plugins dialog
...
Closes #11551 .
2019-12-04 12:20:11 +08:00
sledgehammer999
f46058bbd6
Sync translations from Transifex and run lupdate
2019-12-02 23:37:06 +02:00
sledgehammer999
bd3f723ebf
Merge pull request #11474 from sledgehammer999/webui_bump
...
Bump Web API version
2019-11-27 22:37:40 +02:00
sledgehammer999
c27457efda
Sync translations from Transifex and run lupdate
2019-11-21 21:21:58 +02:00
Chocobo1
8fe8cbd3d1
Reuse code path in switch cases
2019-11-14 12:14:29 +08:00
Chocobo1
9b5df92078
Give better name to parameter checking function
...
This function will throw exceptions if the required parameters do not
exsit hence a stronger word is more appropriate here.
Also change the function parameter type to QVector. We don't need the
duplicate entries checking as currently we only use 3 fields at max and
can be easily checked by hand. So drop back to QVector which can be
constructed more efficiently.
2019-11-14 12:14:20 +08:00
sledgehammer999
eff0208382
Bump Web API version
...
Closes #11403
2019-11-11 02:18:59 +02:00
sledgehammer999
0ff3b7641d
Correctly update WebUI translations
2019-11-11 02:13:35 +02:00
sledgehammer999
871161310b
Sync translations from Transifex and run lupdate
2019-11-11 02:03:06 +02:00
Chocobo1
6fd678195c
Replace deprecated Qt functions
...
QSet::toList() is replaced by QSet::values()
2019-10-31 12:40:24 +08:00
Chocobo1
e32ef7f5c5
Use implicit sharing when getting categories from Session class
2019-10-30 01:46:57 +08:00
sledgehammer999
009ccbef7f
Bump Web API version
...
Closes #11304
2019-10-27 17:20:28 +02:00
Chocobo1
e0a23ba93d
Use InfoHash type in queueing operations
...
This avoids redundant type conversions.
2019-10-02 15:21:16 +08:00
Mike Tzou
975b44d05f
Merge pull request #11241 from thalieht/delfolder
...
Add "Remove torrent and its files" option to share ratio limiting
2019-09-29 09:51:41 +08:00
thalieht
53e7faa47c
Rename share ratio limiting options
2019-09-26 13:34:03 +03:00
thalieht
07eb261991
Add "Remove torrent and its files" option to share ratio limiting
2019-09-26 13:34:03 +03:00
xnor
ecc3ff3ca4
WebUI: fix escaping of HTML special characters
...
JS code for torrent general properties, files, peers, trackers inconsistently
escaped HTML special characters, then the dynamicTable inconsistently escaped
again and then the value was set to HTML element text or html properties.
To fix this mess, don't escape any property values in the prop-*.js files.
Instead, make dynamicTable set HTML element text instead of html property by
default. This behavior can be overridden by setting a custom updateTd
function on the respective column, if needed. This is where the HTML escaping
should be done.
Also reordered existing updateTd functions to match column order, changed
custom updateTd functions from setting html to text property wherever possible,
removed custom updateTd functions that turned out to be redundant.
2019-09-21 13:09:42 +00:00
Thomas Piccirello
9804a2e06a
Fix typo
2019-09-14 18:25:46 -07:00
Thomas Piccirello
1439bcc864
Move JavaScript code into explicit namespaces
...
This cleans up the global namespace by explicitly exporting shared values. All html and JavaScript files have been converted to use explicit exports except for client.js and mocha-init.js
2019-09-14 18:24:53 -07:00
Mike Tzou
f3b4fb8600
Merge pull request #11154 from ClemPera/patch-1
...
Remove max character limit of location path
2019-09-07 11:55:29 +08:00
Chocobo1
60994df8d0
Conditionally disable port input field
...
Disable port input when "Use different port on each startup" option is selected.
This follows the behavior in GUI.
2019-09-01 22:55:57 +08:00
Clément Pera
f42b10f3b6
Remove max character limit of location path
...
I removed the maxlength attribute because we couldn't modify the location path when it has more than 100 characters.
2019-09-01 08:02:49 +02:00
Mike Tzou
5c7f9530ee
Merge pull request #11060 from Chocobo1/tracker
...
Improve embedded tracker
2019-08-22 12:18:56 +08:00
Chocobo1
8d0d8e4dcb
Improve embedded tracker
...
Now it conforms to BEPs more closely.
2019-08-21 18:05:50 +08:00
Chocobo1
fba72f5fb7
Simplify code
2019-08-21 17:46:11 +08:00
Thomas Piccirello
7047974132
Extract WebUI localStorage access into class
2019-08-18 23:58:11 -07:00
Chocobo1
f907328bdc
Add const to class function
2019-08-14 20:29:01 +08:00
Chocobo1
230949ee3b
Cache and reuse detected MIME type
2019-08-14 17:51:19 +08:00
Chocobo1
b34d90df0b
Fix translation issues
...
By using disambiguation field instead of comment field to differentiate
translations.
2019-08-13 12:20:23 +08:00
Mike Tzou
8555629128
Merge pull request #11057 from Piccirello/fix-pref-saving
...
Don't save preferences until all options are processed
2019-08-13 11:41:54 +08:00
Mike Tzou
c15e8752ed
Merge pull request #11053 from Piccirello/refactor_misc
...
Simplify WebUI function implementation
2019-08-13 11:41:35 +08:00
Vladimir Golovnev
2cac830749
Merge pull request #11054 from Piccirello/tom_organize_assets
...
Organize WebUI assets
2019-08-12 14:50:36 +03:00
Vladimir Golovnev (Glassez)
e649559650
Allow to refresh RSS item(s) via WebAPI
2019-08-12 07:39:23 +03:00
Tom Piccirello
bed143cafa
Don't save preferences until all options are processed
2019-08-11 13:44:18 -07:00
Thomas Piccirello
085ae05f19
Move WebUI views into separate folder
2019-08-10 22:14:08 -07:00
Thomas Piccirello
f214dd233b
Rename WebUI content files
2019-08-10 22:14:01 -07:00
Thomas Piccirello
b3f9b9e9b2
Rename WebUI toolbar files
2019-08-10 22:13:56 -07:00
Thomas Piccirello
3f8f9a3962
Remove html tags from inline page
...
This page's content is inserted into the existing page, so the presence of an <html> tag is incorrect.
2019-08-10 22:09:58 -07:00
Thomas Piccirello
feb1570c48
Simplify function implementation
2019-08-10 22:08:15 -07:00
Vladimir Golovnev
2d28f50acd
Merge pull request #10928 from Piccirello/webui-search-filter
...
Support exclusions in WebUI table filters
2019-08-10 21:46:11 +03:00
Mike Tzou
767f024585
Merge pull request #7475 from thalieht/ratiosuperseed
...
Add option to enable Super Seeding mode once ratio/time limit is reached. Closes #7160 .
2019-08-10 11:33:09 +08:00
thalieht
1f6f1716ad
Enable Super Seeding mode once ratio/time limit is reached
2019-08-09 13:06:34 +03:00
Mike Tzou
1eeac90a29
Merge pull request #11027 from airium/sort-name
...
Sort torrent names case-insensitively in webui
2019-08-08 13:02:19 +08:00
airium
2ded6dc636
Sort torrent names case-insensitively in webui
2019-08-06 21:13:36 +08:00
Thomas Piccirello
6b1481d328
Increase WebUI window heights
...
Using a max height of 600px to avoid unnecessarily tall windows.
2019-08-06 01:48:31 -07:00
Thomas Piccirello
b829a0c687
Support exclusions in WebUI table filters
...
Closes #10241
2019-08-05 22:55:36 -07:00
Mike Tzou
7f1bff4eb4
Merge pull request #11017 from Chocobo1/apictrl
...
Improvements to APIController class
2019-08-06 10:17:27 +08:00
Mike Tzou
2b617b0e71
Merge pull request #11010 from Chocobo1/qvector
...
Replace QList by QVector
2019-08-06 10:16:28 +08:00
Mike Tzou
7d598b18ca
Merge pull request #10158 from Piccirello/webui-peers-table
...
Add ability to add and ban a peer from the Web UI
2019-08-06 10:16:09 +08:00
Mike Tzou
733da5ffdb
Merge pull request #10153 from Piccirello/webui-files-table
...
Display files hierarchically in Web UI content tab
2019-08-06 10:15:22 +08:00
Chocobo1
e90a2c00a5
Replace QList by QVector
2019-08-05 20:56:15 +08:00
Thomas Piccirello
0fa28f233f
Add ability to add and ban a peer from the Web UI
2019-08-05 01:12:59 -07:00
Chocobo1
f4e7b8c6bf
Replace QMap with QHash
2019-08-05 09:51:39 +08:00
Chocobo1
c004a84f84
Avoid redundant actions/conversions
...
QSet::contains(QSet &) isn't doing anything magical it still has the usual loop
inside, so lets just save all the container conversions and do the loop ourselves.
2019-08-05 09:51:38 +08:00
Chocobo1
a3ca277eaf
Avoid back and forth string conversions
2019-08-05 09:42:38 +08:00
Thomas Piccirello
60a1835813
Display files hierarchically in Web UI content tab
2019-08-04 16:02:41 -07:00
Chocobo1
2346bc8f7c
Replace obsoleted QDateTime::toTime_t()
2019-08-01 23:19:21 +08:00
Chocobo1
cfe83275d3
Avoid redundant data copy by using JSON objects directly
2019-08-01 23:18:50 +08:00
Chocobo1
f6ee96ed83
Replace QVariantMap by QVariantHash
2019-07-31 23:48:41 +08:00
Chocobo1
7f300b757f
Use C++11 uniform initialization
2019-07-31 23:48:41 +08:00
Chocobo1
bad588a749
Move data keys into anonymous namespace and sort them
2019-07-31 23:48:41 +08:00
Chocobo1
25a94ee60a
Avoid redundant data conversions and lookups
2019-07-31 23:48:41 +08:00
Mike Tzou
45690967a0
Merge pull request #10970 from Piccirello/webui-search-context-menu
...
Add context menu to Web UI search table
2019-07-29 12:01:18 +08:00
Thomas Piccirello
c17d653544
Fix WebUI removing parameters from magnet links
...
Closes #10939
2019-07-26 03:18:16 -07:00
Thomas Piccirello
65dfec9acf
Minor refactor on WebUI download page
2019-07-26 03:17:33 -07:00
Thomas Piccirello
6ea6e52d99
Add context menu to Web UI search table
...
Web UI implementation of #10852 .
2019-07-26 02:54:11 -07:00
Thomas Piccirello
35ebd9a095
Default WebUI search tab to enabled
...
Search plugins and categories are now retrieved when the Search tab is first switched to. This prevents possible unnecessary instantiation of the SearchPluginManager.
2019-07-26 02:53:09 -07:00
Thomas Piccirello
e0037b819a
Always send paths with '/' as file separator
2019-07-26 01:03:22 -07:00
Chocobo1
19b8a52e44
Add helper function to convert to fixed-point string
2019-07-25 13:17:14 +08:00
Chocobo1
60faba60ea
Add availability column
...
Closes #1632 .
2019-07-25 13:17:14 +08:00
Vasiliy Halimonchuk
7fb1e07b39
Remove unused variables
2019-07-23 13:31:50 +03:00
Vasiliy Halimonchuk
80d1c48f0d
Fix typos
2019-07-23 13:31:49 +03:00
Vasiliy Halimonchuk
fe0fb3a251
Refactor var
to let
/const
or this
2019-07-23 13:31:43 +03:00
Vasiliy Halimonchuk
b530e19a44
Implement tag management for WebUI
2019-07-23 13:30:11 +03:00
Vladimir Golovnev
cf2e7d77d6
Merge pull request #10950 from glassez/drop-deprecated
...
Don't use deprecated libtorrent features
2019-07-23 09:19:15 +03:00
Vladimir Golovnev (Glassez)
ad6a40d5f4
Extract PeerAddress class into separate file
2019-07-23 06:27:35 +03:00