Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Thedogecraft committed Jun 11, 2024
1 parent dd55f82 commit 8e0ebeb
Show file tree
Hide file tree
Showing 10 changed files with 192 additions and 223 deletions.
16 changes: 8 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ app.get("/:page", (req, res) => {
const filePath = path.join(__dirname, `public/${page}.html`);
res.sendFile(filePath, (err) => {
if (err) {
if (err.code === 'ENOENT') {
res.status(404).sendFile(path.join(__dirname, 'public/404.html'));
if (err.code === "ENOENT") {
res.status(404).sendFile(path.join(__dirname, "public/404.html"));
} else {
res.status(500).send('Internal Server Error');
res.status(500).send("Internal Server Error");
}
}
});
Expand Down Expand Up @@ -92,21 +92,21 @@ if (isNaN(port)) port = 8080;

server.on("listening", () => {
const address = server.address();

console.log(`[+] Starting Lunaar...`);
console.log();
console.log(`Made by The Parcoil Network :`);
console.log(`[+] Made by The Parcoil Network:`);
console.log();
console.warn(`https://github.com/Parcoil/lunaar.org`);
console.warn(`[+] https://github.com/Parcoil/lunaar.org`);
console.log();
console.log(`Lunaar Running on port ${address.port}`);
console.log(`[+] Lunaar Running on port ${address.port}`);
console.log();
});

process.on("SIGINT", shutdown);
process.on("SIGTERM", shutdown);

function shutdown() {
console.log("SIGTERM signal received: closing HTTP server");
console.log("[-] SIGTERM signal received: closing HTTP server");
server.close();
bare.close();
process.exit(0);
Expand Down
3 changes: 1 addition & 2 deletions public/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ <h1>404: Not Found</h1>
<script src="js/main.js" defer></script>
<script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
<script src="js/particles.js"></script>
<script type='text/javascript' src='//rethinkexercisesupplement.com/5f/9a/b6/5f9ab663ac9b6fd33c437dba58f8682b.js'></script>
<script type='text/javascript' src='//rethinkexercisesupplement.com/f7/32/53/f73253aa6c42bc3c0dc426d6f074a5dd.js'></script>

</body>
</html>
3 changes: 1 addition & 2 deletions public/apps.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ <h3>Chess</h3>
<script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
<script src="js/particles.js"></script>
<input type="checkbox" id="clickoffcloak" style="display: none;"/>
<script type='text/javascript' src='//rethinkexercisesupplement.com/5f/9a/b6/5f9ab663ac9b6fd33c437dba58f8682b.js'></script>
<script type='text/javascript' src='//rethinkexercisesupplement.com/f7/32/53/f73253aa6c42bc3c0dc426d6f074a5dd.js'></script>

</body>
</html>
5 changes: 1 addition & 4 deletions public/extra.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ <h1>Partners</h1>
<script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
<script src="js/particles.js"></script>
<input type="checkbox" id="clickoffcloak" style="display: none;"/>
<script
type="text/javascript"
src="//rethinkexercisesupplement.com/f7/32/53/f73253aa6c42bc3c0dc426d6f074a5dd.js"
></script>

</body>
</html>
14 changes: 2 additions & 12 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,8 @@ <h1 id="lunaar">lunaar.</h1>
</button>
<div class="footer">
<p id="version"></p>
<script type="text/javascript">
atOptions = {
'key' : 'c9e497a9e3d1c6f510e000018851e023',
'format' : 'iframe',
'height' : 300,
'width' : 160,
'params' : {}
};
</script>
<script type="text/javascript" src="//rethinkexercisesupplement.com/c9e497a9e3d1c6f510e000018851e023/invoke.js"></script>


</div>
</main>
<!-- <div class="theme-switcher">
Expand All @@ -136,8 +128,6 @@ <h1 id="lunaar">lunaar.</h1>
<script src="/./js/main.js" defer></script>
<script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
<script src="js/particles.js"></script>
<script type='text/javascript' src='//rethinkexercisesupplement.com/5f/9a/b6/5f9ab663ac9b6fd33c437dba58f8682b.js'></script>

<script type='text/javascript' src='//rethinkexercisesupplement.com/f7/32/53/f73253aa6c42bc3c0dc426d6f074a5dd.js'></script>
</body>
</html>
Loading

0 comments on commit 8e0ebeb

Please sign in to comment.