From 8cdd9909387eac1858f3c2e73729c754d7079df6 Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Fri, 19 Apr 2024 11:03:17 -0400 Subject: [PATCH] Move issue template to root dir --- Frontend/src/app/(pages)/server/[[...slug]]/page.tsx | 4 ++-- Frontend/src/app/components/server/server-search.tsx | 4 ++-- Frontend/src/app/lib/stringUtils.ts | 2 +- .gitea/ISSUE_TEMPLATE.md => ISSUE_TEMPLATE.md | 0 4 files changed, 5 insertions(+), 5 deletions(-) rename .gitea/ISSUE_TEMPLATE.md => ISSUE_TEMPLATE.md (100%) diff --git a/Frontend/src/app/(pages)/server/[[...slug]]/page.tsx b/Frontend/src/app/(pages)/server/[[...slug]]/page.tsx index 491ddc6..4b5c9f7 100644 --- a/Frontend/src/app/(pages)/server/[[...slug]]/page.tsx +++ b/Frontend/src/app/(pages)/server/[[...slug]]/page.tsx @@ -3,7 +3,7 @@ import ServerResult from "@/components/server/server-result"; import ServerSearch from "@/components/server/server-search"; import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"; import { minecrafter } from "@/font/fonts"; -import { capitialize } from "@/lib/stringUtils"; +import { capitalize } from "@/lib/stringUtils"; import { cn } from "@/lib/utils"; import { PageProps } from "@/types/page"; import { ExclamationCircleIcon } from "@heroicons/react/24/outline"; @@ -102,7 +102,7 @@ export const generateMetadata = async ({ hostname ); // Get the server to embed return Embed({ - title: `${capitialize(platform)} Server: ${server.hostname}`, + title: `${capitalize(platform)} Server: ${server.hostname}`, description: `There are ${server.players.online.toLocaleString()}/${server.players.max.toLocaleString()} playing here!\n\nClick to view data about this server.`, thumbnail: (server as CachedJavaMinecraftServer).favicon?.url, }); diff --git a/Frontend/src/app/components/server/server-search.tsx b/Frontend/src/app/components/server/server-search.tsx index 4b80306..ead3372 100644 --- a/Frontend/src/app/components/server/server-search.tsx +++ b/Frontend/src/app/components/server/server-search.tsx @@ -9,7 +9,7 @@ import { SelectTrigger, SelectValue, } from "@/components/ui/select"; -import { capitialize } from "@/lib/stringUtils"; +import { capitalize } from "@/lib/stringUtils"; import { redirect } from "next/navigation"; import { ReactElement } from "react"; import { ServerPlatform } from "restfulmc-lib"; @@ -67,7 +67,7 @@ const ServerSearch = ({ index: number ): ReactElement => ( - {capitialize(platform)} + {capitalize(platform)} ) )} diff --git a/Frontend/src/app/lib/stringUtils.ts b/Frontend/src/app/lib/stringUtils.ts index 4c47c6a..ac5945b 100644 --- a/Frontend/src/app/lib/stringUtils.ts +++ b/Frontend/src/app/lib/stringUtils.ts @@ -5,6 +5,6 @@ * @param input the input to capitalize * @returns the capitalized input */ -export const capitialize = (input: string): string => { +export const capitalize = (input: string): string => { return input.charAt(0).toUpperCase() + input.slice(1); }; diff --git a/.gitea/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md similarity index 100% rename from .gitea/ISSUE_TEMPLATE.md rename to ISSUE_TEMPLATE.md