diff --git a/README.md b/README.md index a6e3478..44c7116 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Occorre clonare il repo e il file contenente gli indici dei libri: ``` git clone https://git.lamacchinadesiderante.org/lamacchinadesiderante/millelibri && cd millelibri -wget https://github.com/zlib-searcher/index/releases/download/0.8.0/index_0.8.0.zip && unzip index_0.8.0.zip +wget https://link.storjshare.io/juobea2obv6nadmij22tidrenlfa/millelibri%2Findex%2Frust%2Findex_0.6.zip?download=1 && unzip index_0.6.zip docker-compose up -d ``` diff --git a/docker-compose.yml b/docker-compose.yml index 7ddf9e7..bf50d75 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,9 +2,9 @@ version: '3' services: zlib: - # image: lamacchinadesiderante/millelibri:latest + image: lamacchinadesiderante/millelibri:latest - image: millelibri:v0.4 + # image: millelibri:v0.4 # image: millelibri diff --git a/frontend/.env.development b/frontend/.env.development index 2137c05..5cd0d30 100644 --- a/frontend/.env.development +++ b/frontend/.env.development @@ -1,2 +1,3 @@ # .env.production -VITE_BACKEND_BASE_API = 'http://127.0.0.1:7070/' \ No newline at end of file +VITE_BACKEND_BASE_API = 'http://127.0.0.1:7070/' +VITE_STORJ_JSON_URL = 'https://link.storjshare.io/juowot6xaa2rz4vjqeal2uo44jka/millelibri%2Findex%2Fjson%2Fmillelibri.json?download=1' \ No newline at end of file diff --git a/frontend/.env.production b/frontend/.env.production index 7947c31..375f178 100644 --- a/frontend/.env.production +++ b/frontend/.env.production @@ -1,2 +1,3 @@ # .env.production -VITE_BACKEND_BASE_API = '' \ No newline at end of file +VITE_BACKEND_BASE_API = '' +VITE_STORJ_JSON_URL = '' \ No newline at end of file diff --git a/frontend/package.json b/frontend/package.json index 8ee1644..95ec68e 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "frontend", "private": true, - "version": "0.4.4", + "version": "0.6", "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 2695966..dec5545 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')}