diff --git a/client/src/components/files.vue b/client/src/components/files.vue index cc4c7b98..4261afb5 100644 --- a/client/src/components/files.vue +++ b/client/src/components/files.vue @@ -18,6 +18,7 @@
Downloads
{{ download.name }}
{{ Math.min(100, Math.round(download.progress / download.size * 100))}}%
removeTransfer(download)"> @@ -28,6 +29,7 @@Uploads
{{ upload.name }}
{{ Math.min(100, Math.round(upload.progress / upload.size * 100))}}%
removeTransfer(upload)"> @@ -97,7 +99,7 @@ flex-direction: row; } - .file-icon { + .file-icon, .transfer-status { width: 14px; margin-right: 0.5em; } @@ -286,6 +288,9 @@ document.body.appendChild(link) link.click() document.body.removeChild(link) + + transfer.progress = transfer.size + transfer.status = 'completed' }).catch((err) => { this.$log.error(err) }) @@ -370,15 +375,31 @@ } const ext = parts[parts.length - 1] switch (ext) { - case 'mp3': + case 'aac': case 'flac': + case 'midi': + case 'mp3': + case 'ogg': + case 'wav': className += 'fa-music' break - case 'webm': - case 'mp4': case 'mkv': + case 'mov': + case 'mpeg': + case 'mp4': + case 'webm': className += 'fa-film' break + case 'bmp': + case 'gif': + case 'jpeg': + case 'jpg': + case 'png': + case 'svg': + case 'tiff': + case 'webp': + className += 'fa-image' + break; default: className += 'fa-file' }