From 3e6db0dacfdb55f59a6592d4fc00c4c734767a4e Mon Sep 17 00:00:00 2001 From: Thomas Piccirello Date: Wed, 2 Oct 2024 11:11:00 -0700 Subject: [PATCH] Use BASE_PATH in all WebUI resources This applies to all scripts, css, images, and WebAPI requests. --- src/webui/www/private/addpeers.html | 8 +- src/webui/www/private/addtrackers.html | 8 +- src/webui/www/private/addwebseeds.html | 8 +- .../www/private/confirmfeeddeletion.html | 8 +- src/webui/www/private/confirmruleclear.html | 6 +- .../www/private/confirmruledeletion.html | 8 +- .../www/private/confirmtrackerdeletion.html | 8 +- src/webui/www/private/css/Layout.css | 21 +- src/webui/www/private/css/Window.css | 4 +- src/webui/www/private/css/dynamicTable.css | 4 +- src/webui/www/private/css/style.css | 31 +- src/webui/www/private/download.html | 16 +- src/webui/www/private/downloadlimit.html | 14 +- src/webui/www/private/editfeedurl.html | 10 +- src/webui/www/private/edittracker.html | 8 +- src/webui/www/private/editwebseed.html | 8 +- src/webui/www/private/index.html | 270 +++++++++--------- src/webui/www/private/newcategory.html | 18 +- src/webui/www/private/newfeed.html | 10 +- src/webui/www/private/newfolder.html | 12 +- src/webui/www/private/newrule.html | 10 +- src/webui/www/private/newtag.html | 12 +- src/webui/www/private/rename.html | 10 +- src/webui/www/private/rename_feed.html | 10 +- src/webui/www/private/rename_file.html | 12 +- src/webui/www/private/rename_files.html | 16 +- src/webui/www/private/rename_rule.html | 10 +- src/webui/www/private/scripts/cache.js | 8 +- src/webui/www/private/scripts/client.js | 26 +- src/webui/www/private/scripts/contextmenu.js | 10 +- src/webui/www/private/scripts/download.js | 2 +- src/webui/www/private/scripts/dynamicTable.js | 44 +-- src/webui/www/private/scripts/mocha-init.js | 98 +++---- src/webui/www/private/scripts/pathAutofill.js | 2 +- src/webui/www/private/scripts/prop-files.js | 8 +- src/webui/www/private/scripts/prop-general.js | 4 +- src/webui/www/private/scripts/prop-peers.js | 6 +- .../www/private/scripts/prop-trackers.js | 8 +- .../www/private/scripts/prop-webseeds.js | 4 +- src/webui/www/private/scripts/rename-files.js | 2 +- src/webui/www/private/scripts/search.js | 24 +- src/webui/www/private/scripts/speedslider.js | 8 +- src/webui/www/private/setlocation.html | 10 +- src/webui/www/private/shareratio.html | 10 +- src/webui/www/private/upload.html | 12 +- src/webui/www/private/uploadlimit.html | 14 +- src/webui/www/private/views/about.html | 4 +- .../www/private/views/confirmAutoTMM.html | 2 +- .../www/private/views/confirmRecheck.html | 2 +- .../www/private/views/confirmdeletion.html | 2 +- src/webui/www/private/views/cookies.html | 8 +- src/webui/www/private/views/filters.html | 42 +-- .../private/views/installsearchplugin.html | 2 +- src/webui/www/private/views/log.html | 10 +- src/webui/www/private/views/logTabs.html | 4 +- src/webui/www/private/views/preferences.html | 12 +- .../www/private/views/preferencesToolbar.html | 16 +- .../www/private/views/propertiesToolbar.html | 10 +- src/webui/www/private/views/rss.html | 52 ++-- .../www/private/views/rssDownloader.html | 32 +-- src/webui/www/private/views/search.html | 20 +- .../www/private/views/searchplugins.html | 12 +- src/webui/www/public/index.html | 12 +- src/webui/www/public/scripts/login.js | 2 +- 64 files changed, 553 insertions(+), 551 deletions(-) diff --git a/src/webui/www/private/addpeers.html b/src/webui/www/private/addpeers.html index 89a89849d6f4..0516838fe4f9 100644 --- a/src/webui/www/private/addpeers.html +++ b/src/webui/www/private/addpeers.html @@ -4,9 +4,9 @@ QBT_TR(Add Peers)QBT_TR[CONTEXT=PeersAdditionDialog] - - - + + + - + + + - + + + - + + + - + + + - + + + - + + + - - - - + + + + + + + -
+

diff --git a/src/webui/www/private/downloadlimit.html b/src/webui/www/private/downloadlimit.html index 931604099f52..ed0af6d5a5e5 100644 --- a/src/webui/www/private/downloadlimit.html +++ b/src/webui/www/private/downloadlimit.html @@ -4,11 +4,11 @@ QBT_TR(Torrent Download Speed Limiting)QBT_TR[CONTEXT=TransferListWidget] - - - - - + + + + + @@ -36,7 +36,7 @@ const limit = $("dllimitUpdatevalue").value.toInt() * 1024; if (hashes[0] === "global") { new Request({ - url: "api/v2/transfer/setDownloadLimit", + url: "${BASE_PATH}api/v2/transfer/setDownloadLimit", method: "post", data: { "limit": limit @@ -49,7 +49,7 @@ } else { new Request({ - url: "api/v2/torrents/setDownloadLimit", + url: "${BASE_PATH}api/v2/torrents/setDownloadLimit", method: "post", data: { "hashes": hashes.join("|"), diff --git a/src/webui/www/private/editfeedurl.html b/src/webui/www/private/editfeedurl.html index b0087e98091a..40cda77048ba 100644 --- a/src/webui/www/private/editfeedurl.html +++ b/src/webui/www/private/editfeedurl.html @@ -4,10 +4,10 @@ QBT_TR(Please type a RSS feed URL)QBT_TR[CONTEXT=RSSWidget] - - - - + + + + - + + + - + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + @@ -56,84 +56,84 @@

qBittorrent Web User Interface QBT_TR(File)QBT_TR[CONTEXT=MainWindow]
  • QBT_TR(Edit)QBT_TR[CONTEXT=MainWindow]
  • QBT_TR(View)QBT_TR[CONTEXT=MainWindow]
  • QBT_TR(Tools)QBT_TR[CONTEXT=MainWindow]
  • QBT_TR(Help)QBT_TR[CONTEXT=MainWindow]
  •    - QBT_TR(Add Torrent Link...)QBT_TR[CONTEXT=MainWindow] - QBT_TR(Add Torrent File...)QBT_TR[CONTEXT=MainWindow] - QBT_TR(Remove)QBT_TR[CONTEXT=TransferListWidget] - QBT_TR(Start)QBT_TR[CONTEXT=TransferListWidget] - QBT_TR(Stop)QBT_TR[CONTEXT=TransferListWidget] + QBT_TR(Add Torrent Link...)QBT_TR[CONTEXT=MainWindow] + QBT_TR(Add Torrent File...)QBT_TR[CONTEXT=MainWindow] + QBT_TR(Remove)QBT_TR[CONTEXT=TransferListWidget] + QBT_TR(Start)QBT_TR[CONTEXT=TransferListWidget] + QBT_TR(Stop)QBT_TR[CONTEXT=TransferListWidget] - QBT_TR(Top of Queue)QBT_TR[CONTEXT=MainWindow] - QBT_TR(Move Up Queue)QBT_TR[CONTEXT=MainWindow] - QBT_TR(Move Down Queue)QBT_TR[CONTEXT=MainWindow] - QBT_TR(Bottom of Queue)QBT_TR[CONTEXT=MainWindow] + QBT_TR(Top of Queue)QBT_TR[CONTEXT=MainWindow] + QBT_TR(Move Up Queue)QBT_TR[CONTEXT=MainWindow] + QBT_TR(Move Down Queue)QBT_TR[CONTEXT=MainWindow] + QBT_TR(Bottom of Queue)QBT_TR[CONTEXT=MainWindow] - QBT_TR(Options)QBT_TR[CONTEXT=OptionsDialog] + QBT_TR(Options)QBT_TR[CONTEXT=OptionsDialog]
    @@ -154,110 +154,110 @@

    qBittorrent Web User Interface -
  • QBT_TR(Start)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Start)QBT_TR[CONTEXT=TransferListWidget]
  • -
  • QBT_TR(Stop)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Stop)QBT_TR[CONTEXT=TransferListWidget]
  • -
  • QBT_TR(Force Start)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Force Start)QBT_TR[CONTEXT=TransferListWidget]
  • -
  • QBT_TR(Remove)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Remove)QBT_TR[CONTEXT=TransferListWidget]
  • +
  • QBT_TR(Start)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Start)QBT_TR[CONTEXT=TransferListWidget]
  • +
  • QBT_TR(Stop)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Stop)QBT_TR[CONTEXT=TransferListWidget]
  • +
  • QBT_TR(Force Start)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Force Start)QBT_TR[CONTEXT=TransferListWidget]
  • +
  • QBT_TR(Remove)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Remove)QBT_TR[CONTEXT=TransferListWidget]
  • - QBT_TR(Set location...)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Set location...)QBT_TR[CONTEXT=TransferListWidget] + QBT_TR(Set location...)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Set location...)QBT_TR[CONTEXT=TransferListWidget]
  • - QBT_TR(Rename...)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Rename...)QBT_TR[CONTEXT=TransferListWidget] + QBT_TR(Rename...)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Rename...)QBT_TR[CONTEXT=TransferListWidget]
  • - QBT_TR(Rename Files...)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Rename Files...)QBT_TR[CONTEXT=TransferListWidget] + QBT_TR(Rename Files...)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Rename Files...)QBT_TR[CONTEXT=TransferListWidget]
  • - QBT_TR(Category)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Category)QBT_TR[CONTEXT=TransferListWidget] + QBT_TR(Category)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Category)QBT_TR[CONTEXT=TransferListWidget]
    • - QBT_TR(Tags)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Tags)QBT_TR[CONTEXT=TransferListWidget] + QBT_TR(Tags)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Tags)QBT_TR[CONTEXT=TransferListWidget]
      • - QBT_TR(Automatic Torrent Management)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Automatic Torrent Management)QBT_TR[CONTEXT=TransferListWidget] + QBT_TR(Automatic Torrent Management)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Automatic Torrent Management)QBT_TR[CONTEXT=TransferListWidget]
      • -
      • QBT_TR(Limit download rate...)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Limit download rate...)QBT_TR[CONTEXT=TransferListWidget]
      • -
      • QBT_TR(Limit upload rate...)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Limit upload rate...)QBT_TR[CONTEXT=TransferListWidget]
      • -
      • QBT_TR(Limit share ratio...)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Limit share ratio...)QBT_TR[CONTEXT=TransferListWidget]
      • -
      • QBT_TR(Super seeding mode)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Super seeding mode)QBT_TR[CONTEXT=TransferListWidget]
      • -
      • QBT_TR(Download in sequential order)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Download in sequential order)QBT_TR[CONTEXT=TransferListWidget]
      • -
      • QBT_TR(Download first and last pieces first)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Download first and last pieces first)QBT_TR[CONTEXT=TransferListWidget]
      • -
      • QBT_TR(Force recheck)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Force recheck)QBT_TR[CONTEXT=TransferListWidget]
      • -
      • QBT_TR(Force reannounce)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Force reannounce)QBT_TR[CONTEXT=TransferListWidget]
      • +
      • QBT_TR(Limit download rate...)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Limit download rate...)QBT_TR[CONTEXT=TransferListWidget]
      • +
      • QBT_TR(Limit upload rate...)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Limit upload rate...)QBT_TR[CONTEXT=TransferListWidget]
      • +
      • QBT_TR(Limit share ratio...)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Limit share ratio...)QBT_TR[CONTEXT=TransferListWidget]
      • +
      • QBT_TR(Super seeding mode)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Super seeding mode)QBT_TR[CONTEXT=TransferListWidget]
      • +
      • QBT_TR(Download in sequential order)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Download in sequential order)QBT_TR[CONTEXT=TransferListWidget]
      • +
      • QBT_TR(Download first and last pieces first)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Download first and last pieces first)QBT_TR[CONTEXT=TransferListWidget]
      • +
      • QBT_TR(Force recheck)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Force recheck)QBT_TR[CONTEXT=TransferListWidget]
      • +
      • QBT_TR(Force reannounce)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Force reannounce)QBT_TR[CONTEXT=TransferListWidget]
      • QBT_TR(Queue)QBT_TR[CONTEXT=TransferListWidget]
      • - QBT_TR(Copy)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Copy)QBT_TR[CONTEXT=TransferListWidget] + QBT_TR(Copy)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Copy)QBT_TR[CONTEXT=TransferListWidget]
      • - QBT_TR(Export .torrent)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Export .torrent)QBT_TR[CONTEXT=TransferListWidget] + QBT_TR(Export .torrent)QBT_TR[CONTEXT=TransferListWidget] QBT_TR(Export .torrent)QBT_TR[CONTEXT=TransferListWidget]
        • -
        • QBT_TR(Rename...)QBT_TR[CONTEXT=PropertiesWidget] QBT_TR(Rename...)QBT_TR[CONTEXT=PropertiesWidget]
        • +
        • QBT_TR(Rename...)QBT_TR[CONTEXT=PropertiesWidget] QBT_TR(Rename...)QBT_TR[CONTEXT=PropertiesWidget]
        • QBT_TR(Priority)QBT_TR[CONTEXT=PropertiesWidget]
          @@ -281,13 +281,13 @@

          qBittorrent Web User Interface - QBT_TR(Connection status: Firewalled)QBT_TR[CONTEXT=MainWindow] + QBT_TR(Connection status: Firewalled)QBT_TR[CONTEXT=MainWindow] - QBT_TR(Alternative speed limits: Off)QBT_TR[CONTEXT=MainWindow] + QBT_TR(Alternative speed limits: Off)QBT_TR[CONTEXT=MainWindow] - QBT_TR(Download speed icon)QBT_TR[CONTEXT=MainWindow] + QBT_TR(Download speed icon)QBT_TR[CONTEXT=MainWindow] - QBT_TR(Upload speed icon)QBT_TR[CONTEXT=MainWindow] + QBT_TR(Upload speed icon)QBT_TR[CONTEXT=MainWindow] diff --git a/src/webui/www/private/newcategory.html b/src/webui/www/private/newcategory.html index b8cbf767cacd..d2c6578aadb5 100644 --- a/src/webui/www/private/newcategory.html +++ b/src/webui/www/private/newcategory.html @@ -4,11 +4,11 @@ QBT_TR(New Category)QBT_TR[CONTEXT=TransferListWidget] - - - - - + + + + + - - + + + + - - - + + + + + - - + + + + - - + + + + - - + + + + - - + + + + - - - + + + + + - - - - - - + + + + + + + - - + + + + - - + + + + - - + + + + - - + + + + + - +
          diff --git a/src/webui/www/private/uploadlimit.html b/src/webui/www/private/uploadlimit.html index c0bd10d7b764..f0135fcbfbcc 100644 --- a/src/webui/www/private/uploadlimit.html +++ b/src/webui/www/private/uploadlimit.html @@ -4,11 +4,11 @@ QBT_TR(Torrent Upload Speed Limiting)QBT_TR[CONTEXT=TransferListWidget] - - - - - + + + + + @@ -36,7 +36,7 @@ const limit = $("uplimitUpdatevalue").value.toInt() * 1024; if (hashes[0] === "global") { new Request({ - url: "api/v2/transfer/setUploadLimit", + url: "${BASE_PATH}api/v2/transfer/setUploadLimit", method: "post", data: { "limit": limit @@ -49,7 +49,7 @@ } else { new Request({ - url: "api/v2/torrents/setUploadLimit", + url: "${BASE_PATH}api/v2/torrents/setUploadLimit", method: "post", data: { "hashes": hashes.join("|"), diff --git a/src/webui/www/private/views/about.html b/src/webui/www/private/views/about.html index 506b773f8820..b92108213671 100644 --- a/src/webui/www/private/views/about.html +++ b/src/webui/www/private/views/about.html @@ -1,7 +1,7 @@
          - QBT_TR(qBittorrent Mascot)QBT_TR[CONTEXT=AboutDialog] + QBT_TR(qBittorrent Mascot)QBT_TR[CONTEXT=AboutDialog]
          - QBT_TR(qBittorrent icon)QBT_TR[CONTEXT=AboutDialog] + QBT_TR(qBittorrent icon)QBT_TR[CONTEXT=AboutDialog]

          qBittorrent

          QBT_TR(An advanced BitTorrent client programmed in C++, based on Qt toolkit and libtorrent-rasterbar.)QBT_TR[CONTEXT=AboutDialog]

          diff --git a/src/webui/www/private/views/confirmAutoTMM.html b/src/webui/www/private/views/confirmAutoTMM.html index 14ae0a87e5db..b0632d89465b 100644 --- a/src/webui/www/private/views/confirmAutoTMM.html +++ b/src/webui/www/private/views/confirmAutoTMM.html @@ -27,7 +27,7 @@ cancelButton.addEventListener("click", (e) => { window.qBittorrent.Client.closeWindow(id); }); confirmButton.addEventListener("click", (e) => { new Request({ - url: "api/v2/torrents/setAutoManagement", + url: "${BASE_PATH}api/v2/torrents/setAutoManagement", method: "post", data: { hashes: hashes.join("|"), diff --git a/src/webui/www/private/views/confirmRecheck.html b/src/webui/www/private/views/confirmRecheck.html index b8421e77f762..d390676bb77f 100644 --- a/src/webui/www/private/views/confirmRecheck.html +++ b/src/webui/www/private/views/confirmRecheck.html @@ -27,7 +27,7 @@ cancelButton.addEventListener("click", (e) => { window.qBittorrent.Client.closeWindow("confirmRecheckDialog"); }); confirmButton.addEventListener("click", (e) => { new Request({ - url: "api/v2/torrents/recheck", + url: "${BASE_PATH}api/v2/torrents/recheck", method: "post", data: { hashes: hashes.join("|"), diff --git a/src/webui/www/private/views/confirmdeletion.html b/src/webui/www/private/views/confirmdeletion.html index da2cebf50f8f..640aa273f893 100644 --- a/src/webui/www/private/views/confirmdeletion.html +++ b/src/webui/www/private/views/confirmdeletion.html @@ -78,7 +78,7 @@ : torrentsTable.selectedRowsIds(); new Request({ - url: "api/v2/torrents/delete", + url: "${BASE_PATH}api/v2/torrents/delete", method: "post", data: { "hashes": hashes.join("|"), diff --git a/src/webui/www/private/views/cookies.html b/src/webui/www/private/views/cookies.html index 88acfa977b49..d5e61dda2805 100644 --- a/src/webui/www/private/views/cookies.html +++ b/src/webui/www/private/views/cookies.html @@ -62,7 +62,7 @@ - QBT_TR(Remove)QBT_TR[CONTEXT=CookiesDialog] + QBT_TR(Remove)QBT_TR[CONTEXT=CookiesDialog] @@ -72,7 +72,7 @@ - QBT_TR(Add Cookie)QBT_TR[CONTEXT=CookiesDialog] + QBT_TR(Add Cookie)QBT_TR[CONTEXT=CookiesDialog] @@ -124,7 +124,7 @@ }); new Request({ - url: "api/v2/app/setCookies", + url: "${BASE_PATH}api/v2/app/setCookies", method: "post", noCache: true, data: { @@ -144,7 +144,7 @@ const loadCookies = () => { new Request.JSON({ - url: "api/v2/app/cookies", + url: "${BASE_PATH}api/v2/app/cookies", method: "get", onFailure: (response) => { let error = "Unable to load cookies"; diff --git a/src/webui/www/private/views/filters.html b/src/webui/www/private/views/filters.html index 4c6f24fddca2..230f4d02a89c 100644 --- a/src/webui/www/private/views/filters.html +++ b/src/webui/www/private/views/filters.html @@ -1,41 +1,41 @@
          - QBT_TR(Collapse/expand)QBT_TR[CONTEXT=TransferListFiltersWidget]QBT_TR(Status)QBT_TR[CONTEXT=TransferListFiltersWidget] + QBT_TR(Collapse/expand)QBT_TR[CONTEXT=TransferListFiltersWidget]QBT_TR(Status)QBT_TR[CONTEXT=TransferListFiltersWidget]
            -
          • AllQBT_TR(All (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • -
          • DownloadingQBT_TR(Downloading (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • -
          • SeedingQBT_TR(Seeding (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • -
          • CompletedQBT_TR(Completed (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • -
          • RunningQBT_TR(Running (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • -
          • StoppedQBT_TR(Stopped (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • -
          • ActiveQBT_TR(Active (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • -
          • InactiveQBT_TR(Inactive (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • -
          • StalledQBT_TR(Stalled (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • -
          • Stalled UploadingQBT_TR(Stalled Uploading (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • -
          • Stalled DownloadingQBT_TR(Stalled Downloading (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • -
          • CheckingQBT_TR(Checking (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • -
          • MovingQBT_TR(Moving (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • -
          • ErroredQBT_TR(Errored (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • +
          • AllQBT_TR(All (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • +
          • DownloadingQBT_TR(Downloading (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • +
          • SeedingQBT_TR(Seeding (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • +
          • CompletedQBT_TR(Completed (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • +
          • RunningQBT_TR(Running (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • +
          • StoppedQBT_TR(Stopped (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • +
          • ActiveQBT_TR(Active (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • +
          • InactiveQBT_TR(Inactive (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • +
          • StalledQBT_TR(Stalled (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • +
          • Stalled UploadingQBT_TR(Stalled Uploading (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • +
          • Stalled DownloadingQBT_TR(Stalled Downloading (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • +
          • CheckingQBT_TR(Checking (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • +
          • MovingQBT_TR(Moving (0))QBT_TR[CONTEXT=StatusFilterWidget]
          • +
          • ErroredQBT_TR(Errored (0))QBT_TR[CONTEXT=StatusFilterWidget]
          - QBT_TR(Collapse/expand)QBT_TR[CONTEXT=TransferListFiltersWidget]QBT_TR(Categories)QBT_TR[CONTEXT=TransferListFiltersWidget] + QBT_TR(Collapse/expand)QBT_TR[CONTEXT=TransferListFiltersWidget]QBT_TR(Categories)QBT_TR[CONTEXT=TransferListFiltersWidget]
          - QBT_TR(Collapse/expand)QBT_TR[CONTEXT=TransferListFiltersWidget]QBT_TR(Tags)QBT_TR[CONTEXT=TransferListFiltersWidget] + QBT_TR(Collapse/expand)QBT_TR[CONTEXT=TransferListFiltersWidget]QBT_TR(Tags)QBT_TR[CONTEXT=TransferListFiltersWidget]
          - QBT_TR(Collapse/expand)QBT_TR[CONTEXT=TransferListFiltersWidget]QBT_TR(Trackers)QBT_TR[CONTEXT=TransferListFiltersWidget] + QBT_TR(Collapse/expand)QBT_TR[CONTEXT=TransferListFiltersWidget]QBT_TR(Trackers)QBT_TR[CONTEXT=TransferListFiltersWidget]
          @@ -45,7 +45,7 @@
        • - +
        • @@ -53,14 +53,14 @@ diff --git a/src/webui/www/private/views/installsearchplugin.html b/src/webui/www/private/views/installsearchplugin.html index 7f35f308e2b4..7f07bd14507b 100644 --- a/src/webui/www/private/views/installsearchplugin.html +++ b/src/webui/www/private/views/installsearchplugin.html @@ -62,7 +62,7 @@ const path = $("newPluginPath").value.trim(); if (path) { new Request({ - url: "api/v2/search/installPlugin", + url: "${BASE_PATH}api/v2/search/installPlugin", method: "post", data: { sources: path, diff --git a/src/webui/www/private/views/log.html b/src/webui/www/private/views/log.html index da5471502e9f..c8faf9acba8c 100644 --- a/src/webui/www/private/views/log.html +++ b/src/webui/www/private/views/log.html @@ -41,7 +41,7 @@ } #filterTextInput { - background-image: url("../images/edit-find.svg"); + background-image: url("${BASE_PATH}images/edit-find.svg"); background-repeat: no-repeat; background-position: left; background-size: 1.5em; @@ -144,8 +144,8 @@
          + @@ -26,7 +26,7 @@

          QBT_TR(JavaScript Required! You must enable JavaScript for the WebUI to work

          QBT_TR(qBittorrent WebUI)QBT_TR[CONTEXT=Login]

          diff --git a/src/webui/www/public/scripts/login.js b/src/webui/www/public/scripts/login.js index 278561ce64f7..1a124f8005c7 100644 --- a/src/webui/www/public/scripts/login.js +++ b/src/webui/www/public/scripts/login.js @@ -33,7 +33,7 @@ const submitLoginForm = (event) => { const errorMsgElement = document.getElementById("error_msg"); const xhr = new XMLHttpRequest(); - xhr.open("POST", "api/v2/auth/login", true); + xhr.open("POST", "${BASE_PATH}api/v2/auth/login", true); xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded; charset=UTF-8"); xhr.addEventListener("readystatechange", () => { if (xhr.readyState === 4) { // DONE state