From d14fd1f6751cec8923a79c15851562640a861b8c Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 10 Mar 2025 00:39:16 +0900 Subject: feat(frontend): upgrade packages --- frontend/app/.server/cookie.ts | 9 ++++++--- frontend/app/components/GolfPlayApps/GolfPlayAppGaming.tsx | 2 +- frontend/app/components/InputText.tsx | 2 +- frontend/app/components/NavigateLink.tsx | 2 +- frontend/app/components/SubmitButton.tsx | 2 +- frontend/app/routes/dashboard.tsx | 4 ++-- frontend/app/shiki.css | 2 +- frontend/app/tailwind.css | 8 +++++--- 8 files changed, 18 insertions(+), 13 deletions(-) (limited to 'frontend/app') diff --git a/frontend/app/.server/cookie.ts b/frontend/app/.server/cookie.ts index cccbe78..4552081 100644 --- a/frontend/app/.server/cookie.ts +++ b/frontend/app/.server/cookie.ts @@ -1,5 +1,5 @@ import { Cookie, CookieOptions } from "@remix-run/server-runtime"; -import { parse, serialize } from "cookie"; +import { parse as parseCookie, serialize as serializeCookie } from "cookie"; // Remix's createCookie() returns "structured" cookies, which are cookies that hold a JSON-encoded object. // This is not suitable for interoperation with other systems that expect a simple string value. @@ -28,11 +28,14 @@ export function createUnstructuredCookie( }, async parse(cookieHeader, parseOptions) { if (!cookieHeader) return null; - const cookies = parse(cookieHeader, { ...options, ...parseOptions }); + const cookies = parseCookie(cookieHeader, { + ...options, + ...parseOptions, + }); return name in cookies ? cookies[name] : null; }, async serialize(value, serializeOptions) { - return serialize(name, value, { + return serializeCookie(name, value, { ...options, ...serializeOptions, }); diff --git a/frontend/app/components/GolfPlayApps/GolfPlayAppGaming.tsx b/frontend/app/components/GolfPlayApps/GolfPlayAppGaming.tsx index 7bfae6b..76ffcb8 100644 --- a/frontend/app/components/GolfPlayApps/GolfPlayAppGaming.tsx +++ b/frontend/app/components/GolfPlayApps/GolfPlayAppGaming.tsx @@ -102,7 +102,7 @@ export default function GolfPlayAppGaming({ ref={textareaRef} defaultValue={initialCode} onChange={handleTextChange} - className="resize-none h-full w-full rounded-lg border border-gray-300 p-2 focus:outline-none focus:ring-2 focus:ring-gray-400 transition duration-300" + className="resize-none h-full w-full rounded-lg border border-gray-300 p-2 focus:outline-hidden focus:ring-2 focus:ring-gray-400 transition duration-300" />
diff --git a/frontend/app/components/InputText.tsx b/frontend/app/components/InputText.tsx index ed68206..6bcceb7 100644 --- a/frontend/app/components/InputText.tsx +++ b/frontend/app/components/InputText.tsx @@ -6,7 +6,7 @@ export default function InputText(props: InputProps) { return ( ); } diff --git a/frontend/app/components/NavigateLink.tsx b/frontend/app/components/NavigateLink.tsx index 02aae3e..95c3bcf 100644 --- a/frontend/app/components/NavigateLink.tsx +++ b/frontend/app/components/NavigateLink.tsx @@ -4,7 +4,7 @@ export default function NavigateLink(props: LinkProps) { return ( ); } diff --git a/frontend/app/components/SubmitButton.tsx b/frontend/app/components/SubmitButton.tsx index 643b3f5..3c0d67c 100644 --- a/frontend/app/components/SubmitButton.tsx +++ b/frontend/app/components/SubmitButton.tsx @@ -6,7 +6,7 @@ export default function SubmitButton(props: ButtonProps) { return ( @@ -86,7 +86,7 @@ export default function Dashboard() { ? "http://localhost:8003/phperkaigi/2025/code-battle/admin/dashboard" : "/phperkaigi/2025/code-battle/admin/dashboard" } - className="text-lg text-white bg-sky-600 px-4 py-2 rounded transition duration-300 hover:bg-sky-500 focus:ring focus:ring-sky-400 focus:outline-none" + className="text-lg text-white bg-sky-600 px-4 py-2 rounded-sm transition duration-300 hover:bg-sky-500 focus:ring-3 focus:ring-sky-400 focus:outline-hidden" > Admin Dashboard diff --git a/frontend/app/shiki.css b/frontend/app/shiki.css index 25647c4..91b6e18 100644 --- a/frontend/app/shiki.css +++ b/frontend/app/shiki.css @@ -1,3 +1,3 @@ pre.shiki { - white-space: pre-wrap; + white-space: pre-wrap; } diff --git a/frontend/app/tailwind.css b/frontend/app/tailwind.css index b5c61c9..9e56140 100644 --- a/frontend/app/tailwind.css +++ b/frontend/app/tailwind.css @@ -1,3 +1,5 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; +@import "tailwindcss"; + +@theme { + --text-10xl: 16rem; +} -- cgit v1.2.3-70-g09d2