2023-06-28 23:50:55 +01:00
|
|
|
// Interop with browser
|
|
|
|
const args = (typeof process !== "undefined") ? require("args-parser")(process.argv) : {};
|
2021-10-15 17:57:26 +01:00
|
|
|
const demoMode = args["demo"] || false;
|
|
|
|
|
2022-01-04 11:21:53 +00:00
|
|
|
const badgeConstants = {
|
|
|
|
naColor: "#999",
|
|
|
|
defaultUpColor: "#66c20a",
|
2023-02-03 04:33:48 +00:00
|
|
|
defaultWarnColor: "#eed202",
|
2022-01-04 11:21:53 +00:00
|
|
|
defaultDownColor: "#c2290a",
|
2023-01-11 20:14:46 +00:00
|
|
|
defaultPendingColor: "#f8a306",
|
2023-01-03 13:45:55 +00:00
|
|
|
defaultMaintenanceColor: "#1747f5",
|
2022-01-04 11:21:53 +00:00
|
|
|
defaultPingColor: "blue", // as defined by badge-maker / shields.io
|
2022-01-04 15:00:21 +00:00
|
|
|
defaultStyle: "flat",
|
|
|
|
defaultPingValueSuffix: "ms",
|
|
|
|
defaultPingLabelSuffix: "h",
|
|
|
|
defaultUptimeValueSuffix: "%",
|
|
|
|
defaultUptimeLabelSuffix: "h",
|
2023-02-03 04:33:48 +00:00
|
|
|
defaultCertExpValueSuffix: " days",
|
|
|
|
defaultCertExpLabelSuffix: "h",
|
|
|
|
// Values Come From Default Notification Times
|
|
|
|
defaultCertExpireWarnDays: "14",
|
|
|
|
defaultCertExpireDownDays: "7"
|
2022-01-04 11:21:53 +00:00
|
|
|
};
|
|
|
|
|
2021-10-15 17:57:26 +01:00
|
|
|
module.exports = {
|
|
|
|
args,
|
2022-01-04 11:21:53 +00:00
|
|
|
demoMode,
|
2022-01-04 15:01:40 +00:00
|
|
|
badgeConstants,
|
2021-10-15 17:57:26 +01:00
|
|
|
};
|