diff --git a/src/api/quiz.ts b/src/api/quiz.ts index 7d1f4d3d..d534da88 100644 --- a/src/api/quiz.ts +++ b/src/api/quiz.ts @@ -19,7 +19,7 @@ type AddedQuizImagesResponse = { }; const API_URL = `${process.env.REACT_APP_DOMAIN}/squiz`; -const IMAGES_URL = `${process.env.REACT_APP_DOMAIN}/squizstorer`; +const IMAGES_URL = `${process.env.REACT_APP_DOMAIN}/squizstorer/v1.0.0`; export const createQuiz = async ( body?: Partial, diff --git a/src/api/ticket.ts b/src/api/ticket.ts index 46800a55..7270f190 100644 --- a/src/api/ticket.ts +++ b/src/api/ticket.ts @@ -13,7 +13,7 @@ type SendFileResponse = { message: string; }; -const API_URL = `${process.env.REACT_APP_DOMAIN}/heruvym`; +const API_URL = `${process.env.REACT_APP_DOMAIN}/heruvym/v1.0.0`; export const sendTicketMessage = async ( ticketId: string, @@ -67,7 +67,7 @@ export const sendFile = async ( const sendResponse = await makeRequest({ method: "POST", - url: `${process.env.REACT_APP_DOMAIN}/heruvym/sendFiles`, + url: `${API_URL}/sendFiles`, body, }); diff --git a/src/pages/startPage/EditPage.tsx b/src/pages/startPage/EditPage.tsx index 3631271c..8afe3723 100755 --- a/src/pages/startPage/EditPage.tsx +++ b/src/pages/startPage/EditPage.tsx @@ -1,8 +1,4 @@ -import { - Box, - useMediaQuery, - useTheme, -} from "@mui/material"; +import { Box, useMediaQuery, useTheme } from "@mui/material"; import { updateQuiz, setCurrentStep } from "@root/quizes/actions"; import { useCurrentQuiz } from "@root/quizes/hooks"; import { useQuizStore } from "@root/quizes/store"; diff --git a/src/stores/questions/actions.ts b/src/stores/questions/actions.ts index 2ad2d64f..08d4ce03 100644 --- a/src/stores/questions/actions.ts +++ b/src/stores/questions/actions.ts @@ -450,7 +450,7 @@ export const uploadQuestionImage = async ( } const imageId = values[0]; - const imageUrl = `https://storage.yandexcloud.net/squizimages/${quizQid}/${imageId}`; + const imageUrl = `https://3c580be9-cf31f296-d055-49cf-b39e-30c7959dc17b.s3.timeweb.cloud/angesight/squizimages/${quizQid}/${imageId}`; updateQuestion(questionId, (question) => { updateFn(question, imageUrl); diff --git a/src/stores/quizes/actions.ts b/src/stores/quizes/actions.ts index 6d8fc4b2..6a000801 100644 --- a/src/stores/quizes/actions.ts +++ b/src/stores/quizes/actions.ts @@ -305,7 +305,7 @@ export const uploadQuizImage = async ( updateQuiz(quizId, (quiz) => { updateFn( quiz, - `https://storage.yandexcloud.net/squizimages/${quiz.qid}/${imageId}`, + `https://3c580be9-cf31f296-d055-49cf-b39e-30c7959dc17b.s3.timeweb.cloud/angesight/squizimages/${quiz.qid}/${imageId}`, ); }); }; diff --git a/src/ui_kit/FloatingSupportChat/ChatDocument.tsx b/src/ui_kit/FloatingSupportChat/ChatDocument.tsx index 6d3fc28e..965897c6 100644 --- a/src/ui_kit/FloatingSupportChat/ChatDocument.tsx +++ b/src/ui_kit/FloatingSupportChat/ChatDocument.tsx @@ -98,7 +98,7 @@ export default function ChatDocument({ diff --git a/src/ui_kit/FloatingSupportChat/ChatImageNewWindow.tsx b/src/ui_kit/FloatingSupportChat/ChatImageNewWindow.tsx index 4138ea5c..89e2260b 100644 --- a/src/ui_kit/FloatingSupportChat/ChatImageNewWindow.tsx +++ b/src/ui_kit/FloatingSupportChat/ChatImageNewWindow.tsx @@ -12,7 +12,7 @@ export default function ChatImageNewWindow() { maxHeight: "100vh", maxWidth: "100vw", }} - src={`https://storage.yandexcloud.net/pair/${srcImage}`} + src={`https://3c580be9-cf31f296-d055-49cf-b39e-30c7959dc17b.s3.timeweb.cloud/angesight/pair/${srcImage}`} /> ); diff --git a/src/ui_kit/FloatingSupportChat/ChatVideo.tsx b/src/ui_kit/FloatingSupportChat/ChatVideo.tsx index 5fb70d89..15bb19e1 100644 --- a/src/ui_kit/FloatingSupportChat/ChatVideo.tsx +++ b/src/ui_kit/FloatingSupportChat/ChatVideo.tsx @@ -113,7 +113,9 @@ export default function ChatImage({ }} controls > - + diff --git a/src/ui_kit/switchStepPages.tsx b/src/ui_kit/switchStepPages.tsx index 6b16382b..26d5366c 100755 --- a/src/ui_kit/switchStepPages.tsx +++ b/src/ui_kit/switchStepPages.tsx @@ -6,12 +6,18 @@ import { QuizType, } from "@model/quizSettings"; -const ContactFormPage = lazy(() => import("../pages/ContactFormPage/ContactFormPage")); +const ContactFormPage = lazy( + () => import("../pages/ContactFormPage/ContactFormPage"), +); const InstallQuiz = lazy(() => import("../pages/InstallQuiz/InstallQuiz")); -const FormQuestionsPage = lazy(() => import("../pages/Questions/Form/FormQuestionsPage")); +const FormQuestionsPage = lazy( + () => import("../pages/Questions/Form/FormQuestionsPage"), +); const QuestionsPage = lazy(() => import("../pages/Questions/QuestionsPage")); const ResultPage = lazy(() => import("../pages/ResultPage/ResultPage")); -const StartPageSettings = lazy(() => import("../pages/startPage/StartPageSettings")); +const StartPageSettings = lazy( + () => import("../pages/startPage/StartPageSettings"), +); const StepOne = lazy(() => import("../pages/startPage/stepOne")); const Steptwo = lazy(() => import("../pages/startPage/steptwo")); @@ -38,26 +44,56 @@ export default function SwitchStepPages({ }: Props) { switch (activeStep) { case 0: { - if (!quizType) return ; - if (!quizStartPageType) return ; - return ; + if (!quizType) + return ( + + + + ); + if (!quizStartPageType) + return ( + + + + ); + return ( + + + + ); } case 1: return quizType === "form" ? ( - + + + ) : ( - + + + ); case 2: - return ; + return ( + + + + ); case 3: - return ; + return ( + + + + ); case 4: - return ; + return ( + + + + ); default: throw new Error(`Invalid quiz setup step: ${activeStep}`); }