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"
|
"title": "Couldn't find that page"
|
||||||
},
|
},
|
||||||
"downtimeNotice": {
|
"downtimeNotice": {
|
||||||
"goHome": "Go home!",
|
"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.",
|
"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>12:00 AM - 1:00 AM</bold>",
|
"timeFrame": "<bold>March 4th 3:00 PM - 3:30 AM</bold>",
|
||||||
"title": "Maintenance expected"
|
"title": "Maintenance expected"
|
||||||
},
|
},
|
||||||
"onboarding": {
|
"onboarding": {
|
||||||
|
|
|
@ -248,7 +248,7 @@ function ParticlesCanvas() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Chicken easter egg
|
// Chicken easter egg
|
||||||
const shouldShow4thDecor = Math.random() < 0.06; // 6%
|
const shouldShow4thDecor = Math.random() < 0.08; // 8%
|
||||||
if (shouldShow4thDecor) {
|
if (shouldShow4thDecor) {
|
||||||
imageOverride = [
|
imageOverride = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -35,16 +35,6 @@ import { Layout } from "@/setup/Layout";
|
||||||
import { useHistoryListener } from "@/stores/history";
|
import { useHistoryListener } from "@/stores/history";
|
||||||
import { LanguageProvider } from "@/stores/language";
|
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 DeveloperPage = lazy(() => import("@/pages/DeveloperPage"));
|
||||||
const TestView = lazy(() => import("@/pages/developer/TestView"));
|
const TestView = lazy(() => import("@/pages/developer/TestView"));
|
||||||
const PlayerView = lazyWithPreload(() => import("@/pages/PlayerView"));
|
const PlayerView = lazyWithPreload(() => import("@/pages/PlayerView"));
|
||||||
|
@ -105,7 +95,7 @@ function App() {
|
||||||
useHistoryListener();
|
useHistoryListener();
|
||||||
useOnlineListener();
|
useOnlineListener();
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const maintenance = false;
|
const maintenance = true;
|
||||||
const [showDowntime, setShowDowntime] = useState(maintenance);
|
const [showDowntime, setShowDowntime] = useState(maintenance);
|
||||||
|
|
||||||
const handleButtonClick = () => {
|
const handleButtonClick = () => {
|
||||||
|
|
Loading…
Reference in a new issue