Merge branch 'develop' into fix/fe/infra-boxes
This commit is contained in:
commit
d42610caaa
26 files changed
+284
-318
No files matched your search
Generated
+8
-8
@@ -15,8 +15,8 @@
|
|||||||
"@mui/lab": "6.0.0-beta.20",
|
"@mui/lab": "6.0.0-beta.20",
|
||||||
"@mui/material": "6.2.1",
|
"@mui/material": "6.2.1",
|
||||||
"@mui/x-charts": "^7.5.1",
|
"@mui/x-charts": "^7.5.1",
|
||||||
"@mui/x-data-grid": "7.23.2",
|
"@mui/x-data-grid": "7.23.3",
|
||||||
"@mui/x-date-pickers": "7.23.2",
|
"@mui/x-date-pickers": "7.23.3",
|
||||||
"@reduxjs/toolkit": "2.5.0",
|
"@reduxjs/toolkit": "2.5.0",
|
||||||
"axios": "^1.7.4",
|
"axios": "^1.7.4",
|
||||||
"dayjs": "1.11.13",
|
"dayjs": "1.11.13",
|
||||||
@@ -1448,9 +1448,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@mui/x-data-grid": {
|
"node_modules/@mui/x-data-grid": {
|
||||||
"version": "7.23.2",
|
"version": "7.23.3",
|
||||||
"resolved": "https://registry.npmjs.org/@mui/x-data-grid/-/x-data-grid-7.23.2.tgz",
|
"resolved": "https://registry.npmjs.org/@mui/x-data-grid/-/x-data-grid-7.23.3.tgz",
|
||||||
"integrity": "sha512-Xhm4Bh+WiU5MSLFIZ8mE1egHoS0xPEVlwvjYvairPIkxNPubB7f+gtLkuAJ2+m+BYbgO7yDte+Pp7dfjkU+vOA==",
|
"integrity": "sha512-EiM5kut6N/0o0iEYx8A7M3fJqknAa1kcPvGhlX3hH50ERLDeuJaqoKzvRYLBbYKWydHIc+0hHIFcK5oQTXLenw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.25.7",
|
"@babel/runtime": "^7.25.7",
|
||||||
@@ -1485,9 +1485,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@mui/x-date-pickers": {
|
"node_modules/@mui/x-date-pickers": {
|
||||||
"version": "7.23.2",
|
"version": "7.23.3",
|
||||||
"resolved": "https://registry.npmjs.org/@mui/x-date-pickers/-/x-date-pickers-7.23.2.tgz",
|
"resolved": "https://registry.npmjs.org/@mui/x-date-pickers/-/x-date-pickers-7.23.3.tgz",
|
||||||
"integrity": "sha512-Kt9VsEnShaBKiaastTYku66UIWptgc9UMA16d0G/0TkfIsvZrAD3iacQR6HHAXWspaFshdfsRmW2JAoFhzKZsg==",
|
"integrity": "sha512-bjTYX/QzD5ZhVZNNnastMUS3j2Hy4p4IXmJgPJ0vKvQBvUdfEO+ZF42r3PJNNde0FVT1MmTzkmdTlz0JZ6ukdw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.25.7",
|
"@babel/runtime": "^7.25.7",
|
||||||
|
|||||||
+2
-2
@@ -18,8 +18,8 @@
|
|||||||
"@mui/lab": "6.0.0-beta.20",
|
"@mui/lab": "6.0.0-beta.20",
|
||||||
"@mui/material": "6.2.1",
|
"@mui/material": "6.2.1",
|
||||||
"@mui/x-charts": "^7.5.1",
|
"@mui/x-charts": "^7.5.1",
|
||||||
"@mui/x-data-grid": "7.23.2",
|
"@mui/x-data-grid": "7.23.3",
|
||||||
"@mui/x-date-pickers": "7.23.2",
|
"@mui/x-date-pickers": "7.23.3",
|
||||||
"@reduxjs/toolkit": "2.5.0",
|
"@reduxjs/toolkit": "2.5.0",
|
||||||
"axios": "^1.7.4",
|
"axios": "^1.7.4",
|
||||||
"dayjs": "1.11.13",
|
"dayjs": "1.11.13",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Stack, styled } from "@mui/material";
|
import { Stack, styled } from "@mui/material";
|
||||||
|
|
||||||
export const ConfigBox = styled(Stack)(({ theme }) => ({
|
const ConfigBox = styled(Stack)(({ theme }) => ({
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: "row",
|
flexDirection: "row",
|
||||||
justifyContent: "space-between",
|
justifyContent: "space-between",
|
||||||
@@ -34,3 +34,5 @@ export const ConfigBox = styled(Stack)(({ theme }) => ({
|
|||||||
color: theme.palette.text.tertiary,
|
color: theme.palette.text.tertiary,
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
export default ConfigBox;
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
import { Box, styled } from "@mui/material";
|
||||||
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* IconBox - A styled box component for rendering icons with consistent sizing and styling
|
||||||
|
*
|
||||||
|
* @component
|
||||||
|
* @param {Object} [props] - Configuration options for the IconBox
|
||||||
|
* @param {number} [props.height=34] - Height of the icon box
|
||||||
|
* @param {number} [props.width=34] - Width of the icon box
|
||||||
|
* @param {number} [props.minWidth=34] - Minimum width of the icon box
|
||||||
|
* @param {number} [props.borderRadius=4] - Border radius of the icon box
|
||||||
|
* @param {number} [props.svgWidth=20] - Width of the SVG icon
|
||||||
|
* @param {number} [props.svgHeight=20] - Height of the SVG icon
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* // Basic usage
|
||||||
|
* <IconBox>
|
||||||
|
* <SomeIcon />
|
||||||
|
* </IconBox>
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* // Customized usage
|
||||||
|
* <IconBox
|
||||||
|
* height={40}
|
||||||
|
* width={40}
|
||||||
|
* svgWidth={24}
|
||||||
|
* svgHeight={24}
|
||||||
|
* >
|
||||||
|
* <CustomIcon />
|
||||||
|
* </IconBox>
|
||||||
|
*
|
||||||
|
* @returns {React.ReactElement} A styled box containing an icon
|
||||||
|
*/
|
||||||
|
const IconBox = styled(Box)(
|
||||||
|
({
|
||||||
|
theme,
|
||||||
|
height = 34,
|
||||||
|
width = 34,
|
||||||
|
minWidth = 34,
|
||||||
|
borderRadius = 4,
|
||||||
|
svgWidth = 20,
|
||||||
|
svgHeight = 20,
|
||||||
|
}) => ({
|
||||||
|
height: height,
|
||||||
|
minWidth: minWidth,
|
||||||
|
width: width,
|
||||||
|
position: "relative",
|
||||||
|
border: 1,
|
||||||
|
borderStyle: "solid",
|
||||||
|
borderColor: theme.palette.border.dark,
|
||||||
|
borderRadius: borderRadius,
|
||||||
|
backgroundColor: theme.palette.background.accent,
|
||||||
|
"& svg": {
|
||||||
|
position: "absolute",
|
||||||
|
top: "50%",
|
||||||
|
left: "50%",
|
||||||
|
transform: "translate(-50%, -50%)",
|
||||||
|
width: svgWidth,
|
||||||
|
height: svgHeight,
|
||||||
|
"& path": {
|
||||||
|
stroke: theme.palette.text.tertiary,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
|
IconBox.propTypes = {
|
||||||
|
height: PropTypes.number,
|
||||||
|
width: PropTypes.number,
|
||||||
|
minWidth: PropTypes.number,
|
||||||
|
borderRadius: PropTypes.number,
|
||||||
|
svgWidth: PropTypes.number,
|
||||||
|
svgHeight: PropTypes.number,
|
||||||
|
};
|
||||||
|
|
||||||
|
export default IconBox;
|
||||||
@@ -40,6 +40,7 @@ const SearchAdornment = () => {
|
|||||||
|
|
||||||
//TODO keep search state inside of component
|
//TODO keep search state inside of component
|
||||||
const Search = ({
|
const Search = ({
|
||||||
|
label,
|
||||||
id,
|
id,
|
||||||
options,
|
options,
|
||||||
filteredBy,
|
filteredBy,
|
||||||
@@ -76,6 +77,14 @@ const Search = ({
|
|||||||
getOptionLabel={(option) => option[filteredBy]}
|
getOptionLabel={(option) => option[filteredBy]}
|
||||||
renderInput={(params) => (
|
renderInput={(params) => (
|
||||||
<Stack>
|
<Stack>
|
||||||
|
<Typography
|
||||||
|
component="h3"
|
||||||
|
fontSize={"var(--env-var-font-size-medium)"}
|
||||||
|
color={theme.palette.text.secondary}
|
||||||
|
fontWeight={500}
|
||||||
|
>
|
||||||
|
{label}
|
||||||
|
</Typography>
|
||||||
<TextField
|
<TextField
|
||||||
{...params}
|
{...params}
|
||||||
error={Boolean(error)}
|
error={Boolean(error)}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ const ProtectedRoute = ({ children }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
ProtectedRoute.propTypes = {
|
ProtectedRoute.propTypes = {
|
||||||
children: PropTypes.elementType.isRequired,
|
children: PropTypes.element.isRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default ProtectedRoute;
|
export default ProtectedRoute;
|
||||||
@@ -5,10 +5,10 @@ import { useDispatch } from "react-redux";
|
|||||||
import { useNavigate } from "react-router";
|
import { useNavigate } from "react-router";
|
||||||
import { createToast } from "../../Utils/toastUtils";
|
import { createToast } from "../../Utils/toastUtils";
|
||||||
import { forgotPassword } from "../../Features/Auth/authSlice";
|
import { forgotPassword } from "../../Features/Auth/authSlice";
|
||||||
import { IconBox } from "./styled";
|
|
||||||
import Background from "../../assets/Images/background-grid.svg?react";
|
import Background from "../../assets/Images/background-grid.svg?react";
|
||||||
import EmailIcon from "../../assets/icons/email.svg?react";
|
import EmailIcon from "../../assets/icons/email.svg?react";
|
||||||
import Logo from "../../assets/icons/bwu-icon.svg?react";
|
import Logo from "../../assets/icons/bwu-icon.svg?react";
|
||||||
|
import IconBox from "../../Components/IconBox";
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
|
|
||||||
const CheckEmail = () => {
|
const CheckEmail = () => {
|
||||||
@@ -144,9 +144,22 @@ const CheckEmail = () => {
|
|||||||
textAlign="center"
|
textAlign="center"
|
||||||
>
|
>
|
||||||
<Box>
|
<Box>
|
||||||
<IconBox>
|
<Stack
|
||||||
<EmailIcon alt="email icon" />
|
direction="row"
|
||||||
</IconBox>
|
justifyContent="center"
|
||||||
|
>
|
||||||
|
<IconBox
|
||||||
|
height={48}
|
||||||
|
width={48}
|
||||||
|
minWidth={48}
|
||||||
|
borderRadius={12}
|
||||||
|
svgWidth={24}
|
||||||
|
svgHeight={24}
|
||||||
|
mb={theme.spacing(4)}
|
||||||
|
>
|
||||||
|
<EmailIcon alt="email icon" />
|
||||||
|
</IconBox>
|
||||||
|
</Stack>
|
||||||
<Typography component="h1">Check your email</Typography>
|
<Typography component="h1">Check your email</Typography>
|
||||||
<Typography>
|
<Typography>
|
||||||
We sent a password reset link to{" "}
|
We sent a password reset link to{" "}
|
||||||
|
|||||||
@@ -6,12 +6,12 @@ import { forgotPassword } from "../../Features/Auth/authSlice";
|
|||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { credentials } from "../../Validation/validation";
|
import { credentials } from "../../Validation/validation";
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
import { IconBox } from "./styled";
|
|
||||||
import TextInput from "../../Components/Inputs/TextInput";
|
import TextInput from "../../Components/Inputs/TextInput";
|
||||||
import Logo from "../../assets/icons/bwu-icon.svg?react";
|
import Logo from "../../assets/icons/bwu-icon.svg?react";
|
||||||
import Key from "../../assets/icons/key.svg?react";
|
import Key from "../../assets/icons/key.svg?react";
|
||||||
import Background from "../../assets/Images/background-grid.svg?react";
|
import Background from "../../assets/Images/background-grid.svg?react";
|
||||||
import LoadingButton from "@mui/lab/LoadingButton";
|
import LoadingButton from "@mui/lab/LoadingButton";
|
||||||
|
import IconBox from "../../Components/IconBox";
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
|
|
||||||
const ForgotPassword = () => {
|
const ForgotPassword = () => {
|
||||||
@@ -146,9 +146,22 @@ const ForgotPassword = () => {
|
|||||||
textAlign="center"
|
textAlign="center"
|
||||||
>
|
>
|
||||||
<Box>
|
<Box>
|
||||||
<IconBox>
|
<Stack
|
||||||
<Key alt="password key icon" />
|
direction="row"
|
||||||
</IconBox>
|
justifyContent="center"
|
||||||
|
>
|
||||||
|
<IconBox
|
||||||
|
height={48}
|
||||||
|
width={48}
|
||||||
|
minWidth={48}
|
||||||
|
borderRadius={12}
|
||||||
|
svgWidth={24}
|
||||||
|
svgHeight={24}
|
||||||
|
mb={theme.spacing(4)}
|
||||||
|
>
|
||||||
|
<Key alt="password key icon" />
|
||||||
|
</IconBox>
|
||||||
|
</Stack>
|
||||||
<Typography component="h1">Forgot password?</Typography>
|
<Typography component="h1">Forgot password?</Typography>
|
||||||
<Typography>No worries, we'll send you reset instructions.</Typography>
|
<Typography>No worries, we'll send you reset instructions.</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ import { useNavigate } from "react-router";
|
|||||||
import { useDispatch } from "react-redux";
|
import { useDispatch } from "react-redux";
|
||||||
import { clearAuthState } from "../../Features/Auth/authSlice";
|
import { clearAuthState } from "../../Features/Auth/authSlice";
|
||||||
import { clearUptimeMonitorState } from "../../Features/UptimeMonitors/uptimeMonitorsSlice";
|
import { clearUptimeMonitorState } from "../../Features/UptimeMonitors/uptimeMonitorsSlice";
|
||||||
import { IconBox } from "./styled";
|
|
||||||
import Background from "../../assets/Images/background-grid.svg?react";
|
import Background from "../../assets/Images/background-grid.svg?react";
|
||||||
import ConfirmIcon from "../../assets/icons/check-outlined.svg?react";
|
import ConfirmIcon from "../../assets/icons/check-outlined.svg?react";
|
||||||
import Logo from "../../assets/icons/bwu-icon.svg?react";
|
import Logo from "../../assets/icons/bwu-icon.svg?react";
|
||||||
|
import IconBox from "../../Components/IconBox";
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
|
|
||||||
const NewPasswordConfirmed = () => {
|
const NewPasswordConfirmed = () => {
|
||||||
@@ -80,9 +80,22 @@ const NewPasswordConfirmed = () => {
|
|||||||
textAlign="center"
|
textAlign="center"
|
||||||
>
|
>
|
||||||
<Box>
|
<Box>
|
||||||
<IconBox>
|
<Stack
|
||||||
<ConfirmIcon alt="password confirm icon" />
|
direction="row"
|
||||||
</IconBox>
|
justifyContent="center"
|
||||||
|
>
|
||||||
|
<IconBox
|
||||||
|
height={48}
|
||||||
|
width={48}
|
||||||
|
minWidth={48}
|
||||||
|
borderRadius={12}
|
||||||
|
svgWidth={24}
|
||||||
|
svgHeight={24}
|
||||||
|
mb={theme.spacing(4)}
|
||||||
|
>
|
||||||
|
<ConfirmIcon alt="password confirm icon" />
|
||||||
|
</IconBox>
|
||||||
|
</Stack>
|
||||||
<Typography component="h1">Password reset</Typography>
|
<Typography component="h1">Password reset</Typography>
|
||||||
<Typography mb={theme.spacing(2)}>
|
<Typography mb={theme.spacing(2)}>
|
||||||
Your password has been successfully reset. Click below to log in magically.
|
Your password has been successfully reset. Click below to log in magically.
|
||||||
@@ -91,7 +104,7 @@ const NewPasswordConfirmed = () => {
|
|||||||
<Button
|
<Button
|
||||||
variant="contained"
|
variant="contained"
|
||||||
color="primary"
|
color="primary"
|
||||||
onClick={() => navigate("/monitors")}
|
onClick={() => navigate("/uptime")}
|
||||||
sx={{
|
sx={{
|
||||||
width: "100%",
|
width: "100%",
|
||||||
maxWidth: 400,
|
maxWidth: 400,
|
||||||
|
|||||||
@@ -11,8 +11,7 @@ import { credentials } from "../../Validation/validation";
|
|||||||
import Check from "../../Components/Check/Check";
|
import Check from "../../Components/Check/Check";
|
||||||
import TextInput from "../../Components/Inputs/TextInput";
|
import TextInput from "../../Components/Inputs/TextInput";
|
||||||
import { PasswordEndAdornment } from "../../Components/Inputs/TextInput/Adornments";
|
import { PasswordEndAdornment } from "../../Components/Inputs/TextInput/Adornments";
|
||||||
|
import IconBox from "../../Components/IconBox";
|
||||||
import { IconBox } from "./styled";
|
|
||||||
import LockIcon from "../../assets/icons/lock.svg?react";
|
import LockIcon from "../../assets/icons/lock.svg?react";
|
||||||
import Logo from "../../assets/icons/bwu-icon.svg?react";
|
import Logo from "../../assets/icons/bwu-icon.svg?react";
|
||||||
import Background from "../../assets/Images/background-grid.svg?react";
|
import Background from "../../assets/Images/background-grid.svg?react";
|
||||||
@@ -126,9 +125,22 @@ const SetNewPassword = () => {
|
|||||||
textAlign="center"
|
textAlign="center"
|
||||||
>
|
>
|
||||||
<Box>
|
<Box>
|
||||||
<IconBox>
|
<Stack
|
||||||
<LockIcon alt="lock icon" />
|
direction="row"
|
||||||
</IconBox>
|
justifyContent="center"
|
||||||
|
>
|
||||||
|
<IconBox
|
||||||
|
height={48}
|
||||||
|
width={48}
|
||||||
|
minWidth={48}
|
||||||
|
borderRadius={12}
|
||||||
|
svgWidth={24}
|
||||||
|
svgHeight={24}
|
||||||
|
mb={theme.spacing(4)}
|
||||||
|
>
|
||||||
|
<LockIcon alt="lock icon" />
|
||||||
|
</IconBox>
|
||||||
|
</Stack>
|
||||||
<Typography component="h1">Set new password</Typography>
|
<Typography component="h1">Set new password</Typography>
|
||||||
<Typography>
|
<Typography>
|
||||||
Your new password must be different to previously used passwords.
|
Your new password must be different to previously used passwords.
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
import { Box, styled } from "@mui/material";
|
|
||||||
|
|
||||||
export const IconBox = styled(Box)(({ theme }) => ({
|
|
||||||
height: 48,
|
|
||||||
minWidth: 48,
|
|
||||||
width: 48,
|
|
||||||
position: "relative",
|
|
||||||
border: 1,
|
|
||||||
borderStyle: "solid",
|
|
||||||
borderColor: theme.palette.border.dark,
|
|
||||||
borderRadius: 12,
|
|
||||||
backgroundColor: theme.palette.background.accent,
|
|
||||||
margin: "auto",
|
|
||||||
marginBottom: 8,
|
|
||||||
"& svg": {
|
|
||||||
position: "absolute",
|
|
||||||
top: "50%",
|
|
||||||
left: "50%",
|
|
||||||
transform: "translate(-50%, -50%)",
|
|
||||||
width: 24,
|
|
||||||
height: 24,
|
|
||||||
"& path": {
|
|
||||||
stroke: theme.palette.text.tertiary,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}));
|
|
||||||
@@ -16,7 +16,7 @@ import LoadingButton from "@mui/lab/LoadingButton";
|
|||||||
//Components
|
//Components
|
||||||
import Breadcrumbs from "../../../Components/Breadcrumbs";
|
import Breadcrumbs from "../../../Components/Breadcrumbs";
|
||||||
import Link from "../../../Components/Link";
|
import Link from "../../../Components/Link";
|
||||||
import { ConfigBox } from "../../Uptime/styled";
|
import ConfigBox from "../../../Components/ConfigBox";
|
||||||
import TextInput from "../../../Components/Inputs/TextInput";
|
import TextInput from "../../../Components/Inputs/TextInput";
|
||||||
import { HttpAdornment } from "../../../Components/Inputs/TextInput/Adornments";
|
import { HttpAdornment } from "../../../Components/Inputs/TextInput/Adornments";
|
||||||
import { createToast } from "../../../Utils/toastUtils";
|
import { createToast } from "../../../Utils/toastUtils";
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { Box, Button, Stack, Typography } from "@mui/material";
|
|||||||
import { useSelector } from "react-redux";
|
import { useSelector } from "react-redux";
|
||||||
import { useTheme } from "@emotion/react";
|
import { useTheme } from "@emotion/react";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { ConfigBox } from "./styled";
|
import ConfigBox from "../../../Components/ConfigBox";
|
||||||
import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";
|
import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";
|
||||||
import { LocalizationProvider } from "@mui/x-date-pickers";
|
import { LocalizationProvider } from "@mui/x-date-pickers";
|
||||||
import { DatePicker } from "@mui/x-date-pickers/DatePicker";
|
import { DatePicker } from "@mui/x-date-pickers/DatePicker";
|
||||||
@@ -321,18 +321,27 @@ const CreateMaintenance = () => {
|
|||||||
Your pings won't be sent during this time frame
|
Your pings won't be sent during this time frame
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
<ConfigBox direction="row">
|
<ConfigBox>
|
||||||
<Typography
|
<Box>
|
||||||
component="h2"
|
<Typography
|
||||||
variant="h2"
|
component="h2"
|
||||||
>
|
variant="h2"
|
||||||
General Settings
|
>
|
||||||
</Typography>
|
General Settings
|
||||||
<Box
|
</Typography>
|
||||||
px={theme.spacing(14)}
|
</Box>
|
||||||
borderLeft={1}
|
<Stack gap={theme.spacing(15)}>
|
||||||
borderLeftColor={theme.palette.border.light}
|
<TextInput
|
||||||
>
|
id="name"
|
||||||
|
label="Friendly name"
|
||||||
|
placeholder="Maintenance at __ : __ for ___ minutes"
|
||||||
|
value={form.name}
|
||||||
|
onChange={(event) => {
|
||||||
|
handleFormChange("name", event.target.value);
|
||||||
|
}}
|
||||||
|
error={errors["name"] ? true : false}
|
||||||
|
helperText={errors["name"]}
|
||||||
|
/>
|
||||||
<Select
|
<Select
|
||||||
id="repeat"
|
id="repeat"
|
||||||
name="maintenance-repeat"
|
name="maintenance-repeat"
|
||||||
@@ -346,15 +355,12 @@ const CreateMaintenance = () => {
|
|||||||
}}
|
}}
|
||||||
items={repeatConfig}
|
items={repeatConfig}
|
||||||
/>
|
/>
|
||||||
<Stack
|
<Stack>
|
||||||
gap={theme.spacing(2)}
|
|
||||||
mt={theme.spacing(16)}
|
|
||||||
>
|
|
||||||
<Typography component="h3">Date</Typography>
|
|
||||||
<LocalizationProvider dateAdapter={AdapterDayjs}>
|
<LocalizationProvider dateAdapter={AdapterDayjs}>
|
||||||
<DatePicker
|
<DatePicker
|
||||||
id="startDate"
|
id="startDate"
|
||||||
disablePast
|
disablePast
|
||||||
|
label="Date"
|
||||||
disableHighlightToday
|
disableHighlightToday
|
||||||
value={form.startDate}
|
value={form.startDate}
|
||||||
slots={{ openPickerIcon: CalendarIcon }}
|
slots={{ openPickerIcon: CalendarIcon }}
|
||||||
@@ -403,72 +409,64 @@ const CreateMaintenance = () => {
|
|||||||
/>
|
/>
|
||||||
</LocalizationProvider>
|
</LocalizationProvider>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Box>
|
</Stack>
|
||||||
</ConfigBox>
|
</ConfigBox>
|
||||||
<ConfigBox>
|
<ConfigBox>
|
||||||
<Stack direction="row">
|
<Box>
|
||||||
<Box>
|
<Typography
|
||||||
<Typography
|
component="h2"
|
||||||
component="h2"
|
variant="h2"
|
||||||
variant="h2"
|
>
|
||||||
>
|
Start time
|
||||||
Start time
|
</Typography>
|
||||||
</Typography>
|
<Typography>All dates and times are in GMT+0 time zone.</Typography>
|
||||||
<Typography>All dates and times are in GMT+0 time zone.</Typography>
|
</Box>
|
||||||
</Box>
|
<Stack gap={theme.spacing(15)}>
|
||||||
<Stack direction="row">
|
<LocalizationProvider dateAdapter={AdapterDayjs}>
|
||||||
<LocalizationProvider dateAdapter={AdapterDayjs}>
|
<MobileTimePicker
|
||||||
<MobileTimePicker
|
id="startTime"
|
||||||
id="startTime"
|
label="Start time"
|
||||||
value={form.startTime}
|
value={form.startTime}
|
||||||
onChange={(newTime) => {
|
onChange={(newTime) => {
|
||||||
handleTimeChange("startTime", newTime);
|
handleTimeChange("startTime", newTime);
|
||||||
}}
|
}}
|
||||||
slotProps={{
|
slotProps={{
|
||||||
nextIconButton: { sx: { ml: theme.spacing(2) } },
|
nextIconButton: { sx: { ml: theme.spacing(2) } },
|
||||||
field: {
|
field: {
|
||||||
sx: {
|
sx: {
|
||||||
width: "fit-content",
|
width: "fit-content",
|
||||||
"& > .MuiOutlinedInput-root": {
|
"& > .MuiOutlinedInput-root": {
|
||||||
flexDirection: "row-reverse",
|
flexDirection: "row-reverse",
|
||||||
},
|
|
||||||
"& input": {
|
|
||||||
height: 34,
|
|
||||||
p: 0,
|
|
||||||
pl: theme.spacing(5),
|
|
||||||
},
|
|
||||||
"& fieldset": {
|
|
||||||
borderColor: theme.palette.border.dark,
|
|
||||||
borderRadius: theme.shape.borderRadius,
|
|
||||||
},
|
|
||||||
"&:not(:has(.Mui-disabled)):not(:has(.Mui-error)) .MuiOutlinedInput-root:not(:has(input:focus)):hover fieldset":
|
|
||||||
{
|
|
||||||
borderColor: theme.palette.border.dark,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
"& input": {
|
||||||
|
height: 34,
|
||||||
|
p: 0,
|
||||||
|
pl: theme.spacing(5),
|
||||||
|
},
|
||||||
|
"& fieldset": {
|
||||||
|
borderColor: theme.palette.border.dark,
|
||||||
|
borderRadius: theme.shape.borderRadius,
|
||||||
|
},
|
||||||
|
"&:not(:has(.Mui-disabled)):not(:has(.Mui-error)) .MuiOutlinedInput-root:not(:has(input:focus)):hover fieldset":
|
||||||
|
{
|
||||||
|
borderColor: theme.palette.border.dark,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}}
|
},
|
||||||
error={errors["startTime"]}
|
}}
|
||||||
/>
|
error={errors["startTime"]}
|
||||||
</LocalizationProvider>
|
/>
|
||||||
</Stack>
|
</LocalizationProvider>
|
||||||
</Stack>
|
|
||||||
<Stack direction="row">
|
|
||||||
<Box>
|
|
||||||
<Typography
|
|
||||||
component="h2"
|
|
||||||
variant="h2"
|
|
||||||
>
|
|
||||||
Duration
|
|
||||||
</Typography>
|
|
||||||
</Box>
|
|
||||||
<Stack
|
<Stack
|
||||||
direction="row"
|
direction="row"
|
||||||
|
alignItems="end"
|
||||||
spacing={theme.spacing(8)}
|
spacing={theme.spacing(8)}
|
||||||
>
|
>
|
||||||
<TextInput
|
<TextInput
|
||||||
type="number"
|
type="number"
|
||||||
id="duration"
|
id="duration"
|
||||||
|
label="Duration"
|
||||||
value={form.duration}
|
value={form.duration}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
handleFormChange("duration", event.target.value);
|
handleFormChange("duration", event.target.value);
|
||||||
@@ -491,66 +489,34 @@ const CreateMaintenance = () => {
|
|||||||
</Stack>
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
</ConfigBox>
|
</ConfigBox>
|
||||||
<Box>
|
|
||||||
<Typography
|
<ConfigBox>
|
||||||
component="h2"
|
<Box>
|
||||||
variant="h2"
|
<Typography
|
||||||
fontSize={16}
|
component="h2"
|
||||||
my={theme.spacing(6)}
|
variant="h2"
|
||||||
>
|
>
|
||||||
Monitor related settings
|
Monitors to apply maintenance window to
|
||||||
</Typography>
|
</Typography>
|
||||||
<ConfigBox>
|
</Box>
|
||||||
<Stack direction="row">
|
<Stack gap={theme.spacing(15)}>
|
||||||
<Box>
|
<Search
|
||||||
<Typography
|
id={"monitors"}
|
||||||
component="h2"
|
label="Add monitors"
|
||||||
variant="h2"
|
multiple={true}
|
||||||
>
|
isAdorned={false}
|
||||||
Friendly name
|
options={monitors ? monitors : []}
|
||||||
</Typography>
|
filteredBy="name"
|
||||||
</Box>
|
secondaryLabel={"type"}
|
||||||
<Box>
|
inputValue={search}
|
||||||
<TextInput
|
value={form.monitors}
|
||||||
id="name"
|
handleInputChange={handleSearch}
|
||||||
placeholder="Maintenance at __ : __ for ___ minutes"
|
handleChange={handleSelectMonitors}
|
||||||
value={form.name}
|
error={errors["monitors"]}
|
||||||
onChange={(event) => {
|
disabled={maintenanceWindowId !== undefined}
|
||||||
handleFormChange("name", event.target.value);
|
/>
|
||||||
}}
|
</Stack>
|
||||||
error={errors["name"] ? true : false}
|
</ConfigBox>
|
||||||
helperText={errors["name"]}
|
|
||||||
/>
|
|
||||||
</Box>
|
|
||||||
</Stack>
|
|
||||||
<Stack direction="row">
|
|
||||||
<Box>
|
|
||||||
<Typography
|
|
||||||
component="h2"
|
|
||||||
variant="h2"
|
|
||||||
>
|
|
||||||
Add monitors
|
|
||||||
</Typography>
|
|
||||||
</Box>
|
|
||||||
<Box>
|
|
||||||
<Search
|
|
||||||
id={"monitors"}
|
|
||||||
multiple={true}
|
|
||||||
isAdorned={false}
|
|
||||||
options={monitors ? monitors : []}
|
|
||||||
filteredBy="name"
|
|
||||||
secondaryLabel={"type"}
|
|
||||||
inputValue={search}
|
|
||||||
value={form.monitors}
|
|
||||||
handleInputChange={handleSearch}
|
|
||||||
handleChange={handleSelectMonitors}
|
|
||||||
error={errors["monitors"]}
|
|
||||||
disabled={maintenanceWindowId !== undefined}
|
|
||||||
/>
|
|
||||||
</Box>
|
|
||||||
</Stack>
|
|
||||||
</ConfigBox>
|
|
||||||
</Box>
|
|
||||||
<Box
|
<Box
|
||||||
ml="auto"
|
ml="auto"
|
||||||
display="inline-block"
|
display="inline-block"
|
||||||
|
|||||||
@@ -1,25 +0,0 @@
|
|||||||
import { Stack, styled } from "@mui/material";
|
|
||||||
|
|
||||||
export const ConfigBox = styled(Stack)(({ theme }) => ({
|
|
||||||
border: 1,
|
|
||||||
borderStyle: "solid",
|
|
||||||
borderColor: theme.palette.border.light,
|
|
||||||
borderRadius: theme.spacing(2),
|
|
||||||
backgroundColor: theme.palette.background.main,
|
|
||||||
"& > *": { padding: theme.spacing(14) },
|
|
||||||
"& > :first-of-type, & > .MuiStack-root > div:first-of-type": {
|
|
||||||
flex: 0.6,
|
|
||||||
},
|
|
||||||
"& > div:last-of-type, & > .MuiStack-root > div:last-of-type": {
|
|
||||||
flex: 1,
|
|
||||||
},
|
|
||||||
"& > .MuiStack-root > div:first-of-type": { paddingRight: theme.spacing(14) },
|
|
||||||
"& > .MuiStack-root > div:last-of-type": {
|
|
||||||
paddingLeft: theme.spacing(14),
|
|
||||||
},
|
|
||||||
"& h2": { fontSize: 13.5, fontWeight: 500 },
|
|
||||||
"& h3, & p": {
|
|
||||||
color: theme.palette.text.tertiary,
|
|
||||||
},
|
|
||||||
"& h3": { fontWeight: 500 },
|
|
||||||
}));
|
|
||||||
@@ -13,7 +13,7 @@ import {
|
|||||||
import { monitorValidation } from "../../../Validation/validation";
|
import { monitorValidation } from "../../../Validation/validation";
|
||||||
import { createToast } from "../../../Utils/toastUtils";
|
import { createToast } from "../../../Utils/toastUtils";
|
||||||
import { logger } from "../../../Utils/Logger";
|
import { logger } from "../../../Utils/Logger";
|
||||||
import { ConfigBox } from "../../Uptime/styled";
|
import ConfigBox from "../../../Components/ConfigBox";
|
||||||
import TextInput from "../../../Components/Inputs/TextInput";
|
import TextInput from "../../../Components/Inputs/TextInput";
|
||||||
import Select from "../../../Components/Inputs/Select";
|
import Select from "../../../Components/Inputs/Select";
|
||||||
import Checkbox from "../../../Components/Inputs/Checkbox";
|
import Checkbox from "../../../Components/Inputs/Checkbox";
|
||||||
|
|||||||
@@ -20,8 +20,7 @@ import LoadingButton from "@mui/lab/LoadingButton";
|
|||||||
import Breadcrumbs from "../../../Components/Breadcrumbs";
|
import Breadcrumbs from "../../../Components/Breadcrumbs";
|
||||||
import TextInput from "../../../Components/Inputs/TextInput";
|
import TextInput from "../../../Components/Inputs/TextInput";
|
||||||
import { HttpAdornment } from "../../../Components/Inputs/TextInput/Adornments";
|
import { HttpAdornment } from "../../../Components/Inputs/TextInput/Adornments";
|
||||||
import { ConfigBox } from "../../Uptime/styled";
|
import ConfigBox from "../../../Components/ConfigBox";
|
||||||
|
|
||||||
import { createToast } from "../../../Utils/toastUtils";
|
import { createToast } from "../../../Utils/toastUtils";
|
||||||
import Radio from "../../../Components/Inputs/Radio";
|
import Radio from "../../../Components/Inputs/Radio";
|
||||||
import Checkbox from "../../../Components/Inputs/Checkbox";
|
import Checkbox from "../../../Components/Inputs/Checkbox";
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { useTheme } from "@emotion/react";
|
|||||||
import { useNavigate, useParams } from "react-router-dom";
|
import { useNavigate, useParams } from "react-router-dom";
|
||||||
import { useSelector } from "react-redux";
|
import { useSelector } from "react-redux";
|
||||||
import { formatDurationRounded, formatDurationSplit } from "../../../Utils/timeUtils";
|
import { formatDurationRounded, formatDurationSplit } from "../../../Utils/timeUtils";
|
||||||
import { ChartBox, IconBox } from "./styled";
|
import { ChartBox } from "./styled";
|
||||||
import { logger } from "../../../Utils/Logger";
|
import { logger } from "../../../Utils/Logger";
|
||||||
import { networkService } from "../../../main";
|
import { networkService } from "../../../main";
|
||||||
import SkeletonLayout from "./skeleton";
|
import SkeletonLayout from "./skeleton";
|
||||||
@@ -23,6 +23,7 @@ import useUtils from "../../Uptime/utils";
|
|||||||
import "./index.css";
|
import "./index.css";
|
||||||
import { useIsAdmin } from "../../../Hooks/useIsAdmin";
|
import { useIsAdmin } from "../../../Hooks/useIsAdmin";
|
||||||
import StatBox from "../../../Components/StatBox";
|
import StatBox from "../../../Components/StatBox";
|
||||||
|
import IconBox from "../../../Components/IconBox";
|
||||||
|
|
||||||
const PageSpeedDetails = () => {
|
const PageSpeedDetails = () => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Box, Stack, styled } from "@mui/material";
|
import { Stack, styled } from "@mui/material";
|
||||||
|
|
||||||
export const ChartBox = styled(Stack)(({ theme }) => ({
|
export const ChartBox = styled(Stack)(({ theme }) => ({
|
||||||
display: "grid",
|
display: "grid",
|
||||||
@@ -40,26 +40,3 @@ export const ChartBox = styled(Stack)(({ theme }) => ({
|
|||||||
transition: "stroke-width 400ms ease",
|
transition: "stroke-width 400ms ease",
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
export const IconBox = styled(Box)(({ theme }) => ({
|
|
||||||
height: 34,
|
|
||||||
minWidth: 34,
|
|
||||||
width: 34,
|
|
||||||
position: "relative",
|
|
||||||
border: 1,
|
|
||||||
borderStyle: "solid",
|
|
||||||
borderColor: theme.palette.border.dark,
|
|
||||||
borderRadius: 4,
|
|
||||||
backgroundColor: theme.palette.background.accent,
|
|
||||||
"& svg": {
|
|
||||||
position: "absolute",
|
|
||||||
top: "50%",
|
|
||||||
left: "50%",
|
|
||||||
transform: "translate(-50%, -50%)",
|
|
||||||
width: 20,
|
|
||||||
height: 20,
|
|
||||||
"& path": {
|
|
||||||
stroke: theme.palette.text.tertiary,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}));
|
|
||||||
@@ -4,13 +4,12 @@ import { StatusLabel } from "../../Components/Label";
|
|||||||
import { Box, Grid, Stack, Typography } from "@mui/material";
|
import { Box, Grid, Stack, Typography } from "@mui/material";
|
||||||
import { useNavigate } from "react-router";
|
import { useNavigate } from "react-router";
|
||||||
import { useTheme } from "@emotion/react";
|
import { useTheme } from "@emotion/react";
|
||||||
import { IconBox } from "./Details/styled";
|
|
||||||
import { Area, AreaChart, CartesianGrid, ResponsiveContainer, Tooltip } from "recharts";
|
import { Area, AreaChart, CartesianGrid, ResponsiveContainer, Tooltip } from "recharts";
|
||||||
import { useSelector } from "react-redux";
|
import { useSelector } from "react-redux";
|
||||||
import { formatDateWithTz, formatDurationSplit } from "../../Utils/timeUtils";
|
import { formatDateWithTz, formatDurationSplit } from "../../Utils/timeUtils";
|
||||||
import useUtils from "../Uptime/utils";
|
import useUtils from "../Uptime/utils";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
import IconBox from "../../Components/IconBox";
|
||||||
/**
|
/**
|
||||||
* CustomToolTip displays a tooltip with formatted date and score information.
|
* CustomToolTip displays a tooltip with formatted date and score information.
|
||||||
* @param {Object} props
|
* @param {Object} props
|
||||||
|
|||||||
@@ -18,13 +18,12 @@ import LoadingButton from "@mui/lab/LoadingButton";
|
|||||||
import { setTimezone, setMode } from "../../Features/UI/uiSlice";
|
import { setTimezone, setMode } from "../../Features/UI/uiSlice";
|
||||||
import timezones from "../../Utils/timezones.json";
|
import timezones from "../../Utils/timezones.json";
|
||||||
import { useState, useEffect } from "react";
|
import { useState, useEffect } from "react";
|
||||||
import { ConfigBox } from "./styled";
|
|
||||||
import { networkService } from "../../main";
|
import { networkService } from "../../main";
|
||||||
import { settingsValidation } from "../../Validation/validation";
|
import { settingsValidation } from "../../Validation/validation";
|
||||||
import { useNavigate } from "react-router";
|
import { useNavigate } from "react-router";
|
||||||
import Dialog from "../../Components/Dialog";
|
import Dialog from "../../Components/Dialog";
|
||||||
import { useIsAdmin } from "../../Hooks/useIsAdmin";
|
import { useIsAdmin } from "../../Hooks/useIsAdmin";
|
||||||
|
import ConfigBox from "../../Components/ConfigBox";
|
||||||
const SECONDS_PER_DAY = 86400;
|
const SECONDS_PER_DAY = 86400;
|
||||||
|
|
||||||
const Settings = () => {
|
const Settings = () => {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import { Box, Stack, Tooltip, Typography } from "@mui/material";
|
|||||||
import { monitorValidation } from "../../../Validation/validation";
|
import { monitorValidation } from "../../../Validation/validation";
|
||||||
import { createToast } from "../../../Utils/toastUtils";
|
import { createToast } from "../../../Utils/toastUtils";
|
||||||
import { logger } from "../../../Utils/Logger";
|
import { logger } from "../../../Utils/Logger";
|
||||||
import { ConfigBox } from "../styled";
|
import ConfigBox from "../../../Components/ConfigBox";
|
||||||
import {
|
import {
|
||||||
updateUptimeMonitor,
|
updateUptimeMonitor,
|
||||||
pauseUptimeMonitor,
|
pauseUptimeMonitor,
|
||||||
|
|||||||
@@ -17,14 +17,13 @@ import LoadingButton from "@mui/lab/LoadingButton";
|
|||||||
|
|
||||||
//Components
|
//Components
|
||||||
import Breadcrumbs from "../../../Components/Breadcrumbs";
|
import Breadcrumbs from "../../../Components/Breadcrumbs";
|
||||||
import { ConfigBox } from "../styled";
|
|
||||||
import TextInput from "../../../Components/Inputs/TextInput";
|
import TextInput from "../../../Components/Inputs/TextInput";
|
||||||
import { HttpAdornment } from "../../../Components/Inputs/TextInput/Adornments";
|
import { HttpAdornment } from "../../../Components/Inputs/TextInput/Adornments";
|
||||||
import { createToast } from "../../../Utils/toastUtils";
|
import { createToast } from "../../../Utils/toastUtils";
|
||||||
import Radio from "../../../Components/Inputs/Radio";
|
import Radio from "../../../Components/Inputs/Radio";
|
||||||
import Checkbox from "../../../Components/Inputs/Checkbox";
|
import Checkbox from "../../../Components/Inputs/Checkbox";
|
||||||
import Select from "../../../Components/Inputs/Select";
|
import Select from "../../../Components/Inputs/Select";
|
||||||
|
import ConfigBox from "../../../Components/ConfigBox";
|
||||||
const CreateMonitor = () => {
|
const CreateMonitor = () => {
|
||||||
const MS_PER_MINUTE = 60000;
|
const MS_PER_MINUTE = 60000;
|
||||||
const SELECT_VALUES = [
|
const SELECT_VALUES = [
|
||||||
|
|||||||
@@ -26,15 +26,14 @@ import HistoryIcon from "../../../assets/icons/history-icon.svg?react";
|
|||||||
import PaginationTable from "./PaginationTable";
|
import PaginationTable from "./PaginationTable";
|
||||||
import Breadcrumbs from "../../../Components/Breadcrumbs";
|
import Breadcrumbs from "../../../Components/Breadcrumbs";
|
||||||
import PulseDot from "../../../Components/Animated/PulseDot";
|
import PulseDot from "../../../Components/Animated/PulseDot";
|
||||||
import StatBox from "../../../Components/StatBox";
|
import { ChartBox } from "./styled";
|
||||||
import { ChartBox, IconBox } from "./styled";
|
|
||||||
import { DownBarChart, ResponseGaugeChart, UpBarChart } from "./Charts";
|
import { DownBarChart, ResponseGaugeChart, UpBarChart } from "./Charts";
|
||||||
import SkeletonLayout from "./skeleton";
|
import SkeletonLayout from "./skeleton";
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
import useUtils from "../utils";
|
import useUtils from "../utils";
|
||||||
import { formatDateWithTz } from "../../../Utils/timeUtils";
|
import { formatDateWithTz } from "../../../Utils/timeUtils";
|
||||||
import { useIsAdmin } from "../../../Hooks/useIsAdmin";
|
import { useIsAdmin } from "../../../Hooks/useIsAdmin";
|
||||||
|
import IconBox from "../../../Components/IconBox";
|
||||||
/**
|
/**
|
||||||
* Details page component displaying monitor details and related information.
|
* Details page component displaying monitor details and related information.
|
||||||
* @component
|
* @component
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Box, Stack, styled } from "@mui/material";
|
import { Stack, styled } from "@mui/material";
|
||||||
|
|
||||||
export const ChartBox = styled(Stack)(({ theme }) => ({
|
export const ChartBox = styled(Stack)(({ theme }) => ({
|
||||||
flex: "1 30%",
|
flex: "1 30%",
|
||||||
@@ -43,26 +43,3 @@ export const ChartBox = styled(Stack)(({ theme }) => ({
|
|||||||
transition: "fill 300ms ease, stroke-width 400ms ease",
|
transition: "fill 300ms ease, stroke-width 400ms ease",
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
export const IconBox = styled(Box)(({ theme }) => ({
|
|
||||||
height: 34,
|
|
||||||
minWidth: 34,
|
|
||||||
width: 34,
|
|
||||||
position: "relative",
|
|
||||||
border: 1,
|
|
||||||
borderStyle: "solid",
|
|
||||||
borderColor: theme.palette.border.dark,
|
|
||||||
borderRadius: 4,
|
|
||||||
backgroundColor: theme.palette.background.accent,
|
|
||||||
"& svg": {
|
|
||||||
position: "absolute",
|
|
||||||
top: "50%",
|
|
||||||
left: "50%",
|
|
||||||
transform: "translate(-50%, -50%)",
|
|
||||||
width: 20,
|
|
||||||
height: 20,
|
|
||||||
"& path": {
|
|
||||||
stroke: theme.palette.text.tertiary,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}));
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
import { Stack, styled } from "@mui/material";
|
|
||||||
|
|
||||||
export const ConfigBox = styled(Stack)(({ theme }) => ({
|
|
||||||
flexDirection: "row",
|
|
||||||
border: 1,
|
|
||||||
borderStyle: "solid",
|
|
||||||
borderColor: theme.palette.border.light,
|
|
||||||
borderRadius: theme.spacing(2),
|
|
||||||
backgroundColor: theme.palette.background.main,
|
|
||||||
"& > *": {
|
|
||||||
paddingTop: theme.spacing(12),
|
|
||||||
paddingBottom: theme.spacing(18),
|
|
||||||
},
|
|
||||||
"& > div:first-of-type": {
|
|
||||||
flex: 0.7,
|
|
||||||
borderRight: 1,
|
|
||||||
borderRightStyle: "solid",
|
|
||||||
borderRightColor: theme.palette.border.light,
|
|
||||||
paddingRight: theme.spacing(15),
|
|
||||||
paddingLeft: theme.spacing(15),
|
|
||||||
},
|
|
||||||
"& > div:last-of-type": {
|
|
||||||
flex: 1,
|
|
||||||
paddingRight: theme.spacing(20),
|
|
||||||
paddingLeft: theme.spacing(18),
|
|
||||||
},
|
|
||||||
"& h2": {
|
|
||||||
color: theme.palette.text.secondary,
|
|
||||||
fontSize: 15,
|
|
||||||
fontWeight: 600,
|
|
||||||
},
|
|
||||||
"& h3, & p": {
|
|
||||||
color: theme.palette.text.tertiary,
|
|
||||||
},
|
|
||||||
"& p": {
|
|
||||||
fontSize: 13,
|
|
||||||
},
|
|
||||||
}));
|
|
||||||
Generated
+3
-3
@@ -4489,9 +4489,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/mongoose": {
|
"node_modules/mongoose": {
|
||||||
"version": "8.9.1",
|
"version": "8.9.2",
|
||||||
"resolved": "https://registry.npmjs.org/mongoose/-/mongoose-8.9.1.tgz",
|
"resolved": "https://registry.npmjs.org/mongoose/-/mongoose-8.9.2.tgz",
|
||||||
"integrity": "sha512-whM6lWMdeKlUm4d2LSLS/q6cWtTp13lUrL5hy2YTsQdTSN+dsAu8HLdLUQOEgtBE59qp4IqLrjSXCSETbxhkQQ==",
|
"integrity": "sha512-mLWynmZS1v8HTeMxyLhskQncS1SkrjW1eLNuFDYGQMQ/5QrFrxTLNwWXeCRZeKT2lXyaxW8bnJC9AKPT9jYMkw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bson": "^6.10.1",
|
"bson": "^6.10.1",
|
||||||
|
|||||||
Reference in new issue
Block a user