Move issue template to root dir
All checks were successful
Deploy Frontend / docker (17, 3.8.5) (push) Successful in 1m4s
All checks were successful
Deploy Frontend / docker (17, 3.8.5) (push) Successful in 1m4s
This commit is contained in:
parent
408ad7d7b7
commit
8cdd990938
@ -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,
|
||||
});
|
||||
|
@ -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 => (
|
||||
<SelectItem key={index} value={platform}>
|
||||
{capitialize(platform)}
|
||||
{capitalize(platform)}
|
||||
</SelectItem>
|
||||
)
|
||||
)}
|
||||
|
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user