add check modal window

This commit is contained in:
smanylov
2026-01-28 18:53:08 +07:00
parent a6a493fe97
commit c4ab78b89b
13 changed files with 318 additions and 67 deletions
+7 -7
View File
@@ -9,7 +9,7 @@ export async function getUserData() {
const token = await getSessionData('token');
/* для теста */
if (userEmail === "test" && token === "1111") {
if (userEmail === 'test' && token === '1111') {
return testUserData;
}
/* для теста */
@@ -18,9 +18,9 @@ export async function getUserData() {
const response = await fetch(`${API_BASE_URL}/v1/api/user?email=${userEmail}`, {
method: 'GET',
headers: {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": `Bearer ${token}`,
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': `Bearer ${token}`,
}
});
@@ -42,13 +42,13 @@ export async function getUserFilesInfo() {
version: 1,
msg_id: 20005,
message_body: {
action: "user_files_info",
action: 'user_files_info',
token: token
}
}),
headers: {
"Content-Type": "application/json",
"Accept": "application/json"
'Content-Type': 'application/json',
'Accept': 'application/json'
}
});