diff --git a/src/app/favicon.ico b/src/app/favicon.ico index 718d6fe..c97970c 100644 Binary files a/src/app/favicon.ico and b/src/app/favicon.ico differ diff --git a/src/app/layout.tsx b/src/app/layout.tsx index a024488..59ea0f2 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,5 +1,4 @@ -import AppProvider from "@/components/AppProvider"; -import { SSRSettings } from "@/ssrSettings"; +import { ssrSettings } from "@/ssrSettings"; import { Metadata } from "next"; import { Inter } from "next/font/google"; import Image from "next/image"; @@ -10,13 +9,13 @@ const font = Inter({ subsets: ["latin-ext"], weight: "500" }); export const metadata: Metadata = { title: { - template: SSRSettings.siteName + " - %s", - default: SSRSettings.siteName, + template: ssrSettings.siteName + " - %s", + default: ssrSettings.siteName, }, openGraph: { - title: SSRSettings.siteName, + title: ssrSettings.siteName, description: "Aggregate your scores with other leaderboards together!", - url: SSRSettings.siteUrl, + url: ssrSettings.siteUrl, locale: "en_US", type: "website", }, @@ -41,7 +40,7 @@ export default function RootLayout({ /> - {children} + {children} ); diff --git a/src/components/AppProvider.tsx b/src/components/AppProvider.tsx deleted file mode 100644 index 404d0ae..0000000 --- a/src/components/AppProvider.tsx +++ /dev/null @@ -1,9 +0,0 @@ -"use client"; - -type AppProviderProps = { - children: React.ReactNode; -}; - -export default function AppProvider({ children }: AppProviderProps) { - return <>{children}; -} diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index c3aa990..7554c00 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -1,4 +1,4 @@ -import { SSRSettings } from "@/ssrSettings"; +import { ssrSettings } from "@/ssrSettings"; import { isProduction } from "@/utils/utils"; const buttons = [ @@ -22,7 +22,7 @@ export default function Footer() { className="transform-gpu transition-all hover:text-blue-500" href="https://git.fascinated.cc/Fascinated/scoresaber-reloaded-v2" > - {SSRSettings.siteName} + {ssrSettings.siteName} {buttons.map((button, index) => { diff --git a/src/ssrSettings.ts b/src/ssrSettings.ts index 41e37d4..01cc165 100644 --- a/src/ssrSettings.ts +++ b/src/ssrSettings.ts @@ -1,4 +1,4 @@ -export const SSRSettings = { +export const ssrSettings = { siteName: "Scoresaber Reloaded", siteUrl: "https://ssr.fascinated.cc", proxy: "https://proxy.fascinated.cc", diff --git a/src/utils/scoresaber/api.ts b/src/utils/scoresaber/api.ts index 92978fa..63ff42c 100644 --- a/src/utils/scoresaber/api.ts +++ b/src/utils/scoresaber/api.ts @@ -1,6 +1,6 @@ import { ScoresaberPlayer } from "@/schemas/scoresaber/player"; import { ScoresaberPlayerScore } from "@/schemas/scoresaber/playerScore"; -import { SSRSettings } from "@/ssrSettings"; +import { ssrSettings } from "@/ssrSettings"; import { FetchQueue } from "../fetchWithQueue"; import { formatString } from "../string"; @@ -8,7 +8,7 @@ import { formatString } from "../string"; const fetchQueue = new FetchQueue(); // Api endpoints -const API_URL = SSRSettings.proxy + "/https://scoresaber.com/api"; +const API_URL = ssrSettings.proxy + "/https://scoresaber.com/api"; const SEARCH_PLAYER_URL = API_URL + "/players?search={}&page=1&withMetadata=false"; const PLAYER_SCORES =