Merge pull request #3902 from bluewave-labs/feat/settings-tabs
feat(client): group settings into five tabs
This commit is contained in:
20 files changed
+501
-195
No files matched your search
+366
-193
@@ -1,4 +1,4 @@
|
|||||||
import { BasePage, ConfigBox, TextLink } from "@/Components/design-elements";
|
import { BasePage, ConfigBox, TextLink, Tabs, Tab } from "@/Components/design-elements";
|
||||||
import { Autocomplete, Select, Dialog } from "@/Components/inputs";
|
import { Autocomplete, Select, Dialog } from "@/Components/inputs";
|
||||||
import { logger } from "@/Utils/logger";
|
import { logger } from "@/Utils/logger";
|
||||||
import { LAYOUT } from "@/Utils/Theme/constants";
|
import { LAYOUT } from "@/Utils/Theme/constants";
|
||||||
@@ -46,6 +46,80 @@ import { FormNumberField } from "@/Components/inputs/forms/FormNumberField";
|
|||||||
import { FormSelectField } from "@/Components/inputs/forms/FormSelectField";
|
import { FormSelectField } from "@/Components/inputs/forms/FormSelectField";
|
||||||
import type { ProxyResponse } from "@/Types/Proxy";
|
import type { ProxyResponse } from "@/Types/Proxy";
|
||||||
import type { AppSettingsResponse } from "@/Types/Settings";
|
import type { AppSettingsResponse } from "@/Types/Settings";
|
||||||
|
import { useSearchParams } from "react-router-dom";
|
||||||
|
|
||||||
|
const SETTINGS_TABS = [
|
||||||
|
{ key: "general", labelKey: "pages.settings.tabs.general" },
|
||||||
|
{ key: "monitoring", labelKey: "pages.settings.tabs.monitoring", adminOnly: true },
|
||||||
|
{ key: "email", labelKey: "pages.settings.tabs.email", adminOnly: true },
|
||||||
|
{ key: "integrations", labelKey: "pages.settings.tabs.integrations", adminOnly: true },
|
||||||
|
{ key: "data", labelKey: "pages.settings.tabs.data", adminOnly: true },
|
||||||
|
] as const;
|
||||||
|
|
||||||
|
type SettingsTabKey = (typeof SETTINGS_TABS)[number]["key"];
|
||||||
|
|
||||||
|
const FIELD_TAB: Record<string, SettingsTabKey> = {
|
||||||
|
checkTTL: "monitoring",
|
||||||
|
globalThresholds: "monitoring",
|
||||||
|
pagespeedApiKey: "integrations",
|
||||||
|
globalProxyEnabled: "integrations",
|
||||||
|
globalProxyId: "integrations",
|
||||||
|
showURL: "general",
|
||||||
|
};
|
||||||
|
|
||||||
|
const tabForField = (field: string): SettingsTabKey =>
|
||||||
|
field.startsWith("systemEmail")
|
||||||
|
? "email"
|
||||||
|
: (FIELD_TAB[field.split(".")[0]] ?? "general");
|
||||||
|
|
||||||
|
const FIELD_LABEL_KEY: Record<string, string> = {
|
||||||
|
checkTTL: "pages.settings.form.retention.option.days.label",
|
||||||
|
"globalThresholds.cpu": "pages.settings.form.thresholds.option.cpu.label",
|
||||||
|
"globalThresholds.memory": "pages.settings.form.thresholds.option.memory.label",
|
||||||
|
"globalThresholds.disk": "pages.settings.form.thresholds.option.disk.label",
|
||||||
|
"globalThresholds.temperature":
|
||||||
|
"pages.settings.form.thresholds.option.temperature.label",
|
||||||
|
pagespeedApiKey: "pages.settings.form.pagespeed.option.apiKey.label",
|
||||||
|
globalProxyEnabled: "pages.settings.form.globalProxy.option.enabled.label",
|
||||||
|
showURL: "pages.settings.form.url.option.showURL.label",
|
||||||
|
systemEmailHost: "pages.settings.form.email.option.host.label",
|
||||||
|
systemEmailPort: "pages.settings.form.email.option.port.label",
|
||||||
|
systemEmailAddress: "pages.settings.form.email.option.address.label",
|
||||||
|
systemEmailDisplayName: "pages.settings.form.email.option.displayName.label",
|
||||||
|
systemEmailUser: "pages.settings.form.email.option.user.label",
|
||||||
|
systemEmailPassword: "pages.settings.form.email.option.password.label",
|
||||||
|
systemEmailTLSServername: "pages.settings.form.email.option.tlsServername.label",
|
||||||
|
systemEmailConnectionHost: "pages.settings.form.email.option.connectionHost.label",
|
||||||
|
systemEmailSecure: "pages.settings.form.email.option.secure.label",
|
||||||
|
systemEmailPool: "pages.settings.form.email.option.pool.label",
|
||||||
|
systemEmailIgnoreTLS: "pages.settings.form.email.option.ignoreTLS.label",
|
||||||
|
systemEmailRequireTLS: "pages.settings.form.email.option.requireTLS.label",
|
||||||
|
systemEmailRejectUnauthorized:
|
||||||
|
"pages.settings.form.email.option.rejectUnauthorized.label",
|
||||||
|
};
|
||||||
|
|
||||||
|
type FieldErrorLeaf = { path: string; message?: string };
|
||||||
|
|
||||||
|
const flattenFieldErrors = (errors: unknown, prefix = ""): FieldErrorLeaf[] => {
|
||||||
|
if (typeof errors !== "object" || errors === null) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
return Object.entries(errors).flatMap(([key, value]) => {
|
||||||
|
if (key === "ref") {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
const path = prefix ? `${prefix}.${key}` : key;
|
||||||
|
if (typeof value !== "object" || value === null) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
const message = (value as { message?: unknown }).message;
|
||||||
|
if (typeof message === "string") {
|
||||||
|
return [{ path, message }];
|
||||||
|
}
|
||||||
|
const nested = flattenFieldErrors(value, path);
|
||||||
|
return nested.length > 0 ? nested : [{ path }];
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
export const SettingsPage = () => {
|
export const SettingsPage = () => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
@@ -53,6 +127,42 @@ export const SettingsPage = () => {
|
|||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
const isAdmin = useIsAdmin();
|
const isAdmin = useIsAdmin();
|
||||||
const { toastError } = useToast();
|
const { toastError } = useToast();
|
||||||
|
const [searchParams, setSearchParams] = useSearchParams();
|
||||||
|
|
||||||
|
const visibleTabs = useMemo(
|
||||||
|
() => SETTINGS_TABS.filter((tab) => !("adminOnly" in tab) || isAdmin),
|
||||||
|
[isAdmin]
|
||||||
|
);
|
||||||
|
|
||||||
|
const requestedTab = searchParams.get("tab");
|
||||||
|
const firstVisibleTab: SettingsTabKey = visibleTabs[0]?.key ?? SETTINGS_TABS[0].key;
|
||||||
|
const activeTab: SettingsTabKey =
|
||||||
|
visibleTabs.find((tab) => tab.key === requestedTab)?.key ?? firstVisibleTab;
|
||||||
|
|
||||||
|
const handleTabChange = (tab: SettingsTabKey) => {
|
||||||
|
const updated = new URLSearchParams(searchParams);
|
||||||
|
if (tab === firstVisibleTab) {
|
||||||
|
updated.delete("tab");
|
||||||
|
} else {
|
||||||
|
updated.set("tab", tab);
|
||||||
|
}
|
||||||
|
setSearchParams(updated, { replace: true });
|
||||||
|
};
|
||||||
|
|
||||||
|
// Drop a "tab" param that does not resolve to a rendered tab, or that names
|
||||||
|
// the first tab, which is addressed with no param at all.
|
||||||
|
useEffect(() => {
|
||||||
|
if (requestedTab === null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (requestedTab === activeTab && activeTab !== firstVisibleTab) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const updated = new URLSearchParams(searchParams);
|
||||||
|
updated.delete("tab");
|
||||||
|
setSearchParams(updated, { replace: true });
|
||||||
|
}, [requestedTab, activeTab, firstVisibleTab, searchParams, setSearchParams]);
|
||||||
|
|
||||||
// Local state for demo monitors dialog
|
// Local state for demo monitors dialog
|
||||||
const [isDemoMonitorsDialogOpen, setIsDemoMonitorsDialogOpen] = useState(false);
|
const [isDemoMonitorsDialogOpen, setIsDemoMonitorsDialogOpen] = useState(false);
|
||||||
const { post: postDemoMonitors, loading: isPostingDemoMonitors } = usePost();
|
const { post: postDemoMonitors, loading: isPostingDemoMonitors } = usePost();
|
||||||
@@ -300,6 +410,13 @@ export const SettingsPage = () => {
|
|||||||
logger.debug("Form validation errors", errors);
|
logger.debug("Form validation errors", errors);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const revealField = (field: string) => {
|
||||||
|
const target = tabForField(field);
|
||||||
|
if (visibleTabs.some((tab) => tab.key === target)) {
|
||||||
|
handleTabChange(target);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
const languages = Object.keys(i18n.options.resources || {});
|
const languages = Object.keys(i18n.options.resources || {});
|
||||||
|
|
||||||
const globalProxyEnabled = watch("globalProxyEnabled");
|
const globalProxyEnabled = watch("globalProxyEnabled");
|
||||||
@@ -324,6 +441,23 @@ export const SettingsPage = () => {
|
|||||||
component="form"
|
component="form"
|
||||||
onSubmit={form.handleSubmit(onSubmit, onError)}
|
onSubmit={form.handleSubmit(onSubmit, onError)}
|
||||||
>
|
>
|
||||||
|
{visibleTabs.length > 1 && (
|
||||||
|
<Tabs
|
||||||
|
value={activeTab}
|
||||||
|
onChange={(_, value: SettingsTabKey) => handleTabChange(value)}
|
||||||
|
>
|
||||||
|
{visibleTabs.map((tab) => (
|
||||||
|
<Tab
|
||||||
|
key={tab.key}
|
||||||
|
value={tab.key}
|
||||||
|
label={t(tab.labelKey)}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</Tabs>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{/* general tab */}
|
||||||
|
{activeTab === "general" && (
|
||||||
<Stack gap={theme.spacing(LAYOUT.MD)}>
|
<Stack gap={theme.spacing(LAYOUT.MD)}>
|
||||||
<ConfigBox
|
<ConfigBox
|
||||||
title={t("pages.settings.form.timezone.title")}
|
title={t("pages.settings.form.timezone.title")}
|
||||||
@@ -390,74 +524,6 @@ export const SettingsPage = () => {
|
|||||||
</Stack>
|
</Stack>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
{isAdmin && (
|
|
||||||
<ConfigBox
|
|
||||||
title={t("pages.settings.form.globalProxy.title")}
|
|
||||||
subtitle={t("pages.settings.form.globalProxy.description")}
|
|
||||||
rightContent={
|
|
||||||
proxyOptions.length > 0 ? (
|
|
||||||
<Stack>
|
|
||||||
<FormSwitchField
|
|
||||||
name="globalProxyEnabled"
|
|
||||||
labelPlacement="start"
|
|
||||||
label={t("pages.settings.form.globalProxy.option.enabled.label")}
|
|
||||||
/>
|
|
||||||
{globalProxyEnabled && (
|
|
||||||
<FormSelectField
|
|
||||||
fieldLabel={t(
|
|
||||||
"pages.settings.form.globalProxy.option.proxy.label"
|
|
||||||
)}
|
|
||||||
name="globalProxyId"
|
|
||||||
options={proxyOptions}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</Stack>
|
|
||||||
) : (
|
|
||||||
<TextLink
|
|
||||||
text={t("pages.settings.form.globalProxy.option.empty.text")}
|
|
||||||
linkText={t("pages.settings.form.globalProxy.option.empty.link")}
|
|
||||||
href="/proxies"
|
|
||||||
/>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
{isAdmin && (
|
|
||||||
<ConfigBox
|
|
||||||
title={t("pages.settings.form.pagespeed.title")}
|
|
||||||
subtitle={t("pages.settings.form.pagespeed.description")}
|
|
||||||
rightContent={
|
|
||||||
<>
|
|
||||||
{(isApiKeySet === false || apiKeyHasBeenReset === true) && (
|
|
||||||
<FormTextField
|
|
||||||
name="pagespeedApiKey"
|
|
||||||
type="password"
|
|
||||||
fieldLabel={t("pages.settings.form.pagespeed.option.apiKey.label")}
|
|
||||||
placeholder={t(
|
|
||||||
"pages.settings.form.pagespeed.option.apiKey.placeholder"
|
|
||||||
)}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{isApiKeySet === true && apiKeyHasBeenReset === false && (
|
|
||||||
<Box>
|
|
||||||
<FieldLabel>
|
|
||||||
{t("pages.settings.form.pagespeed.option.apiKey.labelSet")}
|
|
||||||
</FieldLabel>
|
|
||||||
<Button
|
|
||||||
onClick={handleResetApiKey}
|
|
||||||
variant="contained"
|
|
||||||
color="error"
|
|
||||||
>
|
|
||||||
{t("common.buttons.reset")}
|
|
||||||
</Button>
|
|
||||||
</Box>
|
|
||||||
)}
|
|
||||||
</>
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{/* URL Settings */}
|
{/* URL Settings */}
|
||||||
<ConfigBox
|
<ConfigBox
|
||||||
title={t("pages.settings.form.url.title")}
|
title={t("pages.settings.form.url.title")}
|
||||||
@@ -470,51 +536,37 @@ export const SettingsPage = () => {
|
|||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
{/* About */}
|
||||||
{/* Clear All Stats */}
|
|
||||||
{isAdmin && (
|
|
||||||
<ConfigBox
|
<ConfigBox
|
||||||
title={t("pages.settings.form.stats.title")}
|
title={t("pages.settings.form.about.title")}
|
||||||
subtitle={t("pages.settings.form.stats.description")}
|
subtitle=""
|
||||||
rightContent={
|
rightContent={
|
||||||
<Button
|
<Stack spacing={2}>
|
||||||
variant="contained"
|
<Typography variant="body1">
|
||||||
color="error"
|
{t("common.appName")} {__APP_VERSION__}
|
||||||
onClick={() => setIsStatsDialogOpen(true)}
|
</Typography>
|
||||||
|
<Typography
|
||||||
|
variant="body2"
|
||||||
|
sx={{ opacity: 0.6 }}
|
||||||
>
|
>
|
||||||
{t("common.buttons.clear")}
|
{t("pages.settings.form.about.developedBy")}
|
||||||
</Button>
|
</Typography>
|
||||||
}
|
<Link
|
||||||
/>
|
href="https://github.com/bluewave-labs/checkmate"
|
||||||
)}
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
{/* Check Retention */}
|
>
|
||||||
{isAdmin && (
|
https://github.com/bluewave-labs/checkmate
|
||||||
<ConfigBox
|
</Link>
|
||||||
title={t("pages.settings.form.retention.title")}
|
</Stack>
|
||||||
subtitle={t("pages.settings.form.retention.description")}
|
|
||||||
rightContent={
|
|
||||||
<FormSliderField
|
|
||||||
name="checkTTL"
|
|
||||||
fieldLabel={t("pages.settings.form.retention.option.days.label")}
|
|
||||||
min={1}
|
|
||||||
max={CHECK_TTL_SENTINEL}
|
|
||||||
valueLabelDisplay="auto"
|
|
||||||
valueLabelFormat={(value: number) =>
|
|
||||||
value >= CHECK_TTL_SENTINEL
|
|
||||||
? t("pages.settings.form.retention.option.days.unlimited")
|
|
||||||
: `${value}`
|
|
||||||
}
|
|
||||||
formatDisplayValue={(value: number) =>
|
|
||||||
value >= CHECK_TTL_SENTINEL
|
|
||||||
? t("pages.settings.form.retention.option.days.unlimited")
|
|
||||||
: `${value}`
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
</Stack>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
{/* monitoring tab */}
|
||||||
|
{activeTab === "monitoring" && (
|
||||||
|
<Stack gap={theme.spacing(LAYOUT.MD)}>
|
||||||
{/* Global Thresholds */}
|
{/* Global Thresholds */}
|
||||||
{isAdmin && (
|
{isAdmin && (
|
||||||
<ConfigBox
|
<ConfigBox
|
||||||
@@ -557,8 +609,59 @@ export const SettingsPage = () => {
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Stack>
|
{/* Check Retention */}
|
||||||
|
{isAdmin && (
|
||||||
|
<ConfigBox
|
||||||
|
title={t("pages.settings.form.retention.title")}
|
||||||
|
subtitle={t("pages.settings.form.retention.description")}
|
||||||
|
rightContent={
|
||||||
|
<FormSliderField
|
||||||
|
name="checkTTL"
|
||||||
|
fieldLabel={t("pages.settings.form.retention.option.days.label")}
|
||||||
|
min={1}
|
||||||
|
max={CHECK_TTL_SENTINEL}
|
||||||
|
valueLabelDisplay="auto"
|
||||||
|
valueLabelFormat={(value: number) =>
|
||||||
|
value >= CHECK_TTL_SENTINEL
|
||||||
|
? t("pages.settings.form.retention.option.days.unlimited")
|
||||||
|
: `${value}`
|
||||||
|
}
|
||||||
|
formatDisplayValue={(value: number) =>
|
||||||
|
value >= CHECK_TTL_SENTINEL
|
||||||
|
? t("pages.settings.form.retention.option.days.unlimited")
|
||||||
|
: `${value}`
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{/* Demo Monitors - Admin Only */}
|
||||||
|
{isAdmin && (
|
||||||
|
<ConfigBox
|
||||||
|
title={t("pages.settings.form.demoMonitors.title")}
|
||||||
|
subtitle={t("pages.settings.form.demoMonitors.description")}
|
||||||
|
rightContent={
|
||||||
|
<Box>
|
||||||
|
<Button
|
||||||
|
variant="contained"
|
||||||
|
loading={isPostingDemoMonitors}
|
||||||
|
onClick={async () => {
|
||||||
|
await postDemoMonitors("/monitors/demo", {});
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{t("common.buttons.addDemo")}
|
||||||
|
</Button>
|
||||||
|
</Box>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</Stack>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{/* email tab */}
|
||||||
|
{activeTab === "email" && (
|
||||||
|
<Stack gap={theme.spacing(LAYOUT.MD)}>
|
||||||
{/* Email Settings - Admin Only */}
|
{/* Email Settings - Admin Only */}
|
||||||
{isAdmin && (
|
{isAdmin && (
|
||||||
<ConfigBox
|
<ConfigBox
|
||||||
@@ -598,14 +701,18 @@ export const SettingsPage = () => {
|
|||||||
pass: "<your_password>",
|
pass: "<your_password>",
|
||||||
},
|
},
|
||||||
name:
|
name:
|
||||||
form.watch("systemEmailConnectionHost") || "localhost",
|
form.watch("systemEmailConnectionHost") ||
|
||||||
|
"localhost",
|
||||||
pool: form.watch("systemEmailPool") ?? false,
|
pool: form.watch("systemEmailPool") ?? false,
|
||||||
tls: {
|
tls: {
|
||||||
rejectUnauthorized:
|
rejectUnauthorized:
|
||||||
form.watch("systemEmailRejectUnauthorized") ?? true,
|
form.watch("systemEmailRejectUnauthorized") ?? true,
|
||||||
ignoreTLS: form.watch("systemEmailIgnoreTLS") ?? false,
|
ignoreTLS:
|
||||||
requireTLS: form.watch("systemEmailRequireTLS") ?? false,
|
form.watch("systemEmailIgnoreTLS") ?? false,
|
||||||
servername: form.watch("systemEmailTLSServername") || "",
|
requireTLS:
|
||||||
|
form.watch("systemEmailRequireTLS") ?? false,
|
||||||
|
servername:
|
||||||
|
form.watch("systemEmailTLSServername") || "",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
null,
|
null,
|
||||||
@@ -655,7 +762,9 @@ export const SettingsPage = () => {
|
|||||||
name="systemEmailAddress"
|
name="systemEmailAddress"
|
||||||
type="email"
|
type="email"
|
||||||
fieldLabel={t("pages.settings.form.email.option.address.label")}
|
fieldLabel={t("pages.settings.form.email.option.address.label")}
|
||||||
placeholder={t("pages.settings.form.email.option.address.placeholder")}
|
placeholder={t(
|
||||||
|
"pages.settings.form.email.option.address.placeholder"
|
||||||
|
)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* Email Display Name (Optional) */}
|
{/* Email Display Name (Optional) */}
|
||||||
@@ -709,7 +818,9 @@ export const SettingsPage = () => {
|
|||||||
{/* TLS Servername (Optional) */}
|
{/* TLS Servername (Optional) */}
|
||||||
<FormTextField
|
<FormTextField
|
||||||
name="systemEmailTLSServername"
|
name="systemEmailTLSServername"
|
||||||
fieldLabel={t("pages.settings.form.email.option.tlsServername.label")}
|
fieldLabel={t(
|
||||||
|
"pages.settings.form.email.option.tlsServername.label"
|
||||||
|
)}
|
||||||
placeholder={t(
|
placeholder={t(
|
||||||
"pages.settings.form.email.option.tlsServername.placeholder"
|
"pages.settings.form.email.option.tlsServername.placeholder"
|
||||||
)}
|
)}
|
||||||
@@ -718,7 +829,9 @@ export const SettingsPage = () => {
|
|||||||
{/* Connection Host (Optional) */}
|
{/* Connection Host (Optional) */}
|
||||||
<FormTextField
|
<FormTextField
|
||||||
name="systemEmailConnectionHost"
|
name="systemEmailConnectionHost"
|
||||||
fieldLabel={t("pages.settings.form.email.option.connectionHost.label")}
|
fieldLabel={t(
|
||||||
|
"pages.settings.form.email.option.connectionHost.label"
|
||||||
|
)}
|
||||||
placeholder={t(
|
placeholder={t(
|
||||||
"pages.settings.form.email.option.connectionHost.placeholder"
|
"pages.settings.form.email.option.connectionHost.placeholder"
|
||||||
)}
|
)}
|
||||||
@@ -760,24 +873,136 @@ export const SettingsPage = () => {
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
</Stack>
|
||||||
|
)}
|
||||||
|
|
||||||
{/* Demo Monitors - Admin Only */}
|
{/* integrations tab */}
|
||||||
|
{activeTab === "integrations" && (
|
||||||
|
<Stack gap={theme.spacing(LAYOUT.MD)}>
|
||||||
{isAdmin && (
|
{isAdmin && (
|
||||||
<ConfigBox
|
<ConfigBox
|
||||||
title={t("pages.settings.form.demoMonitors.title")}
|
title={t("pages.settings.form.globalProxy.title")}
|
||||||
subtitle={t("pages.settings.form.demoMonitors.description")}
|
subtitle={t("pages.settings.form.globalProxy.description")}
|
||||||
rightContent={
|
rightContent={
|
||||||
|
proxyOptions.length > 0 ? (
|
||||||
|
<Stack>
|
||||||
|
<FormSwitchField
|
||||||
|
name="globalProxyEnabled"
|
||||||
|
labelPlacement="start"
|
||||||
|
label={t("pages.settings.form.globalProxy.option.enabled.label")}
|
||||||
|
/>
|
||||||
|
{globalProxyEnabled && (
|
||||||
|
<FormSelectField
|
||||||
|
fieldLabel={t(
|
||||||
|
"pages.settings.form.globalProxy.option.proxy.label"
|
||||||
|
)}
|
||||||
|
name="globalProxyId"
|
||||||
|
options={proxyOptions}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</Stack>
|
||||||
|
) : (
|
||||||
|
<TextLink
|
||||||
|
text={t("pages.settings.form.globalProxy.option.empty.text")}
|
||||||
|
linkText={t("pages.settings.form.globalProxy.option.empty.link")}
|
||||||
|
href="/proxies"
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
{isAdmin && (
|
||||||
|
<ConfigBox
|
||||||
|
title={t("pages.settings.form.pagespeed.title")}
|
||||||
|
subtitle={t("pages.settings.form.pagespeed.description")}
|
||||||
|
rightContent={
|
||||||
|
<>
|
||||||
|
{(isApiKeySet === false || apiKeyHasBeenReset === true) && (
|
||||||
|
<FormTextField
|
||||||
|
name="pagespeedApiKey"
|
||||||
|
type="password"
|
||||||
|
fieldLabel={t(
|
||||||
|
"pages.settings.form.pagespeed.option.apiKey.label"
|
||||||
|
)}
|
||||||
|
placeholder={t(
|
||||||
|
"pages.settings.form.pagespeed.option.apiKey.placeholder"
|
||||||
|
)}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{isApiKeySet === true && apiKeyHasBeenReset === false && (
|
||||||
<Box>
|
<Box>
|
||||||
|
<FieldLabel>
|
||||||
|
{t("pages.settings.form.pagespeed.option.apiKey.labelSet")}
|
||||||
|
</FieldLabel>
|
||||||
<Button
|
<Button
|
||||||
|
onClick={handleResetApiKey}
|
||||||
variant="contained"
|
variant="contained"
|
||||||
loading={isPostingDemoMonitors}
|
color="error"
|
||||||
onClick={async () => {
|
|
||||||
await postDemoMonitors("/monitors/demo", {});
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
{t("common.buttons.addDemo")}
|
{t("common.buttons.reset")}
|
||||||
</Button>
|
</Button>
|
||||||
</Box>
|
</Box>
|
||||||
|
)}
|
||||||
|
</>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</Stack>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{/* data tab */}
|
||||||
|
{activeTab === "data" && (
|
||||||
|
<Stack gap={theme.spacing(LAYOUT.MD)}>
|
||||||
|
{/* Export Monitors - Admin Only */}
|
||||||
|
{isAdmin && (
|
||||||
|
<ConfigBox
|
||||||
|
title={t("pages.settings.form.importExportMonitors.title")}
|
||||||
|
subtitle={t("pages.settings.form.importExportMonitors.description")}
|
||||||
|
rightContent={
|
||||||
|
<Stack
|
||||||
|
gap={theme.spacing(LAYOUT.MD)}
|
||||||
|
direction={"row"}
|
||||||
|
>
|
||||||
|
<input
|
||||||
|
id="monitor-import-input"
|
||||||
|
type="file"
|
||||||
|
accept=".json"
|
||||||
|
style={{ display: "none" }}
|
||||||
|
onChange={handleFileSelect}
|
||||||
|
/>
|
||||||
|
<Button
|
||||||
|
variant="contained"
|
||||||
|
onClick={() =>
|
||||||
|
document.getElementById("monitor-import-input")?.click()
|
||||||
|
}
|
||||||
|
disabled={isImportingMonitors}
|
||||||
|
>
|
||||||
|
{t("common.buttons.importFromJSON")}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
variant="contained"
|
||||||
|
onClick={handleExportMonitors}
|
||||||
|
>
|
||||||
|
{t("common.buttons.exportToJSON")}
|
||||||
|
</Button>
|
||||||
|
</Stack>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
{/* Clear All Stats */}
|
||||||
|
{isAdmin && (
|
||||||
|
<ConfigBox
|
||||||
|
title={t("pages.settings.form.stats.title")}
|
||||||
|
subtitle={t("pages.settings.form.stats.description")}
|
||||||
|
rightContent={
|
||||||
|
<Button
|
||||||
|
variant="contained"
|
||||||
|
color="error"
|
||||||
|
onClick={() => setIsStatsDialogOpen(true)}
|
||||||
|
>
|
||||||
|
{t("common.buttons.clear")}
|
||||||
|
</Button>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
@@ -801,68 +1026,9 @@ export const SettingsPage = () => {
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Export Monitors - Admin Only */}
|
|
||||||
{isAdmin && (
|
|
||||||
<ConfigBox
|
|
||||||
title={t("pages.settings.form.importExportMonitors.title")}
|
|
||||||
subtitle={t("pages.settings.form.importExportMonitors.description")}
|
|
||||||
rightContent={
|
|
||||||
<Stack
|
|
||||||
gap={theme.spacing(LAYOUT.MD)}
|
|
||||||
direction={"row"}
|
|
||||||
>
|
|
||||||
<input
|
|
||||||
id="monitor-import-input"
|
|
||||||
type="file"
|
|
||||||
accept=".json"
|
|
||||||
style={{ display: "none" }}
|
|
||||||
onChange={handleFileSelect}
|
|
||||||
/>
|
|
||||||
<Button
|
|
||||||
variant="contained"
|
|
||||||
onClick={() => document.getElementById("monitor-import-input")?.click()}
|
|
||||||
disabled={isImportingMonitors}
|
|
||||||
>
|
|
||||||
{t("common.buttons.importFromJSON")}
|
|
||||||
</Button>
|
|
||||||
<Button
|
|
||||||
variant="contained"
|
|
||||||
onClick={handleExportMonitors}
|
|
||||||
>
|
|
||||||
{t("common.buttons.exportToJSON")}
|
|
||||||
</Button>
|
|
||||||
</Stack>
|
</Stack>
|
||||||
}
|
|
||||||
/>
|
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* About */}
|
|
||||||
<ConfigBox
|
|
||||||
title={t("pages.settings.form.about.title")}
|
|
||||||
subtitle=""
|
|
||||||
rightContent={
|
|
||||||
<Stack spacing={2}>
|
|
||||||
<Typography variant="body1">
|
|
||||||
{t("common.appName")} {__APP_VERSION__}
|
|
||||||
</Typography>
|
|
||||||
<Typography
|
|
||||||
variant="body2"
|
|
||||||
sx={{ opacity: 0.6 }}
|
|
||||||
>
|
|
||||||
{t("pages.settings.form.about.developedBy")}
|
|
||||||
</Typography>
|
|
||||||
<Link
|
|
||||||
href="https://github.com/bluewave-labs/checkmate"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
>
|
|
||||||
https://github.com/bluewave-labs/checkmate
|
|
||||||
</Link>
|
|
||||||
</Stack>
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
|
|
||||||
{/* Clear Stats Confirmation Dialog */}
|
{/* Clear Stats Confirmation Dialog */}
|
||||||
<Dialog
|
<Dialog
|
||||||
open={isStatsDialogOpen}
|
open={isStatsDialogOpen}
|
||||||
@@ -895,6 +1061,8 @@ export const SettingsPage = () => {
|
|||||||
<Stack
|
<Stack
|
||||||
direction="row"
|
direction="row"
|
||||||
justifyContent="flex-end"
|
justifyContent="flex-end"
|
||||||
|
alignItems="center"
|
||||||
|
gap={theme.spacing(LAYOUT.MD)}
|
||||||
sx={{
|
sx={{
|
||||||
position: "sticky",
|
position: "sticky",
|
||||||
bottom: 0,
|
bottom: 0,
|
||||||
@@ -904,10 +1072,7 @@ export const SettingsPage = () => {
|
|||||||
>
|
>
|
||||||
{/* Validation Error Display */}
|
{/* Validation Error Display */}
|
||||||
{Object.keys(form.formState.errors).length > 0 && (
|
{Object.keys(form.formState.errors).length > 0 && (
|
||||||
<Alert
|
<Alert severity="error">
|
||||||
severity="error"
|
|
||||||
sx={{ mb: 2, flexGrow: 1, mr: 2 }}
|
|
||||||
>
|
|
||||||
<Typography
|
<Typography
|
||||||
variant="body2"
|
variant="body2"
|
||||||
sx={{ fontWeight: 600, mb: 1 }}
|
sx={{ fontWeight: 600, mb: 1 }}
|
||||||
@@ -918,15 +1083,23 @@ export const SettingsPage = () => {
|
|||||||
component="ul"
|
component="ul"
|
||||||
sx={{ m: 0, pl: 2 }}
|
sx={{ m: 0, pl: 2 }}
|
||||||
>
|
>
|
||||||
{Object.entries(form.formState.errors).map(([field, error]) => {
|
{flattenFieldErrors(form.formState.errors).map(({ path, message }) => {
|
||||||
const message =
|
const labelKey = FIELD_LABEL_KEY[path];
|
||||||
typeof error === "object" && error?.message
|
// Labels read "Name - explanation"; keep the name.
|
||||||
? error.message
|
const label = labelKey ? t(labelKey).split(" - ")[0] : path;
|
||||||
: "Invalid value";
|
|
||||||
return (
|
return (
|
||||||
<li key={field}>
|
<li key={path}>
|
||||||
<Typography variant="body2">
|
<Typography variant="body2">
|
||||||
<strong>{field}:</strong> {message}
|
<Link
|
||||||
|
component="button"
|
||||||
|
type="button"
|
||||||
|
variant="body2"
|
||||||
|
color={theme.palette.error.main}
|
||||||
|
onClick={() => revealField(path)}
|
||||||
|
>
|
||||||
|
<strong>{label}</strong>
|
||||||
|
</Link>
|
||||||
|
{message ? `: ${message}` : ""}
|
||||||
</Typography>
|
</Typography>
|
||||||
</li>
|
</li>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1147,6 +1147,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
"tabs": {
|
||||||
|
"general": "عام",
|
||||||
|
"monitoring": "المراقبة",
|
||||||
|
"email": "البريد الإلكتروني",
|
||||||
|
"integrations": "التكاملات",
|
||||||
|
"data": "البيانات"
|
||||||
|
},
|
||||||
"form": {
|
"form": {
|
||||||
"timezone": {
|
"timezone": {
|
||||||
"title": "المنطقة الزمنية للعرض",
|
"title": "المنطقة الزمنية للعرض",
|
||||||
|
|||||||
@@ -1147,6 +1147,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
"tabs": {
|
||||||
|
"general": "General",
|
||||||
|
"monitoring": "Monitoratge",
|
||||||
|
"email": "Correu electrònic",
|
||||||
|
"integrations": "Integracions",
|
||||||
|
"data": "Dades"
|
||||||
|
},
|
||||||
"form": {
|
"form": {
|
||||||
"timezone": {
|
"timezone": {
|
||||||
"title": "Zona horària de visualització",
|
"title": "Zona horària de visualització",
|
||||||
|
|||||||
@@ -1147,6 +1147,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
"tabs": {
|
||||||
|
"general": "Obecné",
|
||||||
|
"monitoring": "Monitorování",
|
||||||
|
"email": "E-mail",
|
||||||
|
"integrations": "Integrace",
|
||||||
|
"data": "Data"
|
||||||
|
},
|
||||||
"form": {
|
"form": {
|
||||||
"timezone": {
|
"timezone": {
|
||||||
"title": "Zobrazované časové pásmo",
|
"title": "Zobrazované časové pásmo",
|
||||||
|
|||||||
@@ -1147,6 +1147,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
"tabs": {
|
||||||
|
"general": "Allgemein",
|
||||||
|
"monitoring": "Überwachung",
|
||||||
|
"email": "E-Mail",
|
||||||
|
"integrations": "Integrationen",
|
||||||
|
"data": "Daten"
|
||||||
|
},
|
||||||
"form": {
|
"form": {
|
||||||
"timezone": {
|
"timezone": {
|
||||||
"title": "Anzeigesprache Zeitzone",
|
"title": "Anzeigesprache Zeitzone",
|
||||||
|
|||||||
@@ -1339,6 +1339,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
"tabs": {
|
||||||
|
"general": "General",
|
||||||
|
"monitoring": "Monitoring",
|
||||||
|
"email": "Email",
|
||||||
|
"integrations": "Integrations",
|
||||||
|
"data": "Data"
|
||||||
|
},
|
||||||
"form": {
|
"form": {
|
||||||
"timezone": {
|
"timezone": {
|
||||||
"title": "Display timezone",
|
"title": "Display timezone",
|
||||||
@@ -1396,7 +1403,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"url": {
|
"url": {
|
||||||
"title": "Monitor IP/URL on Status Page",
|
"title": "Monitor IP/URL on status page",
|
||||||
"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.",
|
"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.",
|
||||||
"option": {
|
"option": {
|
||||||
"showURL": {
|
"showURL": {
|
||||||
@@ -1428,7 +1435,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"thresholds": {
|
"thresholds": {
|
||||||
"title": "Global Thresholds",
|
"title": "Global thresholds",
|
||||||
"description": "Set global CPU, Memory, Disk, and Temperature thresholds for infrastructure monitoring. These apply to all hardware monitors unless overridden.",
|
"description": "Set global CPU, Memory, Disk, and Temperature thresholds for infrastructure monitoring. These apply to all hardware monitors unless overridden.",
|
||||||
"option": {
|
"option": {
|
||||||
"cpu": {
|
"cpu": {
|
||||||
|
|||||||
@@ -1147,6 +1147,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
"tabs": {
|
||||||
|
"general": "General",
|
||||||
|
"monitoring": "Monitorización",
|
||||||
|
"email": "Correo electrónico",
|
||||||
|
"integrations": "Integraciones",
|
||||||
|
"data": "Datos"
|
||||||
|
},
|
||||||
"form": {
|
"form": {
|
||||||
"timezone": {
|
"timezone": {
|
||||||
"title": "Zona horaria de visualización",
|
"title": "Zona horaria de visualización",
|
||||||
|
|||||||
@@ -1147,6 +1147,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
"tabs": {
|
||||||
|
"general": "Yleiset",
|
||||||
|
"monitoring": "Valvonta",
|
||||||
|
"email": "Sähköposti",
|
||||||
|
"integrations": "Integraatiot",
|
||||||
|
"data": "Tiedot"
|
||||||
|
},
|
||||||
"form": {
|
"form": {
|
||||||
"timezone": {
|
"timezone": {
|
||||||
"title": "Näytettävä aikavyöhyke",
|
"title": "Näytettävä aikavyöhyke",
|
||||||
|
|||||||
@@ -1147,6 +1147,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
"tabs": {
|
||||||
|
"general": "Général",
|
||||||
|
"monitoring": "Surveillance",
|
||||||
|
"email": "E-mail",
|
||||||
|
"integrations": "Intégrations",
|
||||||
|
"data": "Données"
|
||||||
|
},
|
||||||
"form": {
|
"form": {
|
||||||
"timezone": {
|
"timezone": {
|
||||||
"title": "Fuseau horaire d'affichage",
|
"title": "Fuseau horaire d'affichage",
|
||||||
|
|||||||
@@ -1243,6 +1243,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
"tabs": {
|
||||||
|
"general": "Generale",
|
||||||
|
"monitoring": "Monitoraggio",
|
||||||
|
"email": "Email",
|
||||||
|
"integrations": "Integrazioni",
|
||||||
|
"data": "Dati"
|
||||||
|
},
|
||||||
"form": {
|
"form": {
|
||||||
"timezone": {
|
"timezone": {
|
||||||
"title": "Fuso orario di visualizzazione",
|
"title": "Fuso orario di visualizzazione",
|
||||||
|
|||||||
@@ -1147,6 +1147,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
"tabs": {
|
||||||
|
"general": "一般",
|
||||||
|
"monitoring": "監視",
|
||||||
|
"email": "メール",
|
||||||
|
"integrations": "連携",
|
||||||
|
"data": "データ"
|
||||||
|
},
|
||||||
"form": {
|
"form": {
|
||||||
"timezone": {
|
"timezone": {
|
||||||
"title": "表示タイムゾーン",
|
"title": "表示タイムゾーン",
|
||||||
|
|||||||
@@ -1213,6 +1213,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
"tabs": {
|
||||||
|
"general": "Ogólne",
|
||||||
|
"monitoring": "Monitorowanie",
|
||||||
|
"email": "E-mail",
|
||||||
|
"integrations": "Integracje",
|
||||||
|
"data": "Dane"
|
||||||
|
},
|
||||||
"form": {
|
"form": {
|
||||||
"about": {
|
"about": {
|
||||||
"developedBy": "Opracowane przez Bluewave Labs",
|
"developedBy": "Opracowane przez Bluewave Labs",
|
||||||
|
|||||||
@@ -1147,6 +1147,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
"tabs": {
|
||||||
|
"general": "Geral",
|
||||||
|
"monitoring": "Monitoramento",
|
||||||
|
"email": "E-mail",
|
||||||
|
"integrations": "Integrações",
|
||||||
|
"data": "Dados"
|
||||||
|
},
|
||||||
"form": {
|
"form": {
|
||||||
"timezone": {
|
"timezone": {
|
||||||
"title": "Fuso horário de exibição",
|
"title": "Fuso horário de exibição",
|
||||||
|
|||||||
@@ -1147,6 +1147,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
"tabs": {
|
||||||
|
"general": "Общие",
|
||||||
|
"monitoring": "Мониторинг",
|
||||||
|
"email": "Электронная почта",
|
||||||
|
"integrations": "Интеграции",
|
||||||
|
"data": "Данные"
|
||||||
|
},
|
||||||
"form": {
|
"form": {
|
||||||
"timezone": {
|
"timezone": {
|
||||||
"title": "Часовой пояс отображения",
|
"title": "Часовой пояс отображения",
|
||||||
|
|||||||
@@ -1147,6 +1147,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
"tabs": {
|
||||||
|
"general": "ทั่วไป",
|
||||||
|
"monitoring": "การตรวจสอบ",
|
||||||
|
"email": "อีเมล",
|
||||||
|
"integrations": "การเชื่อมต่อ",
|
||||||
|
"data": "ข้อมูล"
|
||||||
|
},
|
||||||
"form": {
|
"form": {
|
||||||
"timezone": {
|
"timezone": {
|
||||||
"title": "เขตเวลาที่แสดง",
|
"title": "เขตเวลาที่แสดง",
|
||||||
|
|||||||
@@ -1147,6 +1147,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
"tabs": {
|
||||||
|
"general": "Genel",
|
||||||
|
"monitoring": "İzleme",
|
||||||
|
"email": "E-posta",
|
||||||
|
"integrations": "Entegrasyonlar",
|
||||||
|
"data": "Veri"
|
||||||
|
},
|
||||||
"form": {
|
"form": {
|
||||||
"timezone": {
|
"timezone": {
|
||||||
"title": "Görüntüleme saat dilimi",
|
"title": "Görüntüleme saat dilimi",
|
||||||
|
|||||||
@@ -1147,6 +1147,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
"tabs": {
|
||||||
|
"general": "Загальні",
|
||||||
|
"monitoring": "Моніторинг",
|
||||||
|
"email": "Електронна пошта",
|
||||||
|
"integrations": "Інтеграції",
|
||||||
|
"data": "Дані"
|
||||||
|
},
|
||||||
"form": {
|
"form": {
|
||||||
"timezone": {
|
"timezone": {
|
||||||
"title": "Часовий пояс відображення",
|
"title": "Часовий пояс відображення",
|
||||||
|
|||||||
@@ -1147,6 +1147,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
"tabs": {
|
||||||
|
"general": "Chung",
|
||||||
|
"monitoring": "Giám sát",
|
||||||
|
"email": "Email",
|
||||||
|
"integrations": "Tích hợp",
|
||||||
|
"data": "Dữ liệu"
|
||||||
|
},
|
||||||
"form": {
|
"form": {
|
||||||
"timezone": {
|
"timezone": {
|
||||||
"title": "Múi giờ hiển thị",
|
"title": "Múi giờ hiển thị",
|
||||||
|
|||||||
@@ -1148,6 +1148,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
"tabs": {
|
||||||
|
"general": "常规",
|
||||||
|
"monitoring": "监控",
|
||||||
|
"email": "邮件",
|
||||||
|
"integrations": "集成",
|
||||||
|
"data": "数据"
|
||||||
|
},
|
||||||
"form": {
|
"form": {
|
||||||
"timezone": {
|
"timezone": {
|
||||||
"title": "显示时区",
|
"title": "显示时区",
|
||||||
|
|||||||
@@ -1147,6 +1147,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
"tabs": {
|
||||||
|
"general": "一般",
|
||||||
|
"monitoring": "監控",
|
||||||
|
"email": "郵件",
|
||||||
|
"integrations": "整合",
|
||||||
|
"data": "資料"
|
||||||
|
},
|
||||||
"form": {
|
"form": {
|
||||||
"timezone": {
|
"timezone": {
|
||||||
"title": "顯示時區",
|
"title": "顯示時區",
|
||||||
|
|||||||
Reference in new issue
Block a user