mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 05:31:25 -07:00
Make WebUI images self-contained
This commit is contained in:
parent
e5491645e4
commit
ca274635d5
343 changed files with 18902 additions and 179 deletions
|
@ -327,7 +327,7 @@ window.qBittorrent.DynamicTable = (function() {
|
|||
});
|
||||
|
||||
const createLi = function(columnName, text) {
|
||||
const html = '<a href="#' + columnName + '" ><img src="icons/checked-completed.svg"/>' + window.qBittorrent.Misc.escapeHtml(text) + '</a>';
|
||||
const html = '<a href="#' + columnName + '" ><img src="images/checked-completed.svg"/>' + window.qBittorrent.Misc.escapeHtml(text) + '</a>';
|
||||
return new Element('li', {
|
||||
html: html
|
||||
});
|
||||
|
@ -944,33 +944,33 @@ window.qBittorrent.DynamicTable = (function() {
|
|||
case "forcedMetaDL":
|
||||
case "downloading":
|
||||
state = "downloading";
|
||||
img_path = "icons/downloading.svg";
|
||||
img_path = "images/downloading.svg";
|
||||
break;
|
||||
case "forcedUP":
|
||||
case "uploading":
|
||||
state = "uploading";
|
||||
img_path = "icons/upload.svg";
|
||||
img_path = "images/upload.svg";
|
||||
break;
|
||||
case "stalledUP":
|
||||
state = "stalledUP";
|
||||
img_path = "icons/stalledUP.svg";
|
||||
img_path = "images/stalledUP.svg";
|
||||
break;
|
||||
case "stalledDL":
|
||||
state = "stalledDL";
|
||||
img_path = "icons/stalledDL.svg";
|
||||
img_path = "images/stalledDL.svg";
|
||||
break;
|
||||
case "pausedDL":
|
||||
state = "torrent-stop";
|
||||
img_path = "icons/torrent-stop.svg";
|
||||
img_path = "images/torrent-stop.svg";
|
||||
break;
|
||||
case "pausedUP":
|
||||
state = "checked-completed";
|
||||
img_path = "icons/checked-completed.svg";
|
||||
img_path = "images/checked-completed.svg";
|
||||
break;
|
||||
case "queuedDL":
|
||||
case "queuedUP":
|
||||
state = "queued";
|
||||
img_path = "icons/queued.svg";
|
||||
img_path = "images/queued.svg";
|
||||
break;
|
||||
case "checkingDL":
|
||||
case "checkingUP":
|
||||
|
@ -978,12 +978,12 @@ window.qBittorrent.DynamicTable = (function() {
|
|||
case "checkingResumeData":
|
||||
case "moving":
|
||||
state = "force-recheck";
|
||||
img_path = "icons/force-recheck.svg";
|
||||
img_path = "images/force-recheck.svg";
|
||||
break;
|
||||
case "unknown":
|
||||
case "missingFiles":
|
||||
state = "error";
|
||||
img_path = "icons/error.svg";
|
||||
img_path = "images/error.svg";
|
||||
break;
|
||||
default:
|
||||
break; // do nothing
|
||||
|
@ -1526,7 +1526,7 @@ window.qBittorrent.DynamicTable = (function() {
|
|||
return;
|
||||
}
|
||||
|
||||
const img_path = 'icons/flags/' + country_code + '.svg';
|
||||
const img_path = 'images/flags/' + country_code + '.svg';
|
||||
|
||||
if (td.getChildren('img').length > 0) {
|
||||
const img = td.getChildren('img')[0];
|
||||
|
@ -1898,7 +1898,7 @@ window.qBittorrent.DynamicTable = (function() {
|
|||
}
|
||||
else {
|
||||
const collapseIcon = new Element('img', {
|
||||
src: 'icons/go-down.svg',
|
||||
src: 'images/go-down.svg',
|
||||
styles: {
|
||||
'margin-left': (node.depth * 20)
|
||||
},
|
||||
|
@ -1912,7 +1912,7 @@ window.qBittorrent.DynamicTable = (function() {
|
|||
id: fileNameId
|
||||
});
|
||||
const dirImg = new Element('img', {
|
||||
src: 'icons/directory.svg',
|
||||
src: 'images/directory.svg',
|
||||
styles: {
|
||||
'width': 15,
|
||||
'padding-right': 5,
|
||||
|
@ -2193,19 +2193,19 @@ window.qBittorrent.DynamicTable = (function() {
|
|||
let img_path;
|
||||
switch (row.full_data.status) {
|
||||
case 'default':
|
||||
img_path = 'icons/application-rss.svg';
|
||||
img_path = 'images/application-rss.svg';
|
||||
break;
|
||||
case 'hasError':
|
||||
img_path = 'icons/task-reject.svg';
|
||||
img_path = 'images/task-reject.svg';
|
||||
break;
|
||||
case 'isLoading':
|
||||
img_path = 'images/spinner.gif';
|
||||
break;
|
||||
case 'unread':
|
||||
img_path = 'icons/mail-inbox.svg';
|
||||
img_path = 'images/mail-inbox.svg';
|
||||
break;
|
||||
case 'isFolder':
|
||||
img_path = 'icons/folder-documents.svg';
|
||||
img_path = 'images/folder-documents.svg';
|
||||
break;
|
||||
}
|
||||
let td;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue