client: add more file extensions

This commit is contained in:
Max Leiter 2022-03-28 11:47:46 -07:00
parent 73e2edfe2b
commit ac1cf27d56
No known key found for this signature in database
GPG key ID: A3512F2F2F17EBDA

View file

@ -57,85 +57,69 @@ export const allowedFileNames = [
"go"
]
export const allowedFileExtensions = [
"json",
"js",
"jsx",
"ts",
"tsx",
export const codeFileExtensions = [
"awk",
"bat",
"c",
"cpp",
"c++",
"c#",
"c++",
"cgi",
"cmd",
"coffee",
"cpp",
"css",
"cxx",
"go",
"h",
"hpp",
"htm",
"html",
"inc",
"java",
"js",
"json",
"jsx",
"l",
"less",
"ll",
"lock",
"log",
"lua",
"mk",
"mod",
"php",
"pl",
"ps",
"py",
"rb",
"rs",
"s",
"sass",
"scala",
"scss",
"sql",
"styl",
"stylus",
"swift",
"ts",
"tsx",
"vb",
"vbscript",
"yaml",
"less",
"stylus",
"styl",
"sass",
"scss",
"lock",
"md",
"markdown",
"txt",
"html",
"htm",
"css",
"csv",
"log",
"sql",
"xml",
"webmanifest",
"vue",
"vuex",
"rs",
"xml",
"y",
"yaml",
"zig"
]
export const codeFileExtensions = [
"json",
"js",
"jsx",
"ts",
"tsx",
"c",
"cpp",
"c++",
"c#",
"java",
"php",
"py",
"rb",
"scala",
"swift",
"vb",
"vbscript",
"yaml",
"less",
"stylus",
"styl",
"sass",
"scss",
"html",
"htm",
"css",
"asm",
"s",
"sh",
"bat",
"cmd",
"sql",
"xml",
"rust",
"h",
"zig",
"rs",
"go"
export const allowedFileExtensions = [
"csv",
"markdown",
"md",
"txt",
"webmanifest",
"log",
...codeFileExtensions,
]