Added pulse dot effect to the rest of monitor pages
This commit is contained in:
1 parent
122d9d8f56
commit
35ae180865
4 files changed
+86
-14
No files matched your search
@@ -5,8 +5,6 @@ import { useEffect, useState } from "react";
|
|||||||
import Button from "../../../Components/Button";
|
import Button from "../../../Components/Button";
|
||||||
import Field from "../../../Components/Inputs/Field";
|
import Field from "../../../Components/Inputs/Field";
|
||||||
import { Box, Modal, Skeleton, Stack, Typography } from "@mui/material";
|
import { Box, Modal, Skeleton, Stack, Typography } from "@mui/material";
|
||||||
import GreenCheck from "../../../assets/icons/checkbox-green.svg?react";
|
|
||||||
import RedCheck from "../../../assets/icons/checkbox-red.svg?react";
|
|
||||||
import PauseCircleOutlineIcon from "@mui/icons-material/PauseCircleOutline";
|
import PauseCircleOutlineIcon from "@mui/icons-material/PauseCircleOutline";
|
||||||
import { monitorValidation } from "../../../Validation/validation";
|
import { monitorValidation } from "../../../Validation/validation";
|
||||||
import Select from "../../../Components/Inputs/Select";
|
import Select from "../../../Components/Inputs/Select";
|
||||||
@@ -229,8 +227,34 @@ const Configure = () => {
|
|||||||
gap={theme.gap.large}
|
gap={theme.gap.large}
|
||||||
flex={1}
|
flex={1}
|
||||||
>
|
>
|
||||||
<Stack direction="row" gap={theme.gap.small}>
|
<Stack direction="row" gap={theme.gap.xs}>
|
||||||
{monitor?.status ? <GreenCheck /> : <RedCheck />}
|
<Stack
|
||||||
|
width={theme.gap.large}
|
||||||
|
height={theme.gap.large}
|
||||||
|
alignItems="center"
|
||||||
|
justifyContent="center"
|
||||||
|
>
|
||||||
|
<Box
|
||||||
|
width="14px"
|
||||||
|
height="14px"
|
||||||
|
sx={{
|
||||||
|
position: "relative",
|
||||||
|
backgroundColor: monitor?.status
|
||||||
|
? theme.label.up.dotColor
|
||||||
|
: theme.label.down.dotColor,
|
||||||
|
borderRadius: "50%",
|
||||||
|
"&::before": {
|
||||||
|
content: `""`,
|
||||||
|
position: "absolute",
|
||||||
|
width: "100%",
|
||||||
|
height: "100%",
|
||||||
|
backgroundColor: "inherit",
|
||||||
|
borderRadius: "50%",
|
||||||
|
animation: "ripple 1.8s ease-out infinite",
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Stack>
|
||||||
<Box>
|
<Box>
|
||||||
{parsedUrl?.host ? (
|
{parsedUrl?.host ? (
|
||||||
<Typography component="h1" mb={theme.gap.xs} lineHeight={1}>
|
<Typography component="h1" mb={theme.gap.xs} lineHeight={1}>
|
||||||
|
|||||||
@@ -7,8 +7,6 @@ import { networkService } from "../../../main";
|
|||||||
import MonitorDetailsAreaChart from "../../../Components/Charts/MonitorDetailsAreaChart";
|
import MonitorDetailsAreaChart from "../../../Components/Charts/MonitorDetailsAreaChart";
|
||||||
import ButtonGroup from "@mui/material/ButtonGroup";
|
import ButtonGroup from "@mui/material/ButtonGroup";
|
||||||
import Button from "../../../Components/Button";
|
import Button from "../../../Components/Button";
|
||||||
import GreenCheck from "../../../assets/icons/checkbox-green.svg?react";
|
|
||||||
import RedCheck from "../../../assets/icons/checkbox-red.svg?react";
|
|
||||||
import SettingsIcon from "../../../assets/icons/settings-bold.svg?react";
|
import SettingsIcon from "../../../assets/icons/settings-bold.svg?react";
|
||||||
import PaginationTable from "./PaginationTable";
|
import PaginationTable from "./PaginationTable";
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -168,8 +168,34 @@ const PageSpeedConfigure = () => {
|
|||||||
flex={1}
|
flex={1}
|
||||||
gap={theme.gap.large}
|
gap={theme.gap.large}
|
||||||
>
|
>
|
||||||
<Stack direction="row" gap={theme.gap.small}>
|
<Stack direction="row" gap={theme.gap.xs}>
|
||||||
{monitor?.status ? <GreenCheck /> : <RedCheck />}
|
<Stack
|
||||||
|
width={theme.gap.large}
|
||||||
|
height={theme.gap.large}
|
||||||
|
alignItems="center"
|
||||||
|
justifyContent="center"
|
||||||
|
>
|
||||||
|
<Box
|
||||||
|
width="14px"
|
||||||
|
height="14px"
|
||||||
|
sx={{
|
||||||
|
position: "relative",
|
||||||
|
backgroundColor: monitor?.status
|
||||||
|
? theme.label.up.dotColor
|
||||||
|
: theme.label.down.dotColor,
|
||||||
|
borderRadius: "50%",
|
||||||
|
"&::before": {
|
||||||
|
content: `""`,
|
||||||
|
position: "absolute",
|
||||||
|
width: "100%",
|
||||||
|
height: "100%",
|
||||||
|
backgroundColor: "inherit",
|
||||||
|
borderRadius: "50%",
|
||||||
|
animation: "ripple 1.8s ease-out infinite",
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Stack>
|
||||||
<Box>
|
<Box>
|
||||||
<Typography
|
<Typography
|
||||||
component="h1"
|
component="h1"
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import PropTypes from "prop-types";
|
||||||
import { Box, Skeleton, Stack, Typography } from "@mui/material";
|
import { Box, Skeleton, Stack, Typography } from "@mui/material";
|
||||||
import { PieChart } from "@mui/x-charts/PieChart";
|
import { PieChart } from "@mui/x-charts/PieChart";
|
||||||
import { useDrawingArea } from "@mui/x-charts";
|
import { useDrawingArea } from "@mui/x-charts";
|
||||||
@@ -9,19 +10,16 @@ import {
|
|||||||
formatDuration,
|
formatDuration,
|
||||||
formatDurationRounded,
|
formatDurationRounded,
|
||||||
} from "../../../Utils/timeUtils";
|
} from "../../../Utils/timeUtils";
|
||||||
|
import { logger } from "../../../Utils/Logger";
|
||||||
import { networkService } from "../../../main";
|
import { networkService } from "../../../main";
|
||||||
import Button from "../../../Components/Button";
|
import Button from "../../../Components/Button";
|
||||||
import SettingsIcon from "../../../assets/icons/settings-bold.svg?react";
|
import SettingsIcon from "../../../assets/icons/settings-bold.svg?react";
|
||||||
import LastCheckedIcon from "../../../assets/icons/calendar-check.svg?react";
|
import LastCheckedIcon from "../../../assets/icons/calendar-check.svg?react";
|
||||||
import ClockIcon from "../../../assets/icons/maintenance.svg?react";
|
import ClockIcon from "../../../assets/icons/maintenance.svg?react";
|
||||||
import IntervalCheckIcon from "../../../assets/icons/interval-check.svg?react";
|
import IntervalCheckIcon from "../../../assets/icons/interval-check.svg?react";
|
||||||
import GreenCheck from "../../../assets/icons/checkbox-green.svg?react";
|
|
||||||
import RedCheck from "../../../assets/icons/checkbox-red.svg?react";
|
|
||||||
import PageSpeedLineChart from "../../../Components/Charts/PagespeedLineChart";
|
import PageSpeedLineChart from "../../../Components/Charts/PagespeedLineChart";
|
||||||
import Breadcrumbs from "../../../Components/Breadcrumbs";
|
import Breadcrumbs from "../../../Components/Breadcrumbs";
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
import PropTypes from "prop-types";
|
|
||||||
import { logger } from "../../../Utils/Logger";
|
|
||||||
|
|
||||||
const StatBox = ({ icon, title, value }) => {
|
const StatBox = ({ icon, title, value }) => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
@@ -325,8 +323,34 @@ const PageSpeedDetails = () => {
|
|||||||
{ name: "details", path: `/pagespeed/${monitorId}` },
|
{ name: "details", path: `/pagespeed/${monitorId}` },
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
<Stack direction="row" gap={theme.gap.small}>
|
<Stack direction="row" gap={theme.gap.xs}>
|
||||||
{monitor?.status ? <GreenCheck /> : <RedCheck />}
|
<Stack
|
||||||
|
width={theme.gap.large}
|
||||||
|
height={theme.gap.large}
|
||||||
|
alignItems="center"
|
||||||
|
justifyContent="center"
|
||||||
|
>
|
||||||
|
<Box
|
||||||
|
width="14px"
|
||||||
|
height="14px"
|
||||||
|
sx={{
|
||||||
|
position: "relative",
|
||||||
|
backgroundColor: monitor?.status
|
||||||
|
? theme.label.up.dotColor
|
||||||
|
: theme.label.down.dotColor,
|
||||||
|
borderRadius: "50%",
|
||||||
|
"&::before": {
|
||||||
|
content: `""`,
|
||||||
|
position: "absolute",
|
||||||
|
width: "100%",
|
||||||
|
height: "100%",
|
||||||
|
backgroundColor: "inherit",
|
||||||
|
borderRadius: "50%",
|
||||||
|
animation: "ripple 1.8s ease-out infinite",
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Stack>
|
||||||
<Box>
|
<Box>
|
||||||
<Typography
|
<Typography
|
||||||
component="h1"
|
component="h1"
|
||||||
|
|||||||
Reference in new issue
Block a user