Add WebAPI/WebUI for managing cookies

Closes #21125.
PR #21340.
This commit is contained in:
Thomas Piccirello 2024-09-30 05:13:25 -04:00 committed by GitHub
parent 10eb921d70
commit 6bbb7b71cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 285 additions and 29 deletions

View file

@ -239,6 +239,27 @@ const initializeWindows = function() {
});
});
addClickEvent("manageCookies", (e) => {
e.preventDefault();
e.stopPropagation();
const id = "cookiesPage";
new MochaUI.Window({
id: id,
title: "QBT_TR(Manage Cookies)QBT_TR[CONTEXT=CookiesDialog]",
loadMethod: "xhr",
contentURL: new URI("views/cookies.html").toString(),
maximizable: false,
paddingVertical: 0,
paddingHorizontal: 0,
width: loadWindowWidth(id, 900),
height: loadWindowHeight(id, 400),
onResize: function() {
saveWindowSize(id);
}
});
});
addClickEvent("upload", (e) => {
e.preventDefault();
e.stopPropagation();