Feat: Migrate Hardcoded Strings

This commit is contained in:
Br0wnHammer committed 2025-03-12 00:56:28 +05:30
1 parent 6578d7e78a
commit 5df5cf3870
15 files changed
+231 -117

No files matched your search

@@ -20,11 +20,13 @@ import { createToast } from "../../../Utils/toastUtils";
import { useNavigate } from "react-router-dom"; import { useNavigate } from "react-router-dom";
import { useMonitorsFetch } from "../../StatusPage/Create/Hooks/useMonitorsFetch"; import { useMonitorsFetch } from "../../StatusPage/Create/Hooks/useMonitorsFetch";
import { useDUStatusPageFetchByUrl } from "../Status/Hooks/useDUStatusPageFetchByUrl"; import { useDUStatusPageFetchByUrl } from "../Status/Hooks/useDUStatusPageFetchByUrl";
import { useTranslation } from "react-i18next";
const CreateStatus = () => { const CreateStatus = () => {
const theme = useTheme(); const theme = useTheme();
const { monitorId, url } = useParams(); const { monitorId, url } = useParams();
const navigate = useNavigate(); const navigate = useNavigate();
const { t } = useTranslation();
const isCreate = typeof url === "undefined"; const isCreate = typeof url === "undefined";
const [createStatusPage, isLoading, networkError] = useCreateStatusPage(isCreate); const [createStatusPage, isLoading, networkError] = useCreateStatusPage(isCreate);
@@ -176,7 +178,7 @@ const CreateStatus = () => {
component="span" component="span"
fontSize="inherit" fontSize="inherit"
> >
{isCreate ? "Create your" : "Edit your"}{" "} {isCreate ? t("distributedUptimeStatusCreateYour") : t("distributedUptimeStatusEditYour")}{" "}
</Typography> </Typography>
<Typography <Typography
component="span" component="span"
@@ -184,21 +186,21 @@ const CreateStatus = () => {
fontSize="inherit" fontSize="inherit"
fontWeight="inherit" fontWeight="inherit"
> >
status page {t("distributedUptimeStatusCreateStatusPage")}
</Typography> </Typography>
</Typography> </Typography>
<ConfigBox> <ConfigBox>
<Stack> <Stack>
<Typography component="h2">Access</Typography> <Typography component="h2">{t("distributedUptimeStatusCreateStatusPageAccess")}</Typography>
<Typography component="p"> <Typography component="p">
If your status page is ready, you can mark it as published. {t("distributedUptimeStatusCreateStatusPageReady")}
</Typography> </Typography>
</Stack> </Stack>
<Stack gap={theme.spacing(18)}> <Stack gap={theme.spacing(18)}>
<Checkbox <Checkbox
id="publish" id="publish"
name="isPublished" name="isPublished"
label={`Published and visible to the public`} label={t("distributedUptimeStatusPublishedLabel")}
isChecked={form.isPublished} isChecked={form.isPublished}
onChange={handleFormChange} onChange={handleFormChange}
/> />
@@ -206,9 +208,9 @@ const CreateStatus = () => {
</ConfigBox> </ConfigBox>
<ConfigBox> <ConfigBox>
<Stack gap={theme.spacing(6)}> <Stack gap={theme.spacing(6)}>
<Typography component="h2">Basic Information</Typography> <Typography component="h2">{t("distributedUptimeStatusBasicInfoHeader")}</Typography>
<Typography component="p"> <Typography component="p">
Define company name and the subdomain that your status page points to. {t("distributedUptimeStatusBasicInfoDescription")}
</Typography> </Typography>
</Stack> </Stack>
<Stack gap={theme.spacing(18)}> <Stack gap={theme.spacing(18)}>
@@ -216,7 +218,7 @@ const CreateStatus = () => {
id="companyName" id="companyName"
name="companyName" name="companyName"
type="text" type="text"
label="Company name" label={t("distributedUptimeStatusCompanyNameLabel")}
placeholder="Company name" placeholder="Company name"
value={form.companyName} value={form.companyName}
onChange={handleFormChange} onChange={handleFormChange}
@@ -227,7 +229,7 @@ const CreateStatus = () => {
id="url" id="url"
name="url" name="url"
type="url" type="url"
label="Your status page address" label={t("distributedUptimeStatusPageAddressLabel")}
disabled={!isCreate} disabled={!isCreate}
value={form.url} value={form.url}
onChange={handleFormChange} onChange={handleFormChange}
@@ -238,8 +240,8 @@ const CreateStatus = () => {
</ConfigBox> </ConfigBox>
<ConfigBox> <ConfigBox>
<Stack gap={theme.spacing(6)}> <Stack gap={theme.spacing(6)}>
<Typography component="h2">Logo</Typography> <Typography component="h2">{t("distributedUptimeStatusLogoHeader")}</Typography>
<Typography component="p">Upload a logo for your status page </Typography> <Typography component="p">{t("distributedUptimeStatusLogoDescription")} </Typography>
</Stack> </Stack>
<Stack <Stack
gap={theme.spacing(18)} gap={theme.spacing(18)}
@@ -262,7 +264,7 @@ const CreateStatus = () => {
color="accent" color="accent"
tabIndex={-1} tabIndex={-1}
> >
Upload logo {t("distributedUptimeStatusLogoUploadButton")}
<VisuallyHiddenInput onChange={handleImageUpload} /> <VisuallyHiddenInput onChange={handleImageUpload} />
</Button> </Button>
</Box> </Box>
@@ -270,9 +272,9 @@ const CreateStatus = () => {
</ConfigBox> </ConfigBox>
<ConfigBox> <ConfigBox>
<Stack> <Stack>
<Typography component="h2">Standard Monitors</Typography> <Typography component="h2">{t("distributedUptimeStatusStandardMonitorsHeader")}</Typography>
<Typography component="p"> <Typography component="p">
Attach standard monitors to your status page. {t("distributedUptimeStatusStandardMonitorsDescription")}
</Typography> </Typography>
</Stack> </Stack>
<Stack gap={theme.spacing(18)}> <Stack gap={theme.spacing(18)}>
@@ -301,7 +303,7 @@ const CreateStatus = () => {
color="accent" color="accent"
onClick={handleSubmit} onClick={handleSubmit}
> >
Save {t("settingsSave")}
</Button> </Button>
</Stack> </Stack>
</Stack> </Stack>
@@ -1,8 +1,10 @@
import { Stack, Button, ButtonGroup } from "@mui/material"; import { Stack, Button, ButtonGroup } from "@mui/material";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import { useTranslation } from "react-i18next";
const TimeFrameHeader = ({ timeFrame, setTimeFrame, sx, ...props }) => { const TimeFrameHeader = ({ timeFrame, setTimeFrame, sx, ...props }) => {
const theme = useTheme(); const theme = useTheme();
const { t } = useTranslation();
return ( return (
<Stack <Stack
direction="row" direction="row"
@@ -16,21 +18,21 @@ const TimeFrameHeader = ({ timeFrame, setTimeFrame, sx, ...props }) => {
filled={(timeFrame === 30).toString()} filled={(timeFrame === 30).toString()}
onClick={() => setTimeFrame(30)} onClick={() => setTimeFrame(30)}
> >
30 days {t("distributedUptimeStatus30Days")}
</Button> </Button>
<Button <Button
variant="group" variant="group"
filled={(timeFrame === 60).toString()} filled={(timeFrame === 60).toString()}
onClick={() => setTimeFrame(60)} onClick={() => setTimeFrame(60)}
> >
60 days {t("distributedUptimeStatus60Days")}
</Button> </Button>
<Button <Button
variant="group" variant="group"
filled={(timeFrame === 90).toString()} filled={(timeFrame === 90).toString()}
onClick={() => setTimeFrame(90)} onClick={() => setTimeFrame(90)}
> >
90 days {t("distributedUptimeStatus90Days")}
</Button> </Button>
</ButtonGroup> </ButtonGroup>
</Stack> </Stack>
@@ -124,9 +124,9 @@ const DistributedUptimeStatus = () => {
marginY={theme.spacing(4)} marginY={theme.spacing(4)}
color={theme.palette.primary.contrastTextTertiary} color={theme.palette.primary.contrastTextTertiary}
> >
A status page is not set up. {t("distributedUptimeStatusPageNotSetUp")}
</Typography> </Typography>
<Typography>Please contact your administrator</Typography> <Typography>{t("distributedUptimeStatusContactAdmin")}</Typography>
</GenericFallback> </GenericFallback>
</Stack> </Stack>
); );
@@ -137,7 +137,7 @@ const DistributedUptimeStatus = () => {
return ( return (
<Stack sx={sx}> <Stack sx={sx}>
<GenericFallback> <GenericFallback>
<Typography>This status page is not public.</Typography> <Typography>{t("distributedUptimeStatusPageNotPublic")}</Typography>
</GenericFallback> </GenericFallback>
</Stack> </Stack>
); );
@@ -155,9 +155,9 @@ const DistributedUptimeStatus = () => {
marginY={theme.spacing(4)} marginY={theme.spacing(4)}
color={theme.palette.primary.contrastTextTertiary} color={theme.palette.primary.contrastTextTertiary}
> >
Network error {t("networkError")}
</Typography> </Typography>
<Typography>Please check your connection</Typography> <Typography>{t("checkConnection")}</Typography>
</GenericFallback> </GenericFallback>
); );
} }
@@ -171,7 +171,7 @@ const DistributedUptimeStatus = () => {
<Stack gap={theme.spacing(10)}> <Stack gap={theme.spacing(10)}>
<Breadcrumbs list={BREADCRUMBS} /> <Breadcrumbs list={BREADCRUMBS} />
<GenericFallback> <GenericFallback>
<Typography>There is no check history for this monitor yet.</Typography> <Typography>{t("distributedUptimeDetailsNoMonitorHistory")}</Typography>
</GenericFallback> </GenericFallback>
</Stack> </Stack>
); );
@@ -246,17 +246,17 @@ const DistributedUptimeStatus = () => {
gap={theme.spacing(8)} gap={theme.spacing(8)}
> >
<InfoBox <InfoBox
heading="Devices" heading={t("distributedUptimeStatusDevices")}
subHeading={monitor?.totalChecks ?? 0} subHeading={monitor?.totalChecks ?? 0}
icon={PeopleAltOutlinedIcon} icon={PeopleAltOutlinedIcon}
alt="Upt Logo" alt="Upt Logo"
sx={{ width: "50%" }} sx={{ width: "50%" }}
/> />
<InfoBox <InfoBox
heading={isSmallScreen ? "UPT" : "UPT Burned"} heading={isSmallScreen ? t("distributedUptimeStatusUpt") : t("distributedUptimeStatusUptBurned")}
subHeading={safelyParseFloat(monitor?.uptBurnt).toFixed(4)} subHeading={safelyParseFloat(monitor?.uptBurnt).toFixed(4)}
img={UptLogo} img={UptLogo}
alt="Upt Logo" alt={t("distributedUptimeStatusUptLogo")}
sx={{ width: "50%" }} sx={{ width: "50%" }}
/> />
</Stack> </Stack>
@@ -295,7 +295,7 @@ const DistributedUptimeStatus = () => {
<Footer /> <Footer />
<Dialog <Dialog
// open={isOpen.deleteStats} // open={isOpen.deleteStats}
title="Do you want to delete this status page?" title={t("distributedUptimeStatusPageDeleteDialog")}
onConfirm={() => { onConfirm={() => {
deleteStatusPage(); deleteStatusPage();
setIsDeleteOpen(false); setIsDeleteOpen(false);
@@ -304,8 +304,8 @@ const DistributedUptimeStatus = () => {
setIsDeleteOpen(false); setIsDeleteOpen(false);
}} }}
open={isDeleteOpen} open={isDeleteOpen}
confirmationButtonLabel="Yes, delete status page" confirmationButtonLabel={t("distributedUptimeStatusPageDeleteConfirm")}
description="Once deleted, your status page cannot be retrieved." description={t("distributedUptimeStatusPageDeleteDescription")}
isLoading={isDeleting || isLoading} isLoading={isDeleting || isLoading}
/> />
</Stack> </Stack>
@@ -13,6 +13,7 @@ import { useSelector } from "react-redux";
import { useState } from "react"; import { useState } from "react";
import useChecksFetch from "../../Hooks/useChecksFetch"; import useChecksFetch from "../../Hooks/useChecksFetch";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { useTranslation } from "react-i18next";
const IncidentTable = ({ const IncidentTable = ({
shouldRender, shouldRender,
@@ -38,6 +39,8 @@ const IncidentTable = ({
rowsPerPage, rowsPerPage,
}); });
const { t } = useTranslation();
//Handlers //Handlers
const handleChangePage = (_, newPage) => { const handleChangePage = (_, newPage) => {
setPage(newPage); setPage(newPage);
@@ -50,12 +53,12 @@ const IncidentTable = ({
const headers = [ const headers = [
{ {
id: "monitorName", id: "monitorName",
content: "Monitor Name", content: t("incidentsTableMonitorName"),
render: (row) => monitors[row.monitorId]?.name ?? "N/A", render: (row) => monitors[row.monitorId]?.name ?? "N/A",
}, },
{ {
id: "status", id: "status",
content: "Status", content: t("incidentsTableStatus"),
render: (row) => { render: (row) => {
const status = row.status === true ? "up" : "down"; const status = row.status === true ? "up" : "down";
return ( return (
@@ -69,7 +72,7 @@ const IncidentTable = ({
}, },
{ {
id: "dateTime", id: "dateTime",
content: "Date & Time", content: t("incidentsTableDateTime"),
render: (row) => { render: (row) => {
const formattedDate = formatDateWithTz( const formattedDate = formatDateWithTz(
row.createdAt, row.createdAt,
@@ -81,10 +84,10 @@ const IncidentTable = ({
}, },
{ {
id: "statusCode", id: "statusCode",
content: "Status Code", content: t("incidentsTableStatusCode"),
render: (row) => <HttpStatusLabel status={row.statusCode} />, render: (row) => <HttpStatusLabel status={row.statusCode} />,
}, },
{ id: "message", content: "Message", render: (row) => row.message }, { id: "message", content: t("incidentsTableMessage"), render: (row) => row.message },
]; ];
if (!shouldRender || isLoading) return <TableSkeleton />; if (!shouldRender || isLoading) return <TableSkeleton />;
@@ -98,7 +101,7 @@ const IncidentTable = ({
} }
if (!isLoading && typeof checksCount === "undefined") { if (!isLoading && typeof checksCount === "undefined") {
return <GenericFallback>No incidents recorded</GenericFallback>; return <GenericFallback>{t("incidentsTableNoIncidents")}</GenericFallback>;
} }
return ( return (
@@ -108,7 +111,7 @@ const IncidentTable = ({
data={checks} data={checks}
/> />
<Pagination <Pagination
paginationLabel="incidents" paginationLabel={t("incidentsTablePaginationLabel")}
itemCount={checksCount} itemCount={checksCount}
page={page} page={page}
rowsPerPage={rowsPerPage} rowsPerPage={rowsPerPage}
@@ -6,6 +6,7 @@ import PropTypes from "prop-types";
//Utils //Utils
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import SkeletonLayout from "./skeleton"; import SkeletonLayout from "./skeleton";
import { useTranslation } from "react-i18next";
const OptionsHeader = ({ const OptionsHeader = ({
shouldRender, shouldRender,
@@ -18,6 +19,7 @@ const OptionsHeader = ({
setDateRange, setDateRange,
}) => { }) => {
const theme = useTheme(); const theme = useTheme();
const { t } = useTranslation();
const monitorNames = typeof monitors !== "undefined" ? Object.values(monitors) : []; const monitorNames = typeof monitors !== "undefined" ? Object.values(monitors) : [];
// The stacks below which are three in number have the same style so // The stacks below which are three in number have the same style so
@@ -40,11 +42,11 @@ const OptionsHeader = ({
component="h1" component="h1"
color={theme.palette.primary.contrastTextSecondary} color={theme.palette.primary.contrastTextSecondary}
> >
Incidents for: {t("incidentsOptionsHeader")}
</Typography> </Typography>
<Select <Select
id="incidents-select-monitor" id="incidents-select-monitor"
placeholder="All servers" placeholder={t("incidentsOptionsPlaceholderAllServers")}
value={selectedMonitor} value={selectedMonitor}
onChange={(e) => setSelectedMonitor(e.target.value)} onChange={(e) => setSelectedMonitor(e.target.value)}
items={monitorNames} items={monitorNames}
@@ -61,7 +63,7 @@ const OptionsHeader = ({
component="h1" component="h1"
color={theme.palette.primary.contrastTextSecondary} color={theme.palette.primary.contrastTextSecondary}
> >
Filter by: {t("incidentsOptionsHeaderFilterBy")}
</Typography> </Typography>
<ButtonGroup> <ButtonGroup>
<Button <Button
@@ -69,21 +71,21 @@ const OptionsHeader = ({
filled={(filter === "all").toString()} filled={(filter === "all").toString()}
onClick={() => setFilter("all")} onClick={() => setFilter("all")}
> >
All {t("incidentsOptionsHeaderFilterAll")}
</Button> </Button>
<Button <Button
variant="group" variant="group"
filled={(filter === "down").toString()} filled={(filter === "down").toString()}
onClick={() => setFilter("down")} onClick={() => setFilter("down")}
> >
Down {t("incidentsOptionsHeaderFilterDown")}
</Button> </Button>
<Button <Button
variant="group" variant="group"
filled={(filter === "resolve").toString()} filled={(filter === "resolve").toString()}
onClick={() => setFilter("resolve")} onClick={() => setFilter("resolve")}
> >
Cannot resolve {t("incidentsOptionsHeaderFilterCannotResolve")}
</Button> </Button>
</ButtonGroup> </ButtonGroup>
</Stack> </Stack>
@@ -93,7 +95,7 @@ const OptionsHeader = ({
component="h1" component="h1"
color={theme.palette.primary.contrastTextSecondary} color={theme.palette.primary.contrastTextSecondary}
> >
Show: {t("incidentsOptionsHeaderShow")}
</Typography> </Typography>
<ButtonGroup> <ButtonGroup>
<Button <Button
@@ -101,28 +103,28 @@ const OptionsHeader = ({
filled={(dateRange === "hour").toString()} filled={(dateRange === "hour").toString()}
onClick={() => setDateRange("hour")} onClick={() => setDateRange("hour")}
> >
Last hour {t("incidentsOptionsHeaderLastHour")}
</Button> </Button>
<Button <Button
variant="group" variant="group"
filled={(dateRange === "day").toString()} filled={(dateRange === "day").toString()}
onClick={() => setDateRange("day")} onClick={() => setDateRange("day")}
> >
Last day {t("incidentsOptionsHeaderLastDay")}
</Button> </Button>
<Button <Button
variant="group" variant="group"
filled={(dateRange === "week").toString()} filled={(dateRange === "week").toString()}
onClick={() => setDateRange("week")} onClick={() => setDateRange("week")}
> >
Last week {t("incidentsOptionsHeaderLastWeek")}
</Button> </Button>
<Button <Button
variant="group" variant="group"
filled={(dateRange === "all").toString()} filled={(dateRange === "all").toString()}
onClick={() => setDateRange("all")} onClick={() => setDateRange("all")}
> >
All {t("incidentsOptionsHeaderFilterAll")}
</Button> </Button>
</ButtonGroup> </ButtonGroup>
</Stack> </Stack>
+19 -19
View File
@@ -8,6 +8,7 @@ import { useSelector, useDispatch } from "react-redux";
import { infrastructureMonitorValidation } from "../../../Validation/validation"; import { infrastructureMonitorValidation } from "../../../Validation/validation";
import { createInfrastructureMonitor } from "../../../Features/InfrastructureMonitors/infrastructureMonitorsSlice"; import { createInfrastructureMonitor } from "../../../Features/InfrastructureMonitors/infrastructureMonitorsSlice";
import { capitalizeFirstLetter } from "../../../Utils/stringUtils"; import { capitalizeFirstLetter } from "../../../Utils/stringUtils";
import { useTranslation } from "react-i18next";
// MUI // MUI
import { Box, Stack, Typography, Button, ButtonGroup } from "@mui/material"; import { Box, Stack, Typography, Button, ButtonGroup } from "@mui/material";
@@ -52,6 +53,7 @@ const CreateInfrastructureMonitor = () => {
const monitorState = useSelector((state) => state.infrastructureMonitor); const monitorState = useSelector((state) => state.infrastructureMonitor);
const dispatch = useDispatch(); const dispatch = useDispatch();
const navigate = useNavigate(); const navigate = useNavigate();
const { t } = useTranslation();
// State // State
const [errors, setErrors] = useState({}); const [errors, setErrors] = useState({});
@@ -233,7 +235,7 @@ const CreateInfrastructureMonitor = () => {
component="span" component="span"
fontSize="inherit" fontSize="inherit"
> >
Create your{" "} {t("infrastructureCreateYour")}{" "}
</Typography> </Typography>
<Typography <Typography
component="span" component="span"
@@ -241,18 +243,17 @@ const CreateInfrastructureMonitor = () => {
fontSize="inherit" fontSize="inherit"
fontWeight="inherit" fontWeight="inherit"
> >
monitor {t("monitor")}
</Typography> </Typography>
</Typography> </Typography>
<ConfigBox> <ConfigBox>
<Stack gap={theme.spacing(6)}> <Stack gap={theme.spacing(6)}>
<Typography component="h2">General settings</Typography> <Typography component="h2">{t("settingsGeneralSettings")}</Typography>
<Typography component="p"> <Typography component="p">
Here you can select the URL of the host, together with the friendly name and {t("infrastructureCreateGeneralSettingsDescription")}
authorization secret to connect to the server agent.
</Typography> </Typography>
<Typography component="p"> <Typography component="p">
The server you are monitoring must be running the{" "} {t("infrastructureServerRequirement")}{" "}
<Link <Link
level="primary" level="primary"
url="https://github.com/bluewave-labs/checkmate-agent" url="https://github.com/bluewave-labs/checkmate-agent"
@@ -267,7 +268,7 @@ const CreateInfrastructureMonitor = () => {
name="url" name="url"
startAdornment={<HttpAdornment https={https} />} startAdornment={<HttpAdornment https={https} />}
placeholder={"localhost:59232/api/v1/metrics"} placeholder={"localhost:59232/api/v1/metrics"}
label="Server URL" label={t("infrastructureServerUrlLabel")}
https={https} https={https}
value={infrastructureMonitor.url} value={infrastructureMonitor.url}
onChange={handleChange} onChange={handleChange}
@@ -275,21 +276,21 @@ const CreateInfrastructureMonitor = () => {
helperText={errors["url"]} helperText={errors["url"]}
/> />
<Box> <Box>
<Typography component="p">Protocol</Typography> <Typography component="p">{t("infrastructureProtocol")}</Typography>
<ButtonGroup> <ButtonGroup>
<Button <Button
variant="group" variant="group"
filled={https.toString()} filled={https.toString()}
onClick={() => setHttps(true)} onClick={() => setHttps(true)}
> >
HTTPS {t("https")}
</Button> </Button>
<Button <Button
variant="group" variant="group"
filled={(!https).toString()} filled={(!https).toString()}
onClick={() => setHttps(false)} onClick={() => setHttps(false)}
> >
HTTP {t("http")}
</Button> </Button>
</ButtonGroup> </ButtonGroup>
</Box> </Box>
@@ -297,7 +298,7 @@ const CreateInfrastructureMonitor = () => {
type="text" type="text"
id="name" id="name"
name="name" name="name"
label="Display name" label={t("infrastructureDisplayNameLabel")}
placeholder="Google" placeholder="Google"
isOptional={true} isOptional={true}
value={infrastructureMonitor.name} value={infrastructureMonitor.name}
@@ -308,7 +309,7 @@ const CreateInfrastructureMonitor = () => {
type="text" type="text"
id="secret" id="secret"
name="secret" name="secret"
label="Authorization secret" label={t("infrastructureAuthorizationSecretLabel")}
value={infrastructureMonitor.secret} value={infrastructureMonitor.secret}
onChange={handleChange} onChange={handleChange}
error={errors["secret"] ? true : false} error={errors["secret"] ? true : false}
@@ -318,9 +319,9 @@ const CreateInfrastructureMonitor = () => {
</ConfigBox> </ConfigBox>
<ConfigBox> <ConfigBox>
<Box> <Box>
<Typography component="h2">Incident notifications</Typography> <Typography component="h2">{t("distributedUptimeCreateIncidentNotification")}</Typography>
<Typography component="p"> <Typography component="p">
When there is an incident, notify users. {t("distributedUptimeCreateIncidentDescription")}
</Typography> </Typography>
</Box> </Box>
<Stack gap={theme.spacing(6)}> <Stack gap={theme.spacing(6)}>
@@ -337,10 +338,9 @@ const CreateInfrastructureMonitor = () => {
</ConfigBox> </ConfigBox>
<ConfigBox> <ConfigBox>
<Box> <Box>
<Typography component="h2">Customize alerts</Typography> <Typography component="h2">{t("infrastructureCustomizeAlerts")}</Typography>
<Typography component="p"> <Typography component="p">
Send a notification to user(s) when thresholds exceed a specified {t("infrastructureAlertNotificationDescription")}
percentage.
</Typography> </Typography>
</Box> </Box>
<Stack gap={theme.spacing(6)}> <Stack gap={theme.spacing(6)}>
@@ -385,7 +385,7 @@ const CreateInfrastructureMonitor = () => {
</ConfigBox> </ConfigBox>
<ConfigBox> <ConfigBox>
<Box> <Box>
<Typography component="h2">Advanced settings</Typography> <Typography component="h2">{t("distributedUptimeCreateAdvancedSettings")}</Typography>
</Box> </Box>
<Stack gap={theme.spacing(12)}> <Stack gap={theme.spacing(12)}>
<Select <Select
@@ -408,7 +408,7 @@ const CreateInfrastructureMonitor = () => {
onClick={handleCreateInfrastructureMonitor} onClick={handleCreateInfrastructureMonitor}
loading={monitorState?.isLoading} loading={monitorState?.isLoading}
> >
Create infrastructure monitor {t("infrastructureCreateMonitor")}
</Button> </Button>
</Stack> </Stack>
</Stack> </Stack>
@@ -12,8 +12,10 @@ import {
} from "../../../../../Components/Charts/Utils/chartUtils"; } from "../../../../../Components/Charts/Utils/chartUtils";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import { useHardwareUtils } from "../../Hooks/useHardwareUtils"; import { useHardwareUtils } from "../../Hooks/useHardwareUtils";
import { useTranslation } from "react-i18next";
const AreaChartBoxes = ({ shouldRender, monitor, dateRange }) => { const AreaChartBoxes = ({ shouldRender, monitor, dateRange }) => {
const theme = useTheme(); const theme = useTheme();
const { t } = useTranslation();
const { buildTemps } = useHardwareUtils(); const { buildTemps } = useHardwareUtils();
if (!shouldRender) { if (!shouldRender) {
@@ -31,10 +33,10 @@ const AreaChartBoxes = ({ shouldRender, monitor, dateRange }) => {
type: "memory", type: "memory",
data: checks, data: checks,
dataKeys: ["avgMemoryUsage"], dataKeys: ["avgMemoryUsage"],
heading: "Memory usage", heading: t("memoryUsage"),
strokeColor: theme.palette.accent.main, // CAIO_REVIEW strokeColor: theme.palette.accent.main, // CAIO_REVIEW
gradientStartColor: theme.palette.accent.main, // CAIO_REVIEW gradientStartColor: theme.palette.accent.main, // CAIO_REVIEW
yLabel: "Memory usage", yLabel: t("memoryUsage"),
yDomain: [0, 1], yDomain: [0, 1],
yTick: <PercentTick />, yTick: <PercentTick />,
xTick: <TzTick dateRange={dateRange} />, xTick: <TzTick dateRange={dateRange} />,
@@ -51,10 +53,10 @@ const AreaChartBoxes = ({ shouldRender, monitor, dateRange }) => {
type: "cpu", type: "cpu",
data: checks, data: checks,
dataKeys: ["avgCpuUsage"], dataKeys: ["avgCpuUsage"],
heading: "CPU usage", heading: t("cpuUsage"),
strokeColor: theme.palette.success.main, strokeColor: theme.palette.success.main,
gradientStartColor: theme.palette.success.main, gradientStartColor: theme.palette.success.main,
yLabel: "CPU usage", yLabel: t("cpuUsage"),
yDomain: [0, 1], yDomain: [0, 1],
yTick: <PercentTick />, yTick: <PercentTick />,
xTick: <TzTick dateRange={dateRange} />, xTick: <TzTick dateRange={dateRange} />,
@@ -73,7 +75,7 @@ const AreaChartBoxes = ({ shouldRender, monitor, dateRange }) => {
dataKeys: tempKeys, dataKeys: tempKeys,
strokeColor: theme.palette.error.main, strokeColor: theme.palette.error.main,
gradientStartColor: theme.palette.error.main, gradientStartColor: theme.palette.error.main,
heading: "CPU Temperature", heading: t("cpuTemperature"),
yLabel: "Temperature", yLabel: "Temperature",
xTick: <TzTick dateRange={dateRange} />, xTick: <TzTick dateRange={dateRange} />,
yDomain: [ yDomain: [
@@ -96,7 +98,7 @@ const AreaChartBoxes = ({ shouldRender, monitor, dateRange }) => {
heading: `Disk${idx} usage`, heading: `Disk${idx} usage`,
strokeColor: theme.palette.warning.main, strokeColor: theme.palette.warning.main,
gradientStartColor: theme.palette.warning.main, gradientStartColor: theme.palette.warning.main,
yLabel: "Disk Usage", yLabel: t("diskUsage"),
yDomain: [0, 1], yDomain: [0, 1],
yTick: <PercentTick />, yTick: <PercentTick />,
xTick: <TzTick dateRange={dateRange} />, xTick: <TzTick dateRange={dateRange} />,
@@ -6,10 +6,12 @@ import SkeletonLayout from "./skeleton";
// Utils // Utils
import { useHardwareUtils } from "../../Hooks/useHardwareUtils"; import { useHardwareUtils } from "../../Hooks/useHardwareUtils";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import { useTranslation } from "react-i18next";
const Gauges = ({ shouldRender, monitor }) => { const Gauges = ({ shouldRender, monitor }) => {
const { decimalToPercentage, formatBytes } = useHardwareUtils(); const { decimalToPercentage, formatBytes } = useHardwareUtils();
const theme = useTheme(); const theme = useTheme();
const { t } = useTranslation();
if (!shouldRender) { if (!shouldRender) {
return <SkeletonLayout />; return <SkeletonLayout />;
@@ -28,19 +30,19 @@ const Gauges = ({ shouldRender, monitor }) => {
{ {
type: "memory", type: "memory",
value: decimalToPercentage(memoryUsagePercent), value: decimalToPercentage(memoryUsagePercent),
heading: "Memory usage", heading: t("memoryUsage"),
metricOne: "Used", metricOne: t("used"),
valueOne: formatBytes(memoryUsedBytes, true), valueOne: formatBytes(memoryUsedBytes, true),
metricTwo: "Total", metricTwo: t("total"),
valueTwo: formatBytes(memoryTotalBytes, true), valueTwo: formatBytes(memoryTotalBytes, true),
}, },
{ {
type: "cpu", type: "cpu",
value: decimalToPercentage(cpuUsagePercent), value: decimalToPercentage(cpuUsagePercent),
heading: "CPU usage", heading: t("cpuUsage"),
metricOne: "Cores", metricOne: t("cores"),
valueOne: cpuPhysicalCores ?? 0, valueOne: cpuPhysicalCores ?? 0,
metricTwo: "Frequency", metricTwo: t("frequency"),
valueTwo: `${(cpuFrequency / 1000).toFixed(2)} Ghz`, valueTwo: `${(cpuFrequency / 1000).toFixed(2)} Ghz`,
}, },
...(latestCheck?.disk ?? []).map((disk, idx) => ({ ...(latestCheck?.disk ?? []).map((disk, idx) => ({
@@ -48,9 +50,9 @@ const Gauges = ({ shouldRender, monitor }) => {
diskIndex: idx, diskIndex: idx,
value: decimalToPercentage(disk.usage_percent), value: decimalToPercentage(disk.usage_percent),
heading: `Disk${idx} usage`, heading: `Disk${idx} usage`,
metricOne: "Used", metricOne: t("used"),
valueOne: formatBytes(disk.total_bytes - disk.free_bytes, true), valueOne: formatBytes(disk.total_bytes - disk.free_bytes, true),
metricTwo: "Total", metricTwo: t("total"),
valueTwo: formatBytes(disk.total_bytes, true), valueTwo: formatBytes(disk.total_bytes, true),
})), })),
]; ];
@@ -6,11 +6,13 @@ import StatBox from "../../../../../Components/StatBox";
//Utils //Utils
import useUtils from "../../../../../Pages/Uptime/Monitors/Hooks/useUtils"; import useUtils from "../../../../../Pages/Uptime/Monitors/Hooks/useUtils";
import { useHardwareUtils } from "../../Hooks/useHardwareUtils"; import { useHardwareUtils } from "../../Hooks/useHardwareUtils";
import { useTranslation } from "react-i18next";
const InfraStatBoxes = ({ shouldRender, monitor }) => { const InfraStatBoxes = ({ shouldRender, monitor }) => {
// Utils // Utils
const { formatBytes } = useHardwareUtils(); const { formatBytes } = useHardwareUtils();
const { statusStyles, determineState } = useUtils(); const { statusStyles, determineState } = useUtils();
const { t } = useTranslation();
const { stats, uptimePercentage } = monitor ?? {}; const { stats, uptimePercentage } = monitor ?? {};
const latestCheck = stats?.aggregateData?.latestCheck; const latestCheck = stats?.aggregateData?.latestCheck;
@@ -40,11 +42,11 @@ const InfraStatBoxes = ({ shouldRender, monitor }) => {
> >
<StatBox <StatBox
sx={statusStyles[determineState(monitor)]} sx={statusStyles[determineState(monitor)]}
heading="Status" heading={t("status")}
subHeading={determineState(monitor)} subHeading={determineState(monitor)}
/> />
<StatBox <StatBox
heading="CPU (Physical)" heading={t("cpuPhysical")}
subHeading={ subHeading={
<> <>
{physicalCores} {physicalCores}
@@ -54,7 +56,7 @@ const InfraStatBoxes = ({ shouldRender, monitor }) => {
/> />
<StatBox <StatBox
key={2} key={2}
heading="CPU (Logical)" heading={t("cpuLogical")}
subHeading={ subHeading={
<> <>
{logicalCores} {logicalCores}
@@ -63,7 +65,7 @@ const InfraStatBoxes = ({ shouldRender, monitor }) => {
} }
/> />
<StatBox <StatBox
heading="CPU Frequency" heading={t("cpuFrequency")}
subHeading={ subHeading={
<> <>
{(cpuFrequency / 1000).toFixed(2)} {(cpuFrequency / 1000).toFixed(2)}
@@ -72,7 +74,7 @@ const InfraStatBoxes = ({ shouldRender, monitor }) => {
} }
/> />
<StatBox <StatBox
heading="Average CPU Temperature" heading={t("avgCpuTemperature")}
subHeading={ subHeading={
<> <>
{cpuTemperature.toFixed(2)} {cpuTemperature.toFixed(2)}
@@ -81,15 +83,15 @@ const InfraStatBoxes = ({ shouldRender, monitor }) => {
} }
/> />
<StatBox <StatBox
heading="Memory" heading={t("memory")}
subHeading={formatBytes(memoryTotalBytes)} subHeading={formatBytes(memoryTotalBytes)}
/> />
<StatBox <StatBox
heading="Disk" heading={t("disk")}
subHeading={formatBytes(diskTotalBytes)} subHeading={formatBytes(diskTotalBytes)}
/> />
<StatBox <StatBox
heading="Uptime" heading={t("uptime")}
subHeading={ subHeading={
<> <>
{(uptimePercentage * 100).toFixed(2)} {(uptimePercentage * 100).toFixed(2)}
@@ -99,7 +101,7 @@ const InfraStatBoxes = ({ shouldRender, monitor }) => {
/> />
<StatBox <StatBox
key={8} key={8}
heading="OS" heading={t("os")}
subHeading={osPlatform} subHeading={osPlatform}
/> />
</StatusBoxes> </StatusBoxes>
@@ -1,5 +1,6 @@
import { Typography } from "@mui/material"; import { Typography } from "@mui/material";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import { useTranslation } from "react-i18next";
// Constants // Constants
const BASE_BOX_PADDING_VERTICAL = 4; const BASE_BOX_PADDING_VERTICAL = 4;
@@ -9,6 +10,7 @@ const CHART_CONTAINER_HEIGHT = 300;
const useHardwareUtils = () => { const useHardwareUtils = () => {
const theme = useTheme(); const theme = useTheme();
const { t } = useTranslation();
const getDimensions = () => { const getDimensions = () => {
const totalTypographyPadding = parseInt(theme.spacing(TYPOGRAPHY_PADDING), 10) * 2; const totalTypographyPadding = parseInt(theme.spacing(TYPOGRAPHY_PADDING), 10) * 2;
@@ -29,7 +31,7 @@ const useHardwareUtils = () => {
<> <>
{0} {0}
{space ? " " : ""} {space ? " " : ""}
<Typography component="span">GB</Typography> <Typography component="span">{t("gb")}</Typography>
</> </>
); );
if (typeof bytes !== "number") if (typeof bytes !== "number")
@@ -37,7 +39,7 @@ const useHardwareUtils = () => {
<> <>
{0} {0}
{space ? " " : ""} {space ? " " : ""}
<Typography component="span">GB</Typography> <Typography component="span">{t("gb")}</Typography>
</> </>
); );
if (bytes === 0) if (bytes === 0)
@@ -45,7 +47,7 @@ const useHardwareUtils = () => {
<> <>
{0} {0}
{space ? " " : ""} {space ? " " : ""}
<Typography component="span">GB</Typography> <Typography component="span">{t("gb")}</Typography>
</> </>
); );
@@ -57,7 +59,7 @@ const useHardwareUtils = () => {
<> <>
{Number(GB.toFixed(0))} {Number(GB.toFixed(0))}
{space ? " " : ""} {space ? " " : ""}
<Typography component="span">GB</Typography> <Typography component="span">{t("gb")}</Typography>
</> </>
); );
} else { } else {
@@ -65,7 +67,7 @@ const useHardwareUtils = () => {
<> <>
{Number(MB.toFixed(0))} {Number(MB.toFixed(0))}
{space ? " " : ""} {space ? " " : ""}
<Typography component="span">MB</Typography> <Typography component="span">{t("mb")}</Typography>
</> </>
); );
} }
+5 -3
View File
@@ -13,6 +13,7 @@ import { useTheme } from "@emotion/react";
import { useIsAdmin } from "../../../Hooks/useIsAdmin"; import { useIsAdmin } from "../../../Hooks/useIsAdmin";
import { useHardwareMonitorsFetch } from "./Hooks/useHardwareMonitorsFetch"; import { useHardwareMonitorsFetch } from "./Hooks/useHardwareMonitorsFetch";
import { useState } from "react"; import { useState } from "react";
import { useTranslation } from "react-i18next";
import { useParams } from "react-router-dom"; import { useParams } from "react-router-dom";
// Constants // Constants
@@ -29,6 +30,7 @@ const InfrastructureDetails = () => {
// Utils // Utils
const theme = useTheme(); const theme = useTheme();
const { monitorId } = useParams(); const { monitorId } = useParams();
const { t } = useTranslation();
const { isLoading, networkError, monitor } = useHardwareMonitorsFetch({ const { isLoading, networkError, monitor } = useHardwareMonitorsFetch({
monitorId, monitorId,
@@ -43,9 +45,9 @@ const InfrastructureDetails = () => {
marginY={theme.spacing(4)} marginY={theme.spacing(4)}
color={theme.palette.primary.contrastTextTertiary} color={theme.palette.primary.contrastTextTertiary}
> >
Network error {t("networkError")}
</Typography> </Typography>
<Typography>Please check your connection</Typography> <Typography>{t("checkConnection")}</Typography>
</GenericFallback> </GenericFallback>
); );
} }
@@ -61,7 +63,7 @@ const InfrastructureDetails = () => {
monitor={monitor} monitor={monitor}
/> />
<GenericFallback> <GenericFallback>
<Typography>No check history for this monitor yet.</Typography> <Typography>{t("distributedUptimeDetailsNoMonitorHistory")}</Typography>
</GenericFallback> </GenericFallback>
</Stack> </Stack>
); );
@@ -13,10 +13,12 @@ import { useTheme } from "@emotion/react";
import useUtils from "../../../../Uptime/Monitors/Hooks/useUtils"; import useUtils from "../../../../Uptime/Monitors/Hooks/useUtils";
import { useNavigate } from "react-router-dom"; import { useNavigate } from "react-router-dom";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { useTranslation } from "react-i18next";
const MonitorsTable = ({ shouldRender, monitors, isAdmin, handleActionMenuDelete }) => { const MonitorsTable = ({ shouldRender, monitors, isAdmin, handleActionMenuDelete }) => {
// Utils // Utils
const theme = useTheme(); const theme = useTheme();
const { t } = useTranslation();
const { determineState } = useUtils(); const { determineState } = useUtils();
const navigate = useNavigate(); const navigate = useNavigate();
@@ -27,7 +29,7 @@ const MonitorsTable = ({ shouldRender, monitors, isAdmin, handleActionMenuDelete
const headers = [ const headers = [
{ {
id: "host", id: "host",
content: "Host", content: t("host"),
render: (row) => ( render: (row) => (
<Host <Host
title={row.name} title={row.name}
@@ -39,7 +41,7 @@ const MonitorsTable = ({ shouldRender, monitors, isAdmin, handleActionMenuDelete
}, },
{ {
id: "status", id: "status",
content: "Status", content: t("incidentsTableStatus"),
render: (row) => ( render: (row) => (
<StatusLabel <StatusLabel
status={row.status} status={row.status}
@@ -49,7 +51,7 @@ const MonitorsTable = ({ shouldRender, monitors, isAdmin, handleActionMenuDelete
}, },
{ {
id: "frequency", id: "frequency",
content: "Frequency", content: t("frequency"),
render: (row) => ( render: (row) => (
<Stack <Stack
direction={"row"} direction={"row"}
@@ -65,12 +67,12 @@ const MonitorsTable = ({ shouldRender, monitors, isAdmin, handleActionMenuDelete
</Stack> </Stack>
), ),
}, },
{ id: "cpu", content: "CPU", render: (row) => <CustomGauge progress={row.cpu} /> }, { id: "cpu", content: t("cpu"), render: (row) => <CustomGauge progress={row.cpu} /> },
{ id: "mem", content: "Mem", render: (row) => <CustomGauge progress={row.mem} /> }, { id: "mem", content: t("mem"), render: (row) => <CustomGauge progress={row.mem} /> },
{ id: "disk", content: "Disk", render: (row) => <CustomGauge progress={row.disk} /> }, { id: "disk", content: t("disk"), render: (row) => <CustomGauge progress={row.disk} /> },
{ {
id: "actions", id: "actions",
content: "Actions", content: t("actions"),
render: (row) => ( render: (row) => (
<InfrastructureMenu <InfrastructureMenu
monitor={row} monitor={row}
+5 -3
View File
@@ -12,6 +12,7 @@ import { useTheme } from "@emotion/react";
import { useMonitorFetch } from "./Hooks/useMonitorFetch"; import { useMonitorFetch } from "./Hooks/useMonitorFetch";
import { useState } from "react"; import { useState } from "react";
import { useIsAdmin } from "../../../Hooks/useIsAdmin"; import { useIsAdmin } from "../../../Hooks/useIsAdmin";
import { useTranslation } from "react-i18next";
// Constants // Constants
const BREADCRUMBS = [{ name: `infrastructure`, path: "/infrastructure" }]; const BREADCRUMBS = [{ name: `infrastructure`, path: "/infrastructure" }];
@@ -24,6 +25,7 @@ const InfrastructureMonitors = () => {
// Utils // Utils
const theme = useTheme(); const theme = useTheme();
const isAdmin = useIsAdmin(); const isAdmin = useIsAdmin();
const { t } = useTranslation();
// Handlers // Handlers
const handleActionMenuDelete = () => { const handleActionMenuDelete = () => {
@@ -52,9 +54,9 @@ const InfrastructureMonitors = () => {
marginY={theme.spacing(4)} marginY={theme.spacing(4)}
color={theme.palette.primary.contrastTextTertiary} color={theme.palette.primary.contrastTextTertiary}
> >
Network error {t("networkError")}
</Typography> </Typography>
<Typography>Please check your connection</Typography> <Typography>{t("checkConnection")}</Typography>
</GenericFallback> </GenericFallback>
); );
} }
@@ -96,7 +98,7 @@ const InfrastructureMonitors = () => {
/> />
<Pagination <Pagination
itemCount={summary?.totalMonitors} itemCount={summary?.totalMonitors}
paginationLabel="monitors" paginationLabel={t("monitors")}
page={page} page={page}
rowsPerPage={rowsPerPage} rowsPerPage={rowsPerPage}
handleChangePage={handleChangePage} handleChangePage={handleChangePage}
+12 -9
View File
@@ -4,6 +4,7 @@ import { useTheme } from "@emotion/react";
import Discord from "../../assets/icons/discord-icon.svg?react"; import Discord from "../../assets/icons/discord-icon.svg?react";
import Slack from "../../assets/icons/slack-icon.svg?react"; import Slack from "../../assets/icons/slack-icon.svg?react";
import Zapier from "../../assets/icons/zapier-icon.svg?react"; import Zapier from "../../assets/icons/zapier-icon.svg?react";
import { useTranslation } from "react-i18next";
import "./index.css"; import "./index.css";
@@ -18,6 +19,7 @@ import "./index.css";
*/ */
const IntegrationsComponent = ({ icon, header, info, onClick }) => { const IntegrationsComponent = ({ icon, header, info, onClick }) => {
const theme = useTheme(); const theme = useTheme();
const { t } = useTranslation();
return ( return (
<Grid <Grid
@@ -59,7 +61,7 @@ const IntegrationsComponent = ({ icon, header, info, onClick }) => {
sx={{ alignSelf: "center" }} sx={{ alignSelf: "center" }}
disabled={true} disabled={true}
> >
Add {t("add")}
</Button> </Button>
</Stack> </Stack>
</Grid> </Grid>
@@ -81,6 +83,7 @@ IntegrationsComponent.propTypes = {
const Integrations = () => { const Integrations = () => {
const theme = useTheme(); const theme = useTheme();
const { t } = useTranslation();
const integrations = [ const integrations = [
{ {
@@ -90,8 +93,8 @@ const Integrations = () => {
style={{ width: "45px", height: "45px", alignSelf: "center" }} style={{ width: "45px", height: "45px", alignSelf: "center" }}
/> />
), ),
header: "Slack", header: t("integrationsSlack"),
info: "Connect with Slack and see incidents in a channel", info: t("integrationsSlackInfo"),
onClick: () => {}, onClick: () => {},
}, },
{ {
@@ -101,8 +104,8 @@ const Integrations = () => {
style={{ width: "42px", height: "42px", alignSelf: "center" }} style={{ width: "42px", height: "42px", alignSelf: "center" }}
/> />
), ),
header: "Discord", header: t("integrationsDiscord"),
info: "Connect with Discord and view incidents directly in a channel", info: t("integrationsDiscordInfo"),
onClick: () => {}, onClick: () => {},
}, },
{ {
@@ -112,8 +115,8 @@ const Integrations = () => {
style={{ width: "42px", height: "42px", alignSelf: "center" }} style={{ width: "42px", height: "42px", alignSelf: "center" }}
/> />
), ),
header: "Zapier", header: t("integrationsZapier"),
info: "Send all incidents to Zapier, and then see them everywhere", info: t("integrationsZapierInfo"),
onClick: () => {}, onClick: () => {},
}, },
// Add more integrations as needed // Add more integrations as needed
@@ -130,9 +133,9 @@ const Integrations = () => {
}, },
}} }}
> >
<Typography component="h1">Integrations</Typography> <Typography component="h1">{t("integrations")}</Typography>
<Typography mb={theme.spacing(12)}> <Typography mb={theme.spacing(12)}>
Connect Prism to your favorite service. {t("integrationsPrism")}
</Typography> </Typography>
<Grid <Grid
container container
+88
View File
@@ -2,7 +2,9 @@
"dontHaveAccount": "Don't have account", "dontHaveAccount": "Don't have account",
"https": "HTTPS", "https": "HTTPS",
"http": "HTTP", "http": "HTTP",
"add": "Add",
"monitor": "monitor", "monitor": "monitor",
"monitors": "monitors",
"aboutus": "About Us", "aboutus": "About Us",
"email": "E-mail", "email": "E-mail",
"forgotPassword": "Forgot Password", "forgotPassword": "Forgot Password",
@@ -100,6 +102,92 @@
"distributedUptimeDetailsMonitorHeader": "Distributed Uptime Monitoring powered by DePIN", "distributedUptimeDetailsMonitorHeader": "Distributed Uptime Monitoring powered by DePIN",
"distributedUptimeDetailsStatusHeaderUptime": "Uptime:", "distributedUptimeDetailsStatusHeaderUptime": "Uptime:",
"distributedUptimeDetailsStatusHeaderLastUpdate": "Last updated", "distributedUptimeDetailsStatusHeaderLastUpdate": "Last updated",
"distributedUptimeStatusCreateStatusPage": "status page",
"distributedUptimeStatusCreateStatusPageAccess": "Access",
"distributedUptimeStatusCreateStatusPageReady": "If your status page is ready, you can mark it as published.",
"distributedUptimeStatusBasicInfoHeader": "Basic Information",
"distributedUptimeStatusBasicInfoDescription": "Define company name and the subdomain that your status page points to.",
"distributedUptimeStatusLogoHeader": "Logo",
"distributedUptimeStatusLogoDescription": "Upload a logo for your status page",
"distributedUptimeStatusLogoUploadButton": "Upload logo",
"distributedUptimeStatusStandardMonitorsHeader": "Standard Monitors",
"distributedUptimeStatusStandardMonitorsDescription": "Attach standard monitors to your status page.",
"distributedUptimeStatusCreateYour": "Create your",
"distributedUptimeStatusEditYour": "Edit your",
"distributedUptimeStatusPublishedLabel": "Published and visible to the public",
"distributedUptimeStatusCompanyNameLabel": "Company name",
"distributedUptimeStatusPageAddressLabel": "Your status page address",
"distributedUptimeStatus30Days": "30 days",
"distributedUptimeStatus60Days": "60 days",
"distributedUptimeStatus90Days": "90 days",
"distributedUptimeStatusPageNotSetUp": "A status page is not set up.",
"distributedUptimeStatusContactAdmin": "Please contact your administrator",
"distributedUptimeStatusPageNotPublic": "This status page is not public.",
"distributedUptimeStatusPageDeleteDialog": "Do you want to delete this status page?",
"distributedUptimeStatusPageDeleteConfirm": "Yes, delete status page",
"distributedUptimeStatusPageDeleteDescription": "Once deleted, your status page cannot be retrieved.",
"distributedUptimeStatusDevices": "Devices",
"distributedUptimeStatusUpt": "UPT",
"distributedUptimeStatusUptBurned": "UPT Burned",
"distributedUptimeStatusUptLogo": "Upt Logo",
"incidentsTableNoIncidents": "No incidents recorded",
"incidentsTablePaginationLabel": "incidents",
"incidentsTableMonitorName": "Monitor Name",
"incidentsTableStatus": "Status",
"incidentsTableDateTime": "Date & Time",
"incidentsTableStatusCode": "Status Code",
"incidentsTableMessage": "Message",
"incidentsOptionsHeader": "Incidents for:",
"incidentsOptionsHeaderFilterBy": "Filter by:",
"incidentsOptionsHeaderFilterAll": "All",
"incidentsOptionsHeaderFilterDown": "Down",
"incidentsOptionsHeaderFilterCannotResolve": "Cannot resolve",
"incidentsOptionsHeaderShow": "Show:",
"incidentsOptionsHeaderLastHour": "Last hour",
"incidentsOptionsHeaderLastDay": "Last day",
"incidentsOptionsHeaderLastWeek": "Last week",
"incidentsOptionsPlaceholderAllServers": "All servers",
"infrastructureCreateYour": "Create your",
"infrastructureCreateGeneralSettingsDescription": "Here you can select the URL of the host, together with the friendly name and authorization secret to connect to the server agent.",
"infrastructureServerRequirement": "The server you are monitoring must be running the",
"infrastructureCustomizeAlerts": "Customize alerts",
"infrastructureAlertNotificationDescription": "Send a notification to user(s) when thresholds exceed a specified percentage.",
"infrastructureCreateMonitor": "Create Infrastructure Monitor",
"infrastructureProtocol": "Protocol",
"infrastructureServerUrlLabel": "Server URL",
"infrastructureDisplayNameLabel": "Display name",
"infrastructureAuthorizationSecretLabel": "Authorization secret",
"gb": "GB",
"mb": "MB",
"mem": "Mem",
"memoryUsage": "Memory usage",
"cpu": "CPU",
"cpuUsage": "CPU usage",
"cpuTemperature": "CPU Temperature",
"diskUsage": "Disk Usage",
"used": "Used",
"total": "Total",
"cores": "Cores",
"frequency": "Frequency",
"status": "Status",
"cpuPhysical": "CPU (Physical)",
"cpuLogical": "CPU (Logical)",
"cpuFrequency": "CPU Frequency",
"avgCpuTemperature": "Average CPU Temperature",
"memory": "Memory",
"disk": "Disk",
"uptime": "Uptime",
"os": "OS",
"host": "Host",
"actions": "Actions",
"integrations": "Integrations",
"integrationsPrism": "Connect Prism to your favorite service.",
"integrationsSlack": "Slack",
"integrationsSlackInfo": "Connect with Slack and see incidents in a channel",
"integrationsDiscord": "Discord",
"integrationsDiscordInfo": "Connect with Discord and view incidents directly in a channel",
"integrationsZapier": "Zapier",
"integrationsZapierInfo": "Send all incidents to Zapier, and then see them everywhere",
"settingsGeneralSettings": "General settings", "settingsGeneralSettings": "General settings",
"settingsDisplayTimezone": "Display timezone", "settingsDisplayTimezone": "Display timezone",