15/09/2024 - 18:00

recette2
cherif 2024-09-15 18:30:33 +02:00
parent af47d47e35
commit 0609dd6811
5 changed files with 109 additions and 19 deletions

12
.env
View File

@ -10,6 +10,18 @@ REACT_APP_FRONT_URL=http://localhost:3009/
REACT_APP_FRONT_URL_CANONICAL=localhost:3009/
REACT_APP_PART_PUB_CATALOG_DOMAIN=localhost:3009/
# EN DEMO
#REACT_APP_PART_PUB_CATALOG_DOMAIN=demomysy-hosting.online/
# EN RECETTE
#REACT_APP_PART_PUB_CATALOG_DOMAIN=devmysy-hosting.online/
# EN PRODUCTION
#REACT_APP_PART_PUB_CATALOG_DOMAIN=mysy-hosting.online/
REACT_APP_ENV=DEV
GENERATE_SOURCEMAP=false
REACT_APP_MAINTENANCE=1

View File

@ -50,6 +50,12 @@ import { FaSearch, FaRegArrowAltCircleDown, FaRegArrowAltCircleUp } from 'react-
import { areOptionsEqual } from "@mui/base";
import { style } from "@mui/system";
import Accordion from '@mui/material/Accordion';
import AccordionDetails from '@mui/material/AccordionDetails';
import AccordionSummary from '@mui/material/AccordionSummary';
import Typography from '@mui/material/Typography';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
const DisplayDetailClass_new_v2 = (props) => {
const { classId, action } = useParams();
const [result, setResult] = useState("");
@ -391,8 +397,8 @@ const DisplayDetailClass_new_v2 = (props) => {
//alert("myurl = "+myurl);
axios.post(myurl, form).then(res => {
// console.log(" In Display res.data.status = " + res.data.status);
//console.log(" In Display res.data.message = " + res.data.message);
// 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) {
@ -957,7 +963,7 @@ const DisplayDetailClass_new_v2 = (props) => {
axios.post(myurl, form).then(res => {
//console.log(" In GetCurrentClass_trainingsession res.data.status = " + res.data.status);
// console.log(" In GetCurrentClass_trainingsession res.data.message r_class = " + res.data.message);
// console.log(" In GetCurrentClass_trainingsession res.data.message r_class = " + res.data.message);
if (String(res.data.status) === String("true")) {
//console.log(" In GetCurrentClass_trainingsession res.data.status = " + res.data.status);
@ -1165,6 +1171,13 @@ const DisplayDetailClass_new_v2 = (props) => {
}
const [expanded, setExpanded] = React.useState(false);
const handleChange = (panel) => (event, isExpanded) => {
setExpanded(isExpanded ? panel : false);
};
/// ----
return (
@ -2081,6 +2094,51 @@ const DisplayDetailClass_new_v2 = (props) => {
}
</div>
{DetailTraining["tab_ue_detail_data"] && < div className="block_info_page_pave_title_desc_long_text" >
<div className="block_info_page_pave_title_desc_title">
Modules
</div>
{DetailTraining["tab_ue_detail_data"] && <div>
<div>
{DetailTraining["tab_ue_detail_data"] && DetailTraining["tab_ue_detail_data"].map((val) => (
<div>
<Accordion expanded={expanded === val._id} onChange={handleChange(val._id)}>
<AccordionSummary
expandIcon={<ExpandMoreIcon />}
aria-controls={val._id}
id={val._id}
>
<Typography sx={{ width: '33%', flexShrink: 0 }}>{val.code}</Typography>
<Typography sx={{ color: 'text.secondary' }}>
{val.titre}
</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
{parse(String(val.description).replace(/(<([^>]+)>)/ig, ''))}
</Typography>
</AccordionDetails>
</Accordion>
</div>
))}
</div>
</div>}
</div>}
{DetailTraining["pourqui"] && String(DetailTraining["pourqui"]).length > 2 && <div className="block_info_page_pave_title_desc_long_text">
<div className="block_info_page_pave_title_desc_title ">
Pour Qui ?
@ -2129,15 +2187,15 @@ const DisplayDetailClass_new_v2 = (props) => {
<nav className="discount_block"> (- {String(DetailTraining.business_prices[0].discount)} % ) </nav>
</div>}
{class_img_stored_in_bdd && String(class_img_stored_in_bdd).length > 50 && <div className="block_sticky_info_img">
<img src={class_img_stored_in_bdd} className="training_img" />
</div>
}
{(!class_img_stored_in_bdd || String(class_img_stored_in_bdd).length < 50 ) && String(ismetiermanaged) !== "0" && String(ismetiermanaged) !== "1" && <div className="block_sticky_info_img">
{(!class_img_stored_in_bdd || String(class_img_stored_in_bdd).length < 50) && String(ismetiermanaged) !== "0" && String(ismetiermanaged) !== "1" && <div className="block_sticky_info_img">
{(!DetailTraining.img_url || String(DetailTraining.img_url).length <= 0) &&
DetailTraining.metier && String(DetailTraining.metier).toLocaleLowerCase() === String("it") &&
@ -2183,12 +2241,12 @@ const DisplayDetailClass_new_v2 = (props) => {
</div>}
{(!class_img_stored_in_bdd || String(class_img_stored_in_bdd).length < 50 ) && String(ismetiermanaged) === "0" && <div className="block_sticky_info_img">
{(!class_img_stored_in_bdd || String(class_img_stored_in_bdd).length < 50) && String(ismetiermanaged) === "0" && <div className="block_sticky_info_img">
<img src={img_met_autre} alt="autre" className="training_img" />
</div>}
{(!class_img_stored_in_bdd || String(class_img_stored_in_bdd).length < 50 ) && String(ismetiermanaged) === "1" && <div className="">
{(!class_img_stored_in_bdd || String(class_img_stored_in_bdd).length < 50) && String(ismetiermanaged) === "1" && <div className="">
<img src={DetailTraining.img_url} alt="autre" className="" style={{ "maxWidth": "100%" }} />
</div>}
@ -2995,7 +3053,7 @@ Si non, on utilise le formumaire de mysy,.
</div>
</div>
</div>
</div>
</div >
)
}

View File

@ -2621,7 +2621,7 @@ const Mon_Catalogue_Public = () => {
if (String(res.data.status) === "true") {
//console.log(" In Get_Subdomain_Partner_Data res.data.status = " + res.data.status);
console.log(" In Get_Subdomain_Partner_Data res.data.message r_class = " + res.data.message);
//console.log(" In Get_Subdomain_Partner_Data res.data.message r_class = " + res.data.message);
setGet_Subdomain_Partner_Data_api("true");
setGet_Subdomain_Partner_Data_result(res.data.message);

View File

@ -2478,7 +2478,7 @@
width: 100%;
height: 29px;
font-family: 'Albert Sans';
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
font-style: normal;
font-weight: 600;
font-size: 20px;
@ -4563,7 +4563,7 @@
width: 100%;
height: 29px;
font-family: 'Albert Sans';
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
font-style: normal;
font-weight: 700;
font-size: 24px;
@ -6664,7 +6664,7 @@
width: 100%;
height: 29px;
font-family: 'Albert Sans';
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
font-style: normal;
font-weight: 700;
font-size: 24px;

View File

@ -1433,6 +1433,7 @@
min-height: 10rem;
overflow: auto;
padding: 10px;
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
}
.description_block {
@ -1440,6 +1441,7 @@
min-height: 8rem;
overflow: auto;
padding: 10px;
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
}
.objectif_block {
@ -1447,6 +1449,7 @@
min-height: 5rem;
overflow: auto;
padding: 10px;
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
}
.session_block {
@ -1454,6 +1457,7 @@
min-height: 5rem;
overflow: auto;
padding: 10px;
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
}
@ -1462,6 +1466,7 @@
min-height: 5rem;
overflow: auto;
padding: 10px;
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
}
.sticky_div_hilight {
@ -2477,7 +2482,7 @@
width: 100%;
height: 29px;
font-family: 'Albert Sans';
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
font-style: normal;
font-weight: 600;
font-size: 20px;
@ -2505,7 +2510,7 @@
font-family: 'Albert Sans';
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
font-style: normal;
font-weight: 500;
font-size: 14px;
@ -2532,6 +2537,7 @@
min-height: 10rem;
overflow: auto;
padding: 10px;
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
}
.description_block {
@ -2539,6 +2545,7 @@
min-height: 8rem;
overflow: auto;
padding: 10px;
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
}
.objectif_block {
@ -2546,6 +2553,7 @@
min-height: 5rem;
overflow: auto;
padding: 10px;
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
}
.session_block {
@ -2553,6 +2561,7 @@
min-height: 5rem;
overflow: auto;
padding: 10px;
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
}
@ -2561,6 +2570,7 @@
min-height: 5rem;
overflow: auto;
padding: 10px;
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
}
@ -4530,7 +4540,7 @@
width: 100%;
height: 29px;
font-family: 'Albert Sans';
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
font-style: normal;
font-weight: 700;
font-size: 24px;
@ -4558,7 +4568,7 @@
font-family: 'Albert Sans';
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
font-style: normal;
font-weight: 500;
font-size: 16px;
@ -4585,6 +4595,7 @@
min-height: 10rem;
overflow: auto;
padding: 10px;
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
}
.description_block {
@ -4592,6 +4603,7 @@
min-height: 8rem;
overflow: auto;
padding: 10px;
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
}
.objectif_block {
@ -4599,6 +4611,7 @@
min-height: 5rem;
overflow: auto;
padding: 10px;
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
}
.session_block {
@ -4606,6 +4619,7 @@
min-height: 5rem;
overflow: auto;
padding: 10px;
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
}
@ -4614,6 +4628,7 @@
min-height: 5rem;
overflow: auto;
padding: 10px;
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
}
@ -6599,7 +6614,7 @@
width: 100%;
height: 29px;
font-family: 'Albert Sans';
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
font-style: normal;
font-weight: 700;
font-size: 24px;
@ -6627,7 +6642,7 @@
font-family: 'Albert Sans';
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
font-style: normal;
font-weight: 500;
font-size: 16px;
@ -6654,6 +6669,7 @@
min-height: 10rem;
overflow: auto;
padding: 10px;
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
}
.description_block {
@ -6661,6 +6677,7 @@
min-height: 8rem;
overflow: auto;
padding: 10px;
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
}
.objectif_block {
@ -6668,6 +6685,7 @@
min-height: 5rem;
overflow: auto;
padding: 10px;
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
}
.session_block {
@ -6675,6 +6693,7 @@
min-height: 5rem;
overflow: auto;
padding: 10px;
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
}
@ -6683,6 +6702,7 @@
min-height: 5rem;
overflow: auto;
padding: 10px;
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
}