Merge pull request #2531 from bluewave-labs/fix/settings-page-strings
fix: settings page strings
This commit is contained in:
11 files changed
+173
-118
No files matched your search
@@ -16,7 +16,7 @@ const SettingsAbout = () => {
|
|||||||
component="h1"
|
component="h1"
|
||||||
variant="h2"
|
variant="h2"
|
||||||
>
|
>
|
||||||
{t("settingsAbout")}
|
{t("settingsPage.aboutSettings.title")}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
<Box>
|
<Box>
|
||||||
@@ -24,7 +24,7 @@ const SettingsAbout = () => {
|
|||||||
{t("common.appName")} {2.1}
|
{t("common.appName")} {2.1}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography sx={{ mt: theme.spacing(2), mb: theme.spacing(6), opacity: 0.6 }}>
|
<Typography sx={{ mt: theme.spacing(2), mb: theme.spacing(6), opacity: 0.6 }}>
|
||||||
{t("settingsDevelopedBy")}
|
{t("settingsPage.aboutSettings.labelDevelopedBy")}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Link
|
<Link
|
||||||
level="secondary"
|
level="secondary"
|
||||||
|
|||||||
@@ -27,9 +27,11 @@ const SettingsDemoMonitors = ({ isAdmin, HEADER_SX, handleChange, isLoading }) =
|
|||||||
component="h1"
|
component="h1"
|
||||||
variant="h2"
|
variant="h2"
|
||||||
>
|
>
|
||||||
{t("settingsDemoMonitors")}
|
{t("settingsPage.demoMonitorsSettings.title")}
|
||||||
|
</Typography>
|
||||||
|
<Typography sx={HEADER_SX}>
|
||||||
|
{t("settingsPage.demoMonitorsSettings.description")}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography sx={HEADER_SX}>{t("settingsDemoMonitorsDescription")}</Typography>
|
|
||||||
</Box>
|
</Box>
|
||||||
<Box>
|
<Box>
|
||||||
<Button
|
<Button
|
||||||
@@ -46,7 +48,7 @@ const SettingsDemoMonitors = ({ isAdmin, HEADER_SX, handleChange, isLoading }) =
|
|||||||
}}
|
}}
|
||||||
sx={{ mt: theme.spacing(4) }}
|
sx={{ mt: theme.spacing(4) }}
|
||||||
>
|
>
|
||||||
{t("settingsAddDemoMonitorsButton")}
|
{t("settingsPage.demoMonitorsSettings.buttonAddMonitors")}
|
||||||
</Button>
|
</Button>
|
||||||
</Box>
|
</Box>
|
||||||
</ConfigBox>
|
</ConfigBox>
|
||||||
@@ -56,10 +58,10 @@ const SettingsDemoMonitors = ({ isAdmin, HEADER_SX, handleChange, isLoading }) =
|
|||||||
component="h1"
|
component="h1"
|
||||||
variant="h2"
|
variant="h2"
|
||||||
>
|
>
|
||||||
{t("settingsSystemReset")}
|
{t("settingsPage.systemResetSettings.title")}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography sx={{ mt: theme.spacing(2) }}>
|
<Typography sx={{ mt: theme.spacing(2) }}>
|
||||||
{t("settingsSystemResetDescription")}
|
{t("settingsPage.systemResetSettings.description")}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
<Box>
|
<Box>
|
||||||
@@ -70,15 +72,15 @@ const SettingsDemoMonitors = ({ isAdmin, HEADER_SX, handleChange, isLoading }) =
|
|||||||
onClick={() => setIsOpen(true)}
|
onClick={() => setIsOpen(true)}
|
||||||
sx={{ mt: theme.spacing(4) }}
|
sx={{ mt: theme.spacing(4) }}
|
||||||
>
|
>
|
||||||
{t("settingsRemoveAllMonitorsButton")}
|
{t("settingsPage.systemResetSettings.buttonRemoveAllMonitors")}
|
||||||
</Button>
|
</Button>
|
||||||
</Box>
|
</Box>
|
||||||
<Dialog
|
<Dialog
|
||||||
open={isOpen}
|
open={isOpen}
|
||||||
theme={theme}
|
theme={theme}
|
||||||
title={t("settingsRemoveAllMonitorsDialogTitle")}
|
title={t("settingsPage.systemResetSettings.dialogTitle")}
|
||||||
onCancel={() => setIsOpen(false)}
|
onCancel={() => setIsOpen(false)}
|
||||||
confirmationButtonLabel={t("settingsRemoveAllMonitorsDialogConfirm")}
|
confirmationButtonLabel={t("settingsPage.systemResetSettings.dialogConfirm")}
|
||||||
onConfirm={() => {
|
onConfirm={() => {
|
||||||
const syntheticEvent = {
|
const syntheticEvent = {
|
||||||
target: {
|
target: {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import TextLink from "../../Components/TextLink";
|
|||||||
// Utils
|
// Utils
|
||||||
import { useTheme } from "@emotion/react";
|
import { useTheme } from "@emotion/react";
|
||||||
import { PropTypes } from "prop-types";
|
import { PropTypes } from "prop-types";
|
||||||
import { useState, useEffect } from "react";
|
import { useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { PasswordEndAdornment } from "../../Components/Inputs/TextInput/Adornments";
|
import { PasswordEndAdornment } from "../../Components/Inputs/TextInput/Adornments";
|
||||||
import { useSendTestEmail } from "../../Hooks/useSendTestEmail";
|
import { useSendTestEmail } from "../../Hooks/useSendTestEmail";
|
||||||
@@ -111,14 +111,16 @@ const SettingsEmail = ({
|
|||||||
component="h1"
|
component="h1"
|
||||||
variant="h2"
|
variant="h2"
|
||||||
>
|
>
|
||||||
{t("settingsEmail")}
|
{t("settingsPage.emailSettings.title")}
|
||||||
|
</Typography>
|
||||||
|
<Typography sx={HEADER_SX}>
|
||||||
|
{t("settingsPage.emailSettings.description")}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography sx={HEADER_SX}>{t("settingsEmailDescription")}</Typography>
|
|
||||||
</Box>
|
</Box>
|
||||||
<Box>
|
<Box>
|
||||||
<Stack gap={theme.spacing(10)}>
|
<Stack gap={theme.spacing(10)}>
|
||||||
<Box>
|
<Box>
|
||||||
<Typography>{t("settingsEmailHost")}</Typography>
|
<Typography>{t("settingsPage.emailSettings.labelHost")}</Typography>
|
||||||
<TextInput
|
<TextInput
|
||||||
name="systemEmailHost"
|
name="systemEmailHost"
|
||||||
placeholder="smtp.gmail.com"
|
placeholder="smtp.gmail.com"
|
||||||
@@ -127,7 +129,7 @@ const SettingsEmail = ({
|
|||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
<Box>
|
<Box>
|
||||||
<Typography>{t("settingsEmailPort")}</Typography>
|
<Typography>{t("settingsPage.emailSettings.labelPort")}</Typography>
|
||||||
<TextInput
|
<TextInput
|
||||||
name="systemEmailPort"
|
name="systemEmailPort"
|
||||||
placeholder="425"
|
placeholder="425"
|
||||||
@@ -137,16 +139,16 @@ const SettingsEmail = ({
|
|||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
<Box>
|
<Box>
|
||||||
<Typography>{t("settingsEmailUser")}</Typography>
|
<Typography>{t("settingsPage.emailSettings.labelUser")}</Typography>
|
||||||
<TextInput
|
<TextInput
|
||||||
name="systemEmailUser"
|
name="systemEmailUser"
|
||||||
placeholder="Leave empty if not required"
|
placeholder={t("settingsPage.emailSettings.placeholderUser")}
|
||||||
value={systemEmailUser}
|
value={systemEmailUser}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
<Box>
|
<Box>
|
||||||
<Typography>{t("settingsEmailAddress")}</Typography>
|
<Typography>{t("settingsPage.emailSettings.labelAddress")}</Typography>
|
||||||
<TextInput
|
<TextInput
|
||||||
name="systemEmailAddress"
|
name="systemEmailAddress"
|
||||||
placeholder="uptime@bluewavelabs.ca"
|
placeholder="uptime@bluewavelabs.ca"
|
||||||
@@ -156,7 +158,7 @@ const SettingsEmail = ({
|
|||||||
</Box>
|
</Box>
|
||||||
{(isEmailPasswordSet === false || emailPasswordHasBeenReset === true) && (
|
{(isEmailPasswordSet === false || emailPasswordHasBeenReset === true) && (
|
||||||
<Box>
|
<Box>
|
||||||
<Typography>{t("settingsEmailPassword")}</Typography>
|
<Typography>{t("settingsPage.emailSettings.labelPassword")}</Typography>
|
||||||
<TextInput
|
<TextInput
|
||||||
name="systemEmailPassword"
|
name="systemEmailPassword"
|
||||||
type="password"
|
type="password"
|
||||||
@@ -170,7 +172,7 @@ const SettingsEmail = ({
|
|||||||
|
|
||||||
{isEmailPasswordSet === true && emailPasswordHasBeenReset === false && (
|
{isEmailPasswordSet === true && emailPasswordHasBeenReset === false && (
|
||||||
<Box>
|
<Box>
|
||||||
<Typography>{t("settingsEmailFieldResetLabel")}</Typography>
|
<Typography>{t("settingsPage.emailSettings.labelPasswordSet")}</Typography>
|
||||||
<Button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setPassword("");
|
setPassword("");
|
||||||
@@ -189,7 +191,7 @@ const SettingsEmail = ({
|
|||||||
</Box>
|
</Box>
|
||||||
)}
|
)}
|
||||||
<Box>
|
<Box>
|
||||||
<Typography>{t("settingsEmailTLSServername")}</Typography>
|
<Typography>{t("settingsPage.emailSettings.labelTLSServername")}</Typography>
|
||||||
<TextInput
|
<TextInput
|
||||||
name="systemEmailTLSServername"
|
name="systemEmailTLSServername"
|
||||||
placeholder="bluewavelabs.ca"
|
placeholder="bluewavelabs.ca"
|
||||||
@@ -198,7 +200,7 @@ const SettingsEmail = ({
|
|||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
<Box>
|
<Box>
|
||||||
<Typography>{t("settingsEmailConnectionHost")}</Typography>
|
<Typography>{t("settingsPage.emailSettings.labelConnectionHost")}</Typography>
|
||||||
<TextInput
|
<TextInput
|
||||||
name="systemEmailConnectionHost"
|
name="systemEmailConnectionHost"
|
||||||
placeholder="bluewavelabs.ca"
|
placeholder="bluewavelabs.ca"
|
||||||
@@ -214,12 +216,28 @@ const SettingsEmail = ({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{[
|
{[
|
||||||
["settingsEmailSecure", "systemEmailSecure", systemEmailSecure],
|
|
||||||
["settingsEmailPool", "systemEmailPool", systemEmailPool],
|
|
||||||
["settingsEmailIgnoreTLS", "systemEmailIgnoreTLS", systemEmailIgnoreTLS],
|
|
||||||
["settingsEmailRequireTLS", "systemEmailRequireTLS", systemEmailRequireTLS],
|
|
||||||
[
|
[
|
||||||
"settingsEmailRejectUnauthorized",
|
"settingsPage.emailSettings.labelSecure",
|
||||||
|
"systemEmailSecure",
|
||||||
|
systemEmailSecure,
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"settingsPage.emailSettings.labelPool",
|
||||||
|
"systemEmailPool",
|
||||||
|
systemEmailPool,
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"settingsPage.emailSettings.labelIgnoreTLS",
|
||||||
|
"systemEmailIgnoreTLS",
|
||||||
|
systemEmailIgnoreTLS,
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"settingsPage.emailSettings.labelRequireTLS",
|
||||||
|
"systemEmailRequireTLS",
|
||||||
|
systemEmailRequireTLS,
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"settingsPage.emailSettings.labelRejectUnauthorized",
|
||||||
"systemEmailRejectUnauthorized",
|
"systemEmailRejectUnauthorized",
|
||||||
systemEmailRejectUnauthorized,
|
systemEmailRejectUnauthorized,
|
||||||
],
|
],
|
||||||
@@ -242,8 +260,8 @@ const SettingsEmail = ({
|
|||||||
))}
|
))}
|
||||||
|
|
||||||
<TextLink
|
<TextLink
|
||||||
text={t("settingsEmailTransportLinkDescription")}
|
text={t("settingsPage.emailSettings.descriptionTransport")}
|
||||||
linkText={t("settingsEmailTransportLinkText")}
|
linkText={t("settingsPage.emailSettings.linkTransport")}
|
||||||
href="https://nodemailer.com/smtp"
|
href="https://nodemailer.com/smtp"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
/>
|
/>
|
||||||
@@ -293,7 +311,7 @@ const SettingsEmail = ({
|
|||||||
loading={isSending}
|
loading={isSending}
|
||||||
onClick={handleSendTestEmail}
|
onClick={handleSendTestEmail}
|
||||||
>
|
>
|
||||||
{t("settingsTestEmail", "Send test e-mail")}
|
{t("settingsPage.emailSettings.buttonSendTestEmail")}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { PasswordEndAdornment } from "../../Components/Inputs/TextInput/Adornmen
|
|||||||
// Utils
|
// Utils
|
||||||
import { useTheme } from "@emotion/react";
|
import { useTheme } from "@emotion/react";
|
||||||
import { PropTypes } from "prop-types";
|
import { PropTypes } from "prop-types";
|
||||||
import { useState, useEffect } from "react";
|
import { useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
const SettingsPagespeed = ({
|
const SettingsPagespeed = ({
|
||||||
@@ -46,15 +46,17 @@ const SettingsPagespeed = ({
|
|||||||
component="h1"
|
component="h1"
|
||||||
variant="h2"
|
variant="h2"
|
||||||
>
|
>
|
||||||
{t("pageSpeedApiKeyFieldTitle")}
|
{t("settingsPage.pageSpeedSettings.title")}
|
||||||
|
</Typography>
|
||||||
|
<Typography sx={HEADING_SX}>
|
||||||
|
{t("settingsPage.pageSpeedSettings.description")}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography sx={HEADING_SX}>{t("pageSpeedApiKeyFieldDescription")}</Typography>
|
|
||||||
</Box>
|
</Box>
|
||||||
<Stack gap={theme.spacing(20)}>
|
<Stack gap={theme.spacing(20)}>
|
||||||
{(isApiKeySet === false || apiKeyHasBeenReset === true) && (
|
{(isApiKeySet === false || apiKeyHasBeenReset === true) && (
|
||||||
<TextInput
|
<TextInput
|
||||||
name="pagespeedApiKey"
|
name="pagespeedApiKey"
|
||||||
label={t("pageSpeedApiKeyFieldLabel")}
|
label={t("settingsPage.pageSpeedSettings.labelApiKey")}
|
||||||
value={apiKey}
|
value={apiKey}
|
||||||
type={"password"}
|
type={"password"}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
@@ -65,7 +67,7 @@ const SettingsPagespeed = ({
|
|||||||
|
|
||||||
{isApiKeySet === true && apiKeyHasBeenReset === false && (
|
{isApiKeySet === true && apiKeyHasBeenReset === false && (
|
||||||
<Box>
|
<Box>
|
||||||
<Typography>{t("pageSpeedApiKeyFieldResetLabel")}</Typography>
|
<Typography>{t("settingsPage.pageSpeedSettings.labelApiKeySet")}</Typography>
|
||||||
<Button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setApiKey("");
|
setApiKey("");
|
||||||
|
|||||||
@@ -29,17 +29,17 @@ const SettingsStats = ({ isAdmin, HEADING_SX, handleChange, settingsData, errors
|
|||||||
variant="h2"
|
variant="h2"
|
||||||
sx={HEADING_SX}
|
sx={HEADING_SX}
|
||||||
>
|
>
|
||||||
{t("settingsHistoryAndMonitoring")}
|
{t("settingsPage.statsSettings.title")}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography sx={{ mt: theme.spacing(2) }}>
|
<Typography sx={{ mt: theme.spacing(2) }}>
|
||||||
{t("settingsHistoryAndMonitoringDescription")}
|
{t("settingsPage.statsSettings.description")}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
<Stack gap={theme.spacing(20)}>
|
<Stack gap={theme.spacing(20)}>
|
||||||
<TextInput
|
<TextInput
|
||||||
name="checkTTL"
|
name="checkTTL"
|
||||||
label={t("settingsTTLLabel")}
|
label={t("settingsPage.statsSettings.labelTTL")}
|
||||||
optionalLabel={t("settingsTTLOptionalLabel")}
|
optionalLabel={t("settingsPage.statsSettings.labelTTLOptional")}
|
||||||
value={settingsData?.settings?.checkTTL ?? ""}
|
value={settingsData?.settings?.checkTTL ?? ""}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
type="number"
|
type="number"
|
||||||
@@ -47,24 +47,28 @@ const SettingsStats = ({ isAdmin, HEADING_SX, handleChange, settingsData, errors
|
|||||||
helperText={errors.checkTTL}
|
helperText={errors.checkTTL}
|
||||||
/>
|
/>
|
||||||
<Box>
|
<Box>
|
||||||
<Typography>{t("settingsClearAllStats")}</Typography>
|
<Typography>
|
||||||
|
{t("settingsPage.statsSettings.clearAllStatsDescription")}
|
||||||
|
</Typography>
|
||||||
<Button
|
<Button
|
||||||
variant="contained"
|
variant="contained"
|
||||||
color="error"
|
color="error"
|
||||||
onClick={() => setIsOpen(true)}
|
onClick={() => setIsOpen(true)}
|
||||||
sx={{ mt: theme.spacing(4) }}
|
sx={{ mt: theme.spacing(4) }}
|
||||||
>
|
>
|
||||||
{t("settingsClearAllStatsButton")}
|
{t("settingsPage.statsSettings.clearAllStatsButton")}
|
||||||
</Button>
|
</Button>
|
||||||
</Box>
|
</Box>
|
||||||
</Stack>
|
</Stack>
|
||||||
<Dialog
|
<Dialog
|
||||||
open={isOpen}
|
open={isOpen}
|
||||||
theme={theme}
|
theme={theme}
|
||||||
title={t("settingsClearAllStatsDialogTitle")}
|
title={t("settingsPage.statsSettings.clearAllStatsDialogTitle")}
|
||||||
description={t("settingsClearAllStatsDialogDescription")}
|
description={t("settingsPage.statsSettings.clearAllStatsDialogDescription")}
|
||||||
onCancel={() => setIsOpen(false)}
|
onCancel={() => setIsOpen(false)}
|
||||||
confirmationButtonLabel={t("settingsClearAllStatsDialogConfirm")}
|
confirmationButtonLabel={t(
|
||||||
|
"settingsPage.statsSettings.clearAllStatsDialogConfirm"
|
||||||
|
)}
|
||||||
onConfirm={() => {
|
onConfirm={() => {
|
||||||
const syntheticEvent = {
|
const syntheticEvent = {
|
||||||
target: {
|
target: {
|
||||||
|
|||||||
@@ -19,16 +19,17 @@ const SettingsTimeZone = ({ HEADING_SX, handleChange, timezone }) => {
|
|||||||
component="h1"
|
component="h1"
|
||||||
variant="h2"
|
variant="h2"
|
||||||
>
|
>
|
||||||
{t("settingsGeneralSettings")}
|
{t("settingsPage.timezoneSettings.title")}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography sx={HEADING_SX}>
|
<Typography sx={HEADING_SX}>
|
||||||
<Typography component="span">{t("settingsDisplayTimezone")}</Typography>-{" "}
|
<Typography component="span">
|
||||||
{t("settingsDisplayTimezoneDescription")}
|
{t("settingsPage.timezoneSettings.description")}
|
||||||
|
</Typography>
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
<Stack gap={theme.spacing(20)}>
|
<Stack gap={theme.spacing(20)}>
|
||||||
<Select
|
<Select
|
||||||
label={t("settingsDisplayTimezone")}
|
label={t("settingsPage.timezoneSettings.label")}
|
||||||
name="timezone"
|
name="timezone"
|
||||||
value={timezone}
|
value={timezone}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
|
|||||||
@@ -20,14 +20,16 @@ const SettingsUI = ({ HEADING_SX, handleChange, mode, language }) => {
|
|||||||
component="h1"
|
component="h1"
|
||||||
variant="h2"
|
variant="h2"
|
||||||
>
|
>
|
||||||
{t("settingsAppearance")}
|
{t("settingsPage.uiSettings.title")}
|
||||||
|
</Typography>
|
||||||
|
<Typography sx={HEADING_SX}>
|
||||||
|
{t("settingsPage.uiSettings.description")}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography sx={HEADING_SX}>{t("settingsAppearanceDescription")}</Typography>
|
|
||||||
</Box>
|
</Box>
|
||||||
<Stack gap={theme.spacing(20)}>
|
<Stack gap={theme.spacing(20)}>
|
||||||
<Select
|
<Select
|
||||||
name="mode"
|
name="mode"
|
||||||
label={t("settingsThemeMode")}
|
label={t("settingsPage.uiSettings.labelTheme")}
|
||||||
value={mode}
|
value={mode}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
items={[
|
items={[
|
||||||
@@ -37,7 +39,7 @@ const SettingsUI = ({ HEADING_SX, handleChange, mode, language }) => {
|
|||||||
></Select>
|
></Select>
|
||||||
<Select
|
<Select
|
||||||
name="language"
|
name="language"
|
||||||
label={t("settingsLanguage")}
|
label={t("settingsPage.uiSettings.labelLanguage")}
|
||||||
value={language}
|
value={language}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
items={languages.map((lang) => ({ _id: lang, name: lang.toUpperCase() }))}
|
items={languages.map((lang) => ({ _id: lang, name: lang.toUpperCase() }))}
|
||||||
|
|||||||
@@ -15,18 +15,20 @@ const SettingsURL = ({ HEADING_SX, handleChange, showURL = false }) => {
|
|||||||
return (
|
return (
|
||||||
<ConfigBox>
|
<ConfigBox>
|
||||||
<Box>
|
<Box>
|
||||||
<Typography component="h1">{t("settingsURLTitle")}</Typography>
|
<Typography component="h1">{t("settingsPage.urlSettings.title")}</Typography>
|
||||||
<Typography sx={HEADING_SX}>{t("settingsURLDescription")}</Typography>
|
<Typography sx={HEADING_SX}>
|
||||||
|
{t("settingsPage.urlSettings.description")}
|
||||||
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
<Stack gap={theme.spacing(20)}>
|
<Stack gap={theme.spacing(20)}>
|
||||||
<Select
|
<Select
|
||||||
name="showURL"
|
name="showURL"
|
||||||
label={t("settingsURLSelectTitle")}
|
label={t("settingsPage.urlSettings.label")}
|
||||||
value={showURL || ""}
|
value={showURL || ""}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
items={[
|
items={[
|
||||||
{ _id: true, name: t("settingsURLEnabled") },
|
{ _id: true, name: t("settingsPage.urlSettings.selectEnabled") },
|
||||||
{ _id: false, name: t("settingURLDisabled") },
|
{ _id: false, name: t("settingsPage.urlSettings.selectDisabled") },
|
||||||
]}
|
]}
|
||||||
></Select>
|
></Select>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ const Settings = () => {
|
|||||||
return (
|
return (
|
||||||
<Stack gap={theme.spacing(10)}>
|
<Stack gap={theme.spacing(10)}>
|
||||||
<Breadcrumbs list={BREADCRUMBS} />
|
<Breadcrumbs list={BREADCRUMBS} />
|
||||||
<Typography variant="h1">Settings</Typography>
|
<Typography variant="h1">{t("settingsPage.title")}</Typography>
|
||||||
<SettingsTimeZone
|
<SettingsTimeZone
|
||||||
HEADING_SX={HEADING_SX}
|
HEADING_SX={HEADING_SX}
|
||||||
handleChange={handleChange}
|
handleChange={handleChange}
|
||||||
@@ -242,7 +242,7 @@ const Settings = () => {
|
|||||||
sx={{ px: theme.spacing(12), py: theme.spacing(8) }}
|
sx={{ px: theme.spacing(12), py: theme.spacing(8) }}
|
||||||
onClick={handleSave}
|
onClick={handleSave}
|
||||||
>
|
>
|
||||||
{t("settingsSave")}
|
{t("settingsPage.saveButtonLabel")}
|
||||||
</Button>
|
</Button>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|||||||
@@ -36,6 +36,11 @@ const baseTheme = (palette) => ({
|
|||||||
color: palette.primary.contrastTextTertiary,
|
color: palette.primary.contrastTextTertiary,
|
||||||
fontWeight: 400,
|
fontWeight: 400,
|
||||||
},
|
},
|
||||||
|
label: {
|
||||||
|
fontSize: "var(--env-var-font-size-medium)",
|
||||||
|
color: palette.primary.contrastTextSecondary,
|
||||||
|
fontWeight: 500,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
/* TODO change to 4 */
|
/* TODO change to 4 */
|
||||||
spacing: 2,
|
spacing: 2,
|
||||||
|
|||||||
+78
-59
@@ -587,10 +587,6 @@
|
|||||||
"now": "Now",
|
"now": "Now",
|
||||||
"os": "OS",
|
"os": "OS",
|
||||||
"pageSpeedAddApiKey": "to add your API key.",
|
"pageSpeedAddApiKey": "to add your API key.",
|
||||||
"pageSpeedApiKeyFieldDescription": "Enter your Google PageSpeed API key to enable pagespeed monitoring. Click Reset to update the key.",
|
|
||||||
"pageSpeedApiKeyFieldLabel": "PageSpeed API key",
|
|
||||||
"pageSpeedApiKeyFieldResetLabel": "API key is set. Click Reset to change it.",
|
|
||||||
"pageSpeedApiKeyFieldTitle": "Google PageSpeed API key",
|
|
||||||
"pageSpeedConfigureSettingsDescription": "Here you can select the URL of the host, together with the type of monitor.",
|
"pageSpeedConfigureSettingsDescription": "Here you can select the URL of the host, together with the type of monitor.",
|
||||||
"pageSpeedDetailsPerformanceReport": "Values are estimated and may vary.",
|
"pageSpeedDetailsPerformanceReport": "Values are estimated and may vary.",
|
||||||
"pageSpeedDetailsPerformanceReportCalculator": "See calculator",
|
"pageSpeedDetailsPerformanceReportCalculator": "See calculator",
|
||||||
@@ -664,74 +660,97 @@
|
|||||||
"selectAll": "Select all",
|
"selectAll": "Select all",
|
||||||
"sendTestNotifications": "Send test notifications",
|
"sendTestNotifications": "Send test notifications",
|
||||||
"seperateEmails": "You can separate multiple emails with a comma",
|
"seperateEmails": "You can separate multiple emails with a comma",
|
||||||
"settingURLDisabled": "Disabled",
|
|
||||||
"settingsAbout": "About",
|
|
||||||
"settingsAddDemoMonitorsButton": "Add demo monitors",
|
|
||||||
"settingsAppearance": "Appearance",
|
|
||||||
"settingsAppearanceDescription": "Switch between light and dark mode, or change user interface language",
|
|
||||||
"settingsClearAllStats": "Clear all stats. This is irreversible.",
|
|
||||||
"settingsClearAllStatsButton": "Clear all stats",
|
|
||||||
"settingsClearAllStatsDialogCancel": "Cancel",
|
|
||||||
"settingsClearAllStatsDialogConfirm": "Yes, clear all stats",
|
|
||||||
"settingsClearAllStatsDialogDescription": "Once removed, the monitoring history and stats cannot be retrieved.",
|
|
||||||
"settingsClearAllStatsDialogTitle": "Do you want to clear all stats?",
|
|
||||||
"settingsDemoMonitors": "Demo monitors",
|
|
||||||
"settingsDemoMonitorsAdded": "Successfully added demo monitors",
|
|
||||||
"settingsDemoMonitorsDescription": "Add sample monitors for demonstration purposes.",
|
|
||||||
"settingsDevelopedBy": "Developed by Bluewave Labs.",
|
|
||||||
"settingsDisabled": "Disabled",
|
"settingsDisabled": "Disabled",
|
||||||
"settingsDisplayTimezone": "Display timezone",
|
|
||||||
"settingsDisplayTimezoneDescription": "Select the timezone used to display dates and times throughout the application.",
|
|
||||||
"settingsEmail": "Email",
|
|
||||||
"settingsEmailAddress": "Email address - Used for authentication",
|
|
||||||
"settingsEmailConnectionHost": "Email connection host - Hostname to use in the HELO/EHLO greeting",
|
|
||||||
"settingsEmailDescription": "Configure the email settings for your system. This is used to send notifications and alerts.",
|
|
||||||
"settingsEmailFieldResetLabel": "Password is set. Click Reset to change it.",
|
|
||||||
"settingsEmailHost": "Email host - Hostname or IP address to connect to",
|
|
||||||
"settingsEmailIgnoreTLS": "Ignore TLS - Disable STARTTLS",
|
|
||||||
"settingsEmailPassword": "Email password - Password for authentication",
|
|
||||||
"settingsEmailPool": "Pool - Enable connection pooling",
|
|
||||||
"settingsEmailPort": "Email port - Port to connect to",
|
|
||||||
"settingsEmailRejectUnauthorized": "Reject Unauthorized",
|
|
||||||
"settingsEmailRequireTLS": "Require TLS - Force STARTTLS",
|
|
||||||
"settingsEmailRequiredFields": "Email address, host, port and password are required",
|
|
||||||
"settingsEmailSecure": "Secure - Use SSL",
|
|
||||||
"settingsEmailTLSServername": "TLS Servername - Optional Hostname for TLS Validation when host is an IP",
|
|
||||||
"settingsEmailTransportLinkDescription": "This builds an SMTP transport for NodeMailer",
|
|
||||||
"settingsEmailTransportLinkText": "See specifications here",
|
|
||||||
"settingsEmailUser": "Email user - Username for authentication, overrides email address if specified",
|
"settingsEmailUser": "Email user - Username for authentication, overrides email address if specified",
|
||||||
"settingsEnabled": "Enabled",
|
|
||||||
"settingsFailedToAddDemoMonitors": "Failed to add demo monitors",
|
"settingsFailedToAddDemoMonitors": "Failed to add demo monitors",
|
||||||
"settingsFailedToClearStats": "Failed to clear stats",
|
"settingsFailedToClearStats": "Failed to clear stats",
|
||||||
"settingsFailedToDeleteMonitors": "Failed to delete all monitors",
|
"settingsFailedToDeleteMonitors": "Failed to delete all monitors",
|
||||||
"settingsFailedToSave": "Failed to save settings",
|
"settingsFailedToSave": "Failed to save settings",
|
||||||
"settingsGeneralSettings": "General settings",
|
|
||||||
"settingsHistoryAndMonitoring": "History of monitoring",
|
|
||||||
"settingsHistoryAndMonitoringDescription": "Define how long you want to retain historical data. You can also clear all existing data.",
|
|
||||||
"settingsLanguage": "Language",
|
|
||||||
"settingsMonitorsDeleted": "Successfully deleted all monitors",
|
"settingsMonitorsDeleted": "Successfully deleted all monitors",
|
||||||
"settingsRemoveAllMonitorsButton": "Remove all monitors",
|
"settingsPage": {
|
||||||
"settingsRemoveAllMonitorsDialogConfirm": "Yes, remove all monitors",
|
"aboutSettings": {
|
||||||
"settingsRemoveAllMonitorsDialogTitle": "Do you want to remove all monitors?",
|
"labelDevelopedBy": "Developed by Bluewave Labs",
|
||||||
"settingsSave": "Save",
|
"labelVersion": "Version",
|
||||||
|
"title": "About"
|
||||||
|
},
|
||||||
|
"demoMonitorsSettings": {
|
||||||
|
"buttonAddMonitors": "Add demo monitors",
|
||||||
|
"description": "Add sample monitors for demonstration purposes.",
|
||||||
|
"title": "Demo monitors"
|
||||||
|
},
|
||||||
|
"emailSettings": {
|
||||||
|
"buttonSendTestEmail": "Send test e-mail",
|
||||||
|
"description": "Configure the email settings for your system. This is used to send notifications and alerts.",
|
||||||
|
"descriptionTransport": "This builds an SMTP transport for NodeMailer",
|
||||||
|
"labelAddress": "Email address - Used for authentication",
|
||||||
|
"labelConnectionHost": "Email connection host - Hostname to use in the HELO/EHLO greeting",
|
||||||
|
"labelHost": "Email host - Hostname or IP address to connect to",
|
||||||
|
"labelIgnoreTLS": "Disable STARTTLS: Don't use TLS even if the server supports it",
|
||||||
|
"labelPassword": "Email password - Password for authentication",
|
||||||
|
"labelPasswordSet": "Password is set. Click Reset to change it.",
|
||||||
|
"labelPool": "Enable connection pooling: Reuse existing connections to improve performance",
|
||||||
|
"labelPort": "Email port - Port to connect to",
|
||||||
|
"labelRejectUnauthorized": "Reject invalid certificates: Reject connections with self-signed or untrusted certificates",
|
||||||
|
"labelRequireTLS": "Force STARTTLS: Require TLS upgrade, fail if not supported",
|
||||||
|
"labelSecure": "Use SSL (recommended): Encrypt the connection using SSL/TLS",
|
||||||
|
"labelTLSServername": "TLS Servername - Optional Hostname for TLS Validation when host is an IP",
|
||||||
|
"labelUser": "Email user - Username for authentication, overrides email address if specified",
|
||||||
|
"linkTransport": "See specifications here",
|
||||||
|
"placeholderUser": "Leave empty if not required",
|
||||||
|
"title": "Email"
|
||||||
|
},
|
||||||
|
"pageSpeedSettings": {
|
||||||
|
"description": "Enter your Google PageSpeed API key to enable Google PageSpeed monitoring. Click Reset to update the key.",
|
||||||
|
"labelApiKeySet": "API key is set. Click Reset to change it.",
|
||||||
|
"labelApiKey": "PageSpeed API key",
|
||||||
|
"title": "Google PageSpeed API key"
|
||||||
|
},
|
||||||
|
"saveButtonLabel": "Save",
|
||||||
|
"statsSettings": {
|
||||||
|
"clearAllStatsButton": "Clear all stats",
|
||||||
|
"clearAllStatsDescription": "Clear all stats. This is irreversible.",
|
||||||
|
"clearAllStatsDialogConfirm": "Yes, clear all stats",
|
||||||
|
"clearAllStatsDialogDescription": "Once removed, the monitoring history and stats cannot be retrieved.",
|
||||||
|
"clearAllStatsDialogTitle": "Do you want to clear all stats?",
|
||||||
|
"description": "Define how long you want to retain historical data. You can also clear all existing data.",
|
||||||
|
"labelTTL": "The days you want to keep monitoring history.",
|
||||||
|
"labelTTLOptional": "0 for infinite",
|
||||||
|
"title": "Monitor history"
|
||||||
|
},
|
||||||
|
"systemResetSettings": {
|
||||||
|
"buttonRemoveAllMonitors": "Remove all monitors",
|
||||||
|
"description": "Remove all monitors from your system.",
|
||||||
|
"dialogConfirm": "Yes, remove all monitors",
|
||||||
|
"dialogDescription": "Once removed, the monitors cannot be retrieved.",
|
||||||
|
"dialogTitle": "Do you want to remove all monitors?",
|
||||||
|
"title": "System reset"
|
||||||
|
},
|
||||||
|
"timezoneSettings": {
|
||||||
|
"description": "Select the timezone used to display dates and times throughout the application.",
|
||||||
|
"label": "Display timezone",
|
||||||
|
"title": "Display timezone"
|
||||||
|
},
|
||||||
|
"title": "Settings",
|
||||||
|
"uiSettings": {
|
||||||
|
"description": "Switch between light and dark mode, or change user interface language.",
|
||||||
|
"labelLanguage": "Language",
|
||||||
|
"labelTheme": "Theme mode",
|
||||||
|
"title": "Appearance"
|
||||||
|
},
|
||||||
|
"urlSettings": {
|
||||||
|
"description": "Display the IP address or URL of monitor on the public Status page. If it's disabled, only the monitor name will be shown to protect sensitive information.",
|
||||||
|
"label": "Display IP/URL on status page",
|
||||||
|
"selectDisabled": "Disabled",
|
||||||
|
"selectEnabled": "Enabled",
|
||||||
|
"title": "Monitor IP/URL on Status Page"
|
||||||
|
}
|
||||||
|
},
|
||||||
"settingsStatsCleared": "Stats cleared successfully",
|
"settingsStatsCleared": "Stats cleared successfully",
|
||||||
"settingsSuccessSaved": "Settings saved successfully",
|
"settingsSuccessSaved": "Settings saved successfully",
|
||||||
"settingsSystemReset": "System reset",
|
|
||||||
"settingsSystemResetDescription": "Remove all monitors from your system.",
|
|
||||||
"settingsTTLLabel": "The days you want to keep monitoring history.",
|
|
||||||
"settingsTTLOptionalLabel": "0 for infinite",
|
|
||||||
"settingsTestEmail": "Send test e-mail",
|
|
||||||
"settingsTestEmailFailed": "Failed to send test email",
|
"settingsTestEmailFailed": "Failed to send test email",
|
||||||
"settingsTestEmailFailedWithReason": "Failed to send test email: {{reason}}",
|
"settingsTestEmailFailedWithReason": "Failed to send test email: {{reason}}",
|
||||||
"settingsTestEmailSuccess": "Test email sent successfully",
|
"settingsTestEmailSuccess": "Test email sent successfully",
|
||||||
"settingsTestEmailUnknownError": "Unknown error",
|
"settingsTestEmailUnknownError": "Unknown error",
|
||||||
"settingsThemeMode": "Theme Mode",
|
|
||||||
"settingsThemeModeDark": "Dark",
|
|
||||||
"settingsThemeModeLight": "Light",
|
|
||||||
"settingsURLDescription": "Display the IP address or URL of monitor on the public Status page. If it's disabled, only the monitor name will be shown to protect sensitive information.",
|
|
||||||
"settingsURLEnabled": "Enabled",
|
|
||||||
"settingsURLSelectTitle": "Display IP/URL on status page",
|
|
||||||
"settingsURLTitle": "Monitor IP/URL on Status Page",
|
|
||||||
"showAdminLoginLink": "Show \"Administrator? Login Here\" link on the status page",
|
"showAdminLoginLink": "Show \"Administrator? Login Here\" link on the status page",
|
||||||
"showCharts": "Show charts",
|
"showCharts": "Show charts",
|
||||||
"showUptimePercentage": "Show uptime percentage",
|
"showUptimePercentage": "Show uptime percentage",
|
||||||
|
|||||||
Reference in new issue
Block a user