From c7e49fb6bce18f22a482b8c8fb5d01178c39cab2 Mon Sep 17 00:00:00 2001 From: db-2001 Date: Fri, 9 Feb 2024 11:17:33 -0500 Subject: [PATCH] Added in remaining Tranga settings functionality Changed CSS style to be stored in local storage since we might want it to be browser specific (mobile vs desktop vs tablet) --- Website/apiConnector.js | 10 +++---- Website/index.html | 52 +++++++++++++++++++----------------- Website/interaction.js | 59 +++++++++++++++++++---------------------- Website/styles/base.css | 42 ++++++++++++++++++++++++++--- 4 files changed, 98 insertions(+), 65 deletions(-) diff --git a/Website/apiConnector.js b/Website/apiConnector.js index 5b298a8..955ecf0 100644 --- a/Website/apiConnector.js +++ b/Website/apiConnector.js @@ -163,16 +163,16 @@ function UpdateDownloadLocation(downloadLocation){ PostData(uri); } -function ChangeStyleSheet(sheet){ - var uri = `${apiUri}/Settings/ChangeStyleSheet?styleSheet=${sheet}`; - PostData(uri); -} - function RefreshLibraryMetadata() { var uri = `${apiUri}/Jobs/UpdateMetadata`; PostData(uri); } +async function DownloadLogs() { + var uri = `${apiUri}/LogFile`; + let response = await GetData(uri); +} + //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 e0f1799..6ae6c04 100644 --- a/Website/index.html +++ b/Website/index.html @@ -91,36 +91,54 @@