Skip to content

Commit

Permalink
Fix relative cover image
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed May 7, 2024
1 parent 3e25e6d commit 759229e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
10 changes: 6 additions & 4 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,8 @@ export default {
selectedCategory: null,
displayMode: "card",
currentTags: [],
selectedPartner: null
selectedPartner: null,
bioEngineConfigs: {},
};
},
mounted: async function() {
Expand Down Expand Up @@ -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);
}
});
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 759229e

Please sign in to comment.