Ran npm start format
This commit is contained in:
1 parent
da7d9c02c8
commit
e04ac77ddd
3 files changed
+10
-10
No files matched your search
@@ -62,7 +62,6 @@ const Settings = () => {
|
|||||||
const [deleteAllMonitors, isDeletingMonitors] = useDeleteAllMonitors();
|
const [deleteAllMonitors, isDeletingMonitors] = useDeleteAllMonitors();
|
||||||
const [deleteMonitorStats, isDeletingMonitorStats] = useDeleteMonitorStats();
|
const [deleteMonitorStats, isDeletingMonitorStats] = useDeleteMonitorStats();
|
||||||
|
|
||||||
|
|
||||||
// Setup
|
// Setup
|
||||||
const isAdmin = useIsAdmin();
|
const isAdmin = useIsAdmin();
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
|
|||||||
@@ -302,15 +302,16 @@ const settingsValidation = joi.object({
|
|||||||
systemEmailIgnoreTLS: joi.boolean(),
|
systemEmailIgnoreTLS: joi.boolean(),
|
||||||
systemEmailRequireTLS: joi.boolean(),
|
systemEmailRequireTLS: joi.boolean(),
|
||||||
systemEmailRejectUnauthorized: joi.boolean(),
|
systemEmailRejectUnauthorized: joi.boolean(),
|
||||||
globalThresholds: joi.object({
|
globalThresholds: joi
|
||||||
cpu: joi.number().min(1).max(100).allow("").optional(),
|
.object({
|
||||||
memory: joi.number().min(1).max(100).allow("").optional(),
|
cpu: joi.number().min(1).max(100).allow("").optional(),
|
||||||
disk: joi.number().min(1).max(100).allow("").optional(),
|
memory: joi.number().min(1).max(100).allow("").optional(),
|
||||||
temperature: joi.number().min(1).max(150).allow("").optional(),
|
disk: joi.number().min(1).max(100).allow("").optional(),
|
||||||
}).optional(),
|
temperature: joi.number().min(1).max(150).allow("").optional(),
|
||||||
|
})
|
||||||
|
.optional(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
const dayjsValidator = (value, helpers) => {
|
const dayjsValidator = (value, helpers) => {
|
||||||
if (!dayjs(value).isValid()) {
|
if (!dayjs(value).isValid()) {
|
||||||
return helpers.error("any.invalid");
|
return helpers.error("any.invalid");
|
||||||
|
|||||||
@@ -838,8 +838,8 @@
|
|||||||
},
|
},
|
||||||
"title": "Settings",
|
"title": "Settings",
|
||||||
"globalThresholds": {
|
"globalThresholds": {
|
||||||
"title": "Global Thresholds",
|
"title": "Global Thresholds",
|
||||||
"description": "Configure global CPU, Memory, Disk, and Temperature thresholds. If a value is provided, it will automatically be enabled for monitoring."
|
"description": "Configure global CPU, Memory, Disk, and Temperature thresholds. If a value is provided, it will automatically be enabled for monitoring."
|
||||||
},
|
},
|
||||||
"uiSettings": {
|
"uiSettings": {
|
||||||
"description": "Switch between light and dark mode, or change user interface language.",
|
"description": "Switch between light and dark mode, or change user interface language.",
|
||||||
|
|||||||
Reference in new issue
Block a user