mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
Add back maintance page for server update/maintence tmr!
This commit is contained in:
parent
f127b5fbee
commit
3b06bfaecb
3 changed files with 5 additions and 15 deletions
|
@ -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": "<bold>12:00 AM - 1:00 AM</bold>",
|
||||
"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": "<bold>March 4th 3:00 PM - 3:30 AM</bold>",
|
||||
"title": "Maintenance expected"
|
||||
},
|
||||
"onboarding": {
|
||||
|
|
|
@ -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 = [
|
||||
{
|
||||
|
|
|
@ -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 = () => {
|
||||
|
|
Loading…
Reference in a new issue