mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
parent
3d24a4e0f7
commit
63c9b6388e
7 changed files with 19 additions and 19 deletions
|
@ -1,4 +1,4 @@
|
||||||
qBittorrent Web UI
|
qBittorrent WebUI
|
||||||
---
|
---
|
||||||
|
|
||||||
### Browser compatibility
|
### Browser compatibility
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
||||||
<meta name="application-name" content="qBittorrent" />
|
<meta name="application-name" content="qBittorrent" />
|
||||||
<title>qBittorrent Web UI</title>
|
<title>qBittorrent WebUI</title>
|
||||||
<link rel="icon" type="image/png" href="images/qbittorrent32.png" sizes="32x32" />
|
<link rel="icon" type="image/png" href="images/qbittorrent32.png" sizes="32x32" />
|
||||||
<link rel="icon" type="image/svg+xml" href="images/qbittorrent-tray.svg" sizes="any" />
|
<link rel="icon" type="image/svg+xml" href="images/qbittorrent-tray.svg" sizes="any" />
|
||||||
<link rel="stylesheet" type="text/css" href="css/dynamicTable.css?v=${CACHEID}" />
|
<link rel="stylesheet" type="text/css" href="css/dynamicTable.css?v=${CACHEID}" />
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<noscript id="noscript">
|
<noscript id="noscript">
|
||||||
<h1>QBT_TR(JavaScript Required! You must enable JavaScript for the Web UI to work properly)QBT_TR[CONTEXT=HttpServer]</h1>
|
<h1>QBT_TR(JavaScript Required! You must enable JavaScript for the WebUI to work properly)QBT_TR[CONTEXT=HttpServer]</h1>
|
||||||
</noscript>
|
</noscript>
|
||||||
<div id="desktop">
|
<div id="desktop">
|
||||||
<div id="desktopHeader">
|
<div id="desktopHeader">
|
||||||
|
|
|
@ -752,7 +752,7 @@ window.addEventListener("DOMContentLoaded", function() {
|
||||||
const torrents = response['trackers'][tracker];
|
const torrents = response['trackers'][tracker];
|
||||||
const hash = window.qBittorrent.Client.genHash(getHost(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.
|
// 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:
|
// then we got the response of `trackers` from qBittorrent api will like:
|
||||||
// {
|
// {
|
||||||
|
|
|
@ -846,7 +846,7 @@
|
||||||
const qbtVersion = window.parent.qBittorrent.Cache.qbtVersion.get();
|
const qbtVersion = window.parent.qBittorrent.Cache.qbtVersion.get();
|
||||||
const buildInfo = window.parent.qBittorrent.Cache.buildInfo.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;
|
$('qtVersion').textContent = buildInfo.qt;
|
||||||
$('libtorrentVersion').textContent = buildInfo.libtorrent;
|
$('libtorrentVersion').textContent = buildInfo.libtorrent;
|
||||||
$('boostVersion').textContent = buildInfo.boost;
|
$('boostVersion').textContent = buildInfo.boost;
|
||||||
|
|
|
@ -873,7 +873,7 @@
|
||||||
|
|
||||||
<fieldset class="settings">
|
<fieldset class="settings">
|
||||||
<legend><input type="checkbox" id="use_alt_webui_checkbox" onclick="qBittorrent.Preferences.updateAlternativeWebUISettings();" />
|
<legend><input type="checkbox" id="use_alt_webui_checkbox" onclick="qBittorrent.Preferences.updateAlternativeWebUISettings();" />
|
||||||
<label for="use_alt_webui_checkbox">QBT_TR(Use alternative Web UI)QBT_TR[CONTEXT=OptionsDialog]</label>
|
<label for="use_alt_webui_checkbox">QBT_TR(Use alternative WebUI)QBT_TR[CONTEXT=OptionsDialog]</label>
|
||||||
</legend>
|
</legend>
|
||||||
<div class="formRow">
|
<div class="formRow">
|
||||||
<label for="webui_files_location_textarea">QBT_TR(Files location:)QBT_TR[CONTEXT=OptionsDialog]</label>
|
<label for="webui_files_location_textarea">QBT_TR(Files location:)QBT_TR[CONTEXT=OptionsDialog]</label>
|
||||||
|
@ -1825,7 +1825,7 @@ Use ';' to split multiple entries. Can use wildcard '*'.)QBT_TR[CONTEXT=OptionsD
|
||||||
$('add_trackers_textarea').setProperty('disabled', !isAddTrackersEnabled);
|
$('add_trackers_textarea').setProperty('disabled', !isAddTrackersEnabled);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Web UI tab
|
// WebUI tab
|
||||||
const updateHttpsSettings = function() {
|
const updateHttpsSettings = function() {
|
||||||
const isUseHttpsEnabled = $('use_https_checkbox').getProperty('checked');
|
const isUseHttpsEnabled = $('use_https_checkbox').getProperty('checked');
|
||||||
$('ssl_cert_text').setProperty('disabled', !isUseHttpsEnabled);
|
$('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);
|
$('downlock_repack_proper_episodes').setProperty('checked', pref.rss_download_repack_proper_episodes);
|
||||||
$('rss_filter_textarea').setProperty('value', pref.rss_smart_episode_filters);
|
$('rss_filter_textarea').setProperty('value', pref.rss_smart_episode_filters);
|
||||||
|
|
||||||
// Web UI tab
|
// WebUI tab
|
||||||
// Language
|
// Language
|
||||||
updateWebuiLocaleSelect(pref.locale);
|
updateWebuiLocaleSelect(pref.locale);
|
||||||
$('performanceWarning').setProperty('checked', pref.performance_warning);
|
$('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());
|
$('webUIBanDurationInput').setProperty('value', pref.web_ui_ban_duration.toInt());
|
||||||
$('webUISessionTimeoutInput').setProperty('value', pref.web_ui_session_timeout.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);
|
$('use_alt_webui_checkbox').setProperty('checked', pref.alternative_webui_enabled);
|
||||||
$('webui_files_location_textarea').setProperty('value', pref.alternative_webui_path);
|
$('webui_files_location_textarea').setProperty('value', pref.alternative_webui_path);
|
||||||
updateAlternativeWebUISettings();
|
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_download_repack_proper_episodes'] = $('downlock_repack_proper_episodes').getProperty('checked');
|
||||||
settings['rss_smart_episode_filters'] = $('rss_filter_textarea').getProperty('value');
|
settings['rss_smart_episode_filters'] = $('rss_filter_textarea').getProperty('value');
|
||||||
|
|
||||||
// Web UI tab
|
// WebUI tab
|
||||||
// Language
|
// Language
|
||||||
settings['locale'] = $('locale_select').getProperty('value');
|
settings['locale'] = $('locale_select').getProperty('value');
|
||||||
settings['performance_warning'] = $('performanceWarning').getProperty('checked');
|
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_address = $('webui_address_value').getProperty('value').toString();
|
||||||
const web_ui_port = $('webui_port_value').getProperty('value').toInt();
|
const web_ui_port = $('webui_port_value').getProperty('value').toInt();
|
||||||
if (isNaN(web_ui_port) || web_ui_port < 1 || web_ui_port > 65535) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
settings['web_ui_address'] = web_ui_address;
|
settings['web_ui_address'] = web_ui_address;
|
||||||
|
@ -2687,12 +2687,12 @@ Use ';' to split multiple entries. Can use wildcard '*'.)QBT_TR[CONTEXT=OptionsD
|
||||||
// Authentication
|
// Authentication
|
||||||
const web_ui_username = $('webui_username_text').getProperty('value');
|
const web_ui_username = $('webui_username_text').getProperty('value');
|
||||||
if (web_ui_username.length < 3) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
const web_ui_password = $('webui_password_text').getProperty('value');
|
const web_ui_password = $('webui_password_text').getProperty('value');
|
||||||
if ((0 < web_ui_password.length) && (web_ui_password.length < 6)) {
|
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;
|
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_ban_duration'] = Number($('webUIBanDurationInput').getProperty('value'));
|
||||||
settings['web_ui_session_timeout'] = Number($('webUISessionTimeoutInput').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 alternative_webui_enabled = $('use_alt_webui_checkbox').getProperty('checked');
|
||||||
const webui_files_location_textarea = $('webui_files_location_textarea').getProperty('value');
|
const webui_files_location_textarea = $('webui_files_location_textarea').getProperty('value');
|
||||||
if (alternative_webui_enabled && (webui_files_location_textarea.trim() === "")) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
settings['alternative_webui_enabled'] = alternative_webui_enabled;
|
settings['alternative_webui_enabled'] = alternative_webui_enabled;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<li id="PrefSpeedLink"><a>QBT_TR(Speed)QBT_TR[CONTEXT=OptionsDialog]</a></li>
|
<li id="PrefSpeedLink"><a>QBT_TR(Speed)QBT_TR[CONTEXT=OptionsDialog]</a></li>
|
||||||
<li id="PrefBittorrentLink"><a>QBT_TR(BitTorrent)QBT_TR[CONTEXT=OptionsDialog]</a></li>
|
<li id="PrefBittorrentLink"><a>QBT_TR(BitTorrent)QBT_TR[CONTEXT=OptionsDialog]</a></li>
|
||||||
<li id="PrefRSSLink"><a>QBT_TR(RSS)QBT_TR[CONTEXT=OptionsDialog]</a></li>
|
<li id="PrefRSSLink"><a>QBT_TR(RSS)QBT_TR[CONTEXT=OptionsDialog]</a></li>
|
||||||
<li id="PrefWebUILink"><a>QBT_TR(Web UI)QBT_TR[CONTEXT=OptionsDialog]</a></li>
|
<li id="PrefWebUILink"><a>QBT_TR(WebUI)QBT_TR[CONTEXT=OptionsDialog]</a></li>
|
||||||
<li id="PrefAdvancedLink"><a>QBT_TR(Advanced)QBT_TR[CONTEXT=OptionsDialog]</a></li>
|
<li id="PrefAdvancedLink"><a>QBT_TR(Advanced)QBT_TR[CONTEXT=OptionsDialog]</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="color-scheme" content="light dark" />
|
<meta name="color-scheme" content="light dark" />
|
||||||
<title>qBittorrent QBT_TR(Web UI)QBT_TR[CONTEXT=OptionsDialog]</title>
|
<title>qBittorrent QBT_TR(WebUI)QBT_TR[CONTEXT=OptionsDialog]</title>
|
||||||
<link rel="icon" type="image/png" href="images/qbittorrent32.png" />
|
<link rel="icon" type="image/png" href="images/qbittorrent32.png" />
|
||||||
<link rel="icon" type="image/svg+xml" href="images/qbittorrent-tray.svg" />
|
<link rel="icon" type="image/svg+xml" href="images/qbittorrent-tray.svg" />
|
||||||
<link rel="stylesheet" type="text/css" href="css/login.css?v=${CACHEID}" />
|
<link rel="stylesheet" type="text/css" href="css/login.css?v=${CACHEID}" />
|
||||||
|
@ -16,10 +16,10 @@
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<noscript id="noscript">
|
<noscript id="noscript">
|
||||||
<h1>QBT_TR(JavaScript Required! You must enable JavaScript for the Web UI to work properly)QBT_TR[CONTEXT=HttpServer]</h1>
|
<h1>QBT_TR(JavaScript Required! You must enable JavaScript for the WebUI to work properly)QBT_TR[CONTEXT=HttpServer]</h1>
|
||||||
</noscript>
|
</noscript>
|
||||||
<div id="main">
|
<div id="main">
|
||||||
<h1>qBittorrent QBT_TR(Web UI)QBT_TR[CONTEXT=OptionsDialog]</h1>
|
<h1>qBittorrent QBT_TR(WebUI)QBT_TR[CONTEXT=OptionsDialog]</h1>
|
||||||
<div id="logo" class="col">
|
<div id="logo" class="col">
|
||||||
<img src="images/qbittorrent-tray.svg" alt="qBittorrent logo" />
|
<img src="images/qbittorrent-tray.svg" alt="qBittorrent logo" />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue