mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-13 10:13:48 +00:00
Allow source code files for attachments (#617)
This commit is contained in:
1 parent
878e0f4dc5
commit
df4a769fdc
5 files changed
+62
-1
No files matched your search
@@ -25,5 +25,56 @@ public readonly record struct FileTypeFilter(string FilterName, string[] FilterE
|
||||
|
||||
public static FileTypeFilter AllAudio => new(TB("All Audio Files"), ["mp3", "wav", "wave", "aac", "flac", "ogg", "m4a", "wma", "alac", "aiff", "m4b"]);
|
||||
|
||||
public static FileTypeFilter AllSourceCode => new(TB("All Source Code Files"),
|
||||
[
|
||||
// .NET
|
||||
"cs", "vb", "fs", "razor", "aspx", "cshtml", "csproj",
|
||||
|
||||
// Java:
|
||||
"java",
|
||||
|
||||
// Python:
|
||||
"py",
|
||||
|
||||
// JavaScript/TypeScript:
|
||||
"js", "ts",
|
||||
|
||||
// C/C++:
|
||||
"c", "cpp", "h", "hpp",
|
||||
|
||||
// Ruby:
|
||||
"rb",
|
||||
|
||||
// Go:
|
||||
"go",
|
||||
|
||||
// Rust:
|
||||
"rs",
|
||||
|
||||
// Lua:
|
||||
"lua",
|
||||
|
||||
// PHP:
|
||||
"php",
|
||||
|
||||
// HTML/CSS:
|
||||
"html", "css",
|
||||
|
||||
// Swift/Kotlin:
|
||||
"swift", "kt",
|
||||
|
||||
// Shell scripts:
|
||||
"sh", "bash",
|
||||
|
||||
// Logging files:
|
||||
"log",
|
||||
|
||||
// JSON/YAML/XML:
|
||||
"json", "yaml", "yml", "xml",
|
||||
|
||||
// Config files:
|
||||
"ini", "cfg", "toml", "plist",
|
||||
]);
|
||||
|
||||
public static FileTypeFilter Executables => new(TB("Executable Files"), ["exe", "app", "bin", "appimage"]);
|
||||
}
|
||||
Reference in new issue
Block a user