Skip to content

Commit

Permalink
Merge pull request #97 from 22yeets22/main
Browse files Browse the repository at this point in the history
Rename files for easier navigation in github
  • Loading branch information
RedNotSus authored Mar 2, 2025
2 parents 21b5bf1 + 08e797c commit afaf28c
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 26 deletions.
30 changes: 15 additions & 15 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ app.post("/api/chat", async (req, res) => {
Authorization: `Bearer ${process.env.API_KEY}`,
"Content-Type": "application/json",
},
}
},
);
if (response.status === 429) {
switchModel();
Expand All @@ -105,7 +105,7 @@ app.post("/api/chat", async (req, res) => {
Authorization: `Bearer ${randomAPIKey}`,
"Content-Type": "application/json",
},
}
},
);
const aiResponse = response.data.choices[0].message.content;
conversation.push({ role: "assistant", content: aiResponse });
Expand Down Expand Up @@ -178,7 +178,7 @@ app.post("/api/signUp", async (req, res) => {
headers: {
"Content-Type": "application/x-www-form-urlencoded",
},
}
},
);

if (!captchaVerifyResponse.data.success) {
Expand All @@ -198,7 +198,7 @@ app.post("/api/signUp", async (req, res) => {
Authorization: process.env.workerAUTH,
"Content-Type": "application/json",
},
}
},
);

res.status(200).json(response.data);
Expand Down Expand Up @@ -228,7 +228,7 @@ app.post("/api/login", async (req, res) => {
Authorization: process.env.workerAUTH,
"Content-Type": "application/json",
},
}
},
);

res.status(200).json(response.data);
Expand All @@ -254,7 +254,7 @@ app.post("/api/checkPremium", async (req, res) => {
Authorization: process.env.workerAUTH,
"Content-Type": "application/json",
},
}
},
);

res.status(200).json(response.data);
Expand Down Expand Up @@ -282,7 +282,7 @@ app.post("/api/uploadSave", async (req, res) => {
Authorization: process.env.workerAUTH,
"Content-Type": "application/json",
},
}
},
);

res.status(200).json(response.data);
Expand All @@ -308,7 +308,7 @@ app.post("/api/readSave", async (req, res) => {
Authorization: process.env.workerAUTH,
"Content-Type": "application/json",
},
}
},
);

res.status(200).json(response.data);
Expand Down Expand Up @@ -337,17 +337,17 @@ app.use((req, res, next) => {

const routes = [
{ path: "/a", file: "apps.html" },
{ path: "/g", file: "art.html" },
{ path: "/g", file: "games.html" },
{ path: "/s", file: "settings.html" },
{ path: "/p", file: "science.html" },
{ path: "/!", file: "!.html" },
{ path: "/!", file: "proxy.html" },
{ path: "/", file: "index.html" },
{ path: "/d", file: "dashboard.html" },
{ path: "/e", file: "english.html" },
{ path: "/-", file: "math.html" },
{ path: "/e", file: "ai.html" },
{ path: "/-", file: "media.html" },
{ path: "/m", file: "media.html" }, // possibly change all navbars to use /m
{ path: "/profile", file: "account.html" },
{ path: "/login", file: "/assets/404/login.html" },
{ path: "/signup", file: "/assets/404/signup.html" },
{ path: "/login", file: "login.html" },
{ path: "/signup", file: "signup.html" },
{ path: "/l", file: "/assets/404/loading.html" },
];

Expand Down
5 changes: 1 addition & 4 deletions static/english.html → static/ai.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
<script src="/assets/js/script.js?v=11"></script>
<script src="/assets/js/easteregg.min.js" async></script>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>

</head>

<body>
Expand Down Expand Up @@ -50,8 +49,6 @@
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script src="/assets/js/ai.js?v=3" defer></script>
<script src="https://cdn.jsdelivr.net/gh/RedNotSus/RedNotSus@main/prism.js"></script>

</body>


</html>
</html>
4 changes: 2 additions & 2 deletions static/art.html → static/games.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<main>
<link href="assets/css/games.css?v=3" rel="stylesheet" />
<script src="/assets/js/games.js?v=6"></script>
<input id="searchbar" class='searchbar' onkeyup="search();" placeholder="Search through our 000 games" type="text"
<input id="searchbar" class='searchbar' onkeyup="search();" placeholder="Search through our games" type="text"
autocomplete="off" /><br>
<text id="text"></text>
<div id="game-container">
Expand All @@ -42,4 +42,4 @@
<script src="/assets/js/searchbar.v2.js?v=5"></script>
</body>

</html>
</html>
2 changes: 1 addition & 1 deletion static/assets/404/login.html → static/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,4 @@ <h1>Welcome back!</h1>
</div>
</body>

</html>
</html>
3 changes: 1 addition & 2 deletions static/math.html → static/media.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,11 @@ <h3 class="title">Latest TV Shows
</div>
</div>


<div class="attribution">
Images and Titles provided by
<a href="https://www.themoviedb.org/"><img src="/img/tmdb.svg" alt="TMDB Logo"
style="height: 20px; vertical-align: middle;"></a>
</div>
</body>

</html>
</html>
2 changes: 1 addition & 1 deletion static/!.html → static/proxy.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@
<script src="assets/uv/uv.bundle.js" defer></script>
<script src="assets/uv/uv.config.js?cdn" defer></script>

</html>
</html>
2 changes: 1 addition & 1 deletion static/assets/404/signup.html → static/signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,4 @@ <h1>Register a new account</h1>

</body>

</html>
</html>

0 comments on commit afaf28c

Please sign in to comment.