diff --git a/README.md b/README.md index 44c7116..7d36509 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Un motore di ricerca libri basato su protocollo IPFS. -Una versione funzionante si trova [qui](https://millelibri.lamacchinadesiderante.org). +Una versione funzionante si trova [qui](https://millelibri.copyriot.xyz). Il progetto รจ partito come un fork di [Book Searcher](https://github.com/book-searcher-org/book-searcher). diff --git a/frontend/.gitignore b/frontend/.gitignore index 41282fd..c9bb82d 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -1,5 +1,6 @@ # Logs logs +json *.log npm-debug.log* yarn-debug.log* diff --git a/frontend/package.json b/frontend/package.json index 4df080e..7b1b360 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "frontend", "private": true, - "version": "v0.6.0", + "version": "v0.7.0", "type": "module", "repository": "https://git.lamacchinadesiderante.org/lamacchinadesiderante/millelibri", "scripts": { diff --git a/frontend/src/components/BooksDetailsCard.tsx b/frontend/src/components/BooksDetailsCard.tsx index dec5545..5a60bcb 100644 --- a/frontend/src/components/BooksDetailsCard.tsx +++ b/frontend/src/components/BooksDetailsCard.tsx @@ -19,12 +19,12 @@ interface IProps { const BookDetailsCard: React.FC = (props) => { - // const downloadLinkFromIPFS = (gateway: string, book: Book) => { - // return ( - // `https://${gateway}/ipfs/${book.ipfs_cid}?filename=` + - // encodeURIComponent(`${book.title}_${book.author}.${book.extension}`) - // ); - // } + const downloadLinkFromIPFS = (gateway: string, book: Book) => { + return ( + `https://${gateway}/ipfs/${book.ipfs_cid}?filename=` + + encodeURIComponent(`${book.title}_${book.author}.${book.extension}`) + ); + } const { t } = useTranslation(); @@ -54,7 +54,7 @@ const BookDetailsCard: React.FC = (props) => { - {/* {id} */} + {id} {ipfs_cid} @@ -88,7 +88,7 @@ const BookDetailsCard: React.FC = (props) => { - {/* + {ipfsGateways.map((gateway) => ( ))} - */} + - {t('disclaimer.nolink_warning')} + {/* {t('disclaimer.nolink_warning')} */}