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_FRONT_URL_CANONICAL=localhost:3009/
REACT_APP_PART_PUB_CATALOG_DOMAIN=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 REACT_APP_ENV=DEV
GENERATE_SOURCEMAP=false GENERATE_SOURCEMAP=false
REACT_APP_MAINTENANCE=1 REACT_APP_MAINTENANCE=1

View File

@ -50,6 +50,12 @@ import { FaSearch, FaRegArrowAltCircleDown, FaRegArrowAltCircleUp } from 'react-
import { areOptionsEqual } from "@mui/base"; import { areOptionsEqual } from "@mui/base";
import { style } from "@mui/system"; 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 DisplayDetailClass_new_v2 = (props) => {
const { classId, action } = useParams(); const { classId, action } = useParams();
const [result, setResult] = useState(""); const [result, setResult] = useState("");
@ -392,7 +398,7 @@ const DisplayDetailClass_new_v2 = (props) => {
axios.post(myurl, form).then(res => { axios.post(myurl, form).then(res => {
// 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); console.log(" In Display res.data.message = " + res.data.message);
if (String(res.data.status) === String("true")) { if (String(res.data.status) === String("true")) {
if (res.data.message.length > 0) { if (res.data.message.length > 0) {
@ -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 ( return (
@ -2081,6 +2094,51 @@ const DisplayDetailClass_new_v2 = (props) => {
} }
</div> </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"> {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 "> <div className="block_info_page_pave_title_desc_title ">
Pour Qui ? Pour Qui ?

View File

@ -2621,7 +2621,7 @@ const Mon_Catalogue_Public = () => {
if (String(res.data.status) === "true") { 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.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_api("true");
setGet_Subdomain_Partner_Data_result(res.data.message); setGet_Subdomain_Partner_Data_result(res.data.message);

View File

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

View File

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