Skip to content
This repository was archived by the owner on Jun 2, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: lint
  • Loading branch information
hi-ogawa committed Apr 5, 2024
commit 9587dd864a37ef313b3566d22efed31afc544dda
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pnpm-lock.yaml
node_modules
dist
.vercel
.wrangler
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
"dev": "vite dev",
"build": "vite build && vite build --ssr",
"preview": "vite preview",
"tsc": "tsc -b",
"tsc-dev": "pnpm tsc --watch --preserveWatchOutput",
"lint": "prettier -w --cache .",
"lint-check": "prettier -c --cache .",
"cf-build": "SSR_ENTRY=/src/adapters/cloudflare-workers.ts pnpm build && bash misc/cloudflare-workers/build.sh",
"cf-preview": "cd misc/cloudflare-workers && wrangler dev",
"cf-release": "cd misc/cloudflare-workers && wrangler deploy"
Expand All @@ -23,6 +27,8 @@
"@types/react": "18.2.66",
"@types/react-dom": "18.2.22",
"@vitejs/plugin-react": "^4.2.1",
"prettier": "^3.2.5",
"typescript": "^5.4.4",
"vite": "latest"
}
}
18 changes: 18 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ button {
border: none;
border-radius: 8px;
padding: 0.5rem 0.75rem;
box-shadow: 0 0px 1px hsla(0, 0%, 0%, 0.2), 0 1px 2px hsla(0, 0%, 0%, 0.2);
box-shadow:
0 0px 1px hsla(0, 0%, 0%, 0.2),
0 1px 2px hsla(0, 0%, 0%, 0.2);
background-color: white;
line-height: 1.5;
margin: 0;
Expand All @@ -48,7 +50,9 @@ button {
textarea:hover,
input:hover,
button:hover {
box-shadow: 0 0px 1px hsla(0, 0%, 0%, 0.6), 0 1px 2px hsla(0, 0%, 0%, 0.2);
box-shadow:
0 0px 1px hsla(0, 0%, 0%, 0.6),
0 1px 2px hsla(0, 0%, 0%, 0.2);
}

button:active {
Expand Down
6 changes: 1 addition & 5 deletions src/routes/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ export default function Layout(props: React.PropsWithChildren) {
placeholder="Search"
type="search"
/>
<div
aria-hidden
hidden={true}
id="search-spinner"
/>
<div aria-hidden hidden={true} id="search-spinner" />
</form>
<form method="post">
<button type="submit">New</button>
Expand Down