fix: 主机文件解压文件 mimetype 类型增加 (#6437)

This commit is contained in:
2024-09-10 22:02:11 +08:00 committed by GitHub
parent 7cdcf9b757
commit 48281ddf86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -194,6 +194,8 @@ let icons = new Map([
['.zip', 'p-file-zip'], ['.zip', 'p-file-zip'],
['.gz', 'p-file-zip'], ['.gz', 'p-file-zip'],
['.tar.bz2', 'p-file-zip'], ['.tar.bz2', 'p-file-zip'],
['.bz2', 'p-file-zip'],
['.xz', 'p-file-zip'],
['.tar', 'p-file-zip'], ['.tar', 'p-file-zip'],
['.tar.gz', 'p-file-zip'], ['.tar.gz', 'p-file-zip'],
['.war', 'p-file-zip'], ['.war', 'p-file-zip'],
@ -569,7 +571,7 @@ export function emptyLineFilter(str: string, spilt: string) {
// 文件类型映射 // 文件类型映射
let fileTypes = { let fileTypes = {
image: ['.jpg', '.jpeg', '.png', '.bmp', '.gif', '.tiff', '.ico', '.svg', '.webp'], image: ['.jpg', '.jpeg', '.png', '.bmp', '.gif', '.tiff', '.ico', '.svg', '.webp'],
compress: ['.zip', '.rar', '.gz', '.war', '.tgz', '.7z', '.tar.gz', '.tar'], compress: ['.zip', '.rar', '.gz', '.war', '.tgz', '.7z', '.tar.gz', '.tar', '.bz2', '.xz', '.tar.bz2', '.tar.xz'],
video: ['.mp4', '.webm', '.mov', '.wmv', '.mkv', '.avi', '.wma', '.flv'], video: ['.mp4', '.webm', '.mov', '.wmv', '.mkv', '.avi', '.wma', '.flv'],
audio: ['.mp3', '.wav', '.wma', '.ape', '.acc', '.ogg', '.flac'], audio: ['.mp3', '.wav', '.wma', '.ape', '.acc', '.ogg', '.flac'],
pdf: ['.pdf'], pdf: ['.pdf'],