mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-10 07:34:07 -08:00
23 lines
584 B
JavaScript
23 lines
584 B
JavaScript
const args = require("args-parser")(process.argv);
|
|
const demoMode = args["demo"] || false;
|
|
|
|
const badgeConstants = {
|
|
naColor: "#999",
|
|
defaultUpColor: "#66c20a",
|
|
defaultDownColor: "#c2290a",
|
|
defaultPendingColor: "#f8a306",
|
|
defaultMaintenanceColor: "#1747f5",
|
|
defaultPingColor: "blue", // as defined by badge-maker / shields.io
|
|
defaultStyle: "flat",
|
|
defaultPingValueSuffix: "ms",
|
|
defaultPingLabelSuffix: "h",
|
|
defaultUptimeValueSuffix: "%",
|
|
defaultUptimeLabelSuffix: "h",
|
|
};
|
|
|
|
module.exports = {
|
|
args,
|
|
demoMode,
|
|
badgeConstants,
|
|
};
|