98 lines
2.3 KiB
TypeScript
98 lines
2.3 KiB
TypeScript
export const API_ENDPOINTS = {
|
|
account: {
|
|
send_otp: "/accounts/send_otp"
|
|
},
|
|
auth: {
|
|
signin: "/token",
|
|
logout: "/accounts/logout"
|
|
},
|
|
chat: {
|
|
messages: "/chat/product",
|
|
new_message: "/chat/product"
|
|
}
|
|
};
|
|
|
|
export const QUERY_KEYS = {
|
|
chat: "chat",
|
|
};
|
|
|
|
export const MUTATION_KEYS = {
|
|
create_chat: "create_chat",
|
|
};
|
|
|
|
export const FILE_FORMATS = [
|
|
{
|
|
ext: [".jpg", ".jpeg", ".png", ".svg", ".bmp", ".webp", ".gif", ".tiff", ".heif", ".raw"],
|
|
icon: "bi:file-earmark-image"
|
|
},
|
|
{
|
|
ext: [".mp4", ".mkv", ".avi", ".mov", ".wmv", ".flv", ".webm", ".mpeg", ".3gp", ".mts"],
|
|
icon: "bi:file-earmark-play"
|
|
},
|
|
{
|
|
ext: [".zip", ".rar", ".tar.gz", ".dmg", ".7z", ".bz2", ".tar", ".gz", ".xz"],
|
|
icon: "bi:file-earmark-zip"
|
|
},
|
|
{
|
|
ext: [".mp3", ".wav", ".aac", ".flac", ".ogg", ".wma", ".alac", ".m4a", ".opus", ".aiff"],
|
|
icon: "bi:file-earmark-music"
|
|
},
|
|
{
|
|
ext: [
|
|
".py",
|
|
".js",
|
|
".java",
|
|
".cpp",
|
|
".c",
|
|
".html",
|
|
".css",
|
|
".php",
|
|
".rb",
|
|
".swift",
|
|
".go",
|
|
".sh",
|
|
".md",
|
|
".rust",
|
|
".pl"
|
|
],
|
|
icon: "bi:file-earmark-code"
|
|
},
|
|
{
|
|
ext: [
|
|
".json",
|
|
".xml",
|
|
".sql",
|
|
".csv",
|
|
".xls",
|
|
".xlsx",
|
|
".avro",
|
|
".hdf5",
|
|
".yaml",
|
|
".tsv",
|
|
".ods",
|
|
".db",
|
|
".sqlite"
|
|
],
|
|
icon: "bi:file-earmark-spreadsheet"
|
|
},
|
|
{
|
|
ext: [".pdf", ".epub", ".xps", ".djvu", ".cbz", ".cbt"],
|
|
icon: "bi:file-earmark-pdf"
|
|
},
|
|
{
|
|
ext: [".ppt", ".pptx", ".odp", ".pps", ".ppsx", ".key"],
|
|
icon: "bi:file-earmark-slides"
|
|
},
|
|
{
|
|
ext: [".txt", ".doc", ".docx", ".odt", ".rtf", ".wps", ".wpd"],
|
|
icon: "bi:file-earmark-text"
|
|
},
|
|
{
|
|
ext: [".lock", ".lck"],
|
|
icon: "bi:file-earmark-lock"
|
|
},
|
|
{
|
|
ext: [".exe", ".bin", ".elf", ".dll", ".iso", ".dmg", ".swf", ".o", ".obg", ".pe", ".app"],
|
|
icon: "bi:file-earmark-binary"
|
|
}
|
|
]; |