Skip to content

Commit

Permalink
Add redirect to security.txt and fix notice
Browse files Browse the repository at this point in the history
  • Loading branch information
starscouts committed Jul 23, 2024
1 parent 37d24aa commit 98355f2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const VERSION = "3.6.1";
const VERSION = "3.6.2";
const URL = "https://d6gd1hq6b89h1s1v.public.blob.vercel-storage.com/public/status.dat";

const CATEGORIES = [
Expand Down
2 changes: 1 addition & 1 deletion client/src/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function fillGlobal() {
if (window.statusData['notice']) {
document.getElementById("eqs-app-global-box").classList.add("eqs-app-global-box-info");
document.getElementById("eqs-app-global-box-text").classList.remove("eqs-ellipsis");
document.getElementById("eqs-app-global-box-text-main").innerHTML = "<div><p style='margin-top: 0; margin-bottom: 7px;'><b>" + window.statusData['notice']['title'] + "</b></p><p style='margin-top: 0; margin-bottom: 7px;'>" + window.statusData['notice']['description'] + "</p>" + (window.statusData['notice']['link'] ? "<a target='_blank' href='" + window.statusData['notice']['link'] + "'>Read more.</a>" : "") + "</div>";
document.getElementById("eqs-app-global-box-text-main").innerHTML = "<div><p style='margin-top: 0; margin-bottom: 7px;'><b>" + window.statusData['notice']['title'] + "</b></p><p style='margin-top: 0; margin-bottom: 7px;'>" + window.statusData['notice']['description'] + "</p>" + (window.statusData['notice']['link'] && window.statusData['notice']['link'] !== "null" && window.statusData['notice']['link'] !== null ? "<a target='_blank' href='" + window.statusData['notice']['link'] + "'>Read more.</a>" : "") + "</div>";
document.getElementById("eqs-app-global-box-icon").src = "./static/icons/status-info" + (hasDarkTheme ? "-dark" : "") + ".svg";
document.getElementById("eqs-app-global-box-ping").innerText = "";
} else {
Expand Down
8 changes: 8 additions & 0 deletions client/vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@
}
],
"redirects": [
{
"source": "/.well-known/security.txt",
"destination": "https://equestria.dev/security.txt"
},
{
"source": "/security.txt",
"destination": "https://equestria.dev/security.txt"
},
{
"source": "/status.json",
"destination": "https://d6gd1hq6b89h1s1v.public.blob.vercel-storage.com/public/api.json",
Expand Down

0 comments on commit 98355f2

Please sign in to comment.