WebUI: Replace slider with native input range

Got rid of Mootools and MochaUI.

PR #22769.
This commit is contained in:
tehcneko
2025-05-27 14:22:13 +08:00
committed by GitHub
parent 48f7f6fb8c
commit 84ed24e257
9 changed files with 173 additions and 483 deletions

View File

@@ -309,9 +309,10 @@ const initializeWindows = () => {
});
globalUploadLimitFN = () => {
const contentURL = new URL("uploadlimit.html", window.location);
const contentURL = new URL("speedlimit.html", window.location);
contentURL.search = new URLSearchParams({
hashes: "global"
hashes: "global",
type: "upload",
});
new MochaUI.Window({
id: "uploadLimitPage",
@@ -334,9 +335,10 @@ const initializeWindows = () => {
if (hashes.length <= 0)
return;
const contentURL = new URL("uploadlimit.html", window.location);
const contentURL = new URL("speedlimit.html", window.location);
contentURL.search = new URLSearchParams({
hashes: hashes.join("|")
hashes: hashes.join("|"),
type: "upload",
});
new MochaUI.Window({
id: "uploadLimitPage",
@@ -455,9 +457,10 @@ const initializeWindows = () => {
};
globalDownloadLimitFN = () => {
const contentURL = new URL("downloadlimit.html", window.location);
const contentURL = new URL("speedlimit.html", window.location);
contentURL.search = new URLSearchParams({
hashes: "global"
hashes: "global",
type: "download",
});
new MochaUI.Window({
id: "downloadLimitPage",
@@ -498,9 +501,10 @@ const initializeWindows = () => {
if (hashes.length <= 0)
return;
const contentURL = new URL("downloadlimit.html", window.location);
const contentURL = new URL("speedlimit.html", window.location);
contentURL.search = new URLSearchParams({
hashes: hashes.join("|")
hashes: hashes.join("|"),
type: "download",
});
new MochaUI.Window({
id: "downloadLimitPage",