From d27b16f24959d0c8950e945385c3f1ed91722029 Mon Sep 17 00:00:00 2001 From: xomimishka Date: Thu, 5 Jun 2025 21:38:54 +0300 Subject: [PATCH 1/4] =?UTF-8?q?=D1=83=D0=B1=D1=80=D0=B0=D0=BB=D0=B0=20?= =?UTF-8?q?=D0=BD=D0=B5=D0=BD=D1=83=D0=B6=D0=BD=D1=83=D1=8E=20=D0=BF=D0=B5?= =?UTF-8?q?=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD=D1=83=D1=8E=20=D0=B2=20mai?= =?UTF-8?q?npage=20=D0=B8=20=D1=83=D0=B1=D1=80=D0=B0=D0=BB=D0=B0=20slidesP?= =?UTF-8?q?erView=20=D0=B8=D0=B7=20wppost?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/MainPage/ui/MainPage/MainPage.tsx | 1 - src/widgets/WpPost/WpPost.tsx | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pages/MainPage/ui/MainPage/MainPage.tsx b/src/pages/MainPage/ui/MainPage/MainPage.tsx index c200914..fdc5ab4 100644 --- a/src/pages/MainPage/ui/MainPage/MainPage.tsx +++ b/src/pages/MainPage/ui/MainPage/MainPage.tsx @@ -15,7 +15,6 @@ const MainPage = () => { const [headerBgUrl, setHeaderBgUrl] = useState(""); const [nextBgUrl, setNextBgUrl] = useState(""); const [fade, setFade] = useState(false); - const [currentIndex, setCurrentIndex] = useState(0); const { data: mediaData, isLoading, isError } = useMedia(); useEffect(() => { diff --git a/src/widgets/WpPost/WpPost.tsx b/src/widgets/WpPost/WpPost.tsx index 2c81bfb..404db0f 100644 --- a/src/widgets/WpPost/WpPost.tsx +++ b/src/widgets/WpPost/WpPost.tsx @@ -8,7 +8,6 @@ import { App } from "@/shared/types/app"; import "./Projects.scss"; import NewSlider from "../NewSlider/NewSlider"; import { getCustomProject } from "./customProjects"; -import Slider from "../Slider/Slider"; interface WpPostProps { post: App.WpPostPage; @@ -46,7 +45,7 @@ export default function WpPost({ ); } else if (el.type === "slider") { - const slider = ; + const slider = ; return isSpecialTitle ? slider : ( {slider} @@ -64,4 +63,4 @@ export default function WpPost({ )} ); -} +} \ No newline at end of file From 925e8f3fb7731e15acd34a6eb4b4fddc5c5430df Mon Sep 17 00:00:00 2001 From: ifraimka1 Date: Tue, 8 Jul 2025 19:01:46 +0300 Subject: [PATCH 2/4] =?UTF-8?q?Api=20=D1=84=D0=B8=D0=BA=D1=81=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D0=BF=D1=80=D0=BE=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/shared/api/wp-client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/api/wp-client.ts b/src/shared/api/wp-client.ts index 674c0a7..277b3f3 100644 --- a/src/shared/api/wp-client.ts +++ b/src/shared/api/wp-client.ts @@ -1,7 +1,7 @@ import WPAPI from "wpapi"; export const wp = new WPAPI({ - endpoint: "https://test.skbkit.ru/wp-json/", + endpoint: "https://kit.sfedu.ru/wp-json/", username: "admin", password: "admin", }); From 3e6c72dab5791ed9b8a8aa380b92ffba7a4ebfcd Mon Sep 17 00:00:00 2001 From: ifraimka1 Date: Tue, 8 Jul 2025 19:01:58 +0300 Subject: [PATCH 3/4] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BF=D0=BE?= =?UTF-8?q?=D1=80=D1=8F=D0=B4=D0=BA=D0=B0=20=D0=BD=D0=BE=D0=B2=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widgets/CardList/CardListTemplate.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/CardList/CardListTemplate.tsx b/src/widgets/CardList/CardListTemplate.tsx index 41355c8..46394fd 100644 --- a/src/widgets/CardList/CardListTemplate.tsx +++ b/src/widgets/CardList/CardListTemplate.tsx @@ -10,7 +10,7 @@ export const CardListTemplate = ({ gridConfig = { desktop: 3, tablet: 2, mobile: 1 }, title = "Наши лаборатории", }: CardListProps) => { - const itemsArray = Object.values(items); + const itemsArray = Object.values(items).reverse(); return ( <> From b630d827ea891449c536aa4f0d3c92d815a79942 Mon Sep 17 00:00:00 2001 From: ifraimka1 Date: Tue, 8 Jul 2025 23:52:37 +0300 Subject: [PATCH 4/4] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D1=80=D0=B0?= =?UTF-8?q?=D0=B7=D0=BC=D0=B5=D1=80=D0=B0=20=D0=BA=D0=B0=D1=80=D1=82=D0=B8?= =?UTF-8?q?=D0=BD=D0=BE=D0=BA=20=D0=B2=20=D0=BD=D0=BE=D0=B2=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D1=8F=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widgets/Slider/Slider.styles.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/Slider/Slider.styles.scss b/src/widgets/Slider/Slider.styles.scss index 7509c41..c4c875d 100644 --- a/src/widgets/Slider/Slider.styles.scss +++ b/src/widgets/Slider/Slider.styles.scss @@ -41,7 +41,7 @@ .swiper-slide.single { .slide-image { - width: auto; + width: 100%; height: 100%; border-radius: 0; }