Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
05dd5f7de2 | ||
|
|
841251d09e | ||
|
|
a4dd8f70f0 | ||
|
|
9d0d1329b6 | ||
|
|
7a929777b4 | ||
|
|
ce3ec99c9f | ||
|
|
4f7847275e | ||
|
|
9a5ddb22b3 | ||
|
|
b1322cbec3 | ||
|
|
637bc84136 | ||
|
|
3147f02b6a | ||
|
|
dabff74946 | ||
|
|
de99577b9d | ||
|
|
1846432601 | ||
|
|
6f307dc822 | ||
|
|
f43210e29e | ||
|
|
50b9be4eca | ||
|
|
1a38222974 | ||
|
|
cb9cd0a43c | ||
|
|
75a2e0deee | ||
|
|
b857137f1a |
No files matched your search
@@ -1,5 +1,6 @@
|
|||||||
export const tooltipDateFormatLookup = (dateRange) => {
|
export const tooltipDateFormatLookup = (dateRange) => {
|
||||||
const dateFormatLookup = {
|
const dateFormatLookup = {
|
||||||
|
recent: "ddd. MMMM D, YYYY, hh:mm A",
|
||||||
day: "ddd. MMMM D, YYYY, hh:mm A",
|
day: "ddd. MMMM D, YYYY, hh:mm A",
|
||||||
week: "ddd. MMMM D, YYYY, hh:mm A",
|
week: "ddd. MMMM D, YYYY, hh:mm A",
|
||||||
month: "ddd. MMMM D, YYYY",
|
month: "ddd. MMMM D, YYYY",
|
||||||
|
|||||||
@@ -121,6 +121,7 @@ const InfrastructureDetails = () => {
|
|||||||
<AreaChartBoxes
|
<AreaChartBoxes
|
||||||
shouldRender={!isLoading}
|
shouldRender={!isLoading}
|
||||||
monitor={monitor}
|
monitor={monitor}
|
||||||
|
dateRange={dateRange}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ const SettingsURL = ({ HEADING_SX, handleChange, showURL = false }) => {
|
|||||||
<Select
|
<Select
|
||||||
name="showURL"
|
name="showURL"
|
||||||
label={t("settingsPage.urlSettings.label")}
|
label={t("settingsPage.urlSettings.label")}
|
||||||
value={showURL || ""}
|
value={showURL === true}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
items={[
|
items={[
|
||||||
{ _id: true, name: t("settingsPage.urlSettings.selectEnabled") },
|
{ _id: true, name: t("settingsPage.urlSettings.selectEnabled") },
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { execSync } from "child_process";
|
|||||||
|
|
||||||
export default defineConfig(({ mode }) => {
|
export default defineConfig(({ mode }) => {
|
||||||
const env = loadEnv(mode, process.cwd(), "");
|
const env = loadEnv(mode, process.cwd(), "");
|
||||||
let version = "3.1.1";
|
let version = "3.1.3";
|
||||||
|
|
||||||
return {
|
return {
|
||||||
base: "/",
|
base: "/",
|
||||||
|
|||||||
@@ -15,9 +15,8 @@ services:
|
|||||||
- mongodb
|
- mongodb
|
||||||
mongodb:
|
mongodb:
|
||||||
image: mongo:4.4.18
|
image: mongo:4.4.18
|
||||||
container_name: checkmate-mongodb
|
|
||||||
restart: always
|
restart: always
|
||||||
command: ["mongod", "--replSet", "rs0", "--bind_ip_all"]
|
command: ["mongod", "--quiet", --bind_ip_all"]
|
||||||
ports:
|
ports:
|
||||||
- "27017:27017"
|
- "27017:27017"
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ const CheckSchema = new mongoose.Schema(
|
|||||||
},
|
},
|
||||||
type: {
|
type: {
|
||||||
type: String,
|
type: String,
|
||||||
enum: ["http", "hardware", "pagespeed", "distributed"],
|
enum: ["http", "ping", "pagespeed", "hardware", "docker", "port", "game"],
|
||||||
required: true,
|
required: true,
|
||||||
index: true,
|
index: true,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ class TranslationService {
|
|||||||
this.logger = logger;
|
this.logger = logger;
|
||||||
this.translations = {};
|
this.translations = {};
|
||||||
this._language = "en";
|
this._language = "en";
|
||||||
this.localesDir = path.join(process.cwd(), "locales");
|
this.localesDir = path.join(process.cwd(), "src/locales");
|
||||||
}
|
}
|
||||||
|
|
||||||
get serviceName() {
|
get serviceName() {
|
||||||
|
|||||||
@@ -580,17 +580,31 @@ const createNotificationBodyValidation = joi.object({
|
|||||||
}),
|
}),
|
||||||
|
|
||||||
address: joi.when("type", {
|
address: joi.when("type", {
|
||||||
is: "email",
|
switch: [
|
||||||
then: joi.string().email().required().messages({
|
{
|
||||||
"string.empty": "E-mail address cannot be empty",
|
is: "email",
|
||||||
"any.required": "E-mail address is required",
|
then: joi.string().email().required().messages({
|
||||||
"string.email": "Please enter a valid e-mail address",
|
"string.empty": "E-mail address cannot be empty",
|
||||||
}),
|
"any.required": "E-mail address is required",
|
||||||
otherwise: joi.string().uri().required().messages({
|
"string.email": "Please enter a valid e-mail address",
|
||||||
"string.empty": "Webhook URL cannot be empty",
|
}),
|
||||||
"any.required": "Webhook URL is required",
|
},
|
||||||
"string.uri": "Please enter a valid Webhook URL",
|
{
|
||||||
}),
|
is: "pager_duty",
|
||||||
|
then: joi.string().required().messages({
|
||||||
|
"string.empty": "PagerDuty integration key cannot be empty",
|
||||||
|
"any.required": "PagerDuty integration key is required",
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
is: joi.string().valid("webhook", "slack", "discord"),
|
||||||
|
then: joi.string().uri().required().messages({
|
||||||
|
"string.empty": "Webhook URL cannot be empty",
|
||||||
|
"any.required": "Webhook URL is required",
|
||||||
|
"string.uri": "Please enter a valid Webhook URL",
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
],
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user