diff --git a/Frontend/config.json b/Frontend/config.json index 6d32080..3c9c2a9 100644 --- a/Frontend/config.json +++ b/Frontend/config.json @@ -1,6 +1,7 @@ { "siteName": "RESTfulMC", "siteUrl": "http://localhost:3000", + "apiEndpoint": "https://api.restfulmc.cc", "analyticsDomain": "restfulmc.cc", "metadata": { "title": { diff --git a/Frontend/src/app/components/player/player-result.tsx b/Frontend/src/app/components/player/player-result.tsx index fa56bfb..8679129 100644 --- a/Frontend/src/app/components/player/player-result.tsx +++ b/Frontend/src/app/components/player/player-result.tsx @@ -1,8 +1,9 @@ -/* eslint-disable @next/next/no-img-element */ import Image from "next/image"; import Link from "next/link"; import { CachedPlayer, SkinPart } from "restfulmc-lib"; import { ReactElement } from "react"; +import { Badge } from "@/components/ui/badge"; +import config from "@/config"; /** * The result of a player search. @@ -20,57 +21,73 @@ const PlayerResult = ({ }: { player: CachedPlayer; }): ReactElement => ( -
- {uniqueId}
-
-
- {/* Legacy Badge */}
- {legacy && (
- Legacy
- )} -
+ {uniqueId}
+
+
+ {/* Legacy Badge */}
+ {legacy && (
+ + Legacy +
+ )} +- * The key is the name of the - * link, and the value is the URL. - *
- */ - navbarLinks: { - [name: string]: string; - }; + /** + * The viewport of this site. + */ + viewport: Viewport; - /** - * Featured items for the landing page. - */ - featuredItems: FeaturedItemProps[]; + /** + * Links to display on the navbar. + *+ * The key is the name of the + * link, and the value is the URL. + *
+ */ + navbarLinks: { + [name: string]: string; + }; + + /** + * Featured items for the landing page. + */ + featuredItems: FeaturedItemProps[]; } /** @@ -51,23 +56,23 @@ interface Config { * on the landing page. */ type FeaturedItemProps = { - /** - * The name of this item. - */ - name: string; + /** + * The name of this item. + */ + name: string; - /** - * The description of this item. - */ - description: string; + /** + * The description of this item. + */ + description: string; - /** - * The image for this item. - */ - image: string; + /** + * The image for this item. + */ + image: string; - /** - * The href link for this item. - */ - href: string; + /** + * The href link for this item. + */ + href: string; };