Browse Source

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

pull/6441/head
2 months ago committed by GitHub
parent
commit
48281ddf86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      frontend/src/utils/util.ts

4
frontend/src/utils/util.ts

@ -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'],

Loading…
Cancel
Save