standardize directory names
This commit is contained in:
1 parent
74265d524a
commit
96d984f136
23 files changed
+16
-15
No files matched your search
@@ -1,7 +1,7 @@
|
|||||||
import { Box, Typography } from "@mui/material";
|
import { Box, Typography } from "@mui/material";
|
||||||
import { useTheme } from "@mui/material/styles";
|
import { useTheme } from "@mui/material/styles";
|
||||||
import PropTypes from "prop-types";
|
import PropTypes from "prop-types";
|
||||||
import useUtils from "../../Pages/Uptime/Home/Hooks/useUtils";
|
import useUtils from "../../Pages/Uptime/Monitors/Hooks/useUtils";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* StatBox Component
|
* StatBox Component
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import AreaChart from "../../../Components/Charts/AreaChart";
|
|||||||
import { useSelector } from "react-redux";
|
import { useSelector } from "react-redux";
|
||||||
import { networkService } from "../../../main";
|
import { networkService } from "../../../main";
|
||||||
import PulseDot from "../../../Components/Animated/PulseDot";
|
import PulseDot from "../../../Components/Animated/PulseDot";
|
||||||
import useUtils from "../../Uptime/Home/Hooks/useUtils";
|
import useUtils from "../../Uptime/Monitors/Hooks/useUtils";
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
import Empty from "./empty";
|
import Empty from "./empty";
|
||||||
import { logger } from "../../../Utils/Logger";
|
import { logger } from "../../../Utils/Logger";
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { useEffect, useState, useCallback } from "react";
|
|||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
import { /* useDispatch, */ useSelector } from "react-redux";
|
import { /* useDispatch, */ useSelector } from "react-redux";
|
||||||
import { useTheme } from "@emotion/react";
|
import { useTheme } from "@emotion/react";
|
||||||
import useUtils from "../Uptime/Home/Hooks/useUtils.jsx";
|
import useUtils from "../Uptime/Monitors/Hooks/useUtils.jsx";
|
||||||
import { jwtDecode } from "jwt-decode";
|
import { jwtDecode } from "jwt-decode";
|
||||||
import SkeletonLayout from "./skeleton";
|
import SkeletonLayout from "./skeleton";
|
||||||
import Fallback from "../../Components/Fallback";
|
import Fallback from "../../Components/Fallback";
|
||||||
@@ -17,7 +17,7 @@ import Pagination from "../../Components/Table/TablePagination/index.jsx";
|
|||||||
// import { getInfrastructureMonitorsByTeamId } from "../../Features/InfrastructureMonitors/infrastructureMonitorsSlice";
|
// import { getInfrastructureMonitorsByTeamId } from "../../Features/InfrastructureMonitors/infrastructureMonitorsSlice";
|
||||||
import { networkService } from "../../Utils/NetworkService.js";
|
import { networkService } from "../../Utils/NetworkService.js";
|
||||||
import CustomGauge from "../../Components/Charts/CustomGauge/index.jsx";
|
import CustomGauge from "../../Components/Charts/CustomGauge/index.jsx";
|
||||||
import Host from "../Uptime/Home/Components/Host";
|
import Host from "../Uptime/Monitors/Components/Host/index.jsx";
|
||||||
import { useIsAdmin } from "../../Hooks/useIsAdmin.js";
|
import { useIsAdmin } from "../../Hooks/useIsAdmin.js";
|
||||||
import { InfrastructureMenu } from "./components/Menu";
|
import { InfrastructureMenu } from "./components/Menu";
|
||||||
|
|
||||||
@@ -156,11 +156,12 @@ function Infrastructure() {
|
|||||||
const uptimePercentage = ((monitor?.uptimePercentage ?? 0) * 100)
|
const uptimePercentage = ((monitor?.uptimePercentage ?? 0) * 100)
|
||||||
.toFixed(2)
|
.toFixed(2)
|
||||||
.toString();
|
.toString();
|
||||||
const percentageColor = monitor.uptimePercentage < 0.25
|
const percentageColor =
|
||||||
? theme.palette.error.main
|
monitor.uptimePercentage < 0.25
|
||||||
: monitor.uptimePercentage < 0.5
|
? theme.palette.error.main
|
||||||
? theme.palette.warning.main
|
: monitor.uptimePercentage < 0.5
|
||||||
: theme.palette.success.main;
|
? theme.palette.warning.main
|
||||||
|
: theme.palette.success.main;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
id: monitor._id,
|
id: monitor._id,
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import PulseDot from "../../../Components/Animated/PulseDot";
|
|||||||
import LoadingButton from "@mui/lab/LoadingButton";
|
import LoadingButton from "@mui/lab/LoadingButton";
|
||||||
import PlayCircleOutlineRoundedIcon from "@mui/icons-material/PlayCircleOutlineRounded";
|
import PlayCircleOutlineRoundedIcon from "@mui/icons-material/PlayCircleOutlineRounded";
|
||||||
import SkeletonLayout from "./skeleton";
|
import SkeletonLayout from "./skeleton";
|
||||||
import useUtils from "../../Uptime/Home/Hooks/useUtils";
|
import useUtils from "../../Uptime/Monitors/Hooks/useUtils";
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
import Dialog from "../../../Components/Dialog";
|
import Dialog from "../../../Components/Dialog";
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import PulseDot from "../../../Components/Animated/PulseDot";
|
|||||||
import PagespeedDetailsAreaChart from "./Charts/AreaChart";
|
import PagespeedDetailsAreaChart from "./Charts/AreaChart";
|
||||||
import Checkbox from "../../../Components/Inputs/Checkbox";
|
import Checkbox from "../../../Components/Inputs/Checkbox";
|
||||||
import PieChart from "./Charts/PieChart";
|
import PieChart from "./Charts/PieChart";
|
||||||
import useUtils from "../../Uptime/Home/Hooks/useUtils";
|
import useUtils from "../../Uptime/Monitors/Hooks/useUtils";
|
||||||
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";
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { useTheme } from "@emotion/react";
|
|||||||
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/Home/Hooks/useUtils";
|
import useUtils from "../../../../Uptime/Monitors/Hooks/useUtils";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import IconBox from "../../../../../Components/IconBox";
|
import IconBox from "../../../../../Components/IconBox";
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { Stack, Typography } from "@mui/material";
|
|||||||
import PulseDot from "../../../../../Components/Animated/PulseDot";
|
import PulseDot from "../../../../../Components/Animated/PulseDot";
|
||||||
import Dot from "../../../../../Components/Dot";
|
import Dot from "../../../../../Components/Dot";
|
||||||
import { useTheme } from "@emotion/react";
|
import { useTheme } from "@emotion/react";
|
||||||
import useUtils from "../../../Home/Hooks/useUtils";
|
import useUtils from "../../../Monitors/Hooks/useUtils";
|
||||||
import { formatDurationRounded } from "../../../../../Utils/timeUtils";
|
import { formatDurationRounded } from "../../../../../Utils/timeUtils";
|
||||||
import ConfigButton from "../ConfigButton";
|
import ConfigButton from "../ConfigButton";
|
||||||
import SkeletonLayout from "./skeleton";
|
import SkeletonLayout from "./skeleton";
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import StatBox from "../../../../../Components/StatBox";
|
|||||||
import SkeletonLayout from "./skeleton";
|
import SkeletonLayout from "./skeleton";
|
||||||
// Utils
|
// Utils
|
||||||
import { useTheme } from "@mui/material/styles";
|
import { useTheme } from "@mui/material/styles";
|
||||||
import useUtils from "../../../Home/Hooks/useUtils";
|
import useUtils from "../../../Monitors/Hooks/useUtils";
|
||||||
import { getHumanReadableDuration } from "../../../../../Utils/timeUtils";
|
import { getHumanReadableDuration } from "../../../../../Utils/timeUtils";
|
||||||
import PropTypes from "prop-types";
|
import PropTypes from "prop-types";
|
||||||
const StatusBoxes = ({ shouldRender, monitor, certificateExpiry }) => {
|
const StatusBoxes = ({ shouldRender, monitor, certificateExpiry }) => {
|
||||||
|
|||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -12,7 +12,7 @@ import AuthSetNewPassword from "../Pages/Auth/SetNewPassword";
|
|||||||
import AuthNewPasswordConfirmed from "../Pages/Auth/NewPasswordConfirmed";
|
import AuthNewPasswordConfirmed from "../Pages/Auth/NewPasswordConfirmed";
|
||||||
|
|
||||||
// Uptime
|
// Uptime
|
||||||
import Uptime from "../Pages/Uptime/Home";
|
import Uptime from "../Pages/Uptime/Monitors";
|
||||||
import UptimeDetails from "../Pages/Uptime/Details";
|
import UptimeDetails from "../Pages/Uptime/Details";
|
||||||
import UptimeCreate from "../Pages/Uptime/Create";
|
import UptimeCreate from "../Pages/Uptime/Create";
|
||||||
import UptimeConfigure from "../Pages/Uptime/Configure";
|
import UptimeConfigure from "../Pages/Uptime/Configure";
|
||||||
|
|||||||
Reference in new issue
Block a user