All files / src/util file.tsx

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 421x                                                                                  
export const FileTypesByCategory: Record<string, Record<string, string>> = {
  Documents: {
    PDF: "application/pdf",
    PlainText: "text/plain",
    Markdown: "text/markdown",
    HTML: "text/html",
    RTF: "application/rtf",
  },
 
  Office: {
    Word_DOC: "application/msword",
    Word_DOCX:
      "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
    Excel_XLS: "application/vnd.ms-excel",
    Excel_XLSX:
      "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
    PowerPoint_PPT: "application/vnd.ms-powerpoint",
    PowerPoint_PPTX:
      "application/vnd.openxmlformats-officedocument.presentationml.presentation",
  },
 
  Data: {
    CSV: "text/csv",
    JSON: "application/json",
    XML: "application/xml",
  },
 
  Images: {
    JPEG: "image/jpeg",
    PNG: "image/png",
    GIF: "image/gif",
    WEBP: "image/webp",
    SVG: "image/svg+xml",
  },
 
  Archives: {
    ZIP: "application/zip",
    TAR: "application/x-tar",
    GZIP: "application/gzip",
  },
};