mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
WebUI: prefer prefix increment operator
Some checks failed
cpp.yaml / WebUI: prefer prefix increment operator (push) Failing after 0s
js.yaml / WebUI: prefer prefix increment operator (push) Failing after 0s
CI - File health / Check (push) Has been cancelled
CI - macOS / Build (push) Has been cancelled
CI - Ubuntu / Build (push) Has been cancelled
CI - Python / Check (push) Has been cancelled
CI - WebUI / Check (push) Has been cancelled
CI - Windows / Build (push) Has been cancelled
Some checks failed
cpp.yaml / WebUI: prefer prefix increment operator (push) Failing after 0s
js.yaml / WebUI: prefer prefix increment operator (push) Failing after 0s
CI - File health / Check (push) Has been cancelled
CI - macOS / Build (push) Has been cancelled
CI - Ubuntu / Build (push) Has been cancelled
CI - Python / Check (push) Has been cancelled
CI - WebUI / Check (push) Has been cancelled
CI - Windows / Build (push) Has been cancelled
Adhere to coding style. PR #23076.
This commit is contained in:
parent
d6672abb94
commit
7a1a214f73
6 changed files with 14 additions and 14 deletions
|
@ -263,7 +263,7 @@
|
|||
|
||||
// Adjust file enumeration count by 1 when replacing single files to prevent naming conflicts
|
||||
if (!fileRenamer.replaceAll) {
|
||||
fileRenamer.fileEnumerationStart++;
|
||||
++fileRenamer.fileEnumerationStart;
|
||||
document.getElementById("file_counter").value = fileRenamer.fileEnumerationStart;
|
||||
}
|
||||
setupTable(selectedRows);
|
||||
|
|
|
@ -82,7 +82,7 @@ window.qBittorrent.MonkeyPatch ??= (() => {
|
|||
else if (MUI.files[source] === "loading") {
|
||||
let tries = 0;
|
||||
const checker = (function() {
|
||||
tries++;
|
||||
++tries;
|
||||
if ((MUI.files[source] === "loading") && (tries < "100"))
|
||||
return;
|
||||
$clear(checker);
|
||||
|
|
|
@ -89,7 +89,7 @@ window.qBittorrent.MultiRename ??= (() => {
|
|||
// Don't replace escape chars when they don't precede the current search being performed
|
||||
if (input.substring(i + escape.length, i + escape.length + search.length) !== search) {
|
||||
result += input[i];
|
||||
i++;
|
||||
++i;
|
||||
continue;
|
||||
}
|
||||
// Replace escape chars when they precede the current search being performed, unless explicitly told not to
|
||||
|
@ -110,7 +110,7 @@ window.qBittorrent.MultiRename ??= (() => {
|
|||
}
|
||||
else {
|
||||
result += input[i];
|
||||
i++;
|
||||
++i;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
|
|
@ -2205,7 +2205,7 @@ Use ';' to split multiple entries. Can use wildcard '*'.)QBT_TR[CONTEXT=OptionsD
|
|||
|
||||
const updateWebuiLocaleSelect = (selected) => {
|
||||
const languages = [];
|
||||
for (let i = 0; i < document.getElementById("locale_select").options.length; i++)
|
||||
for (let i = 0; i < document.getElementById("locale_select").options.length; ++i)
|
||||
languages.push(document.getElementById("locale_select").options[i].value);
|
||||
|
||||
if (!languages.includes(selected)) {
|
||||
|
|
|
@ -384,7 +384,6 @@
|
|||
|
||||
const showRssFeed = (path) => {
|
||||
rssArticleTable.clear();
|
||||
let rowCount = 0;
|
||||
|
||||
const childFeeds = new Set();
|
||||
for (const row of rssFeedTable.getRowValues()) {
|
||||
|
@ -406,10 +405,11 @@
|
|||
if (path === "")
|
||||
visibleArticles = visibleArticles.filter((a) => !a.isRead);
|
||||
|
||||
let rowID = -1;
|
||||
visibleArticles.sort((e1, e2) => new Date(e2.date) - new Date(e1.date))
|
||||
.each((torrentEntry) => {
|
||||
rssArticleTable.updateRowData({
|
||||
rowId: rowCount++,
|
||||
rowId: ++rowID,
|
||||
name: torrentEntry.title,
|
||||
link: torrentEntry.link,
|
||||
torrentURL: torrentEntry.torrentURL,
|
||||
|
|
|
@ -494,12 +494,12 @@ Supports the formats: S01E01, 1x1, 2017.12.31 and 31.12.2017 (Date formats also
|
|||
const responseJSON = await response.json();
|
||||
|
||||
rssDownloaderRulesTable.clear();
|
||||
let rowCount = 0;
|
||||
let rowID = -1;
|
||||
for (const rule in responseJSON) {
|
||||
if (!Object.hasOwn(responseJSON, rule))
|
||||
continue;
|
||||
rssDownloaderRulesTable.updateRowData({
|
||||
rowId: rowCount++,
|
||||
rowId: ++rowID,
|
||||
checked: responseJSON[rule].enabled,
|
||||
name: rule
|
||||
});
|
||||
|
@ -677,18 +677,18 @@ Supports the formats: S01E01, 1x1, 2017.12.31 and 31.12.2017 (Date formats also
|
|||
const responseJSON = await response.json();
|
||||
|
||||
rssDownloaderArticlesTable.clear();
|
||||
let rowCount = 0;
|
||||
let rowID = -1;
|
||||
for (const feed in responseJSON) {
|
||||
if (!Object.hasOwn(responseJSON, feed))
|
||||
continue;
|
||||
rssDownloaderArticlesTable.updateRowData({
|
||||
rowId: rowCount++,
|
||||
rowId: ++rowID,
|
||||
name: feed,
|
||||
isFeed: true
|
||||
});
|
||||
responseJSON[feed].each((article) => {
|
||||
rssDownloaderArticlesTable.updateRowData({
|
||||
rowId: rowCount++,
|
||||
rowId: ++rowID,
|
||||
name: article,
|
||||
isFeed: false
|
||||
});
|
||||
|
@ -788,10 +788,10 @@ Supports the formats: S01E01, 1x1, 2017.12.31 and 31.12.2017 (Date formats also
|
|||
setElementTitles();
|
||||
|
||||
rssDownloaderFeedSelectionTable.clear();
|
||||
let rowCount = 0;
|
||||
let rowID = -1;
|
||||
feedList.forEach((feed) => {
|
||||
rssDownloaderFeedSelectionTable.updateRowData({
|
||||
rowId: rowCount++,
|
||||
rowId: ++rowID,
|
||||
checked: rulesList[ruleName].affectedFeeds.contains(feed.url),
|
||||
name: feed.name,
|
||||
url: feed.url
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue