added patcher and redirect to homepage if user is logged in

This commit is contained in:
Polaris
2024-08-17 16:25:04 -04:00
parent a313021c9e
commit 1dc548936b
50 changed files with 3754 additions and 22 deletions

View File

@ -34,7 +34,7 @@ import { getCurrentMapIcon, updatePlayerMapIcon } from "./actions";
const getNamePlateTextures = (id: number | undefined) => {
if (id === undefined) return "";
const paddedId = id.toString().padStart(8, "0");
return `mapIcon/CHU_UI_MapIcon_${paddedId}.png`;
return `mapIcons/CHU_UI_MapIcon_${paddedId}.png`;
};
type mapIcons = cozynet_chuni_static_mapicon;

View File

@ -6,7 +6,6 @@ import { usePathname } from "next/navigation";
const NAV_ITEMS = [
{ href: "/home", label: "Home" },
{ href: "/chunithm", label: "Chunithm" },
// { href: "/maimai", label: "Maimai" },
];
const NavigationMenuDesktop = () => {

View File

@ -6,7 +6,6 @@ import { usePathname } from "next/navigation";
const NAV_ITEMS = [
{ href: "/home", label: "Home" },
{ href: "/chunithm", label: "Chunithm" },
// { href: "/maimai", label: "Maimai" },
];
const NavigationMenuMobile = () => {

179
components/patcher/page.tsx Normal file
View File

@ -0,0 +1,179 @@
import Head from "next/head";
import Image from "next/image";
import Link from "next/link";
const Patcher = () => {
return (
<div>
<Head>
<title>CHUNITHM Patching Tools</title>
<meta charSet="utf-8" />
<link rel="stylesheet" href="/patcher/css/style.css" />
</Head>
<div className="grid grid-cols-1 place-items-center gap-6 pt-8 md:grid-cols-4">
<Link href="/patcher/chuni.html" className="gameicon">
<Image
src="/patcher/img/chu/ni01.png"
alt="CHUNITHM"
width={120}
height={120}
/>
</Link>
<Link href="/patcher/chuniplus.html" className="gameicon">
<Image
src="/patcher/img/chu/ni02plus.png"
alt="CHUNITHM PLUS"
width={120}
height={120}
/>
</Link>
<Link href="/patcher/chuniair.html" className="gameicon">
<Image
src="/patcher/img/chu/ni03air.png"
alt="CHUNITHM AIR"
width={120}
height={120}
/>
</Link>
<Link href="/patcher/chuniairplus.html" className="gameicon">
<Image
src="/patcher/img/chu/ni04airplus.png"
alt="CHUNITHM AIR PLUS"
width={120}
height={120}
/>
</Link>
<Link href="/patcher/chunistar.html" className="gameicon">
<Image
src="/patcher/img/chu/ni05star.png"
alt="CHUNITHM STAR"
width={120}
height={120}
/>
</Link>
<Link href="/patcher/chunistarplus.html" className="gameicon">
<Image
src="/patcher/img/chu/ni06starplus.png"
alt="CHUNITHM STAR PLUS"
width={120}
height={120}
/>
</Link>
<Link href="/patcher/chuniamazon.html" className="gameicon">
<Image
src="/patcher/img/chu/ni07amazon.png"
alt="CHUNITHM AMAZON"
width={120}
height={120}
/>
</Link>
<Link href="/patcher/chuniamazonplus.html" className="gameicon">
<Image
src="/patcher/img/chu/ni08amazonplus.png"
alt="CHUNITHM AMAZON PLUS"
width={120}
height={120}
/>
</Link>
<Link href="/patcher/chunicrystal.html" className="gameicon">
<Image
src="/patcher/img/chu/ni09crystal.png"
alt="CHUNITHM CRYSTAL"
width={120}
height={120}
/>
</Link>
<Link href="/patcher/chunicrystalplus.html" className="gameicon">
<Image
src="/patcher/img/chu/ni10crystalplus.png"
alt="CHUNITHM CRYSTAL PLUS"
width={120}
height={120}
/>
</Link>
<Link href="/patcher/chuniparadise.html" className="gameicon">
<div className="image-wrapper">
<Image
src="/patcher/img/chu/ni11paradise.png"
alt="CHUNITHM PARADISE"
className="image"
width={120}
height={120}
/>
</div>
</Link>
<Link href="/patcher/ni11paradiselost.html" className="gameicon">
<div className="image-wrapper">
<Image
src="/patcher/img/chu/ni11paradiselost.png"
alt="CHUNITHM PARADISE LOST"
className="image-hover"
width={120}
height={120}
/>
</div>
</Link>
<Link href="/patcher/chusannew.html" className="gameicon">
<Image
src="/patcher/img/chu/san12.png"
alt="CHUNITHM NEW!!"
width={120}
height={120}
/>
</Link>
<Link href="/patcher/chusannewplus.html" className="gameicon">
<Image
src="/patcher/img/chu/san13newplus.png"
alt="CHUNITHM NEW PLUS!!"
width={120}
height={120}
/>
</Link>
<Link href="/patcher/chusansun.html" className="gameicon">
<Image
src="/patcher/img/chu/san14sun.png"
alt="CHUNITHM SUN"
width={120}
height={120}
/>
</Link>
<Link href="/patcher/chusansunplus.html" className="gameicon">
<Image
src="/patcher/img/chu/san15sunplus.png"
alt="CHUNITHM SUN PLUS"
width={120}
height={120}
/>
</Link>
<Link href="/patcher/chusanluminous.html" className="gameicon">
<Image
src="/patcher/img/chu/san16luminous.png"
alt="CHUNITHM LUMINOUS"
width={120}
height={120}
/>
</Link>
</div>
<center className="pt-8">
<div className="tagline">
Chuni patches sourced from various online patchers
</div>
<div className="tagline">
Chusan patches created with{" "}
<a href="https://gitea.tendokyu.moe/beerpsi/CHUNITHM-Patch-Finder">
CHUNITHM-Patch-Finder
</a>
</div>
<div className="tagline">
<em>
Original web patcher by <a href="https://github.com/mon/">mon</a>
</em>
</div>
</center>
</div>
);
};
export default Patcher;

View File

@ -38,7 +38,7 @@ export const columns: ColumnDef<chunithm>[] = [
<Skeleton className="mr-2 inline-block h-8 w-8" />
) : (
<img
src={`/JacketArt/${jacketPath}`}
src={`/jacketArts/${jacketPath}`}
alt="Jacket"
className="mr-2 inline-block h-8 w-8"
/>
@ -113,17 +113,7 @@ export const columns: ColumnDef<chunithm>[] = [
},
{
accessorKey: "FC / AJ",
header: ({ column }) => {
return (
<Button
variant="ghost"
onClick={() => column.toggleSorting(column.getIsSorted() === "asc")}
>
FC/AJ
{/* <ArrowUpDown className="ml-2 h-4 w-4" /> */}
</Button>
);
},
header: "FC / AJ",
cell: ({ row }) => (
<div className="font-medium">
{!row.original.isAllJustice && row.original.isFullCombo && (

View File

@ -36,7 +36,7 @@ export const ChunithmHotPlays: FC<ChunithmProfileHotPlays> = ({
<div className="m-4 font-bold"></div>
{jacketPath && (
<img
src={`/JacketArt/${jacketPath}`}
src={`/jacketArts/${jacketPath}`}
alt="Jacket"
style={{ width: "120px", height: "120px" }}
/>

View File

@ -41,7 +41,7 @@ export const ChunithmTopPlays: FC<chunithmTopPlays> = ({
<div className="font-bold"></div>
{jacketPath && (
<img
src={`/JacketArt/${jacketPath}`}
src={`/jacketArts/${jacketPath}`}
alt="Jacket"
className="h-28 w-28"
/>