2022-03-24 23:24:40 -04:00
|
|
|
export const allowedFileTypes = [
|
2022-03-25 17:31:10 -04:00
|
|
|
"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 = [
|
2022-03-25 17:31:10 -04:00
|
|
|
"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",
|
2022-03-25 17:31:10 -04:00
|
|
|
"c",
|
|
|
|
"c#",
|
2022-03-28 14:47:46 -04:00
|
|
|
"c++",
|
|
|
|
"cgi",
|
|
|
|
"cmd",
|
|
|
|
"coffee",
|
|
|
|
"cpp",
|
|
|
|
"css",
|
|
|
|
"cxx",
|
|
|
|
"go",
|
|
|
|
"h",
|
|
|
|
"hpp",
|
|
|
|
"htm",
|
|
|
|
"html",
|
|
|
|
"inc",
|
2022-03-25 17:31:10 -04:00
|
|
|
"java",
|
2022-03-28 14:47:46 -04:00
|
|
|
"js",
|
|
|
|
"json",
|
|
|
|
"jsx",
|
|
|
|
"l",
|
2022-03-25 17:31:10 -04:00
|
|
|
"less",
|
2022-03-28 14:47:46 -04:00
|
|
|
"ll",
|
2022-03-25 17:31:10 -04:00
|
|
|
"lock",
|
|
|
|
"log",
|
2022-03-28 14:47:46 -04:00
|
|
|
"lua",
|
|
|
|
"mk",
|
|
|
|
"mod",
|
2022-03-25 17:31:10 -04:00
|
|
|
"php",
|
2022-03-28 14:47:46 -04:00
|
|
|
"pl",
|
|
|
|
"ps",
|
2022-03-25 17:31:10 -04:00
|
|
|
"py",
|
|
|
|
"rb",
|
2022-03-28 14:47:46 -04:00
|
|
|
"rs",
|
|
|
|
"s",
|
|
|
|
"sass",
|
2022-03-25 17:31:10 -04:00
|
|
|
"scala",
|
2022-03-28 14:47:46 -04:00
|
|
|
"scss",
|
|
|
|
"sql",
|
|
|
|
"styl",
|
|
|
|
"stylus",
|
2022-03-25 17:31:10 -04:00
|
|
|
"swift",
|
2022-03-28 14:47:46 -04:00
|
|
|
"ts",
|
|
|
|
"tsx",
|
2022-03-25 17:31:10 -04:00
|
|
|
"vb",
|
|
|
|
"vbscript",
|
2022-03-28 14:47:46 -04:00
|
|
|
"vue",
|
|
|
|
"vuex",
|
2022-03-25 17:31:10 -04:00
|
|
|
"xml",
|
2022-03-28 14:47:46 -04:00
|
|
|
"y",
|
|
|
|
"yaml",
|
|
|
|
"zig"
|
2022-03-25 17:31:10 -04:00
|
|
|
]
|
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
|
|
|
|
]
|
2022-11-09 22:02:06 -05:00
|
|
|
|
|
|
|
export const TOKEN_COOKIE_NAME = "drift-token"
|
|
|
|
export const USER_COOKIE_NAME = "drift-userid"
|