fix many
This commit is contained in:
1 parent
3787f9c288
commit
dbd351b2f1
5 files changed
+54
-25
No files matched your search
@@ -143,11 +143,7 @@ const BarChart = ({ checks = [] }) => {
|
|||||||
position="relative"
|
position="relative"
|
||||||
width="9px"
|
width="9px"
|
||||||
height="100%"
|
height="100%"
|
||||||
backgroundColor={
|
backgroundColor={theme.palette.tertiary.main}
|
||||||
check.status
|
|
||||||
? theme.palette.success.contrastText
|
|
||||||
: theme.palette.error.contrastText
|
|
||||||
}
|
|
||||||
sx={{
|
sx={{
|
||||||
borderRadius: theme.spacing(1.5),
|
borderRadius: theme.spacing(1.5),
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -106,11 +106,16 @@ const ActionsMenu = ({ monitor, isAdmin, updateRowCallback, pauseCallback }) =>
|
|||||||
slotProps={{
|
slotProps={{
|
||||||
paper: {
|
paper: {
|
||||||
sx: {
|
sx: {
|
||||||
"& ul": { p: theme.spacing(2.5) },
|
"& ul": {
|
||||||
"& li": { m: 0 },
|
p: theme.spacing(2.5),
|
||||||
|
backgroundColor: theme.palette.primary.main,
|
||||||
|
},
|
||||||
|
"& li": { m: 0, color: theme.palette.primary.contrastText.secondary },
|
||||||
|
/*
|
||||||
|
This should not be set automatically on the last of type
|
||||||
"& li:last-of-type": {
|
"& li:last-of-type": {
|
||||||
color: theme.palette.error.main,
|
color: theme.palette.error.main,
|
||||||
},
|
}, */
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
@@ -182,6 +187,7 @@ const ActionsMenu = ({ monitor, isAdmin, updateRowCallback, pauseCallback }) =>
|
|||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
openRemove(e);
|
openRemove(e);
|
||||||
}}
|
}}
|
||||||
|
sx={{ "&.MuiButtonBase-root": { color: theme.palette.error.main } }}
|
||||||
>
|
>
|
||||||
Remove
|
Remove
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
|||||||
@@ -58,19 +58,21 @@ const UptimeMonitors = () => {
|
|||||||
gap={theme.spacing(6)}
|
gap={theme.spacing(6)}
|
||||||
>
|
>
|
||||||
{canAddMonitor && (
|
{canAddMonitor && (
|
||||||
<Button
|
<>
|
||||||
variant="contained"
|
<Button
|
||||||
color="accent"
|
variant="contained"
|
||||||
onClick={() => {
|
color="accent"
|
||||||
navigate("/uptime/create");
|
onClick={() => {
|
||||||
}}
|
navigate("/uptime/create");
|
||||||
sx={{
|
}}
|
||||||
fontWeight: 500,
|
sx={{
|
||||||
whiteSpace: "nowrap",
|
fontWeight: 500,
|
||||||
}}
|
whiteSpace: "nowrap",
|
||||||
>
|
}}
|
||||||
Create new
|
>
|
||||||
</Button>
|
Create new
|
||||||
|
</Button>
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
</Stack>
|
</Stack>
|
||||||
<Greeting type="uptime" />
|
<Greeting type="uptime" />
|
||||||
|
|||||||
@@ -37,23 +37,38 @@ const useUtils = () => {
|
|||||||
},
|
},
|
||||||
/* TODO solve remaining gradients */
|
/* TODO solve remaining gradients */
|
||||||
down: {
|
down: {
|
||||||
|
backgroundColor: theme.palette.error.accent /* dark */,
|
||||||
|
background: `linear-gradient(340deg, ${theme.palette.error.accent} -60%, ${theme.palette.error.contrastText} 35%)`,
|
||||||
|
borderColor: theme.palette.error.light,
|
||||||
|
"& h2": { color: theme.palette.error.main },
|
||||||
|
} /* {
|
||||||
backgroundColor: theme.palette.error.dark,
|
backgroundColor: theme.palette.error.dark,
|
||||||
background: `linear-gradient(340deg, ${theme.palette.error.light} -60%, ${theme.palette.error.dark} 35%)`,
|
background: `linear-gradient(340deg, ${theme.palette.error.light} -60%, ${theme.palette.error.dark} 35%)`,
|
||||||
borderColor: theme.palette.error.light,
|
borderColor: theme.palette.error.light,
|
||||||
"& h2": { color: theme.palette.error.main },
|
"& h2": { color: theme.palette.error.main },
|
||||||
},
|
}, */,
|
||||||
paused: {
|
paused: {
|
||||||
|
backgroundColor: theme.palette.warning.accent /* dark */,
|
||||||
|
background: `linear-gradient(340deg, ${theme.palette.warning.accent} -60%, ${theme.palette.warning.contrastText} 35%)`,
|
||||||
|
borderColor: theme.palette.warning.light,
|
||||||
|
"& h2": { color: theme.palette.warning.main },
|
||||||
|
} /* {
|
||||||
backgroundColor: theme.palette.warning.dark,
|
backgroundColor: theme.palette.warning.dark,
|
||||||
background: `linear-gradient(340deg, ${theme.palette.warning.light} -60%, ${theme.palette.warning.dark} 35%)`,
|
background: `linear-gradient(340deg, ${theme.palette.warning.light} -60%, ${theme.palette.warning.dark} 35%)`,
|
||||||
borderColor: theme.palette.warning.light,
|
borderColor: theme.palette.warning.light,
|
||||||
"& h2": { color: theme.palette.warning.main },
|
"& h2": { color: theme.palette.warning.main },
|
||||||
},
|
} */,
|
||||||
pending: {
|
pending: {
|
||||||
|
backgroundColor: theme.palette.warning.accent /* dark */,
|
||||||
|
background: `linear-gradient(340deg, ${theme.palette.warning.accent} -60%, ${theme.palette.warning.contrastText} 35%)`,
|
||||||
|
borderColor: theme.palette.warning.light,
|
||||||
|
"& h2": { color: theme.palette.warning.main },
|
||||||
|
} /* {
|
||||||
backgroundColor: theme.palette.warning.light,
|
backgroundColor: theme.palette.warning.light,
|
||||||
background: `linear-gradient(340deg, ${theme.palette.warning.dark} -60%, ${theme.palette.warning.light} 35%)`,
|
background: `linear-gradient(340deg, ${theme.palette.warning.dark} -60%, ${theme.palette.warning.light} 35%)`,
|
||||||
borderColor: theme.palette.warning.dark,
|
borderColor: theme.palette.warning.dark,
|
||||||
"& h2": { color: theme.palette.warning.main },
|
"& h2": { color: theme.palette.warning.main },
|
||||||
},
|
}, */,
|
||||||
};
|
};
|
||||||
const pagespeedStyles = {
|
const pagespeedStyles = {
|
||||||
up: {
|
up: {
|
||||||
|
|||||||
@@ -318,7 +318,7 @@ const newSemanticColors = {
|
|||||||
},
|
},
|
||||||
secondary: {
|
secondary: {
|
||||||
main: {
|
main: {
|
||||||
light: newColors.gray100,
|
light: newColors.gray200,
|
||||||
dark: newColors.blueGray600,
|
dark: newColors.blueGray600,
|
||||||
},
|
},
|
||||||
contrastText: {
|
contrastText: {
|
||||||
@@ -326,6 +326,16 @@ const newSemanticColors = {
|
|||||||
dark: newColors.gray200,
|
dark: newColors.gray200,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
tertiary: {
|
||||||
|
main: {
|
||||||
|
light: newColors.gray100,
|
||||||
|
dark: newColors.blueGray800,
|
||||||
|
},
|
||||||
|
contrastText: {
|
||||||
|
light: newColors.blueGray800,
|
||||||
|
dark: newColors.gray100,
|
||||||
|
},
|
||||||
|
},
|
||||||
/* For success, warning and error, contrastText works wll with main, and with the theme primary main color. Accent is to be used in graphs */
|
/* For success, warning and error, contrastText works wll with main, and with the theme primary main color. Accent is to be used in graphs */
|
||||||
success: {
|
success: {
|
||||||
main: {
|
main: {
|
||||||
|
|||||||
Reference in new issue
Block a user