UNPKG

nhfs

Version:

NHFS — A sleek HTTP file server for the web built with Next.js and HeroUI. (Alpha)

74 lines (71 loc) 928 B
import { FileTypesWithPreview } from '@/types'; const fileTypeMap: Record<FileTypesWithPreview, string[]> = { video: [ 'mp4', 'webm', 'ogg', 'ogv', 'mov', 'm4v', '3gp', '3g2', 'avi', 'mkv', ], audio: ['mp3', 'wav', 'ogg', 'm4a', 'aac', 'flac', 'opus', 'weba'], image: [ 'jpg', 'jpeg', 'png', 'gif', 'webp', 'bmp', 'svg', 'ico', 'avif', 'apng', ], text: [ 'txt', 'json', 'js', 'ts', 'tsx', 'jsx', 'css', 'scss', 'sass', 'less', 'html', 'htm', 'md', 'csv', 'xml', 'yaml', 'yml', 'ini', 'conf', 'log', 'env', 'bat', 'sh', 'py', 'java', 'c', 'cpp', 'h', 'hpp', 'rb', 'php', 'pl', 'rs', 'go', 'toml', 'properties', 'cfg', 'tsv', 'rst', 'tex', ], }; export default fileTypeMap;