-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature-google-analytics' of github.com:clcninja/uptime…
…-kuma into feature-google-analytics
- Loading branch information
Showing
65 changed files
with
996 additions
and
440 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-- You should not modify if this have pushed to Github, unless it does serious wrong with the db. | ||
BEGIN TRANSACTION; | ||
ALTER TABLE monitor | ||
ADD packet_size INTEGER DEFAULT 56 NOT NULL; | ||
COMMIT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const childProcess = require("child_process"); | ||
|
||
class Git { | ||
|
||
static clone(repoURL, cwd, targetDir = ".") { | ||
let result = childProcess.spawnSync("git", [ | ||
"clone", | ||
repoURL, | ||
targetDir, | ||
], { | ||
cwd: cwd, | ||
}); | ||
|
||
if (result.status !== 0) { | ||
throw new Error(result.stderr.toString("utf-8")); | ||
} else { | ||
return result.stdout.toString("utf-8") + result.stderr.toString("utf-8"); | ||
} | ||
} | ||
} | ||
|
||
module.exports = { | ||
Git, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
class MonitorType { | ||
|
||
name = undefined; | ||
|
||
/** | ||
* | ||
* @param {Monitor} monitor | ||
* @param {Heartbeat} heartbeat | ||
* @returns {Promise<void>} | ||
*/ | ||
async check(monitor, heartbeat) { | ||
throw new Error("You need to override check()"); | ||
} | ||
|
||
} | ||
|
||
module.exports = { | ||
MonitorType, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class Plugin { | ||
async load() { | ||
|
||
} | ||
|
||
async unload() { | ||
|
||
} | ||
} | ||
|
||
module.exports = { | ||
Plugin, | ||
}; |
Oops, something went wrong.