Add archive preview and new storage categories
Some checks failed
Automated Container Build / build-and-push (push) Failing after 32s
Some checks failed
Automated Container Build / build-and-push (push) Failing after 32s
This commit is contained in:
parent
a2b634517f
commit
6b7d0de208
6 changed files with 150 additions and 4 deletions
|
|
@ -1255,6 +1255,10 @@ func categorizeFile(ext string) string {
|
|||
return "documents"
|
||||
case ".zip", ".tar", ".gz", ".rar", ".7z", ".bz2":
|
||||
return "archives"
|
||||
case ".js", ".ts", ".tsx", ".jsx", ".html", ".css", ".json", ".py", ".go", ".java", ".cpp", ".c", ".h", ".hpp", ".cs", ".php", ".rb", ".sh", ".yml", ".yaml", ".xml", ".rs", ".swift", ".kt":
|
||||
return "code"
|
||||
case ".stl", ".3mf", ".obj", ".step", ".stp", ".glb", ".gltf", ".blend":
|
||||
return "3d_models"
|
||||
default:
|
||||
return "other"
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue