forked from open-webui/open-webui
copy list of file ext from backend to front end
This commit is contained in:
parent
d517a3ebb4
commit
7eea3ef313
2 changed files with 10 additions and 3 deletions
|
@ -149,9 +149,9 @@ def store_doc(
|
||||||
text_xml=["xml"]
|
text_xml=["xml"]
|
||||||
octet_markdown=["md"]
|
octet_markdown=["md"]
|
||||||
known_source_ext=[
|
known_source_ext=[
|
||||||
"go", "py", "java", "sh", "bat", "ps1", "cmd", "js",
|
"go", "py", "java", "sh", "bat", "ps1", "cmd", "js", "ts",
|
||||||
"css", "cpp", "hpp","h", "c", "cs", "sql", "log", "ini",
|
"css", "cpp", "hpp","h", "c", "cs", "sql", "log", "ini",
|
||||||
"pl" "pm", "r", "dart", "dockerfile", "env", "php", "hs",
|
"pl", "pm", "r", "dart", "dockerfile", "env", "php", "hs",
|
||||||
"hsc", "lua", "nginxconf", "conf", "m", "mm", "plsql", "perl",
|
"hsc", "lua", "nginxconf", "conf", "m", "mm", "plsql", "perl",
|
||||||
"rb", "rs", "db2", "scala", "bash", "swift", "vue", "svelte"
|
"rb", "rs", "db2", "scala", "bash", "swift", "vue", "svelte"
|
||||||
]
|
]
|
||||||
|
|
|
@ -24,7 +24,14 @@ export const SUPPORTED_FILE_TYPE = [
|
||||||
'text/markdown'
|
'text/markdown'
|
||||||
];
|
];
|
||||||
|
|
||||||
export const SUPPORTED_FILE_EXTENSIONS = ['md', 'rst'];
|
export const SUPPORTED_FILE_EXTENSIONS = [
|
||||||
|
'md', 'rst','go', 'py', 'java', 'sh', 'bat', 'ps1', 'cmd', 'js',
|
||||||
|
'ts', 'css', 'cpp', 'hpp','h', 'c', 'cs', 'sql', 'log', 'ini',
|
||||||
|
'pl', 'pm', 'r', 'dart', 'dockerfile', 'env', 'php', 'hs',
|
||||||
|
'hsc', 'lua', 'nginxconf', 'conf', 'm', 'mm', 'plsql', 'perl',
|
||||||
|
'rb', 'rs', 'db2', 'scala', 'bash', 'swift', 'vue', 'svelte',
|
||||||
|
'doc','docx', 'pdf', 'csv', 'txt'
|
||||||
|
];
|
||||||
|
|
||||||
// Source: https://kit.svelte.dev/docs/modules#$env-static-public
|
// Source: https://kit.svelte.dev/docs/modules#$env-static-public
|
||||||
// This feature, akin to $env/static/private, exclusively incorporates environment variables
|
// This feature, akin to $env/static/private, exclusively incorporates environment variables
|
||||||
|
|
Loading…
Reference in a new issue