1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

Add icon to maintence page and switch to hash-based routing

This commit is contained in:
Cooper Ransom 2024-03-04 11:44:47 -05:00
parent 3b06bfaecb
commit 449005003b
3 changed files with 8 additions and 1 deletions

View file

@ -9,7 +9,7 @@ window.__CONFIG__ = {
VITE_DMCA_EMAIL: "sudo-flix@proton.me", VITE_DMCA_EMAIL: "sudo-flix@proton.me",
// Whether to disable hash-based routing, leave this as false if you don't know what this is // Whether to disable hash-based routing, leave this as false if you don't know what this is
VITE_NORMAL_ROUTER: false, VITE_NORMAL_ROUTER: true,
// The backend URL to communicate with, defaults to the movie-web hosted one at backend.movie-web.app // The backend URL to communicate with, defaults to the movie-web hosted one at backend.movie-web.app
VITE_BACKEND_URL: "https://sudo-flix-backend.lol", // "https://mw-backend.lonelil.com", VITE_BACKEND_URL: "https://sudo-flix-backend.lol", // "https://mw-backend.lonelil.com",

View file

@ -185,6 +185,7 @@
"title": "Couldn't find that page" "title": "Couldn't find that page"
}, },
"downtimeNotice": { "downtimeNotice": {
"badge": "Maintenance",
"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 and update 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>March 4th 3:00 PM - 3:30 AM</bold>", "timeFrame": "<bold>March 4th 3:00 PM - 3:30 AM</bold>",

View file

@ -15,6 +15,8 @@ import {
import { convertLegacyUrl, isLegacyUrl } from "@/backend/metadata/getmeta"; import { convertLegacyUrl, isLegacyUrl } from "@/backend/metadata/getmeta";
import { generateQuickSearchMediaUrl } from "@/backend/metadata/tmdb"; import { generateQuickSearchMediaUrl } from "@/backend/metadata/tmdb";
import { Button } from "@/components/buttons/Button"; import { Button } from "@/components/buttons/Button";
import { Icons } from "@/components/Icon";
import { IconPill } from "@/components/layout/IconPill";
import { Navigation } from "@/components/layout/Navigation"; import { Navigation } from "@/components/layout/Navigation";
import { Title } from "@/components/text/Title"; import { Title } from "@/components/text/Title";
import { Paragraph } from "@/components/utils/Text"; import { Paragraph } from "@/components/utils/Text";
@ -184,6 +186,10 @@ function App() {
<div className="flex h-full flex-1 flex-col items-center justify-center p-5 text-center"> <div className="flex h-full flex-1 flex-col items-center justify-center p-5 text-center">
<ErrorLayout> <ErrorLayout>
<ErrorContainer> <ErrorContainer>
<IconPill icon={Icons.WARNING}>
{t("downtimeNotice.badge")}
</IconPill>
<Title>{t("downtimeNotice.title")}</Title> <Title>{t("downtimeNotice.title")}</Title>
<Paragraph>{t("downtimeNotice.message")}</Paragraph> <Paragraph>{t("downtimeNotice.message")}</Paragraph>
<Trans <Trans