mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
WebUI: disallow unnecessary semicolons
This commit is contained in:
parent
45babc336d
commit
70dbe9468a
9 changed files with 19 additions and 18 deletions
|
@ -40,6 +40,7 @@ export default [
|
|||
"prefer-template": "error",
|
||||
"radix": "error",
|
||||
"PreferArrowFunctions/prefer-arrow-functions": "error",
|
||||
"Stylistic/no-extra-semi": "error",
|
||||
"Stylistic/no-mixed-operators": [
|
||||
"error",
|
||||
{
|
||||
|
|
|
@ -1818,5 +1818,5 @@ window.addEventListener("load", async () => {
|
|||
console.error(`Unexpected 'selected_window_tab' value: ${previouslyUsedTab}`);
|
||||
$("transfersTabLink").click();
|
||||
break;
|
||||
};
|
||||
}
|
||||
});
|
||||
|
|
|
@ -292,7 +292,7 @@ window.qBittorrent.ContextMenu ??= (() => {
|
|||
this.options.actions[action](element, this, action);
|
||||
return this;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
class FilterListContextMenu extends ContextMenu {
|
||||
constructor(options) {
|
||||
|
@ -316,7 +316,7 @@ window.qBittorrent.ContextMenu ??= (() => {
|
|||
.setEnabled("stopTorrents", torrentsVisible)
|
||||
.setEnabled("deleteTorrents", torrentsVisible);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
class TorrentsTableContextMenu extends ContextMenu {
|
||||
updateMenuItems() {
|
||||
|
@ -577,13 +577,13 @@ window.qBittorrent.ContextMenu ??= (() => {
|
|||
contextTagList.appendChild(setTagItem);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
class StatusesFilterContextMenu extends FilterListContextMenu {
|
||||
updateMenuItems() {
|
||||
this.updateTorrentActions();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
class CategoriesFilterContextMenu extends FilterListContextMenu {
|
||||
updateMenuItems() {
|
||||
|
@ -604,7 +604,7 @@ window.qBittorrent.ContextMenu ??= (() => {
|
|||
|
||||
this.updateTorrentActions();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
class TagsFilterContextMenu extends FilterListContextMenu {
|
||||
updateMenuItems() {
|
||||
|
@ -616,7 +616,7 @@ window.qBittorrent.ContextMenu ??= (() => {
|
|||
|
||||
this.updateTorrentActions();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
class TrackersFilterContextMenu extends FilterListContextMenu {
|
||||
updateMenuItems() {
|
||||
|
@ -628,7 +628,7 @@ window.qBittorrent.ContextMenu ??= (() => {
|
|||
|
||||
this.updateTorrentActions();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
class SearchPluginsTableContextMenu extends ContextMenu {
|
||||
updateMenuItems() {
|
||||
|
@ -642,7 +642,7 @@ window.qBittorrent.ContextMenu ??= (() => {
|
|||
|
||||
this.showItem("Uninstall");
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
class RssFeedContextMenu extends ContextMenu {
|
||||
updateMenuItems() {
|
||||
|
@ -715,9 +715,9 @@ window.qBittorrent.ContextMenu ??= (() => {
|
|||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
class RssArticleContextMenu extends ContextMenu {};
|
||||
class RssArticleContextMenu extends ContextMenu {}
|
||||
|
||||
class RssDownloaderRuleContextMenu extends ContextMenu {
|
||||
adjustMenuPosition(e) {
|
||||
|
@ -765,7 +765,7 @@ window.qBittorrent.ContextMenu ??= (() => {
|
|||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return exports();
|
||||
})();
|
||||
|
|
|
@ -3128,7 +3128,7 @@ window.qBittorrent.DynamicTable ??= (() => {
|
|||
img.height = "22";
|
||||
td.append(img);
|
||||
}
|
||||
};
|
||||
}
|
||||
},
|
||||
newColumn: function(name, style, caption, defaultWidth, defaultVisible) {
|
||||
const column = {};
|
||||
|
|
|
@ -61,7 +61,7 @@ window.qBittorrent.LocalPreferences ??= (() => {
|
|||
console.error(err);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return exports();
|
||||
})();
|
||||
|
|
|
@ -85,7 +85,7 @@ window.qBittorrent.pathAutofill ??= (() => {
|
|||
input.addEventListener("input", function() { showPathSuggestions(this, "all"); });
|
||||
input.classList.add("pathAutoFillInitialized");
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return exports();
|
||||
})();
|
||||
|
|
|
@ -603,7 +603,7 @@ window.qBittorrent.Search ??= (() => {
|
|||
option.value = category.id;
|
||||
option.textContent = category.name;
|
||||
categoryOptions.push(option);
|
||||
};
|
||||
}
|
||||
|
||||
// first category is "All Categories"
|
||||
if (categoryOptions.length > 1) {
|
||||
|
|
|
@ -1891,7 +1891,7 @@ Use ';' to split multiple entries. Can use wildcard '*'.)QBT_TR[CONTEXT=OptionsD
|
|||
case "other":
|
||||
other = $(`cb_watch_txt_${i}`).value.trim();
|
||||
break;
|
||||
};
|
||||
}
|
||||
|
||||
folders[fpath] = other;
|
||||
}
|
||||
|
|
|
@ -232,7 +232,7 @@
|
|||
if ((row.full_data.dataPath.slice(0, selectedPath.length) === selectedPath) && (row.full_data.dataUid !== ""))
|
||||
feedsToUpdate.add(row);
|
||||
}
|
||||
};
|
||||
}
|
||||
feedsToUpdate.forEach((feed) => refreshFeed(feed.full_data.dataUid));
|
||||
},
|
||||
markRead: markSelectedAsRead,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue