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