Custom Site for viewing a Gauntlet's levels #233
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: serg2-mirrors/GDBrowser#233
Loading…
Reference in a new issue
No description provided.
Delete branch "DerOwnerHD/master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR adds a GD-like menu for viewing the levels in a Gauntlet.
It's accessible when clicking on a Gauntlet in the Gauntlets menu, which previously redirected to the search menu (bc Colon was too lazy to add such a menu).
The search menu has not been messed with and it still allows Gauntlets to be shown.
If a Gauntlet is unknown, e.g. a custom one from a private server, it will redirect to the search menu (just like the old days)
Oh this is cool! Will have to think about it though, since I find the current system to be a lot more convenient
@ -270,6 +270,7 @@ app.get("/mappacks", function(req, res) { res.status(200).sendFile(__dirname + "
app.get("/messages", function(req, res) { res.status(200).sendFile(__dirname + "/html/messages.html") })
app.get("/search", function(req, res) { res.status(200).sendFile(__dirname + "/html/filters.html") })
app.get("/search/:text", function(req, res) { res.status(200).sendFile(__dirname + "/html/search.html") })
app.get("/gauntlet/:id", function(req, res) { res.status(200).sendFile(__dirname + "/html/gauntlet.html") })
Missing rate limiting
This route handler performs a file system access, but is not rate-limited.
Show more details
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.