1
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-12-24 22:14:47 +02:00

Removed where I was wrong about imports

This commit is contained in:
Frank Elsinga 2024-06-07 15:54:28 +02:00 committed by GitHub
parent d74facded6
commit b6cd21c71a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 24 additions and 6 deletions

View File

@ -4,7 +4,7 @@ const dayjs = require("dayjs");
const { dnsResolve } = require("../util-server");
const { R } = require("redbean-node");
export class DnsMonitorType extends MonitorType {
class DnsMonitorType extends MonitorType {
name = "dns";
/**
@ -49,3 +49,7 @@ export class DnsMonitorType extends MonitorType {
heartbeat.status = UP;
}
}
module.exports = {
DnsMonitorType,
};

View File

@ -3,7 +3,7 @@ const { UP } = require("../../src/util");
const { MongoClient } = require("mongodb");
const jsonata = require("jsonata");
export class MongodbMonitorType extends MonitorType {
class MongodbMonitorType extends MonitorType {
name = "mongodb";
/**
@ -57,3 +57,7 @@ export class MongodbMonitorType extends MonitorType {
return result;
}
}
module.exports = {
MongodbMonitorType,
};

View File

@ -1,4 +1,4 @@
export class MonitorType {
class MonitorType {
name = undefined;
/**
@ -12,3 +12,7 @@ export class MonitorType {
throw new Error("You need to override check()");
}
}
module.exports = {
MonitorType,
};

View File

@ -3,7 +3,7 @@ const { log, UP } = require("../../src/util");
const mqtt = require("mqtt");
const jsonata = require("jsonata");
export class MqttMonitorType extends MonitorType {
class MqttMonitorType extends MonitorType {
name = "mqtt";
/**

View File

@ -228,7 +228,8 @@ async function testRemoteBrowser(remoteBrowserURL) {
throw new Error(e.message);
}
}
export class RealBrowserMonitorType extends MonitorType {
class RealBrowserMonitorType extends MonitorType {
name = "real-browser";
/**
@ -265,6 +266,7 @@ export class RealBrowserMonitorType extends MonitorType {
}
module.exports = {
RealBrowserMonitorType,
testChrome,
resetChrome,
testRemoteBrowser,

View File

@ -2,7 +2,7 @@ const { MonitorType } = require("./monitor-type");
const { UP } = require("../../src/util");
const childProcessAsync = require("promisify-child-process");
export class TailscalePing extends MonitorType {
class TailscalePing extends MonitorType {
name = "tailscale-ping";
/**
@ -71,3 +71,7 @@ export class TailscalePing extends MonitorType {
}
}
}
module.exports = {
TailscalePing,
};