@@ -11,96 +11,96 @@ const
1111 sizes = [ 'B' , 'KiB' , 'MiB' , 'GiB' , 'TiB' ] ,
1212
1313 exts = {
14- ' eml' : 'message/rfc822' ,
15- ' mime' : 'message/rfc822' ,
16- ' rtx' : 'text/richtext' ,
17- ' vcard' : 'text/vcard' ,
18- ' vcf' : 'text/vcard' ,
19- ' htm' : 'text/html' ,
20- ' html' : 'text/html' ,
21- ' csv' : 'text/csv' ,
22- ' ics' : 'text/calendar' ,
23- ' ifb' : 'text/calendar' ,
24- ' xml' : 'text/xml' ,
25- ' json' : app + 'json' ,
26- ' p10' : app + 'pkcs10' ,
27- ' p7c' : app + 'pkcs7-mime' ,
28- ' p7m' : app + 'pkcs7-mime' ,
29- ' p7s' : app + 'pkcs7-signature' ,
30- ' torrent' : app + 'x-bittorrent' ,
14+ eml : 'message/rfc822' ,
15+ mime : 'message/rfc822' ,
16+ rtx : 'text/richtext' ,
17+ vcard : 'text/vcard' ,
18+ vcf : 'text/vcard' ,
19+ htm : 'text/html' ,
20+ html : 'text/html' ,
21+ csv : 'text/csv' ,
22+ ics : 'text/calendar' ,
23+ ifb : 'text/calendar' ,
24+ xml : 'text/xml' ,
25+ json : app + 'json' ,
26+ p10 : app + 'pkcs10' ,
27+ p7c : app + 'pkcs7-mime' ,
28+ p7m : app + 'pkcs7-mime' ,
29+ p7s : app + 'pkcs7-signature' ,
30+ torrent : app + 'x-bittorrent' ,
3131
3232 // scripts
33- 'js' : app + 'javascript' ,
34- 'pl' : 'text/perl' ,
35- ' css' : 'text/css' ,
36- ' asp' : 'text/asp' ,
37- ' php' : app + 'x-httpd-php' ,
38- ' phtml' : app + 'x-httpd-php' ,
33+ js : app + 'javascript' ,
34+ pl : 'text/perl' ,
35+ css : 'text/css' ,
36+ asp : 'text/asp' ,
37+ php : app + 'x-httpd-php' ,
38+ phtml : app + 'x-httpd-php' ,
3939
4040 // images
41- ' jpg' : 'image/jpeg' ,
42- ' ico' : 'image/x-icon' ,
43- ' tif' : 'image/tiff' ,
44- ' svg' : 'image/svg+xml' ,
45- ' svgz' : 'image/svg+xml' ,
41+ jpg : 'image/jpeg' ,
42+ ico : 'image/x-icon' ,
43+ tif : 'image/tiff' ,
44+ svg : 'image/svg+xml' ,
45+ svgz : 'image/svg+xml' ,
4646
4747 // archives
48- ' zip' : app + 'zip' ,
48+ zip : app + 'zip' ,
4949 '7z' : app + 'x-7z-compressed' ,
50- ' rar' : app + 'x-rar-compressed' ,
51- ' cab' : app + 'vnd.ms-cab-compressed' ,
52- 'gz' : app + 'x-gzip' ,
53- ' tgz' : app + 'x-gzip' ,
54- 'bz' : app + 'x-bzip' ,
55- ' bz2' : app + 'x-bzip2' ,
56- ' deb' : app + 'x-debian-package' ,
50+ rar : app + 'x-rar-compressed' ,
51+ cab : app + 'vnd.ms-cab-compressed' ,
52+ gz : app + 'x-gzip' ,
53+ tgz : app + 'x-gzip' ,
54+ bz : app + 'x-bzip' ,
55+ bz2 : app + 'x-bzip2' ,
56+ deb : app + 'x-debian-package' ,
5757
5858 // audio
59- ' mp3' : 'audio/mpeg' ,
60- ' wav' : 'audio/x-wav' ,
61- ' mp4a' : 'audio/mp4' ,
62- ' weba' : 'audio/webm' ,
63- ' m3u' : 'audio/x-mpegurl' ,
59+ mp3 : 'audio/mpeg' ,
60+ wav : 'audio/x-wav' ,
61+ mp4a : 'audio/mp4' ,
62+ weba : 'audio/webm' ,
63+ m3u : 'audio/x-mpegurl' ,
6464
6565 // video
66- 'qt' : 'video/quicktime' ,
67- ' mov' : 'video/quicktime' ,
68- ' wmv' : 'video/windows-media' ,
69- ' avi' : 'video/x-msvideo' ,
66+ qt : 'video/quicktime' ,
67+ mov : 'video/quicktime' ,
68+ wmv : 'video/windows-media' ,
69+ avi : 'video/x-msvideo' ,
7070 '3gp' : 'video/3gpp' ,
7171 '3g2' : 'video/3gpp2' ,
72- ' mp4v' : 'video/mp4' ,
73- ' mpg4' : 'video/mp4' ,
74- ' ogv' : 'video/ogg' ,
75- ' m4v' : 'video/x-m4v' ,
76- ' asf' : 'video/x-ms-asf' ,
77- ' asx' : 'video/x-ms-asf' ,
78- 'wm' : 'video/x-ms-wm' ,
79- ' wmx' : 'video/x-ms-wmx' ,
80- ' wvx' : 'video/x-ms-wvx' ,
81- ' movie' : 'video/x-sgi-movie' ,
72+ mp4v : 'video/mp4' ,
73+ mpg4 : 'video/mp4' ,
74+ ogv : 'video/ogg' ,
75+ m4v : 'video/x-m4v' ,
76+ asf : 'video/x-ms-asf' ,
77+ asx : 'video/x-ms-asf' ,
78+ wm : 'video/x-ms-wm' ,
79+ wmx : 'video/x-ms-wmx' ,
80+ wvx : 'video/x-ms-wvx' ,
81+ movie : 'video/x-sgi-movie' ,
8282
8383 // adobe
84- ' pdf' : app + 'pdf' ,
85- ' psd' : 'image/vnd.adobe.photoshop' ,
86- 'ai' : app + 'postscript' ,
87- ' eps' : app + 'postscript' ,
88- 'ps' : app + 'postscript' ,
84+ pdf : app + 'pdf' ,
85+ psd : 'image/vnd.adobe.photoshop' ,
86+ ai : app + 'postscript' ,
87+ eps : app + 'postscript' ,
88+ ps : app + 'postscript' ,
8989
9090 // ms office
91- ' doc' : app + 'msword' ,
92- ' rtf' : app + 'rtf' ,
93- ' xls' : app + 'vnd.ms-excel' ,
94- ' ppt' : app + 'vnd.ms-powerpoint' ,
95- ' docx' : msOffice + 'wordprocessingml.document' ,
96- ' xlsx' : msOffice + 'spreadsheetml.sheet' ,
97- ' dotx' : msOffice + 'wordprocessingml.template' ,
98- ' pptx' : msOffice + 'presentationml.presentation' ,
91+ doc : app + 'msword' ,
92+ rtf : app + 'rtf' ,
93+ xls : app + 'vnd.ms-excel' ,
94+ ppt : app + 'vnd.ms-powerpoint' ,
95+ docx : msOffice + 'wordprocessingml.document' ,
96+ xlsx : msOffice + 'spreadsheetml.sheet' ,
97+ dotx : msOffice + 'wordprocessingml.template' ,
98+ pptx : msOffice + 'presentationml.presentation' ,
9999
100100 // open office
101- ' odt' : openDoc + 'text' ,
102- ' ods' : openDoc + 'spreadsheet' ,
103- ' odp' : openDoc + 'presentation'
101+ odt : openDoc + 'text' ,
102+ ods : openDoc + 'spreadsheet' ,
103+ odp : openDoc + 'presentation'
104104} ;
105105
106106export const FileType = {
0 commit comments