mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-30 09:46:14 -05:00
Removed where I was wrong about imports
This commit is contained in:
parent
d74facded6
commit
b6cd21c71a
@ -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,
|
||||
};
|
||||
|
@ -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,
|
||||
};
|
||||
|
@ -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,
|
||||
};
|
||||
|
@ -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";
|
||||
|
||||
/**
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user