export const fileIconMap = { aep: 'aep.svg', ai: 'ai.svg', avi: 'avi.svg', css: 'css.svg', csv: 'csv.svg', dmg: 'dmg.svg', doc: 'doc.svg', docx: 'docx.svg', eps: 'eps.svg', exe: 'exe.svg', fig: 'fig.svg', gif: 'gif.svg', html: 'html.svg', indd: 'indd.svg', java: 'java.svg', jpeg: 'jpeg.svg', jpg: 'jpg.svg', js: 'js.svg', json: 'json.svg', mkv: 'mkv.svg', mp3: 'mp3.svg', mp4: 'mp4.svg', mpeg: 'mpeg.svg', pdf: 'pdf.svg', png: 'png.svg', ppt: 'ppt.svg', pptx: 'pptx.svg', psd: 'psd.svg', rss: 'rss.svg', sql: 'sql.svg', svg: 'svg.svg', tiff: 'tiff.svg', txt: 'txt.svg', wav: 'wav.svg', webp: 'webp.svg', xls: 'xls.svg', xlsx: 'xlsx.svg', xml: 'xml.svg', }; export const LanguageList = ['English', 'Chinese', 'Traditional Chinese']; export const LanguageTranslationMap = { English: 'en', Chinese: 'zh', 'Traditional Chinese': 'zh-TRADITIONAL', }; export const FileMimeTypeMap = { bmp: 'image/bmp', csv: 'text/csv', odt: 'application/vnd.oasis.opendocument.text', doc: 'application/msword', docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', gif: 'image/gif', htm: 'text/htm', html: 'text/html', jpg: 'image/jpg', jpeg: 'image/jpeg', pdf: 'application/pdf', png: 'image/png', ppt: 'application/vnd.ms-powerpoint', pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation', tiff: 'image/tiff', txt: 'text/plain', xls: 'application/vnd.ms-excel', xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', mp4: 'video/mp4', }; export const Domain = 'demo.ragflow.io'; //#region file preview export const Images = [ 'jpg', 'jpeg', 'png', 'gif', 'bmp', 'tif', 'tiff', 'webp', // 'svg', 'ico', ]; // Without FileViewer export const ExceptiveType = ['xlsx', 'xls', 'pdf', 'docx', ...Images]; export const SupportedPreviewDocumentTypes = [...ExceptiveType]; //#endregion