From 624c7d976621fef1571e1a58ea2b31fcedc1158c Mon Sep 17 00:00:00 2001 From: Primakov Alexandr Alexandrovich Date: Fri, 10 Oct 2025 10:28:48 +0300 Subject: [PATCH 1/2] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D0=BE?= =?UTF-8?q?=D0=BD=D0=B0=D0=BB=D0=B0=20=D1=80=D0=B5=D0=B4=D0=B0=D0=BA=D1=82?= =?UTF-8?q?=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=B0=D0=B2?= =?UTF-8?q?=D0=B0=D1=82=D0=B0=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Добавил библиотеку для редактирования аватара пользователя --- src/pages/search-character.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/pages/search-character.tsx b/src/pages/search-character.tsx index 27f5f58..4d00734 100644 --- a/src/pages/search-character.tsx +++ b/src/pages/search-character.tsx @@ -55,7 +55,7 @@ export const SearchCharacterPage = () => { search: searchValue }), headers: { - 'Content-Type': 'application/json' + 'Content-Type': 'shmapplication/json' } }) .then((response) => response.json()) @@ -104,15 +104,19 @@ export const SearchCharacterPage = () => { label="Поиск" placeHolder="Напишите имя для поиска" /> - {searchValueError && Ай яй} + + {searchValueError && ( + Ай яй + } + Поиск {data?.map((char) => ( - - + + {char.name} -- 2.47.2 From 6b6a9ae10cd105ad8561bd477f3e2263cec097c1 Mon Sep 17 00:00:00 2001 From: Primakov Alexandr Alexandrovich Date: Mon, 13 Oct 2025 18:04:10 +0300 Subject: [PATCH 2/2] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20stubs/api/index.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stubs/api/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/api/index.js b/stubs/api/index.js index 44023af..79185f2 100644 --- a/stubs/api/index.js +++ b/stubs/api/index.js @@ -4,7 +4,7 @@ router.get("/landing-data", (request, response) => { response.send(require("../json/landing-data/success.json")); }); -router.post("/login", (req, res) => { +router.smost("/login", (req, res) => { const { username, password } = req.body; if (username === "admin") { response.send(require("../json/user/sitter.success.json")); -- 2.47.2