From 63c9b6388ee07f53f0a7e70b33f49ea000222504 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sun, 18 Feb 2024 13:58:44 +0800 Subject: [PATCH] Rename to WebUI PR #20428. --- src/webui/www/README.md | 2 +- src/webui/www/private/index.html | 4 ++-- src/webui/www/private/scripts/client.js | 2 +- src/webui/www/private/views/about.html | 2 +- src/webui/www/private/views/preferences.html | 20 +++++++++---------- .../www/private/views/preferencesToolbar.html | 2 +- src/webui/www/public/index.html | 6 +++--- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/webui/www/README.md b/src/webui/www/README.md index bafce40b0..511598f2b 100644 --- a/src/webui/www/README.md +++ b/src/webui/www/README.md @@ -1,4 +1,4 @@ -qBittorrent Web UI +qBittorrent WebUI --- ### Browser compatibility diff --git a/src/webui/www/private/index.html b/src/webui/www/private/index.html index ba632c571..6696fb53f 100644 --- a/src/webui/www/private/index.html +++ b/src/webui/www/private/index.html @@ -5,7 +5,7 @@ - qBittorrent Web UI + qBittorrent WebUI @@ -38,7 +38,7 @@
diff --git a/src/webui/www/private/scripts/client.js b/src/webui/www/private/scripts/client.js index ed0fa08cb..65bd2388a 100644 --- a/src/webui/www/private/scripts/client.js +++ b/src/webui/www/private/scripts/client.js @@ -752,7 +752,7 @@ window.addEventListener("DOMContentLoaded", function() { const torrents = response['trackers'][tracker]; const hash = window.qBittorrent.Client.genHash(getHost(tracker)); - // the reason why we need the merge here is because the web ui api returned trackers may have different url for the same tracker host. + // the reason why we need the merge here is because the WebUI api returned trackers may have different url for the same tracker host. // for example, some private trackers use diff urls for each torrent from the same tracker host. // then we got the response of `trackers` from qBittorrent api will like: // { diff --git a/src/webui/www/private/views/about.html b/src/webui/www/private/views/about.html index e228e5c91..3302a9e80 100644 --- a/src/webui/www/private/views/about.html +++ b/src/webui/www/private/views/about.html @@ -846,7 +846,7 @@ const qbtVersion = window.parent.qBittorrent.Cache.qbtVersion.get(); const buildInfo = window.parent.qBittorrent.Cache.buildInfo.get(); - $('qbittorrentVersion').innerText = `qBittorrent ${qbtVersion} QBT_TR(Web UI)QBT_TR[CONTEXT=OptionsDialog]`; + $('qbittorrentVersion').innerText = `qBittorrent ${qbtVersion} QBT_TR(WebUI)QBT_TR[CONTEXT=OptionsDialog]`; $('qtVersion').textContent = buildInfo.qt; $('libtorrentVersion').textContent = buildInfo.libtorrent; $('boostVersion').textContent = buildInfo.boost; diff --git a/src/webui/www/private/views/preferences.html b/src/webui/www/private/views/preferences.html index 3cf558d06..ab62b96ec 100644 --- a/src/webui/www/private/views/preferences.html +++ b/src/webui/www/private/views/preferences.html @@ -873,7 +873,7 @@
- +
@@ -1825,7 +1825,7 @@ Use ';' to split multiple entries. Can use wildcard '*'.)QBT_TR[CONTEXT=OptionsD $('add_trackers_textarea').setProperty('disabled', !isAddTrackersEnabled); }; - // Web UI tab + // WebUI tab const updateHttpsSettings = function() { const isUseHttpsEnabled = $('use_https_checkbox').getProperty('checked'); $('ssl_cert_text').setProperty('disabled', !isUseHttpsEnabled); @@ -2237,7 +2237,7 @@ Use ';' to split multiple entries. Can use wildcard '*'.)QBT_TR[CONTEXT=OptionsD $('downlock_repack_proper_episodes').setProperty('checked', pref.rss_download_repack_proper_episodes); $('rss_filter_textarea').setProperty('value', pref.rss_smart_episode_filters); - // Web UI tab + // WebUI tab // Language updateWebuiLocaleSelect(pref.locale); $('performanceWarning').setProperty('checked', pref.performance_warning); @@ -2262,7 +2262,7 @@ Use ';' to split multiple entries. Can use wildcard '*'.)QBT_TR[CONTEXT=OptionsD $('webUIBanDurationInput').setProperty('value', pref.web_ui_ban_duration.toInt()); $('webUISessionTimeoutInput').setProperty('value', pref.web_ui_session_timeout.toInt()); - // Use alternative Web UI + // Use alternative WebUI $('use_alt_webui_checkbox').setProperty('checked', pref.alternative_webui_enabled); $('webui_files_location_textarea').setProperty('value', pref.alternative_webui_path); updateAlternativeWebUISettings(); @@ -2650,7 +2650,7 @@ Use ';' to split multiple entries. Can use wildcard '*'.)QBT_TR[CONTEXT=OptionsD settings['rss_download_repack_proper_episodes'] = $('downlock_repack_proper_episodes').getProperty('checked'); settings['rss_smart_episode_filters'] = $('rss_filter_textarea').getProperty('value'); - // Web UI tab + // WebUI tab // Language settings['locale'] = $('locale_select').getProperty('value'); settings['performance_warning'] = $('performanceWarning').getProperty('checked'); @@ -2660,7 +2660,7 @@ Use ';' to split multiple entries. Can use wildcard '*'.)QBT_TR[CONTEXT=OptionsD const web_ui_address = $('webui_address_value').getProperty('value').toString(); const web_ui_port = $('webui_port_value').getProperty('value').toInt(); if (isNaN(web_ui_port) || web_ui_port < 1 || web_ui_port > 65535) { - alert("QBT_TR(The port used for the Web UI must be between 1 and 65535.)QBT_TR[CONTEXT=HttpServer]"); + alert("QBT_TR(The port used for the WebUI must be between 1 and 65535.)QBT_TR[CONTEXT=HttpServer]"); return; } settings['web_ui_address'] = web_ui_address; @@ -2687,12 +2687,12 @@ Use ';' to split multiple entries. Can use wildcard '*'.)QBT_TR[CONTEXT=OptionsD // Authentication const web_ui_username = $('webui_username_text').getProperty('value'); if (web_ui_username.length < 3) { - alert("QBT_TR(The Web UI username must be at least 3 characters long.)QBT_TR[CONTEXT=OptionsDialog]"); + alert("QBT_TR(The WebUI username must be at least 3 characters long.)QBT_TR[CONTEXT=OptionsDialog]"); return; } const web_ui_password = $('webui_password_text').getProperty('value'); if ((0 < web_ui_password.length) && (web_ui_password.length < 6)) { - alert("QBT_TR(The Web UI password must be at least 6 characters long.)QBT_TR[CONTEXT=OptionsDialog]"); + alert("QBT_TR(The WebUI password must be at least 6 characters long.)QBT_TR[CONTEXT=OptionsDialog]"); return; } @@ -2706,11 +2706,11 @@ Use ';' to split multiple entries. Can use wildcard '*'.)QBT_TR[CONTEXT=OptionsD settings['web_ui_ban_duration'] = Number($('webUIBanDurationInput').getProperty('value')); settings['web_ui_session_timeout'] = Number($('webUISessionTimeoutInput').getProperty('value')); - // Use alternative Web UI + // Use alternative WebUI const alternative_webui_enabled = $('use_alt_webui_checkbox').getProperty('checked'); const webui_files_location_textarea = $('webui_files_location_textarea').getProperty('value'); if (alternative_webui_enabled && (webui_files_location_textarea.trim() === "")) { - alert("QBT_TR(The alternative Web UI files location cannot be blank.)QBT_TR[CONTEXT=OptionsDialog]"); + alert("QBT_TR(The alternative WebUI files location cannot be blank.)QBT_TR[CONTEXT=OptionsDialog]"); return; } settings['alternative_webui_enabled'] = alternative_webui_enabled; diff --git a/src/webui/www/private/views/preferencesToolbar.html b/src/webui/www/private/views/preferencesToolbar.html index 6d271ad33..84f9af312 100644 --- a/src/webui/www/private/views/preferencesToolbar.html +++ b/src/webui/www/private/views/preferencesToolbar.html @@ -7,7 +7,7 @@ - +
diff --git a/src/webui/www/public/index.html b/src/webui/www/public/index.html index 095d46cd6..6f1a54824 100644 --- a/src/webui/www/public/index.html +++ b/src/webui/www/public/index.html @@ -4,7 +4,7 @@ - qBittorrent QBT_TR(Web UI)QBT_TR[CONTEXT=OptionsDialog] + qBittorrent QBT_TR(WebUI)QBT_TR[CONTEXT=OptionsDialog] @@ -16,10 +16,10 @@
-

qBittorrent QBT_TR(Web UI)QBT_TR[CONTEXT=OptionsDialog]

+

qBittorrent QBT_TR(WebUI)QBT_TR[CONTEXT=OptionsDialog]