From 2fbe26c3dc92430ca7af1a9cd005e7b0b84426de Mon Sep 17 00:00:00 2001 From: the-superpirate Date: Fri, 29 Jan 2021 14:02:40 +0300 Subject: [PATCH 1/2] - fix: Add pulling in documentation GitOrigin-RevId: 3450b71cbb12daf71245985873984402189ab99b --- nexus/cognitron/README.md | 2 +- nexus/cognitron/web/components/v-scimag.vue | 2 +- nexus/cognitron/web/components/v-scitech.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nexus/cognitron/README.md b/nexus/cognitron/README.md index 61958e9..c11c170 100644 --- a/nexus/cognitron/README.md +++ b/nexus/cognitron/README.md @@ -18,7 +18,7 @@ ipfs get $COLLECTION Create [`docker-compose.yml`](docker-compose.yml) file to set up Nexus Cognitron and then launch it: ```shell script -docker-compose up +docker-compose pull && docker-compose up ``` then go to [http://localhost:3000](http://localhost:3000) diff --git a/nexus/cognitron/web/components/v-scimag.vue b/nexus/cognitron/web/components/v-scimag.vue index 53f1840..023dda3 100644 --- a/nexus/cognitron/web/components/v-scimag.vue +++ b/nexus/cognitron/web/components/v-scimag.vue @@ -78,7 +78,7 @@ export default { }, ipfsUrl: function () { if (!this.ipfsMultihash) return null - return `${this.$config.ipfsGateway}/ipfs/${this.ipfsMultihash}?filename=${this.filename}` + return `${this.$config.ipfsGateway}/ipfs/${this.ipfsMultihash}?filename=${this.filename}&download=true` }, ipfsMultihash: function () { if (this.document.ipfsMultihashes) { diff --git a/nexus/cognitron/web/components/v-scitech.vue b/nexus/cognitron/web/components/v-scitech.vue index a99d429..4a8b0d4 100644 --- a/nexus/cognitron/web/components/v-scitech.vue +++ b/nexus/cognitron/web/components/v-scitech.vue @@ -64,7 +64,7 @@ export default { }, ipfsUrl: function () { if (!this.ipfsMultihash) return null - return `${this.$config.ipfsGateway}/ipfs/${this.ipfsMultihash}?filename=${this.filename}` + return `${this.$config.ipfsGateway}/ipfs/${this.ipfsMultihash}?filename=${this.filename}&download=true` }, ipfsMultihash: function () { if (this.document.ipfsMultihashes) { From 778fae838473242cb32aeb7898395dddcca76c48 Mon Sep 17 00:00:00 2001 From: the-superpirate Date: Fri, 29 Jan 2021 14:08:49 +0300 Subject: [PATCH 2/2] - fix: Add pinning to documentation GitOrigin-RevId: de34db02a8854704ab3cb3f3d91de1cd30c21252 --- nexus/cognitron/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nexus/cognitron/README.md b/nexus/cognitron/README.md index c11c170..d53b034 100644 --- a/nexus/cognitron/README.md +++ b/nexus/cognitron/README.md @@ -11,7 +11,7 @@ Follow the [root guide](../../README.md) to install Docker, IPFS and Bazel (opti ```shell script export COLLECTION=bafykbzacebzohi352bddfunaub5rgqv5b324nejk5v6fltjh45be5ykw5jsjg export COLLECTION_PATH=$(realpath $COLLECTION) -ipfs get $COLLECTION +ipfs get $COLLECTION && ipfs pin add $COLLECTION ``` #### 2. Launch Nexus Cognitron