From 3b06bfaecb55d8713628b2a840aca3a73baa9532 Mon Sep 17 00:00:00 2001 From: Cooper Ransom Date: Mon, 4 Mar 2024 10:31:11 -0500 Subject: [PATCH] Add back maintance page for server update/maintence tmr! --- src/assets/locales/en.json | 6 +++--- src/components/utils/Lightbar.tsx | 2 +- src/setup/App.tsx | 12 +----------- 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/src/assets/locales/en.json b/src/assets/locales/en.json index e2e206c0..6cb05f86 100644 --- a/src/assets/locales/en.json +++ b/src/assets/locales/en.json @@ -185,9 +185,9 @@ "title": "Couldn't find that page" }, "downtimeNotice": { - "goHome": "Go home!", - "message": "sudo-flix.lol is dedicated to providing its users with the most up-to-date and stable experience in order to do this we must maintain our servers. Expect downtime between the below times.", - "timeFrame": "12:00 AM - 1:00 AM", + "goHome": "Go home", + "message": "sudo-flix.lol is dedicated to providing its users with the most up-to-date and stable experience in order to do this we must maintain and update our servers. Expect downtime between the below times.", + "timeFrame": "March 4th 3:00 PM - 3:30 AM", "title": "Maintenance expected" }, "onboarding": { diff --git a/src/components/utils/Lightbar.tsx b/src/components/utils/Lightbar.tsx index 87a31432..34768827 100644 --- a/src/components/utils/Lightbar.tsx +++ b/src/components/utils/Lightbar.tsx @@ -248,7 +248,7 @@ function ParticlesCanvas() { } // Chicken easter egg - const shouldShow4thDecor = Math.random() < 0.06; // 6% + const shouldShow4thDecor = Math.random() < 0.08; // 8% if (shouldShow4thDecor) { imageOverride = [ { diff --git a/src/setup/App.tsx b/src/setup/App.tsx index 9faf0944..ed925851 100644 --- a/src/setup/App.tsx +++ b/src/setup/App.tsx @@ -35,16 +35,6 @@ import { Layout } from "@/setup/Layout"; import { useHistoryListener } from "@/stores/history"; import { LanguageProvider } from "@/stores/language"; -const isDowntime = true; - -function checkDowntime() { - const now = new Date(); - const hour = now.getHours(); - // Downtime between 12 AM - 1 PM - // return isDowntime && hour >= 0 && hour < 1; - return true; -} - const DeveloperPage = lazy(() => import("@/pages/DeveloperPage")); const TestView = lazy(() => import("@/pages/developer/TestView")); const PlayerView = lazyWithPreload(() => import("@/pages/PlayerView")); @@ -105,7 +95,7 @@ function App() { useHistoryListener(); useOnlineListener(); const { t } = useTranslation(); - const maintenance = false; + const maintenance = true; const [showDowntime, setShowDowntime] = useState(maintenance); const handleButtonClick = () => {