|
|
|
@ -194,6 +194,8 @@ let icons = new Map([
|
|
|
|
|
['.zip', 'p-file-zip'], |
|
|
|
|
['.gz', 'p-file-zip'], |
|
|
|
|
['.tar.bz2', 'p-file-zip'], |
|
|
|
|
['.bz2', 'p-file-zip'], |
|
|
|
|
['.xz', 'p-file-zip'], |
|
|
|
|
['.tar', 'p-file-zip'], |
|
|
|
|
['.tar.gz', 'p-file-zip'], |
|
|
|
|
['.war', 'p-file-zip'], |
|
|
|
@ -569,7 +571,7 @@ export function emptyLineFilter(str: string, spilt: string) {
|
|
|
|
|
// 文件类型映射
|
|
|
|
|
let fileTypes = { |
|
|
|
|
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'], |
|
|
|
|
audio: ['.mp3', '.wav', '.wma', '.ape', '.acc', '.ogg', '.flac'], |
|
|
|
|
pdf: ['.pdf'], |
|
|
|
|