From c64b6d2650c6a69563c711f25bf14bb50f2ccb58 Mon Sep 17 00:00:00 2001 From: yossydev Date: Fri, 23 Feb 2024 16:44:39 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20tab=E3=81=A7=E3=81=AF=E3=81=AA=E3=81=8F?= =?UTF-8?q?space=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/global.d.ts | 14 +++++------ app/islands/counter.tsx | 18 +++++++------- app/routes/_renderer.tsx | 24 +++++++++---------- app/routes/index.tsx | 16 ++++++------- biome.json | 27 +++++++++++++-------- package.json | 52 ++++++++++++++++++++-------------------- postcss.config.js | 8 +++---- tailwind.config.js | 10 ++++---- vite.config.ts | 16 ++++++------- 9 files changed, 96 insertions(+), 89 deletions(-) diff --git a/app/global.d.ts b/app/global.d.ts index b4a84dc..97866ad 100644 --- a/app/global.d.ts +++ b/app/global.d.ts @@ -1,14 +1,14 @@ import {} from "hono"; type Head = { - title?: string; + title?: string; }; declare module "hono" { - interface ContextRenderer { - ( - content: string | Promise, - head?: Head, - ): Response | Promise; - } + interface ContextRenderer { + ( + content: string | Promise, + head?: Head, + ): Response | Promise; + } } diff --git a/app/islands/counter.tsx b/app/islands/counter.tsx index ad97711..87b3f26 100644 --- a/app/islands/counter.tsx +++ b/app/islands/counter.tsx @@ -1,13 +1,13 @@ import { useState } from "hono/jsx"; export default function Counter() { - const [count, setCount] = useState(0); - return ( -
-

{count}

- -
- ); + const [count, setCount] = useState(0); + return ( +
+

{count}

+ +
+ ); } diff --git a/app/routes/_renderer.tsx b/app/routes/_renderer.tsx index ae4e260..fc3ce8b 100644 --- a/app/routes/_renderer.tsx +++ b/app/routes/_renderer.tsx @@ -3,16 +3,16 @@ import { jsxRenderer } from "hono/jsx-renderer"; import { Script } from "honox/server"; export default jsxRenderer(({ children, title }) => { - return ( - - - - - {title} -