Chocobo1
11991e62f5
WebUI: fix error when opening the same dialog twice
...
PR #22139 .
2025-01-12 21:18:41 +08:00
Chocobo1
2e21cf76de
WebUI: temporarily pin dependency
...
The plugin was causing problems in new versions so pin it with an older
version and look into it later.
Upstream issue: https://github.com/JamieMason/eslint-plugin-prefer-arrow-functions/issues/50
PR #22140 .
2025-01-11 16:28:56 +08:00
Thomas Piccirello
4fc36b9e99
Support fetching tracker list from URL
...
Trackers specified at the URL will be added to newly added public torrents.
This feature is adapted from qBittorrent-Enhanced-Edition to allow for automatically adding trackers retrieved from a URL. @ngosang's trackerlist repo is a good example, however I've opted not to include a default URL.
Partially addresses #14535 .
PR #21828 .
2025-01-08 14:51:09 +08:00
Chocobo1
d911928c59
WebUI: Remove unnecessary hashing
...
Now the containers support using string as key so the intermediate hashing/mapping to number
isn't needed now.
PR #22103 .
2025-01-06 18:53:18 +08:00
skomerko
6fe02895a8
WebUI: Remove redundant event listener
...
This PR removes broken event listener attached to RSS Rules table.
PR #22083 .
2024-12-31 21:43:39 +08:00
skomerko
395dbaa5c6
WebUI: Replace getElement with querySelector
...
All `getElement` instances (Mootools) were changed to `querySelector`.
PR #22082 .
2024-12-31 21:31:46 +08:00
Chocobo1
9c0475ebfa
WebUI: migrate to fetch API
...
This is the final part of it.
PR #22072 .
2024-12-29 15:44:28 +08:00
Chocobo1
7487cd7e6d
WebUI: disallow unnecessary quotes in property name
...
Those two forms are the same and from now on we enforce to one style.
PR #22051 .
2024-12-24 22:25:18 +08:00
skomerko
bbc3c2832f
WebUI: Use closest() to get parent element
...
All `getParent()` instances (Mootools) were changed to use `closest()` method:
https://developer.mozilla.org/en-US/docs/Web/API/Element/closest
PR #22048 .
2024-12-23 23:07:17 +08:00
Chocobo1
a841fe9320
WebUI: migrate to fetch API
...
And away from mootools.
PR #22037 .
2024-12-22 17:51:19 +08:00
Patrik Elfström
9709672b34
WebUI: Change filter inputs to type search
...
Changing input type from text to search for all search and filter inputs
to enable user to easily clear input.
This feature is yet to be implemented in Firefox.
See tracking bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1654288
Also fix search icon horizontal positioning and minor input box paddings.
Closes #15481 .
PR #22033 .
2024-12-22 17:19:03 +08:00
skomerko
14684c8c83
WebUI: Use vanilla JS to create elements
...
All elements are now created using createElement() method:
https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement
PR #21975 .
---------
Co-authored-by: Chocobo1 <Chocobo1@users.noreply.github.com >
2024-12-15 03:31:44 +08:00
Chocobo1
4c6dd8e68d
Remove wrong conditional in Origin trustworthy check
...
It might block WebUI from logging in under specific network configurations.
Fix up 130c0d8487 .
PR #21972 .
2024-12-13 16:12:29 +08:00
skomerko
3fcc298539
WebUI: Add missing icon to 'Queue' context menu item
...
PR #21948 .
2024-12-08 16:27:14 +08:00
skomerko
7080f85b59
WebUI: Replace Mootools class list manipulation methods
...
All `addClass()`, `removeClass()` and `hasClass()` instances were changed to use `classList` equivalent:
https://developer.mozilla.org/en-US/docs/Web/API/Element/classList
PR #21946 .
---------
Co-authored-by: Chocobo1 <Chocobo1@users.noreply.github.com >
2024-12-08 16:12:57 +08:00
Chocobo1
2d1c4fc809
WebUI: use native event listeners for keyboard events
...
PR #21924 .
2024-12-02 13:41:19 +08:00
Chocobo1
e8d8de8f19
WebUI: fix window can not close regression
...
Fix up 1cd3c586c1 .
Fix up e1bd1038c0 .
PR #21919 .
2024-11-29 23:59:58 +08:00
Chocobo1
90aecfea02
WebUI improvements
...
WebUI improvements
2024-11-29 23:52:55 +08:00
skomerko
a85736fd27
WebUI: Set base background color
...
This PR ensures that the same base background color is used across different browsers (more consistent styling).
Context: https://github.com/qbittorrent/qBittorrent/pull/21498#issuecomment-2399929576
Used default Chrome colors: https://github.com/qbittorrent/qBittorrent/issues/21894#issuecomment-2494253459
PR #21914 .
2024-11-29 23:44:53 +08:00
skomerko
dafbcf8709
WebUI: Add colors to 'Status' column in Trackers table
...
PR #21820 .
2024-11-29 23:36:08 +08:00
Chocobo1
f8aaea3476
WebUI: locate element faster
2024-11-27 16:17:57 +08:00
Chocobo1
b84a51c76d
WebUI: revise Edit Category dialog button text
...
The generic "OK" is suitable for more scenarios.
2024-11-27 01:22:58 +08:00
Chocobo1
83b0dd3026
WebUI: fix checkbox initialization
...
Previously the checkbox had all options checked regardless of the stored
setting.
2024-11-27 01:12:13 +08:00
Chocobo1
ef5506321a
WebUI: fix invalid style
...
`initial` isn't applicable to `borderLeft`/`borderRight`.
2024-11-27 01:12:13 +08:00
Chocobo1
24d349ffba
WebUI: fix wrong event property
2024-11-27 01:12:13 +08:00
Chocobo1
2109e13746
WebUI: use proper event for handling text changes
2024-11-27 01:12:13 +08:00
Chocobo1
5eec0c0213
WebUI: use idiomatic string methods
2024-11-27 01:12:13 +08:00
Chocobo1
f34787e6ba
WebUI: use correct property for selecting child elements
...
`firstChild` will select the first `Node` which is often not intended (it should be
`Element` instead).
2024-11-27 01:12:12 +08:00
Vladimir Golovnev
15ea836bb9
Avoid repeatedly creating the same QDateTime values
...
PR #21904 .
2024-11-26 09:04:59 +03:00
Chocobo1
72e033db79
WebUI: remove child elements directly
2024-11-26 00:43:58 +08:00
Chocobo1
e1bd1038c0
WebUI: simplify close window implementation
...
The caller site now take the responsibility to ensure the element is valid.
PR #21892 .
2024-11-26 00:40:05 +08:00
Chocobo1
b0fe6e6c59
WebUI: ensure cached info are initialized properly
...
PR #21893 .
2024-11-25 14:04:28 +08:00
Chocobo1
8d847eeb18
WebUI: clean up fetch API usage
...
The `Content-type` header isn't required since `URLSearchParams` is present.
The `method` property is preferred to be always specified for clarity.
The `cache: "no-store"` is preferred for most GET requests to avoid caching.
PR #21891 .
2024-11-25 13:49:35 +08:00
Chris B
f022ce8f84
WebAPI: Add forced parameter to torrents/add
...
Adds the parameter `addForced` to the `/api/v2/torrents/add` API call. Defaults to false if not provided.
PR #21864 .
2024-11-23 16:19:19 +08:00
Thomas Piccirello
78a5e4ff3e
WebUI: Display error when download fails
...
Previously we would still download the file but it would contain the error response, resulting in an invalid file.
To test: export a .torrent file for a torrent that hasn't yet downloaded metadata
PR #21696 .
Signed-off-by: Thomas Piccirello <thomas@piccirello.com >
2024-11-23 16:03:43 +08:00
skomerko
7300b9f759
WebUI: Eliminate unnecessary Status filter list updates
...
Only update the Status filter list when torrents are removed, added or their state changed.
PR #21866 .
2024-11-22 20:59:23 +08:00
Bartu Özen
6ce2869108
WebAPI: Fix incorrect key in torrent creator
...
PR #21879 .
2024-11-21 13:59:20 +03:00
Chocobo1
6578fd06fd
WebUI: fix failed conversion to number
...
The value has unit suffix (`px`) and require using `parseInt()` for conversion.
Fix up f73f31619d .
PR #21862 .
2024-11-19 03:12:50 +08:00
Patrik Elfström
530631322d
WebUI: Fix bug where you can't select RSS rules
...
Fixes bug caused by #21731 .
PR #21857 .
2024-11-19 02:40:22 +08:00
Mahdi Hosseinzadeh
928de36093
Improve the speed icons in the status bar
...
The speed icons in the status bar look weird. Whenever I look at them, there seems to be something off with them. The circle seems to have been stretched. Also, the gap between the needle and the circle is not big enough to be clearly visible (at least on my display).
PR #21853 .
2024-11-19 02:29:17 +08:00
Evgenii Ryshkov
1e851b3637
WebUI: Fix reloading page after login
...
PR #21832 .
---------
Co-authored-by: Chocobo1 <Chocobo1@users.noreply.github.com >
2024-11-19 02:20:04 +08:00
skomerko
c9c85eeb95
WebUI: Use event delegation to handle common table events
...
Event delegation is now used to handle basic table events.
2 minor fixes were added to match GUI behavior:
* Clicking on the table body deselects everything
* Table rows are now scrolled into view when using up/down arrows
PR #21829 .
2024-11-19 02:12:26 +08:00
skomerko
e51fcc6ea0
WebUI: Show 'Rename...' context menu item only when one torrent is selected
...
'Rename...' item in torrents table menu is displayed only when exactly one torrent is selected.
PR #21843 .
2024-11-17 15:31:30 +08:00
Chocobo1
f73f31619d
WebUI: use native function to convert to numbers
...
Also replace `parseInt()` since `Number()` behavior is more intuitive.
PR #21831 .
2024-11-16 15:41:20 +08:00
Chocobo1
ede08f3845
WebUI: fetch cached info early
...
The cached info doesn't need to wait until the DOM is loaded. They can be fetched far earlier.
PR #21830 .
2024-11-16 15:34:35 +08:00
Patrik Elfström
c9a55fce95
WebUI: Fix wrong log levels
...
Fixes bug where the first time visiting Execution Log view all log levels are deselected but log items with all levels are still displayed.
This requires you to select a log level and then deselect it to hide that log level.
PR #21812 .
2024-11-16 15:22:26 +08:00
Thomas Piccirello
1cd3c586c1
WebUI: Always close one window
...
Closing all windows is overly broad and never the intention.
PR #21804 .
2024-11-16 15:12:35 +08:00
skomerko
889df72ab3
WebUI: Use thin scrollbars
...
Thin scrollbars are now used if they are supported by user's browser. The main goal was to make them less intrusive in Chrome-likes on some platforms.
PR #21763 .
---------
Co-authored-by: Chocobo1 <Chocobo1@users.noreply.github.com >
2024-11-11 19:05:42 +08:00
Hanabishi
631e873ff2
WebUI: fix preferences class name
...
Fixup for #21780 . Account for changed preferences class name in the color scheme logic.
PR #21809 .
2024-11-11 18:53:06 +08:00
skomerko
3ec645674a
WebUI: Use modern class syntax to create LocalPreferences class
...
LocalPreferences class is now created using modern class syntax (minimal changes to remove Mootools bits). In addition, I removed redundant suffix from class name.
PR #21780 .
2024-11-09 16:40:25 +08:00