-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yossydev
committed
Feb 23, 2024
1 parent
a57b0c3
commit c64b6d2
Showing
9 changed files
with
96 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import {} from "hono"; | ||
|
||
type Head = { | ||
title?: string; | ||
title?: string; | ||
}; | ||
|
||
declare module "hono" { | ||
interface ContextRenderer { | ||
( | ||
content: string | Promise<string>, | ||
head?: Head, | ||
): Response | Promise<Response>; | ||
} | ||
interface ContextRenderer { | ||
( | ||
content: string | Promise<string>, | ||
head?: Head, | ||
): Response | Promise<Response>; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { useState } from "hono/jsx"; | ||
|
||
export default function Counter() { | ||
const [count, setCount] = useState(0); | ||
return ( | ||
<div> | ||
<p>{count}</p> | ||
<button type="button" onClick={() => setCount(count + 1)}> | ||
Increment | ||
</button> | ||
</div> | ||
); | ||
const [count, setCount] = useState(0); | ||
return ( | ||
<div> | ||
<p>{count}</p> | ||
<button type="button" onClick={() => setCount(count + 1)}> | ||
Increment | ||
</button> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json", | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true | ||
} | ||
} | ||
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json", | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"formatWithErrors": true, | ||
"indentStyle": "space", | ||
"indentWidth": 2, | ||
"lineWidth": 80 | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
{ | ||
"name": "blog", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vite build --mode client && vite build", | ||
"preview": "wrangler pages dev ./dist", | ||
"deploy": "$npm_execpath run build && wrangler pages deploy ./dist", | ||
"format": "biome format . --write", | ||
"lint": "biome lint .", | ||
"check": "biome check --apply ." | ||
}, | ||
"private": true, | ||
"dependencies": { | ||
"hono": "^4.0.5", | ||
"honox": "^0.1.4" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "1.5.3", | ||
"@cloudflare/workers-types": "^4.20240208.0", | ||
"@hono/vite-cloudflare-pages": "^0.2.4", | ||
"autoprefixer": "^10.4.17", | ||
"postcss": "^8.4.35", | ||
"tailwindcss": "^3.4.1", | ||
"vite": "^5.0.12", | ||
"wrangler": "^3.27.0" | ||
} | ||
"name": "blog", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vite build --mode client && vite build", | ||
"preview": "wrangler pages dev ./dist", | ||
"deploy": "$npm_execpath run build && wrangler pages deploy ./dist", | ||
"format": "biome format --write .", | ||
"lint": "biome lint .", | ||
"check": "biome check --apply ." | ||
}, | ||
"private": true, | ||
"dependencies": { | ||
"hono": "^4.0.5", | ||
"honox": "^0.1.4" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "1.5.3", | ||
"@cloudflare/workers-types": "^4.20240208.0", | ||
"@hono/vite-cloudflare-pages": "^0.2.4", | ||
"autoprefixer": "^10.4.17", | ||
"postcss": "^8.4.35", | ||
"tailwindcss": "^3.4.1", | ||
"vite": "^5.0.12", | ||
"wrangler": "^3.27.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export default { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
export default { | ||
content: ["./app/**/*.{js,ts,jsx,tsx}"], | ||
theme: { | ||
extend: {}, | ||
}, | ||
plugins: [], | ||
content: ["./app/**/*.{js,ts,jsx,tsx}"], | ||
theme: { | ||
extend: {}, | ||
}, | ||
plugins: [], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters