diff --git a/package-lock.json b/package-lock.json index fd740174..aab46f2a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "bioimage", - "version": "0.4.12", + "version": "0.4.13", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 7ef371ad..e9ab2fa9 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "name": "bioimage", - "version": "0.4.12", + "version": "0.4.13", "private": true, "scripts": { - "serve": "vue-cli-service serve", + "serve": "vue-cli-service serve --port 3000", "build": "vue-cli-service build", "test:unit": "vue-cli-service test:unit", "lint": "vue-cli-service lint", diff --git a/src/views/Home.vue b/src/views/Home.vue index 5743a5b2..85b3457b 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -700,7 +700,8 @@ export default { selectedCategory: null, displayMode: "card", currentTags: [], - selectedPartner: null + selectedPartner: null, + bioEngineConfigs: {}, }; }, mounted: async function() { @@ -749,14 +750,14 @@ export default { "https://raw.githubusercontent.com/bioimage-io/bioengine-model-runner/gh-pages/manifest.bioengine.json" ); const bioEngineManifest = await response.json(); - const bioEngineConfigs = {}; + self.bioEngineConfigs = {}; for (let conf of bioEngineManifest.collection) - if (conf.id) bioEngineConfigs[conf.id] = conf; + if (conf.id) self.bioEngineConfigs[conf.id] = conf; await this.$store.dispatch("fetchResourceItems", { repo, manifest_url, transform(item) { - return normalizeItem(self, item, bioEngineConfigs); + return normalizeItem(self, item, self.bioEngineConfigs); } }); @@ -916,6 +917,7 @@ export default { for (let k of Object.keys(newRDF)) { if (k !== "rdf_source" && k !== "id") item[k] = newRDF[k]; } + Object.assign(item, normalizeItem(this, item, this.bioEngineConfigs)) item.links = item.links || []; // add training data