--
This commit is contained in:
parent
b09e587220
commit
01adef9fde
@ -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
|
||||||
|
/>
|
||||||
|
);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user