This commit is contained in:
marzban-dev
2025-01-06 19:00:55 +03:30
parent fe33bcaa52
commit b480ecd345
32 changed files with 1128 additions and 69 deletions
+25 -17
View File
@@ -1,33 +1,41 @@
export const API_ENDPOINTS = {
account : {
send_otp : "/accounts/send_otp",
account: {
send_otp: "/accounts/send_otp"
},
auth: {
signin: "/token",
logout: "/accounts/logout",
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",
icon: "bi:file-earmark-image"
},
{
ext: [".mp4", ".mkv", ".avi", ".mov", ".wmv", ".flv", ".webm", ".mpeg", ".3gp", ".mts"],
icon: "bi:file-earmark-play",
icon: "bi:file-earmark-play"
},
{
ext: [".zip", ".rar", ".tar.gz", ".dmg", ".7z", ".bz2", ".tar", ".gz", ".xz"],
icon: "bi:file-earmark-zip",
icon: "bi:file-earmark-zip"
},
{
ext: [".mp3", ".wav", ".aac", ".flac", ".ogg", ".wma", ".alac", ".m4a", ".opus", ".aiff"],
icon: "bi:file-earmark-music",
icon: "bi:file-earmark-music"
},
{
ext: [
@@ -45,9 +53,9 @@ export const FILE_FORMATS = [
".sh",
".md",
".rust",
".pl",
".pl"
],
icon: "bi:file-earmark-code",
icon: "bi:file-earmark-code"
},
{
ext: [
@@ -63,28 +71,28 @@ export const FILE_FORMATS = [
".tsv",
".ods",
".db",
".sqlite",
".sqlite"
],
icon: "bi:file-earmark-spreadsheet",
icon: "bi:file-earmark-spreadsheet"
},
{
ext: [".pdf", ".epub", ".xps", ".djvu", ".cbz", ".cbt"],
icon: "bi:file-earmark-pdf",
icon: "bi:file-earmark-pdf"
},
{
ext: [".ppt", ".pptx", ".odp", ".pps", ".ppsx", ".key"],
icon: "bi:file-earmark-slides",
icon: "bi:file-earmark-slides"
},
{
ext: [".txt", ".doc", ".docx", ".odt", ".rtf", ".wps", ".wpd"],
icon: "bi:file-earmark-text",
icon: "bi:file-earmark-text"
},
{
ext: [".lock", ".lck"],
icon: "bi:file-earmark-lock",
icon: "bi:file-earmark-lock"
},
{
ext: [".exe", ".bin", ".elf", ".dll", ".iso", ".dmg", ".swf", ".o", ".obg", ".pe", ".app"],
icon: "bi:file-earmark-binary",
},
icon: "bi:file-earmark-binary"
}
];