mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
feat: Add Online Drive file management components and enhance file icon handling
This commit is contained in:
@ -7,9 +7,6 @@ export const extensionToFileType = (extension: string): FileAppearanceTypeEnum =
|
||||
case 'doc':
|
||||
case 'docx':
|
||||
return FileAppearanceTypeEnum.word
|
||||
case 'txt':
|
||||
case 'epub':
|
||||
return FileAppearanceTypeEnum.document
|
||||
case 'md':
|
||||
case 'mdx':
|
||||
case 'markdown':
|
||||
@ -18,6 +15,8 @@ export const extensionToFileType = (extension: string): FileAppearanceTypeEnum =
|
||||
case 'xls':
|
||||
case 'xlsx':
|
||||
return FileAppearanceTypeEnum.excel
|
||||
case 'txt':
|
||||
case 'epub':
|
||||
case 'html':
|
||||
case 'htm':
|
||||
case 'xml':
|
||||
|
||||
Reference in New Issue
Block a user