Enhance text file detection logic for file attachments (#16199)
* feat: Enhances text file detection logic * chore: Build static `webui` output * chore: update webui build output
This commit is contained in:
parent
1a18927894
commit
807e8c6d31
5 changed files with 56 additions and 14 deletions
|
|
@ -59,7 +59,9 @@ export enum FileTypeText {
|
|||
SWIFT = 'swift',
|
||||
DART = 'dart',
|
||||
VUE = 'vue',
|
||||
SVELTE = 'svelte'
|
||||
SVELTE = 'svelte',
|
||||
LATEX = 'latex',
|
||||
BIBTEX = 'bibtex'
|
||||
}
|
||||
|
||||
// File extension enums
|
||||
|
|
@ -115,7 +117,9 @@ export enum FileExtensionText {
|
|||
SWIFT = '.swift',
|
||||
DART = '.dart',
|
||||
VUE = '.vue',
|
||||
SVELTE = '.svelte'
|
||||
SVELTE = '.svelte',
|
||||
TEX = '.tex',
|
||||
BIB = '.bib'
|
||||
}
|
||||
|
||||
// MIME type enums
|
||||
|
|
@ -174,5 +178,7 @@ export enum MimeTypeText {
|
|||
SWIFT = 'text/x-swift',
|
||||
DART = 'text/x-dart',
|
||||
VUE = 'text/x-vue',
|
||||
SVELTE = 'text/x-svelte'
|
||||
SVELTE = 'text/x-svelte',
|
||||
LATEX = 'text/x-tex',
|
||||
BIBTEX = 'text/x-bibtex'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue