From 98355f2db02947542c0c57315aba03b5913cf81c Mon Sep 17 00:00:00 2001 From: Starscouts Date: Tue, 23 Jul 2024 11:12:43 +0200 Subject: [PATCH] Add redirect to security.txt and fix notice --- client/src/config.js | 2 +- client/src/global.js | 2 +- client/vercel.json | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/client/src/config.js b/client/src/config.js index 698af5c..1f063e1 100644 --- a/client/src/config.js +++ b/client/src/config.js @@ -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 = [ diff --git a/client/src/global.js b/client/src/global.js index 812edf1..fb91c21 100644 --- a/client/src/global.js +++ b/client/src/global.js @@ -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 = "

" + window.statusData['notice']['title'] + "

" + window.statusData['notice']['description'] + "

" + (window.statusData['notice']['link'] ? "Read more." : "") + "
"; + document.getElementById("eqs-app-global-box-text-main").innerHTML = "

" + window.statusData['notice']['title'] + "

" + window.statusData['notice']['description'] + "

" + (window.statusData['notice']['link'] && window.statusData['notice']['link'] !== "null" && window.statusData['notice']['link'] !== null ? "Read more." : "") + "
"; document.getElementById("eqs-app-global-box-icon").src = "./static/icons/status-info" + (hasDarkTheme ? "-dark" : "") + ".svg"; document.getElementById("eqs-app-global-box-ping").innerText = ""; } else { diff --git a/client/vercel.json b/client/vercel.json index c798a4f..e8c1c9c 100644 --- a/client/vercel.json +++ b/client/vercel.json @@ -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",