Skip to content

Commit

Permalink
Schema update (#6)
Browse files Browse the repository at this point in the history
* Update dependencies

* Update book interface

* Target e6, update pnpm action
  • Loading branch information
Mansive authored Jul 28, 2024
1 parent 2f6206e commit 78e5316
Show file tree
Hide file tree
Showing 7 changed files with 686 additions and 569 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v3
uses: pnpm/action-setup@v4
with:
version: 8
run_install: false
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@
"preinstall": "npx only-allow pnpm"
},
"dependencies": {
"@react-three/drei": "^9.105.6",
"@react-three/fiber": "^8.16.3",
"@types/three": "^0.159.0",
"@xata.io/client": "^0.28.4",
"framer-motion": "^10.18.0",
"next": "^14.2.3",
"@react-three/drei": "^9.109.2",
"@react-three/fiber": "^8.16.8",
"@types/three": "^0.167.1",
"@xata.io/client": "^0.30.0",
"framer-motion": "^11.3.19",
"next": "^14.2.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-feather": "^2.0.10",
"three": "^0.159.0"
"three": "^0.167.0"
},
"devDependencies": {
"@types/node": "^20.12.8",
"@types/react": "^18.3.1",
"@types/node": "^20.14.12",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"eslint": "^8.57.0",
"eslint-config-next": "14.0.3",
"typescript": "^5.4.5"
"eslint": "^9.8.0",
"eslint-config-next": "14.2.5",
"typescript": "^5.5.4"
}
}
1,217 changes: 663 additions & 554 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion src/components/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ type CardInterface = {
extension: string;
description: string;
cover: string;
thumbnail: string;
md5: string;
};

function Card({
Expand All @@ -24,9 +26,11 @@ function Card({
extension,
description,
cover,
thumbnail,
md5,
}: CardInterface) {
return (
<div className={styles.wrapper}>
<div className={styles.wrapper} data-unique-id={md5}>
{cover ? (
<ImageWithFallback
unoptimized={true}
Expand Down
2 changes: 2 additions & 0 deletions src/components/SearchResultList/SearchResultList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ function SearchResultList({ searchResults }: SearchResultListInterface) {
extension={book.extension}
description={book.description}
cover={book.cover}
thumbnail={book.thumbnail}
md5={book.md5}
/>
))}
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/data/book-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ export interface Book {
extension: string;
description: string;
cover: string;
thumbnail: string;
md5: string;
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es5",
"target": "es6",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
Expand Down

0 comments on commit 78e5316

Please sign in to comment.