-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into features/ban-unban
- Loading branch information
Showing
29 changed files
with
3,779 additions
and
3,028 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
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,31 @@ | ||
import express from "express"; | ||
|
||
class GoofyController { | ||
private static _tracks: string[] = []; | ||
|
||
/** | ||
* Get the canvas image | ||
* @server HTTP | ||
* | ||
* @param req The Express request object | ||
* @param res The Express response object | ||
*/ | ||
public static async getAdminPage(req: express.Request, res: express.Response) { | ||
// Add ip to tracks | ||
if (req.ip && !this._tracks.includes(req.ip)) { | ||
this._tracks.push(req.ip); | ||
} | ||
|
||
res.send(` | ||
<div style="flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;"> | ||
<img src="https://media1.tenor.com/m/yNMGjXsoYGUAAAAd/cat-cats.gif" alt="Goofy" style="width: 300px; height: 300px; margin-bottom: 20px;"> | ||
<h1>Goofy</h1> | ||
<p>There are ${this._tracks.length} hackers trying to hack the server</p> | ||
<p>Here are their IPs: ${this._tracks.join(", ")}</p> | ||
<p>Good luck!</p> | ||
</div> | ||
`); | ||
} | ||
} | ||
|
||
export default GoofyController; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ interface Canvas { | |
changes: number; | ||
width: number; | ||
height: number; | ||
cooldown: number; | ||
} | ||
|
||
export default Canvas; |
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
Oops, something went wrong.