fix settings page strings
This commit is contained in:
1 parent
1cc9f4e4d9
commit
4d91377259
11 files changed
+861
-809
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,12 +27,13 @@ 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>
|
||||||
<Typography>{t("settingsAddDemoMonitors")}</Typography>
|
|
||||||
<Button
|
<Button
|
||||||
variant="contained"
|
variant="contained"
|
||||||
color="accent"
|
color="accent"
|
||||||
@@ -47,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>
|
||||||
@@ -57,14 +58,13 @@ 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>
|
||||||
<Typography>{t("settingsRemoveAllMonitors")}</Typography>
|
|
||||||
<Button
|
<Button
|
||||||
variant="contained"
|
variant="contained"
|
||||||
color="error"
|
color="error"
|
||||||
@@ -72,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,
|
||||||
|
|||||||
+766
-748
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user