CoastalCommitsPastes/client/lib/constants.ts

127 lines
1.5 KiB
TypeScript
Raw Normal View History

2022-03-24 23:24:40 -04:00
export const allowedFileTypes = [
"application/json",
"application/x-javascript",
"application/xhtml+xml",
"application/xml",
"text/xml",
"text/plain",
"text/html",
"text/csv",
"text/tab-separated-values",
"text/x-c",
"text/x-c++",
"text/x-csharp",
"text/x-java",
"text/x-javascript",
"text/x-php",
"text/x-python",
"text/x-ruby",
"text/x-scala",
"text/x-swift",
"text/x-typescript",
"text/x-vb",
"text/x-vbscript",
"text/x-yaml",
"text/x-c++",
"text/x-c#",
"text/mathml",
"text/x-markdown",
"text/markdown"
2022-03-24 23:24:40 -04:00
]
export const allowedFileNames = [
"Makefile",
"README",
"Dockerfile",
"Jenkinsfile",
"LICENSE",
".env",
".gitignore",
".gitattributes",
".env.example",
".env.development",
".env.production",
".env.test",
".env.staging",
".env.development.local",
"yarn.lock",
".bash",
".bashrc",
".bash_profile",
".bash_logout",
".profile",
".fish_prompt",
".zshrc",
".zsh",
2022-03-29 03:19:33 -04:00
".zprofile"
2022-03-24 23:24:40 -04:00
]
2022-03-28 14:47:46 -04:00
export const codeFileExtensions = [
"awk",
"bat",
"c",
"c#",
2022-03-28 14:47:46 -04:00
"c++",
"cgi",
"cmd",
"coffee",
"cpp",
"css",
"cxx",
"go",
"h",
"m",
"ha",
2022-03-28 14:47:46 -04:00
"hpp",
"htm",
"html",
"inc",
"java",
2022-03-28 14:47:46 -04:00
"js",
"json",
"jsx",
"l",
"less",
2022-03-28 14:47:46 -04:00
"ll",
"lock",
"log",
2022-03-28 14:47:46 -04:00
"lua",
"mk",
"mod",
"php",
2022-03-28 14:47:46 -04:00
"pl",
"ps",
"py",
"rb",
2022-03-28 14:47:46 -04:00
"rs",
"s",
"sh",
2022-03-28 14:47:46 -04:00
"sass",
"scala",
2022-03-28 14:47:46 -04:00
"scss",
"sql",
"styl",
"stylus",
"swift",
2022-03-28 14:47:46 -04:00
"ts",
"tsx",
"vb",
"vbscript",
2022-03-28 14:47:46 -04:00
"vue",
"vuex",
"xml",
2022-03-28 14:47:46 -04:00
"y",
"yaml",
2022-11-18 01:36:53 -05:00
"fish"
]
2022-03-28 14:47:46 -04:00
export const allowedFileExtensions = [
"csv",
"markdown",
"md",
"txt",
"webmanifest",
"log",
2022-03-29 03:19:33 -04:00
...codeFileExtensions
]