feat: retrieval message code highlight, message copy button

This commit is contained in:
ArnoChen
2025-02-24 18:17:17 +08:00
parent b020f5fe2b
commit e2b4e661e3
10 changed files with 313 additions and 120 deletions

View File

@@ -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'],