From b07bc4f4d107ef3f6d52854609718a21a4abbe9f 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 | 264 +++++++++--------- 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 | 110 ++++---- 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, 556 insertions(+), 554 deletions(-) diff --git a/src/webui/www/private/addpeers.html b/src/webui/www/private/addpeers.html index 6bc22544935e..c8f733f3cd5a 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 d97ab78a445f..2de42919cd23 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] - - - - + + + + - + + + - + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + @@ -55,84 +55,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]
    @@ -153,105 +153,105 @@

    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]
          @@ -275,13 +275,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 224afa3acfcb..5f5db901eb59 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 44dc6a8767a8..8409186beda3 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 06a8409bd6ce..19401b442a9a 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 5b0d7dbc6272..b67c3df1951f 100644 --- a/src/webui/www/private/views/confirmdeletion.html +++ b/src/webui/www/private/views/confirmdeletion.html @@ -74,7 +74,7 @@ confirmButton.addEventListener("click", (e) => { torrentsTable.deselectAll(); 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 535bfae2dfd1..bfd62105db8e 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 = function() { 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 6a97d3d930c2..382962e835bd 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 8445e0ca83c2..171bf06f19d5 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 02fef3ada6c8..8768907d6dd7 100644 --- a/src/webui/www/private/views/log.html +++ b/src/webui/www/private/views/log.html @@ -34,7 +34,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; @@ -137,8 +137,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 66e872585c47..a35fb3ddcd02 100644 --- a/src/webui/www/public/scripts/login.js +++ b/src/webui/www/public/scripts/login.js @@ -33,7 +33,7 @@ function 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