fix : improve engine workers management

This commit is contained in:
GuillaumeSD
2025-05-14 04:00:04 +02:00
parent bff407fe2d
commit 8af6194895
14 changed files with 240 additions and 210 deletions

View File

@@ -12,44 +12,40 @@ const LinearProgressBar = (
if (props.value === 0) return null;
return (
<Grid container alignItems="center" justifyContent="center" size={12}>
<Grid
container
alignItems="center"
justifyContent="center"
wrap="nowrap"
width="90%"
columnGap={2}
size={12}
>
<Typography variant="caption" align="center">
{props.label}
</Typography>
<Grid
container
width="90%"
alignItems="center"
justifyContent="center"
wrap="nowrap"
columnGap={2}
size={12}
>
<Grid sx={{ width: "100%" }}>
<LinearProgress
variant="determinate"
{...props}
sx={(theme) => ({
borderRadius: "5px",
height: "5px",
[`&.${linearProgressClasses.colorPrimary}`]: {
backgroundColor:
theme.palette.grey[
theme.palette.mode === "light" ? 200 : 700
],
},
[`& .${linearProgressClasses.bar}`]: {
borderRadius: 5,
backgroundColor: "#308fe8",
},
})}
/>
</Grid>
<Grid>
<Typography variant="body2" color="text.secondary">{`${Math.round(
props.value
)}%`}</Typography>
</Grid>
<Grid sx={{ width: "100%" }}>
<LinearProgress
variant="determinate"
{...props}
sx={(theme) => ({
borderRadius: "5px",
height: "5px",
[`&.${linearProgressClasses.colorPrimary}`]: {
backgroundColor:
theme.palette.grey[theme.palette.mode === "light" ? 200 : 700],
},
[`& .${linearProgressClasses.bar}`]: {
borderRadius: 5,
backgroundColor: "#308fe8",
},
})}
/>
</Grid>
<Grid>
<Typography variant="body2" color="text.secondary">{`${Math.round(
props.value
)}%`}</Typography>
</Grid>
</Grid>
);