1 Commits

Author SHA1 Message Date
Renovate Bot
8c1c937f6d chore(deps): update dependency eslint to v9 2024-04-17 01:07:51 +00:00
8 changed files with 21 additions and 55 deletions

Binary file not shown.

View File

@ -1,7 +1,7 @@
{
"siteName": "RESTfulMC",
"siteUrl": "http://localhost:3000",
"analyticsDomain": "restfulmc.cc",
"analyticsDomain": "mc.rainnny.club",
"metadata": {
"title": {
"default": "RESTfulMC",
@ -27,7 +27,7 @@
]
},
"viewport": {
"themeColor": "#3C8627"
"themeColor": "minecraft-green-1"
},
"navbarLinks": {
"Player": "/player",

View File

@ -3,7 +3,7 @@
"version": "1.0.0",
"author": "Braydon (Rainnny) <braydonrainnny@gmail.com>",
"description": "A simple, yet useful RESTful API for Minecraft utilizing Springboot.",
"homepage": "https://restfulmc.cc",
"homepage": "https://mc.rainnny.club",
"scripts": {
"dev": "next dev --turbo",
"build": "next build",
@ -25,7 +25,7 @@
"react": "^18",
"react-dom": "^18",
"react-hook-form": "^7.51.3",
"restfulmc-lib": "^1.1.2",
"restfulmc-lib": "^1.1.1",
"tailwind-merge": "^2.2.2",
"tailwindcss-animate": "^1.0.7"
},

View File

@ -1,2 +0,0 @@
User-Agent: *
Allow: /

View File

@ -79,8 +79,8 @@ export const generateMetadata = async ({
try {
const player: CachedPlayer = await getPlayer(query); // Get the player to embed
return Embed({
title: `${player.username}'s Profile`,
description: `UUID: ${player.uniqueId}\n\nClick to view data about this player.`,
title: `${player.username}'s Player`,
description: "Click to view data about this player.",
thumbnail: player.skin.parts.HEAD,
});
} catch (err) {

View File

@ -68,14 +68,13 @@ const Navbar = (): JSX.Element => {
{/* Social Buttons */}
<div className="hidden md:flex">
{/* Star on Github <3 */}
<Link
className="flex gap-1.5 items-center"
href="https://github.com/Rainnny7/RESTfulMC"
rel="noopener noreferrer"
target="_blank"
>
<MinecraftButton className="group/star">
<MinecraftButton className="group/star">
<Link
className="flex gap-1.5 items-center"
href="https://github.com/Rainnny7/RESTfulMC"
rel="noopener noreferrer"
target="_blank"
>
{/* Star Count */}
<Suspense fallback={<Skeleton className="w-4 h-5 rounded-md" />}>
<GitHubStarCount />
@ -87,8 +86,8 @@ const Navbar = (): JSX.Element => {
height={22}
/>
<span>Star on GitHub</span>
</MinecraftButton>
</Link>
</Link>
</MinecraftButton>
</div>
</nav>
);

View File

@ -1,7 +1,6 @@
import MinecraftButton from "@/components/minecraft-button";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { redirect } from "next/navigation";
/**
@ -24,16 +23,12 @@ const PlayerSearch = ({
className="flex flex-col gap-7 justify-center items-center"
action={handleRedirect}
>
<div className="w-full flex flex-col gap-3">
<Label>Username or UUID</Label>
<Input
type="search"
name="query"
placeholder="Query..."
defaultValue={query}
maxLength={36}
/>
</div>
<Input
name="query"
placeholder="Username / UUID"
defaultValue={query}
maxLength={36}
/>
<MinecraftButton type="submit">Search</MinecraftButton>
</form>
);

View File

@ -1,26 +0,0 @@
"use client";
import * as LabelPrimitive from "@radix-ui/react-label";
import { cva, type VariantProps } from "class-variance-authority";
import * as React from "react";
import { cn } from "@/app/lib/utils";
const labelVariants = cva(
"text-sm font-medium text-zinc-300 leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
);
const Label = React.forwardRef<
React.ElementRef<typeof LabelPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &
VariantProps<typeof labelVariants>
>(({ className, ...props }, ref) => (
<LabelPrimitive.Root
ref={ref}
className={cn(labelVariants(), className)}
{...props}
/>
));
Label.displayName = LabelPrimitive.Root.displayName;
export { Label };