From 0a63ac9e406975120474e3a157247e207d4a9d98 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Mon, 20 Feb 2017 22:18:51 +0800 Subject: [PATCH] add more file extensions support --- src/scripts/config/fileTypes.js | 100 ++++++++++++++++++++++++++++++-- 1 file changed, 96 insertions(+), 4 deletions(-) diff --git a/src/scripts/config/fileTypes.js b/src/scripts/config/fileTypes.js index 3da8dcb..c2646e1 100644 --- a/src/scripts/config/fileTypes.js +++ b/src/scripts/config/fileTypes.js @@ -3,13 +3,19 @@ angular.module('ariaNg').constant('ariaNgFileTypes', { video: [ + '.3g2', '.3gp', + '.3gp2', '.3gpp', '.asf', '.asx', '.avi', '.dat', + '.divx', '.flv', + '.m1v', + '.m2ts', + '.m2v', '.m4v', '.mkv', '.mov', @@ -17,59 +23,127 @@ '.mpe', '.mpeg', '.mpg', + '.mts', + '.ogv', + '.qt', + '.ram', '.rm', '.rmvb', + '.ts', '.vob', '.wmv' ], audio: [ '.aac', + '.ac3', + '.adts', '.amr', '.ape', + '.eac3', '.flac', + '.m1a', + '.m2a', '.m4a', '.mid', + '.mka', + '.mp2', '.mp3', + '.mpa', + '.mpc', '.ogg', '.ra', + '.tak', '.vqf', + '.wm', '.wav', - '.wma' + '.wma', + '.wv' ], picture: [ + '.abr', '.bmp', '.emf', '.gif', + '.j2c', + '.j2k', + '.jfif', + '.jif', '.jp2', + '.jpc', + '.jpe', '.jpeg', + '.jpf', '.jpg', + '.jpk', + '.jpx', + '.pcx', + '.pct', + '.pic', + '.pict', '.png', + '.pns', '.psd', + '.psdx', '.raw', + '.svg', + '.svgz', '.tga', '.tif', '.tiff', - '.wmf' + '.wbm', + '.wbmp', + '.webp', + '.wmf', + '.xif' ], document: [ + '.csv', '.doc', + '.docm', '.docx', + '.dot', + '.dotm', + '.dotx', '.key', + '.mpp', '.numbers', '.odp', '.ods', '.odt', '.pages', '.pdf', + '.pot', + '.potm', + '.potx', + '.pps', + '.ppsm', + '.ppsx', '.ppt', + '.pptm', '.pptx', '.rtf', '.txt', '.vsd', '.vsdx', + '.wk1', + '.wk2', + '.wk3', + '.wk4', + '.wks', + '.wpd', '.wps', + '.xla', + '.xlam', + '.xll', + '.xlm', '.xls', - '.xlsx' + '.xlsb', + '.xlsm', + '.xlsx', + '.xlt', + '.xltx', + '.xlw', + '.xps' ], application: [ '.apk', @@ -81,20 +155,38 @@ '.exe', '.ipa', '.jar', + '.msi', '.rpm', '.sh' ], archive: [ + '.001', '.7z', + '.ace', '.arj', '.bz2', '.cab', + '.cbr', + '.cbz', '.gz', + '.img', '.iso', + '.lzh', + '.qcow2', '.r', '.rar', + '.sef', '.tar', - '.tar', + '.taz', + '.tbz', + '.tbz2', + '.uue', + '.vdi', + '.vhd', + '.vmdk', + '.wim', + '.xar', + '.xz', '.z', '.zip' ]