--
All checks were successful
Deploy / CreateImage (push) Successful in 4m25s
Deploy / DeployService (push) Successful in 24s

This commit is contained in:
Nastya 2025-07-01 05:03:35 +03:00
parent b09e587220
commit 01adef9fde
2 changed files with 9 additions and 1 deletions

@ -11,5 +11,6 @@ FROM gitea.pena/penadevops/container-images/nginx:main as result
WORKDIR /usr/share/nginx/html WORKDIR /usr/share/nginx/html
COPY --from=build /usr/app/dist/ /usr/share/nginx/html COPY --from=build /usr/app/dist/ /usr/share/nginx/html
COPY --from=build /usr/app/widget/widget.js /usr/share/nginx/html/export/pub.js COPY --from=build /usr/app/widget/widget.js /usr/share/nginx/html/export/pub.js
COPY --from=build /usr/app/public/locales /usr/share/nginx/html/locales
COPY ./widget_en.js /usr/share/nginx/html/export/pub_en.js COPY ./widget_en.js /usr/share/nginx/html/export/pub_en.js
COPY hub.conf /etc/nginx/conf.d/default.conf COPY hub.conf /etc/nginx/conf.d/default.conf

@ -1,5 +1,6 @@
import QuizAnswerer from "@/components/QuizAnswerer"; import QuizAnswerer from "@/components/QuizAnswerer";
import { createRoot } from "react-dom/client"; import { createRoot } from "react-dom/client";
import "./i18n/i18n"; // Инициализация i18n для виджета
// eslint-disable-next-line react-refresh/only-export-components // eslint-disable-next-line react-refresh/only-export-components
export * from "./widgets"; export * from "./widgets";
@ -19,7 +20,13 @@ const widget = {
const root = createRoot(element); const root = createRoot(element);
root.render(<QuizAnswerer quizId={quizId} changeFaviconAndTitle={changeFaviconAndTitle} disableGlobalCss />); root.render(
<QuizAnswerer
quizId={quizId}
changeFaviconAndTitle={changeFaviconAndTitle}
disableGlobalCss
/>
);
}, },
}; };