added products filter constants
This commit is contained in:
@@ -1,15 +1,15 @@
|
|||||||
export const API_ENDPOINTS = {
|
export const API_ENDPOINTS = {
|
||||||
account: {
|
account: {
|
||||||
send_otp: "/accounts/send_otp"
|
send_otp: "/accounts/send_otp",
|
||||||
},
|
},
|
||||||
auth: {
|
auth: {
|
||||||
signin: "/token",
|
signin: "/token",
|
||||||
logout: "/accounts/logout"
|
logout: "/accounts/logout",
|
||||||
},
|
},
|
||||||
chat: {
|
chat: {
|
||||||
messages: "/chat/product",
|
messages: "/chat/product",
|
||||||
new_message: "/chat/product"
|
new_message: "/chat/product",
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export const QUERY_KEYS = {
|
export const QUERY_KEYS = {
|
||||||
@@ -20,79 +20,7 @@ export const MUTATION_KEYS = {
|
|||||||
create_chat: "create_chat",
|
create_chat: "create_chat",
|
||||||
};
|
};
|
||||||
|
|
||||||
export const FILE_FORMATS = [
|
export const PRODUCT_RANGE = {
|
||||||
{
|
min: 0,
|
||||||
ext: [".jpg", ".jpeg", ".png", ".svg", ".bmp", ".webp", ".gif", ".tiff", ".heif", ".raw"],
|
max: 100000,
|
||||||
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"
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|||||||
Reference in New Issue
Block a user