skomerko
4c91cd9372
WebUI: Use modern class syntax to create dynamic table classes
2025-04-29 21:08:17 +02:00
tehcneko
0791828b84
WebUI: fix virtual list defects
...
Fixes https://github.com/qbittorrent/qBittorrent/pull/22502#issuecomment-2822201721 and https://github.com/qbittorrent/qBittorrent/pull/22502#issuecomment-2822253388 .
PR #22597 .
2025-04-29 20:16:00 +08:00
Vladimir Golovnev
c2f2a38582
Call QPromise::start()
early to avoid race condition
...
PR #22617 .
2025-04-28 18:04:35 +03:00
Chocobo1
ad4bdc0653
Merge pull request #22615 from Chocobo1/webui_eslint
...
* WebUI: disallow unnecessary semicolons
* WebUI: ensure consistent shorthand syntax
* WebUI: disallow async functions which have no await expression
* WebUI: remove unused variable
2025-04-28 20:20:57 +08:00
Chocobo1
f3095935ea
Merge pull request #22549 from skomerko/webui-element-by-id
...
Mootools `$` alias is no longer used for element lookup (excluding lib files).
Follow up PR for #22523 .
2025-04-28 03:34:23 +08:00
Vladimir Golovnev
732b2bcbdb
Provide asynchronous results via QFuture
...
Makes asynchronous logic to look more straightforward.
Allows caller to choose blocking or non-blocking way of obtaining asynchronous results via the same interface.
PR #22598 .
2025-04-27 16:24:07 +03:00
Vladimir Golovnev
33aaa867b5
Drop support of Qt 6.5
...
PR #22599 .
2025-04-27 16:21:20 +03:00
Chocobo1
fdd17159eb
WebUI: remove unused variable
2025-04-27 16:19:51 +08:00
Chocobo1
e9fee414df
WebUI: disallow async functions which have no await expression
2025-04-27 16:19:51 +08:00
Chocobo1
1077cbba2b
WebUI: ensure consistent shorthand syntax
2025-04-27 16:19:50 +08:00
Chocobo1
70dbe9468a
WebUI: disallow unnecessary semicolons
2025-04-27 16:19:50 +08:00
Isak05
45babc336d
Fix preview not opening on Wayland
...
Deferring the opening of the preview slightly gives the preview select
dialog time to close and for focus to shift back to the main window.
PR #22608 .
Closes #22607 .
---------
Co-authored-by: Vladimir Golovnev <glassez@yandex.ru>
2025-04-27 10:02:52 +03:00
Vladimir Golovnev
70822e8942
Fix appearance of search history length spinbox
...
PR #22605 .
2025-04-26 09:28:24 +03:00
Vladimir Golovnev
b5394e7939
Don't interpret wildcard pattern as filepath globbing
...
PR #22590 .
Closes #22583 .
2025-04-26 09:27:22 +03:00
skomerko
411ca0f668
WebUI: Use native function for selecting elements by ID
2025-04-23 19:55:04 +02:00
skomerko
7b3aa51bb1
WebUI: Eliminate redundant DOM element queries
2025-04-23 19:49:40 +02:00
sledgehammer999
0b3bce8993
Sync translations from Transifex and run lupdate
2025-04-21 12:30:57 +03:00
bolshoytoster
0160aa28b6
WebUI: Don't update UI if the page is hidden
...
Currently, there is unnecessary CPU/network usage by the web UI when it's running in the background, this PR prevents it from refreshing in the background.
Closes #22565 .
PR #22567 .
2025-04-21 17:23:09 +08:00
Chocobo1
0187f19f60
WebUI: migrate away from recursion calls
...
Browsers have limited recursion depth about ~10000.
PR #22580 .
2025-04-21 17:21:18 +08:00
sledgehammer999
e87dfe35f3
Bump copyright year
2025-04-20 23:38:34 +03:00
sledgehammer999
e51be45ce6
Sync translations from Transifex and run lupdate
2025-04-20 23:34:53 +03:00
tehcneko
b4a16f6464
WebUI: Optimize table performance with virtual list
...
Adding virtual list support to dynamic tables to improve performance on large lists, I observed a 100x performance improvement on rendering on a torrent table with 5000 torrents.
This optimization is disabled by default and can be enabled in options.
PR #22502 .
2025-04-20 17:18:26 +08:00
Chocobo1
250fef4ee7
Improve error messages
...
Print error message to stderr instead of stdout.
PR #22581 .
2025-04-20 16:54:49 +08:00
Chocobo1
8fc5d0914d
Add versioning to socks.py
...
Also mark variable as private in novaprinter.py.
PR #22578 .
2025-04-20 16:47:45 +08:00
Kostiantyn Chernenok
fc5daf6e1d
Clamp seeding time limit in session
...
Add clamping for seeding and inactive seeding time limit on setting from dialog and loading from config.
Closes #21953 .
PR #22558 .
Signed-off-by: Kostiantyn <kos.chernenok@gmail.com>
2025-04-20 16:34:04 +08:00
Kostiantyn Chernenok
c878a09d27
Swap add file/link buttons on toolbar
...
Swap "Add torrent file" with "Add torrent link" button to be consistent with order in File menu.
Closes #22420 .
PR #22557 .
Signed-off-by: Kostiantyn <kos.chernenok@gmail.com>
2025-04-19 07:57:39 +08:00
Chocobo1
2aee875642
Enforce SOCKS proxy setting in search engine plugins
...
Previously it require each plugin to import helpers.py to setup SOCKS proxy.
Now it is enforced by default for all plugins.
Also added a function for plugins to ignore/restore the socket to
default state.
PR #22554 .
2025-04-19 07:11:50 +08:00
Vladimir Golovnev
2785636d3f
Prevent crash due to corrupted resume data
...
PR #22569 .
Closes #22540 .
2025-04-17 11:16:17 +03:00
Vladimir Golovnev
15069b2643
Fix the torrent relocates files when switching to "manual" mode
...
PR #22564 .
Closes #22283 .
Closes #22546 .
2025-04-16 10:23:34 +03:00
Chocobo1
f0361f1bed
Use the proper keyboard shortcut for deleting items on macOS
...
Closes #20187 .
PR #22544 .
2025-04-15 15:13:36 +08:00
Vladimir Golovnev
110e6d32b4
Explicitly reject opened Add torrent dialogs when exiting app
...
PR #22535 .
Closes #19933 .
Supercedes #22533 .
2025-04-14 09:51:59 +03:00
Chocobo1
3d73026ff2
Add SOCKS4/SOCKS4a proxy support to search engine
...
Pass 'Perform hostname lookup via proxy' setting along the way.
Also add underline to variables and functions that are private to the python module.
PR #22510 .
2025-04-13 16:25:38 +08:00
Chocobo1
abafbc0685
WebUI: avoid saving invalid size
...
Don't save the wrong size when the tab is collapsed.
Reported in: https://github.com/qbittorrent/qBittorrent/pull/21215/files#r1966052959
PR #22537 .
2025-04-12 17:59:42 +08:00
Chocobo1
5465605377
WebUI: fix dark mode in RSS entry viewer
...
Use `allow-same-origin` sandbox directive to allow fetching the parent CSS.
PR #22536 .
2025-04-12 17:54:55 +08:00
luzpaz
9331580e86
Fix grammar
...
ref: https://github.com/qbittorrent/qBittorrent/pull/19333#discussion_r1793252710
PR #22525 .
2025-04-12 17:46:48 +08:00
FredBill1
795889c417
Migrate socks.py from SocksiPy to PySocks 1.7.1
...
Migrate `socks.py` from SocksiPy 1.01 to [PySocks 1.7.1](c2fa43cbe1/socks.py
), allowing python 3+ compatibility, [details](https://github.com/qbittorrent/qBittorrent/issues/16447#issuecomment-2776894026 ).
The content of the `socks.py` is entirely copied from the [PySocks repository](c2fa43cbe1/socks.py
), the only modification is the license header at the top of the file and trimming trail whitespaces.
Closes #16447 .
PR #22507 .
2025-04-09 17:36:50 +08:00
Chocobo1
ff03eeab5b
Show info hash in log when added a duplicate torrent
...
Closes #22161 .
PR #22505 .
2025-04-08 16:31:04 +08:00
Chocobo1
f0b9a17566
WebUI: add headers to RSS entry viewer
...
Introduced Author, 'Open link' headers.
Note that the Author and 'Open link' are not mandatory fields in RSS/Atom feeds. So these
headers will only be displayed when the feed includes them.
PR #22503 .
2025-04-08 15:47:47 +08:00
xavier2k6
72e8b3272b
GHA CI: Use Qt 6.9.0 on Windows and macOS
...
PR #22509 .
2025-04-08 15:35:58 +08:00
skomerko
6c36830e5e
WebUI: Set status filter to 'All' if selected filter is no longer visible
...
Fixup for #21145
To reproduce:
1. Select status filter with 0 torrents
2. Enable 'Auto hide zero status filters' and save settings. Hidden filter is still selected:
PR #22487 .
2025-04-05 17:13:14 +08:00
Chocobo1
cdddaae939
WebUI: fix preferences not applied in magnet handler
...
Thanks for the diagnosis in this [post](https://github.com/qbittorrent/qBittorrent/issues/22495#issue-2958553624 ).
Closes #21486 .
Closes #22495 .
PR #22504 .
2025-04-05 13:51:08 +08:00
tehcneko
f540381caf
WebUI: Support creating new torrents
...
Implemented the torrent creator using WebAPI from #20366 in WebUI, the interface is mostly inspired by GUI and VueTorrent.
Closes #5614 .
PR #22459 .
2025-04-03 17:16:12 +08:00
Vladimir Golovnev
055d82bda4
Add option to enable previous Add new torrent dialog behavior
...
Some people are still unhappy with "standalone window mode" of "Add new torrent dialog" so just provide them with an option to use old "modal dialog mode" in all the current qBittorrent branches.
PR #22492 (based on original PR #19874 ).
2025-03-31 09:18:16 +03:00
Chocobo1
0796f96ee4
Merge pull request #22482 from Chocobo1/process_env
...
Refine environment variable scope
2025-03-30 15:12:10 +08:00
Vladimir Golovnev
841cffafa7
Restore ability to use server-side translation by custom WebUI
...
PR #20968 .
2025-03-30 09:47:21 +03:00
Chocobo1
ade39432be
Revise wordings related to SOCKS4 proxy
...
The affected options are not really incompatible with SOCKS4 but it is due to Qt missing
implementation. Therefore 'unavailable' is more suitable.
PR #22483 .
2025-03-29 21:09:49 +08:00
Chocobo1
830d2c207b
WebAPI: bump version
...
Related: https://github.com/qbittorrent/qBittorrent/pull/22460#issuecomment-2748821812
And add initial version of WebAPI changelog.
PR #22481 .
2025-03-29 20:47:53 +08:00
Chocobo1
97865545c3
WebUI: fix Tag counter counting wrong
...
Related: https://github.com/qbittorrent/qBittorrent/pull/22103/files/73e9116d21015542caeb9a3cfd56bfb256ebed9d#r2014898781
PR #22480 .
2025-03-29 20:41:05 +08:00
Hanabishi
3abdc3134b
WebUI: Disable alternative UI in case of the index page being inaccessible
...
Initial failed access shows an error as before, but on the next reload it falls back to the default WebUI.
PR #22399 .
Closes #18401 .
2025-03-29 20:32:22 +08:00
Chocobo1
5a716a40fb
Simplify proxy related code
2025-03-28 18:39:25 +08:00