Compare commits

...

2 Commits

Author SHA1 Message Date
53e6895d5f bundling the project on the build server
Some checks failed
continuous-integration/drone/push Build is failing
2024-09-12 12:14:25 +02:00
2f92de5fe7 cleaning and updating 2024-09-12 12:14:04 +02:00
7 changed files with 13 additions and 12 deletions

View File

@ -21,3 +21,4 @@ steps:
- npm install
- npm run build
- ls
# - rsync -avhp ./dist/ $PROJECT_SERVER_PATH --delete

15
package-lock.json generated
View File

@ -6271,9 +6271,9 @@
}
},
"node_modules/caniuse-lite": {
"version": "1.0.30001580",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001580.tgz",
"integrity": "sha512-mtj5ur2FFPZcCEpXFy8ADXbDACuNFXg6mxVDqp7tqooX6l3zwm+d8EPoeOSIFRDvHs8qu7/SLFOGniULkcH2iA==",
"version": "1.0.30001660",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001660.tgz",
"integrity": "sha512-GacvNTTuATm26qC74pt+ad1fW15mlQ/zuTzzY1ZoIzECTP8HURDfF43kNxPgf7H1jmelCBQTTbBNxdSXOA7Bqg==",
"funding": [
{
"type": "opencollective",
@ -6287,7 +6287,8 @@
"type": "github",
"url": "https://github.com/sponsors/ai"
}
]
],
"license": "CC-BY-4.0"
},
"node_modules/case-sensitive-paths-webpack-plugin": {
"version": "2.4.0",
@ -23835,9 +23836,9 @@
}
},
"caniuse-lite": {
"version": "1.0.30001580",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001580.tgz",
"integrity": "sha512-mtj5ur2FFPZcCEpXFy8ADXbDACuNFXg6mxVDqp7tqooX6l3zwm+d8EPoeOSIFRDvHs8qu7/SLFOGniULkcH2iA=="
"version": "1.0.30001660",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001660.tgz",
"integrity": "sha512-GacvNTTuATm26qC74pt+ad1fW15mlQ/zuTzzY1ZoIzECTP8HURDfF43kNxPgf7H1jmelCBQTTbBNxdSXOA7Bqg=="
},
"case-sensitive-paths-webpack-plugin": {
"version": "2.4.0",

View File

@ -8,7 +8,6 @@ import screenWorker2 from "../assets/img/illustrations/lhoist-accueil-personnage
import AnimatedPage from "../components/AnimatedPage";
import BrandingLogo from "../components/ui/LhoistBrandingLogo.jsx";
import Clouds from "../components/animations/Clouds";
import CookiesModal from "../components/Modals/CookiesModal.jsx";
export default function Home() {

View File

@ -8,7 +8,7 @@ import ResultsModals from "../components/results/ResultsModals";
import { useNavigate } from "react-router-dom";
export default function Results() {
const { language, screenTranslations } = useUser();
// const { language, screenTranslations } = useUser();
// if (!screenTranslations) return <p>loading</p>;
let location = useLocation();

View File

@ -20,7 +20,7 @@ import { useUser } from "../hooks/useUser";
export default function Thematiques() {
const gamesDatas = useWordpressCustomData(`/screen/play/all`);
const { language, screensTranslations } = useUser();
const { screensTranslations } = useUser();
if (!screensTranslations || !screensTranslations.ui || !screensTranslations.pagesName) return <Loading />;
const uiScreenTranslations = screensTranslations.ui;

View File

@ -7,7 +7,7 @@ import warningSticker from "../assets/img/illustrations/lhoist-prevention-smartp
import BrandingLogo from "../components/ui/LhoistBrandingLogo.jsx";
export default function Warning() {
const { language, screensTranslations } = useUser();
const { screensTranslations } = useUser();
if (!screensTranslations || !screensTranslations.warning) return <Loading />;
const currentScreenTranslations = screensTranslations.warning;
const uiTranslations = screensTranslations.ui;

View File

@ -2,7 +2,7 @@ import { useEffect, useState } from "react";
import axios from "axios";
import { useUser } from "../hooks/useUser";
const BASE_URL = process.env.REACT_APP_BASE_URL;
// const BASE_URL = process.env.REACT_APP_BASE_URL;
const BASE_CUSTOM_URL = process.env.REACT_APP_BASE_CUSTOM_URL;
const fetchWordpressData = async (url) => {