cleanup
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 57s

This commit is contained in:
Lee 2024-04-16 19:12:26 +01:00
parent 1d40c9b5d3
commit 9e0a914ccb
16 changed files with 15 additions and 24 deletions

View File

@ -1,13 +1,13 @@
import { Fonts } from "@/common/fonts";
import Container from "@/components/container";
import ThemeProvider from "@/components/theme-provider";
import { Metadata, Viewport } from "next";
import { ToastContainer } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
import "./globals.css";
import Config from "../../config.json";
import Config from "../../../config.json";
import Container from "../components/container";
import ThemeProvider from "../components/theme-provider";
export const viewport: Viewport = {
themeColor: "#3498DB",

View File

@ -6,7 +6,7 @@ type Button = {
};
const buttons: Button[] = [
{ title: "Get Started", url: "/player" },
{ title: "Get Started", url: "/player/Notch" },
{ title: "Documentation", url: "https://api.mcutils.xyz/swagger-ui.html" },
];

View File

@ -1,7 +1,7 @@
import { NotFound } from "@/app/components/not-found";
import { LookupPlayer } from "@/app/components/player/lookup-player";
import { Card } from "@/app/components/ui/card";
import { generateEmbed } from "@/common/embed";
import { LookupPlayer } from "@/components/lookup-player";
import { NotFound } from "@/components/not-found";
import { Card } from "@/components/ui/card";
import { getPlayer } from "mcutils-library";
import { Player } from "mcutils-library/dist/types/player/player";
import { Metadata } from "next";

View File

@ -1,8 +1,8 @@
import { NotFound } from "@/app/components/not-found";
import { LookupServer } from "@/app/components/server/lookup-server";
import { Card } from "@/app/components/ui/card";
import { generateEmbed } from "@/common/embed";
import { capitalizeFirstLetter } from "@/common/string-utils";
import { LookupServer } from "@/components/lookup-server";
import { NotFound } from "@/components/not-found";
import { Card } from "@/components/ui/card";
import { getServer } from "mcutils-library";
import JavaMinecraftServer from "mcutils-library/dist/types/server/javaServer";
import { ServerPlatform } from "mcutils-library/dist/types/server/platform";

View File

@ -16,7 +16,7 @@ export default function NavBar() {
<div className="bg-secondary w-full rounded-lg flex items-center gap-3 mt-2 bg-opacity-85">
<div className="flex items-center gap-2 pl-3 pr-3">
<Logo />
<Link href="/">
<Link href="/" className="hidden md:block">
<p>Minecraft Utilities</p>
</Link>
</div>

View File

@ -2,8 +2,8 @@
import { useRouter } from "next/navigation";
import { useState } from "react";
import { Button } from "./ui/button";
import { Input } from "./ui/input";
import { Button } from "../ui/button";
import { Input } from "../ui/input";
export function LookupPlayer() {
const router = useRouter();

View File

@ -3,8 +3,8 @@
import { ServerPlatform } from "mcutils-library/dist/types/server/platform";
import { useRouter } from "next/navigation";
import { useState } from "react";
import { Button } from "./ui/button";
import { Input } from "./ui/input";
import { Button } from "../ui/button";
import { Input } from "../ui/input";
export function LookupServer() {
const router = useRouter();

View File

@ -1,9 +0,0 @@
import { Card } from "./ui/card";
export function LoadingCard() {
return (
<Card>
<p>Loading...</p>
</Card>
);
}