From 4c840bf318a02639bdfc826444ee0fb8bffd934c Mon Sep 17 00:00:00 2001 From: db-2001 Date: Sun, 21 Apr 2024 13:51:44 -0400 Subject: [PATCH] C9Glax/tranga-website#59 --- Website/apiConnector.js | 13 ++++++++++++- Website/index.html | 12 +++++++++--- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/Website/apiConnector.js b/Website/apiConnector.js index 33a3886..aa5f40a 100644 --- a/Website/apiConnector.js +++ b/Website/apiConnector.js @@ -240,10 +240,21 @@ Date.prototype.timeNow = function () { function UpdateAprilFoolsMode() { checkBox = document.getElementById("aprilFoolsMode"); var uri = `${apiUri}/Settings/AprilFoolsMode?enabled=${checkBox.checked}`; - console.log(uri); PostData(uri); } +function ResetRateLimits() { + var uri = `${apiUri}/Settings/customRequestLimit/Reset`; + PostData(uri); + OpenSettings(); +} + +function ResetUserAgent() { + var uri = `${apiUri}/Settings/userAgent/Reset`; + PostData(uri); + OpenSettings(); +} + //Komga function UpdateKomga(komgaUrl, komgaAuth){ var uri = `${apiUri}/LibraryConnectors/Update?libraryConnector=Komga&komgaUrl=${komgaUrl}&komgaAuth=${komgaAuth}`; diff --git a/Website/index.html b/Website/index.html index b7f9c6c..7142dba 100644 --- a/Website/index.html +++ b/Website/index.html @@ -104,7 +104,7 @@ - Refresh Library Metadata + Reset User Agent Download Logs @@ -114,13 +114,19 @@ + + Reset All Rate Limits +
- Appearance - + + Refresh Library Metadata +