All files / src/config ui.tsx

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

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 42 43 44                  66x                                                 66x               66x  
import React, { ReactElement } from 'react';
import {
  FileWordOutlined, FileImageOutlined,
  FilePdfOutlined, FileExcelOutlined, FileMarkdownOutlined, FileZipOutlined, FilePptOutlined,
  FileTextOutlined, BookOutlined, SoundOutlined, YoutubeOutlined, MailOutlined
} from '@ant-design/icons';
 
export const FileTypeIconMapping: {
  [propName: string]: ReactElement
} = {
  "text/markdown": <FileMarkdownOutlined />,
  "text/plain": <FileTextOutlined />,
  "text/csv": <FileExcelOutlined />,
  "image/png": <FileImageOutlined />,
  "image/jpeg": <FileImageOutlined />,
  "image/gif": <FileImageOutlined />,
  "application/pdf": <FilePdfOutlined />,
  "application/vnd.openxmlformats-officedocument.wordprocessingml.document": <FileWordOutlined />,
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": <FileExcelOutlined />,
  "application/vnd.openxmlformats-officedocument.presentationml.presentation": <FilePptOutlined />,
  "application/msword": <FileWordOutlined />,
  "application/vnd.ms-excel": <FileExcelOutlined />,
  "application/vnd.ms-powerpoint": <FilePptOutlined />,
  "application/epub+zip": <BookOutlined />,
  "audio/mpeg": <SoundOutlined />,
  "audio/mp3": <SoundOutlined />,
  "video/mp4": <YoutubeOutlined />,
  "application/x-rar-compressed": <FileZipOutlined />,
  "application/x-rar": <FileZipOutlined />,
  "application/x-7z-compressed": <FileZipOutlined />,
  "application/zip": <FileZipOutlined />,
  "message/rfc822": <MailOutlined />,
};
 
export const TableModeToClassNameMap: {[propName: string]: 'fix-table' | 'flow-table'} = {
  "table-list": 'fix-table',
  "detail": 'fix-table',
  "finder": 'flow-table',
  "detail-drawer": "fix-table",
  "simple-list": 'fix-table',
};
 
export const DataCollectFormHideFieldClassName = "form-item-hide-by-display";