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

View File

@ -3,7 +3,7 @@
"version": "1.0.0", "version": "1.0.0",
"author": "Braydon (Rainnny) <braydonrainnny@gmail.com>", "author": "Braydon (Rainnny) <braydonrainnny@gmail.com>",
"description": "A simple, yet useful RESTful API for Minecraft utilizing Springboot.", "description": "A simple, yet useful RESTful API for Minecraft utilizing Springboot.",
"homepage": "https://restfulmc.cc", "homepage": "https://mc.rainnny.club",
"scripts": { "scripts": {
"dev": "next dev --turbo", "dev": "next dev --turbo",
"build": "next build", "build": "next build",
@ -25,7 +25,7 @@
"react": "^18", "react": "^18",
"react-dom": "^18", "react-dom": "^18",
"react-hook-form": "^7.51.3", "react-hook-form": "^7.51.3",
"restfulmc-lib": "^1.1.2", "restfulmc-lib": "^1.1.1",
"tailwind-merge": "^2.2.2", "tailwind-merge": "^2.2.2",
"tailwindcss-animate": "^1.0.7" "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 { try {
const player: CachedPlayer = await getPlayer(query); // Get the player to embed const player: CachedPlayer = await getPlayer(query); // Get the player to embed
return Embed({ return Embed({
title: `${player.username}'s Profile`, title: `${player.username}'s Player`,
description: `UUID: ${player.uniqueId}\n\nClick to view data about this player.`, description: "Click to view data about this player.",
thumbnail: player.skin.parts.HEAD, thumbnail: player.skin.parts.HEAD,
}); });
} catch (err) { } catch (err) {

View File

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

View File

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