21/05/23 - 22h
parent
a40827560e
commit
397afe0652
|
@ -38,6 +38,7 @@ import Emargement from "./pages/emargementOk";
|
|||
import Formation_Cartouche_Com from "./pages/recherche_cartouche_com";
|
||||
import SeDesabonner from './pages/sedesabonner';
|
||||
import OrderConfirmation_3DS from "./pages/orderconfirmation_3DS";
|
||||
import Training_Inactive_Or_Not_Found from "./pages/Traning_Inactif_Or_Not_Exist"
|
||||
|
||||
function App() {
|
||||
|
||||
|
@ -99,7 +100,8 @@ function App() {
|
|||
<Route path="/Recherche_new_v2/" exact component={Recherche_new_v2} />
|
||||
<Route path="/unsubscribe/" exact component={SeDesabonner} />
|
||||
<Route path="/OrderConfirmation_3DS/:orderid/:packs" exact component={OrderConfirmation_3DS} />
|
||||
|
||||
<Route path="/page-inconnue/" exact component={NotFound} />
|
||||
<Route path="/formation-inconnue/" exact component={Training_Inactive_Or_Not_Found} />
|
||||
<Route component={NotFound} />
|
||||
</Switch>
|
||||
</BrowserRouter>
|
||||
|
|
|
@ -331,9 +331,10 @@ const DisplayDetailClass_new_v2 = (props) => {
|
|||
//alert("myurl = "+myurl);
|
||||
|
||||
axios.post(myurl, form).then(res => {
|
||||
if (String(res.data.status) !== String("false")) {
|
||||
//console.log(" In Display res.data.status = " + res.data.status);
|
||||
console.log(" In Display res.data.status = " + res.data.status);
|
||||
//console.log(" In Display res.data.message = " + res.data.message);
|
||||
if (String(res.data.status) === String("true")) {
|
||||
|
||||
if (res.data.message.length > 0) {
|
||||
setmyApiResponse("True");
|
||||
|
||||
|
@ -603,8 +604,8 @@ const DisplayDetailClass_new_v2 = (props) => {
|
|||
else {
|
||||
//console.log(" In Erreur res.data.status = " + res.data.status);
|
||||
//console.log(" In Erreur res.data.message = " + res.data.message);
|
||||
setmyApiResponse("False");
|
||||
|
||||
setmyApiResponse("false");
|
||||
history.push("/formation-inconnue/");
|
||||
|
||||
}
|
||||
|
||||
|
@ -612,7 +613,7 @@ const DisplayDetailClass_new_v2 = (props) => {
|
|||
}).catch((error) => {
|
||||
console.warn('Not good man :( Display = ');
|
||||
//console.log(error);
|
||||
setmyApiResponse("False");
|
||||
setmyApiResponse("false");
|
||||
|
||||
})
|
||||
|
||||
|
|
|
@ -212,8 +212,8 @@ function HebergementLms(props) {
|
|||
_URL.revokeObjectURL(objectUrl);
|
||||
console.log(" img_width = ", img_width, " img_height = ", img_height)
|
||||
|
||||
if (parseFloat(img_width) > 150 && parseFloat(img_width) < 280 &&
|
||||
parseFloat(img_height) > 60 && parseFloat(img_height) < 90) {
|
||||
if (parseFloat(img_width) > 140 && parseFloat(img_width) < 250 &&
|
||||
parseFloat(img_height) > 60 && parseFloat(img_height) < 150) {
|
||||
//console.log(" img_height est = ", img_height, " < à 1500 ");
|
||||
|
||||
// Verification que le nom du fichier est alpha numerique
|
||||
|
@ -341,8 +341,8 @@ function HebergementLms(props) {
|
|||
img_width = this.width;
|
||||
console.log(" img_width = ", img_width);
|
||||
_URL.revokeObjectURL(objectUrl);
|
||||
if (parseFloat(img_width) > 1500 && parseFloat(img_width) < 1950 &&
|
||||
parseFloat(img_height) > 170 && parseFloat(img_height) < 200) {
|
||||
if (parseFloat(img_width) > 1500 && parseFloat(img_width) < 1930 &&
|
||||
parseFloat(img_height) > 150 && parseFloat(img_height) < 195) {
|
||||
//console.log(" img_height est = ", img_height, " < à 1500 ");
|
||||
|
||||
// Verification que le nom du fichier est alpha numerique
|
||||
|
@ -561,7 +561,7 @@ function HebergementLms(props) {
|
|||
id='menu_import_formation' name='menu_import_formation'>Choisir une image <br />
|
||||
|
||||
</Button><br />
|
||||
<nav className="koUpdateData" style={{ "color": "orange" }}> <i> Important : Taille du logo : larg = 250px et long = 70px et au format PNG <br />
|
||||
<nav className="koUpdateData" style={{ "color": "orange" }}> <i> Important : Taille du logo : longueur entre 140px et 250px et largeur entre 60px et 150px, au format PNG <br />
|
||||
Le nom du fichier ne contient que des caractères alphanumériques </i> </nav>
|
||||
{logo_file_name && <nav className="okUpdateData"><i>{logo_file_name}</i></nav>}
|
||||
<input type="file"
|
||||
|
@ -627,7 +627,7 @@ function HebergementLms(props) {
|
|||
id='menu_import_formation' name='menu_import_formation'>Choisir une image bannière <br />
|
||||
|
||||
</Button><br />
|
||||
<nav className="koUpdateData" style={{ "color": "orange" }}> <i> Important : Taille de la bannière :larg = 1920 px et long = 195 px et au format PNG.<br />
|
||||
<nav className="koUpdateData" style={{ "color": "orange" }}> <i> Important : Taille de la bannière : longueur entre 1500px et 1930px et largeur entre 150px et 195px, au format PNG <br />
|
||||
Le nom du fichier ne contient que des caractères alphanumériques </i> </nav>
|
||||
|
||||
{bg_file_name && <nav className="okUpdateData"><i>{bg_file_name}</i></nav>}
|
||||
|
|
|
@ -25,7 +25,7 @@ const NotFound = () => {
|
|||
|
||||
<div className="div_mobile">
|
||||
<div className="nom_prenom"> Le site MySy Training Technology ne connait pas cette page</div>
|
||||
<div className="nom_prenom"> <a href={process.env.REACT_APP_BASE_URL}> Essayez ce lien </a> </div>
|
||||
<div className="nom_prenom"> <a href={process.env.REACT_APP_BASE_URL}> Retour vers le moteur de recherche </a> </div>
|
||||
</div>
|
||||
<div className="pieddepage">
|
||||
<Footer />
|
||||
|
|
|
@ -0,0 +1,39 @@
|
|||
import React from "react";
|
||||
import Navigation from "../components/Navigation";
|
||||
import bannerimg2 from "./../mysy_img/MYSY-LOGO-BLUE.png";
|
||||
import { Helmet } from "react-helmet";
|
||||
import Footer from "../components/Fotter";
|
||||
import Header from "../components/Header";
|
||||
|
||||
|
||||
const NotFound = () => {
|
||||
return (
|
||||
<div className="notfound">
|
||||
<div>
|
||||
<Navigation />
|
||||
</div>
|
||||
<Helmet>
|
||||
<title>MySy Training, qui sommes nous ?</title>
|
||||
<meta name="description" content="Nous sommes une base de données uniquement dediée aux formations et tutoriels" />
|
||||
<meta name="robots" content="index,follow" />
|
||||
<meta name="title" content="Trouver des Formations.Acces libre.Qualité top" />
|
||||
<link rel="canonical" href={`${process.env.REACT_APP_BASE_URL}` + "/QuiSommesNous"} />
|
||||
|
||||
</Helmet>
|
||||
<Header />
|
||||
|
||||
|
||||
<div className="div_mobile">
|
||||
<div className="nom_prenom"> Cette formation n'est pas active ou n'existe pas.</div>
|
||||
<div className="nom_prenom"> <a href={process.env.REACT_APP_BASE_URL}> Retour vers le moteur de recherche </a> </div>
|
||||
</div>
|
||||
<div className="pieddepage">
|
||||
<Footer />
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default NotFound;
|
Loading…
Reference in New Issue