mach/src/editor/Builder/mime.zig
Stephen Gutekanst d72155df4c fold app/ into src/editor/
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-07-12 10:28:21 -07:00

59 lines
1.9 KiB
Zig

const std = @import("std");
pub const mime_map = std.ComptimeStringMap([]const u8, .{
.{ ".aac", "audio/aac" },
.{ ".avif", "image/avif" },
.{ ".avi", "video/x-msvideo" },
.{ ".bin", "application/octet-stream" },
.{ ".bmp", "image/bmp" },
.{ ".bz", "application/x-bzip" },
.{ ".bz2", "application/x-bzip2" },
.{ ".css", "text/css" },
.{ ".csv", "text/csv" },
.{ ".eot", "application/vnd.ms-fontobject" },
.{ ".gz", "application/gzip" },
.{ ".gif", "image/gif" },
.{ ".htm", "text/html" },
.{ ".html", "text/html" },
.{ ".ico", "image/x-icon" },
.{ ".ics", "text/calendar" },
.{ ".jar", "application/java-archive" },
.{ ".jpeg", "image/jpeg" },
.{ ".jpg", "image/jpeg" },
.{ ".js", "text/javascript" },
.{ ".json", "application/json" },
.{ ".md", "text/x-markdown" },
.{ ".mjs", "text/javascript" },
.{ ".mp3", "audio/mpeg" },
.{ ".mp4", "video/mp4" },
.{ ".mpeg", "video/mpeg" },
.{ ".oga", "audio/ogg" },
.{ ".ogv", "video/ogg" },
.{ ".ogx", "application/ogg" },
.{ ".opus", "audio/opus" },
.{ ".otf", "font/otf" },
.{ ".png", "image/png" },
.{ ".pdf", "application/pdf" },
.{ ".rar", "application/vnd.rar" },
.{ ".rtf", "application/rtf" },
.{ ".sh", "application/x-sh" },
.{ ".svg", "image/svg+xml" },
.{ ".tar", "application/x-tar" },
.{ ".tif", ".tiff", "image/tiff" },
.{ ".toml", "text/toml" },
.{ ".ts", "video/mp2t" },
.{ ".ttf", "font/ttf" },
.{ ".txt", "text/plain" },
.{ ".wasm", "application/wasm" },
.{ ".wav", "audio/wav" },
.{ ".weba", "audio/webm" },
.{ ".webm", "video/webm" },
.{ ".webp", "image/webp" },
.{ ".woff", "font/woff" },
.{ ".woff2", "font/woff2" },
.{ ".yml", "application/x-yaml" },
.{ ".xhtml", "application/xhtml+xml" },
.{ ".xml", "application/xml" },
.{ ".zip", "application/zip" },
.{ ".7z", "application/x-7z-compressed" },
});