Mathias 6 years ago
parent
commit
5c6ee60e66
  1. 19
      muk_web_preview_text/static/src/js/preview_handler.js

19
muk_web_preview_text/static/src/js/preview_handler.js

@ -37,15 +37,16 @@ var TextHandler = PreviewHandler.BaseHandler.extend({
'.pl', '.pm', '.py', '.rexx', '.rt', '.rt', '.rtf', '.rtx', '.s', '.scm', '.scm', '.sdml',
'.sgm', '.sgm', '.sgml', '.sgml', '.sh', '.shtml', '.shtml', '.spc', '.ssi', '.talk', '.tcl',
'.tcsh', '.text', '.tsv', '.txt', '.uil', '.uni', '.unis', '.uri', '.uris', '.uu', '.uue',
'.vcs', '.wml', '.wmls', '.wsc', '.xml', '.zsh', '.less', 'abc', 'acgi', 'aip', 'asm', 'asp',
'c', 'c', 'c++', 'cc', 'cc', 'com', 'conf', 'cpp', 'csh', 'css', 'cxx', 'def', 'el', 'etx',
'f', 'f', 'f77', 'f90', 'f90', 'flx', 'for', 'for', 'g', 'h', 'h', 'hh', 'hh', 'hlb', 'htc',
'htm', 'html', 'htmls', 'htt', 'htx', 'idc', 'jav', 'jav', 'java', 'java', 'js', 'js', 'ksh',
'list', 'log', 'lsp', 'lst', 'lsx', 'm', 'm', 'mar', 'mcf', 'p', 'pas', 'pl', 'pl', 'pm',
'py', 'rexx', 'rt', 'rt', 'rtf', 'rtx', 's', 'scm', 'scm', 'sdml', 'sgm', 'sgm', 'sgml',
'sgml', 'sh', 'shtml', 'shtml', 'spc', 'ssi', 'talk', 'tcl', 'tcsh', 'text', 'tsv', 'txt',
'uil', 'uni', 'unis', 'uri', 'uris', 'uu', 'uue', 'vcs', 'wml', 'wmls', 'wsc', 'xml',
'zsh', 'less'].includes(extension);
'.vcs', '.wml', '.wmls', '.wsc', '.xml', '.zsh', '.less', '.aj', '.cbl', '.cs', '.coffee',
'.go', '.groovy', '.sc', 'abc', 'acgi', 'aip', 'asm', 'asp', 'c', 'c', 'c++', 'cc', 'cc',
'com', 'conf', 'cpp', 'csh', 'css', 'cxx', 'def', 'el', 'etx', 'f', 'f', 'f77', 'f90',
'f90', 'flx', 'for', 'for', 'g', 'h', 'h', 'hh', 'hh', 'hlb', 'htc', 'htm', 'html', 'htmls',
'htt', 'htx', 'idc', 'jav', 'jav', 'java', 'java', 'js', 'js', 'ksh', 'list', 'log', 'lsp',
'lst', 'lsx', 'm', 'm', 'mar', 'mcf', 'p', 'pas', 'pl', 'pl', 'pm', 'py', 'rexx', 'rt',
'rt', 'rtf', 'rtx', 's', 'scm', 'scm', 'sdml', 'sgm', 'sgm', 'sgml', 'sgml', 'sh', 'shtml',
'shtml', 'spc', 'ssi', 'talk', 'tcl', 'tcsh', 'text', 'tsv', 'txt', 'uil', 'uni', 'unis',
'uri', 'uris', 'uu', 'uue', 'vcs', 'wml', 'wmls', 'wsc', 'xml', 'zsh', 'less', 'aj', 'cbl',
'cs', 'coffee', 'go', 'groovy', 'sc'].includes(extension);
},
checkType: function(mimetype) {
return ['text/vnd.abc', 'text/html', 'text/x-audiosoft-intra', 'text/x-asm', 'text/asp', 'text/plain',

Loading…
Cancel
Save