# Conflicts:
#	projects/ucap-webmessenger-core/src/lib/types/maximum-range.type.ts
#	projects/ucap-webmessenger-core/src/public-api.ts
This commit is contained in:
leejh 2019-10-31 18:32:08 +09:00
commit 2d20686a8c
20 changed files with 188 additions and 215 deletions

View File

@ -1,198 +1,169 @@
const MimeExtensions: { const MimeExtensions: Map<string, string> = new Map([
[param: string]: string; ['application/envoy', 'evy'],
} = { ['application/fractals', 'fif'],
'application/envoy': 'evy', ['application/futuresplash', 'spl'],
'application/fractals': 'fif', ['application/hta', 'hta'],
'application/futuresplash': 'spl', ['application/internet-property-stream', 'acx'],
'application/hta': 'hta', ['application/mac-binhex40', 'hqx'],
'application/internet-property-stream': 'acx', ['application/msword', 'doc'],
'application/mac-binhex40': 'hqx', ['application/octet-stream', 'bin'],
'application/msword': 'doc', ['application/oda', 'oda'],
'application/msword': 'dot', ['application/olescript', 'axs'],
'application/octet-stream': '*', ['application/pdf', 'pdf'],
'application/octet-stream': 'bin', ['application/pics-rules', 'prf'],
'application/octet-stream': 'class', ['application/pkcs10', 'p10'],
'application/octet-stream': 'dms', ['application/pkix-crl', 'crl'],
'application/octet-stream': 'exe', ['application/postscript', 'ps'],
'application/octet-stream': 'lha', ['application/rtf', 'rtf'],
'application/octet-stream': 'lzh', ['application/set-payment-initiation', 'setpay'],
'application/oda': 'oda', ['application/set-registration-initiation', 'setreg'],
'application/olescript': 'axs', ['application/vnd.ms-access', 'mdb'],
'application/pdf': 'pdf', ['application/vnd.ms-excel', 'xls'],
'application/pics-rules': 'prf', ['application/vnd.ms-excel.addin.macroEnabled.12', 'xlam'],
'application/pkcs10': 'p10', ['application/vnd.ms-excel.sheet.binary.macroEnabled.12', 'xlsb'],
'application/pkix-crl': 'crl', ['application/vnd.ms-excel.sheet.macroEnabled.12', 'xlsm'],
'application/postscript': 'ai', ['application/vnd.ms-excel.template.macroEnabled.12', 'xltm'],
'application/postscript': 'eps', ['application/vnd.ms-outlook', 'msg'],
'application/postscript': 'ps', ['application/vnd.ms-pkicertstore', 'sst'],
'application/rtf': 'rtf', ['application/vnd.ms-pkiseccat', 'cat'],
'application/set-payment-initiation': 'setpay', ['application/vnd.ms-pkistl', 'stl'],
'application/set-registration-initiation': 'setreg', ['application/vnd.ms-powerpoint', 'ppt'],
'application/vnd.ms-excel': 'xla', ['application/vnd.ms-powerpoint.addin.macroEnabled.12', 'ppam'],
'application/vnd.ms-excel': 'xlc', ['application/vnd.ms-powerpoint.presentation.macroEnabled.12', 'pptm'],
'application/vnd.ms-excel': 'xlm', ['application/vnd.ms-powerpoint.slideshow.macroEnabled.12', 'ppsm'],
'application/vnd.ms-excel': 'xls', ['application/vnd.ms-powerpoint.template.macroEnabled.12', 'potm'],
'application/vnd.ms-excel': 'xlt', ['application/vnd.ms-project', 'mpp'],
'application/vnd.ms-excel': 'xlw', ['application/vnd.ms-word.document.macroEnabled.12', 'docm'],
'application/vnd.ms-outlook': 'msg', ['application/vnd.ms-word.template.macroEnabled.12', 'dotm'],
'application/vnd.ms-pkicertstore': 'sst', ['application/vnd.ms-works', 'wks'],
'application/vnd.ms-pkiseccat': 'cat', [
'application/vnd.ms-pkistl': 'stl', 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
'application/vnd.ms-powerpoint': 'pot', 'pptx'
'application/vnd.ms-powerpoint': 'pps', ],
'application/vnd.ms-powerpoint': 'ppt', [
'application/vnd.ms-project': 'mpp', 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
'application/vnd.ms-works': 'wcm', 'ppsx'
'application/vnd.ms-works': 'wdb', ],
'application/vnd.ms-works': 'wks', [
'application/vnd.ms-works': 'wps', 'application/vnd.openxmlformats-officedocument.presentationml.template',
'application/winhlp': 'hlp', 'potx'
'application/x-bcpio': 'bcpio', ],
'application/x-cdf': 'cdf', ['application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'xlsx'],
'application/x-compress': 'z', [
'application/x-compressed': 'tgz', 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
'application/x-cpio': 'cpio', 'xltx'
'application/x-csh': 'csh', ],
'application/x-director': 'dcr', [
'application/x-director': 'dir', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'application/x-director': 'dxr', 'docx'
'application/x-dvi': 'dvi', ],
'application/x-gtar': 'gtar', [
'application/x-gzip': 'gz', 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
'application/x-hdf': 'hdf', 'dotx'
'application/x-internet-signup': 'ins', ],
'application/x-internet-signup': 'isp', ['application/winhlp', 'hlp'],
'application/x-iphone': 'iii', ['application/x-bcpio', 'bcpio'],
'application/x-javascript': 'js', ['application/x-cdf', 'cdf'],
'application/x-latex': 'latex', ['application/x-compress', 'z'],
'application/x-msaccess': 'mdb', ['application/x-compressed', 'tgz'],
'application/x-mscardfile': 'crd', ['application/x-cpio', 'cpio'],
'application/x-msclip': 'clp', ['application/x-csh', 'csh'],
'application/x-msdownload': 'dll', ['application/x-director', 'dcr'],
'application/x-msmediaview': 'm13', ['application/x-dvi', 'dvi'],
'application/x-msmediaview': 'm14', ['application/x-gtar', 'gtar'],
'application/x-msmediaview': 'mvb', ['application/x-gzip', 'gz'],
'application/x-msmetafile': 'wmf', ['application/x-hdf', 'hdf'],
'application/x-msmoney': 'mny', ['application/x-internet-signup', 'isp'],
'application/x-mspublisher': 'pub', ['application/x-iphone', 'iii'],
'application/x-msschedule': 'scd', ['application/x-javascript', 'js'],
'application/x-msterminal': 'trm', ['application/x-latex', 'latex'],
'application/x-mswrite': 'wri', ['application/x-msaccess', 'mdb'],
'application/x-netcdf': 'cdf', ['application/x-mscardfile', 'crd'],
'application/x-netcdf': 'nc', ['application/x-msclip', 'clp'],
'application/x-perfmon': 'pma', ['application/x-msdownload', 'dll'],
'application/x-perfmon': 'pmc', ['application/x-msmediaview', 'mvb'],
'application/x-perfmon': 'pml', ['application/x-msmetafile', 'wmf'],
'application/x-perfmon': 'pmr', ['application/x-msmoney', 'mny'],
'application/x-perfmon': 'pmw', ['application/x-mspublisher', 'pub'],
'application/x-pkcs12': 'p12', ['application/x-msschedule', 'scd'],
'application/x-pkcs12': 'pfx', ['application/x-msterminal', 'trm'],
'application/x-pkcs7-certificates': 'p7b', ['application/x-mswrite', 'wri'],
'application/x-pkcs7-certificates': 'spc', ['application/x-netcdf', 'cdf'],
'application/x-pkcs7-certreqresp': 'p7r', ['application/x-perfmon', 'pma'],
'application/x-pkcs7-mime': 'p7c', ['application/x-pkcs12', 'p12'],
'application/x-pkcs7-mime': 'p7m', ['application/x-pkcs7-certificates', 'p7b'],
'application/x-pkcs7-signature': 'p7s', ['application/x-pkcs7-certreqresp', 'p7r'],
'application/x-sh': 'sh', ['application/x-pkcs7-mime', 'p7m'],
'application/x-shar': 'shar', ['application/x-pkcs7-signature', 'p7s'],
'application/x-shockwave-flash': 'swf', ['application/x-sh', 'sh'],
'application/x-stuffit': 'sit', ['application/x-shar', 'shar'],
'application/x-sv4cpio': 'sv4cpio', ['application/x-shockwave-flash', 'swf'],
'application/x-sv4crc': 'sv4crc', ['application/x-stuffit', 'sit'],
'application/x-tar': 'tar', ['application/x-sv4cpio', 'sv4cpio'],
'application/x-tcl': 'tcl', ['application/x-sv4crc', 'sv4crc'],
'application/x-tex': 'tex', ['application/x-tar', 'tar'],
'application/x-texinfo': 'texi', ['application/x-tcl', 'tcl'],
'application/x-texinfo': 'texinfo', ['application/x-tex', 'tex'],
'application/x-troff': 'roff', ['application/x-texinfo', 'texinfo'],
'application/x-troff': 't', ['application/x-troff', 'roff'],
'application/x-troff': 'tr', ['application/x-troff-man', 'man'],
'application/x-troff-man': 'man', ['application/x-troff-me', 'me'],
'application/x-troff-me': 'me', ['application/x-troff-ms', 'ms'],
'application/x-troff-ms': 'ms', ['application/x-ustar', 'ustar'],
'application/x-ustar': 'ustar', ['application/x-wais-source', 'src'],
'application/x-wais-source': 'src', ['application/x-x509-ca-cert', 'crt'],
'application/x-x509-ca-cert': 'cer', ['application/ynd.ms-pkipko', 'pko'],
'application/x-x509-ca-cert': 'crt', ['application/zip', 'zip'],
'application/x-x509-ca-cert': 'der', ['audio/basic', 'au'],
'application/ynd.ms-pkipko': 'pko', ['audio/mid', 'mid'],
'application/zip': 'zip', ['audio/mpeg', 'mp3'],
'audio/basic': 'au', ['audio/x-aiff', 'aiff'],
'audio/basic': 'snd', ['audio/x-mpegurl', 'm3u'],
'audio/mid': 'mid', ['audio/x-pn-realaudio', 'ra'],
'audio/mid': 'rmi', ['audio/x-wav', 'wav'],
'audio/mpeg': 'mp3', ['image/bmp', 'bmp'],
'audio/x-aiff': 'aif', ['image/cis-cod', 'cod'],
'audio/x-aiff': 'aifc', ['image/gif', 'gif'],
'audio/x-aiff': 'aiff', ['image/ief', 'ief'],
'audio/x-mpegurl': 'm3u', ['image/jpeg', 'jpg'],
'audio/x-pn-realaudio': 'ra', ['image/pipeg', 'jfif'],
'audio/x-pn-realaudio': 'ram', ['image/svg+xml', 'svg'],
'audio/x-wav': 'wav', ['image/tiff', 'tiff'],
'image/bmp': 'bmp', ['image/x-cmu-raster', 'ras'],
'image/cis-cod': 'cod', ['image/x-cmx', 'cmx'],
'image/gif': 'gif', ['image/x-icon', 'ico'],
'image/ief': 'ief', ['image/x-portable-anymap', 'pnm'],
'image/jpeg': 'jpe', ['image/x-portable-bitmap', 'pbm'],
'image/jpeg': 'jpeg', ['image/x-portable-graymap', 'pgm'],
'image/jpeg': 'jpg', ['image/x-portable-pixmap', 'ppm'],
'image/pipeg': 'jfif', ['image/x-rgb', 'rgb'],
'image/svg+xml': 'svg', ['image/x-xbitmap', 'xbm'],
'image/tiff': 'tif', ['image/x-xpixmap', 'xpm'],
'image/tiff': 'tiff', ['image/x-xwindowdump', 'xwd'],
'image/x-cmu-raster': 'ras', ['message/rfc822', 'mhtml'],
'image/x-cmx': 'cmx', ['text/css', 'css'],
'image/x-icon': 'ico', ['text/h323', '323'],
'image/x-portable-anymap': 'pnm', ['text/html', 'html'],
'image/x-portable-bitmap': 'pbm', ['text/iuls', 'uls'],
'image/x-portable-graymap': 'pgm', ['text/plain', 'txt'],
'image/x-portable-pixmap': 'ppm', ['text/richtext', 'rtx'],
'image/x-rgb': 'rgb', ['text/scriptlet', 'sct'],
'image/x-xbitmap': 'xbm', ['text/tab-separated-values', 'tsv'],
'image/x-xpixmap': 'xpm', ['text/webviewhtml', 'htt'],
'image/x-xwindowdump': 'xwd', ['text/x-component', 'htc'],
'message/rfc822': 'mht', ['text/x-setext', 'etx'],
'message/rfc822': 'mhtml', ['text/x-vcard', 'vcf'],
'message/rfc822': 'nws', ['video/mp4', 'mp4'],
'text/css': 'css', ['video/mpeg', 'mpeg'],
'text/h323': '323', ['video/quicktime', 'mov'],
'text/html': 'htm', ['video/x-ms-asf', 'asf'],
'text/html': 'html', ['video/x-msvideo', 'avi'],
'text/html': 'stm', ['video/x-sgi-movie', 'movie'],
'text/iuls': 'uls', ['x-world/x-vrml', 'vrml']
'text/plain': 'bas', ]);
'text/plain': 'c',
'text/plain': 'h',
'text/plain': 'txt',
'text/richtext': 'rtx',
'text/scriptlet': 'sct',
'text/tab-separated-values': 'tsv',
'text/webviewhtml': 'htt',
'text/x-component': 'htc',
'text/x-setext': 'etx',
'text/x-vcard': 'vcf',
'video/mpeg': 'mp2',
'video/mpeg': 'mpa',
'video/mpeg': 'mpe',
'video/mpeg': 'mpeg',
'video/mpeg': 'mpg',
'video/mpeg': 'mpv2',
'video/mp4': 'mp4',
'video/quicktime': 'mov',
'video/quicktime': 'qt',
'video/x-la-asf': 'lsf',
'video/x-la-asf': 'lsx',
'video/x-ms-asf': 'asf',
'video/x-ms-asf': 'asr',
'video/x-ms-asf': 'asx',
'video/x-msvideo': 'avi',
'video/x-sgi-movie': 'movie',
'x-world/x-vrml': 'flr',
'x-world/x-vrml': 'vrml',
'x-world/x-vrml': 'wrl',
'x-world/x-vrml': 'wrz',
'x-world/x-vrml': 'xaf',
'x-world/x-vrml': 'xof'
};
export class MimeUtil {} export class MimeUtil {
public static fileExtensionFromMime(mime: string): string {
return MimeExtensions.get(mime);
}
}

View File

@ -2,20 +2,22 @@
* Public API Surface of ucap-webmessenger-core * Public API Surface of ucap-webmessenger-core
*/ */
export * from './lib/type/app-type.type'; export * from './lib/types/app-type.type';
export * from './lib/type/call-alarm.type'; export * from './lib/types/call-alarm.type';
export * from './lib/type/call-forward.type'; export * from './lib/types/call-forward.type';
export * from './lib/type/call-mode.type'; export * from './lib/types/call-mode.type';
export * from './lib/type/caller-type.type'; export * from './lib/types/caller-type.type';
export * from './lib/type/const.type'; export * from './lib/types/const.type';
export * from './lib/type/default-screen.type'; export * from './lib/types/default-screen.type';
export * from './lib/type/device-devision.type'; export * from './lib/types/device-devision.type';
export * from './lib/type/device-type.type'; export * from './lib/types/device-type.type';
export * from './lib/type/file-transfer-permissions.type'; export * from './lib/types/file-transfer-permissions.type';
export * from './lib/type/locale-code.type'; export * from './lib/types/locale-code.type';
export * from './lib/type/notification-method.type'; export * from './lib/types/notification-method.type';
export * from './lib/type/organization-chart-permissions.type'; export * from './lib/types/organization-chart-permissions.type';
export * from './lib/type/push-type.type'; export * from './lib/types/push-type.type';
export * from './lib/type/status-code.type'; export * from './lib/types/status-code.type';
export * from './lib/type/status-type.type'; export * from './lib/types/status-type.type';
export * from './lib/type/video-conference-type.type'; export * from './lib/types/video-conference-type.type';
export * from './lib/utils/mime.util';

View File

@ -185,7 +185,7 @@ $icon-list: ('3dm', '', $world), ('3dmf', '', $world), ('7z', '', $zip),
display: block; display: block;
width: 100%; width: 100%;
overflow: visible; overflow: visible;
z-index: 9; // z-index: 9;
content: ''; content: '';
font-family: 'Material Icons'; font-family: 'Material Icons';
font-size: $icon-container-size / 4.2; font-size: $icon-container-size / 4.2;