feat: add new SVG assets for file icons, LLM providers, and UI elements
This commit is contained in:
@@ -0,0 +1,164 @@
|
||||
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',
|
||||
'Indonesia',
|
||||
'Spanish',
|
||||
'Vietnamese',
|
||||
'Japanese',
|
||||
'Portuguese BR',
|
||||
'German',
|
||||
'French',
|
||||
];
|
||||
export const LanguageMap = {
|
||||
English: 'English',
|
||||
Chinese: '简体中文',
|
||||
'Traditional Chinese': '繁體中文',
|
||||
Indonesia: 'Indonesia',
|
||||
Spanish: 'Español',
|
||||
Vietnamese: 'Tiếng việt',
|
||||
Japanese: '日本語',
|
||||
'Portuguese BR': 'Português BR',
|
||||
German: 'German',
|
||||
French: 'Français',
|
||||
};
|
||||
|
||||
export const LANUGAGE_ABBREVIATION_TYPE = Object.freeze({
|
||||
En: 'en',
|
||||
Zh: 'zh',
|
||||
ZhTraditional: 'zh-TRADITIONAL',
|
||||
Id: 'id',
|
||||
Ja: 'ja',
|
||||
Es: 'es',
|
||||
Vi: 'vi',
|
||||
PtBr: 'pt-BR',
|
||||
De: 'de',
|
||||
Fr: 'fr',
|
||||
} as const)
|
||||
|
||||
export type LanguageAbbreviation = (typeof LANUGAGE_ABBREVIATION_TYPE)[keyof typeof LANUGAGE_ABBREVIATION_TYPE]
|
||||
|
||||
export const LanguageAbbreviationMap = {
|
||||
[LANUGAGE_ABBREVIATION_TYPE.En]: 'English',
|
||||
[LANUGAGE_ABBREVIATION_TYPE.Zh]: '简体中文',
|
||||
[LANUGAGE_ABBREVIATION_TYPE.ZhTraditional]: '繁體中文',
|
||||
[LANUGAGE_ABBREVIATION_TYPE.Id]: 'Indonesia',
|
||||
[LANUGAGE_ABBREVIATION_TYPE.Es]: 'Español',
|
||||
[LANUGAGE_ABBREVIATION_TYPE.Vi]: 'Tiếng việt',
|
||||
[LANUGAGE_ABBREVIATION_TYPE.Ja]: '日本語',
|
||||
[LANUGAGE_ABBREVIATION_TYPE.PtBr]: 'Português BR',
|
||||
[LANUGAGE_ABBREVIATION_TYPE.De]: 'Deutsch',
|
||||
[LANUGAGE_ABBREVIATION_TYPE.Fr]: 'Français',
|
||||
};
|
||||
|
||||
export const LanguageTranslationMap = {
|
||||
English: 'en',
|
||||
Chinese: 'zh',
|
||||
'Traditional Chinese': 'zh-TRADITIONAL',
|
||||
Indonesia: 'id',
|
||||
Spanish: 'es',
|
||||
Vietnamese: 'vi',
|
||||
Japanese: 'ja',
|
||||
'Portuguese BR': 'pt-br',
|
||||
German: 'de',
|
||||
French: 'fr',
|
||||
};
|
||||
|
||||
export const FILE_MINE_TYPE = Object.freeze({
|
||||
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',
|
||||
Json: 'application/json',
|
||||
} as const)
|
||||
|
||||
export type FileMimeType = (typeof FILE_MINE_TYPE)[keyof typeof FILE_MINE_TYPE]
|
||||
|
||||
//#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
|
||||
|
||||
// export enum Platform {
|
||||
// RAGFlow = 'RAGFlow',
|
||||
// Dify = 'Dify',
|
||||
// FastGPT = 'FastGPT',
|
||||
// Coze = 'Coze',
|
||||
// }
|
||||
|
||||
// export enum ThemeEnum {
|
||||
// Dark = 'dark',
|
||||
// Light = 'light',
|
||||
// System = 'system',
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user