feat: retrieval message code highlight, message copy button
This commit is contained in:
@@ -27,10 +27,39 @@ export const defaultQueryLabel = '*'
|
||||
// reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/MIME_types/Common_types
|
||||
export const supportedFileTypes = {
|
||||
'text/plain': [
|
||||
'.txt', '.md', '.html', '.htm', '.tex', '.json', '.xml', '.yaml', '.yml',
|
||||
'.rtf', '.odt', '.epub', '.csv', '.log', '.conf', '.ini', '.properties',
|
||||
'.sql', '.bat', '.sh', '.c', '.cpp', '.py', '.java', '.js', '.ts',
|
||||
'.swift', '.go', '.rb', '.php', '.css', '.scss', '.less'
|
||||
'.txt',
|
||||
'.md',
|
||||
'.html',
|
||||
'.htm',
|
||||
'.tex',
|
||||
'.json',
|
||||
'.xml',
|
||||
'.yaml',
|
||||
'.yml',
|
||||
'.rtf',
|
||||
'.odt',
|
||||
'.epub',
|
||||
'.csv',
|
||||
'.log',
|
||||
'.conf',
|
||||
'.ini',
|
||||
'.properties',
|
||||
'.sql',
|
||||
'.bat',
|
||||
'.sh',
|
||||
'.c',
|
||||
'.cpp',
|
||||
'.py',
|
||||
'.java',
|
||||
'.js',
|
||||
'.ts',
|
||||
'.swift',
|
||||
'.go',
|
||||
'.rb',
|
||||
'.php',
|
||||
'.css',
|
||||
'.scss',
|
||||
'.less'
|
||||
],
|
||||
'application/pdf': ['.pdf'],
|
||||
'application/msword': ['.doc'],
|
||||
|
Reference in New Issue
Block a user