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