Skip to content

Commit

Permalink
Merge pull request #251 from biothings/guide-update
Browse files Browse the repository at this point in the history
fix: 🔨 hide coverage per portal, add nde filters
  • Loading branch information
marcodarko authored Jan 25, 2024
2 parents 0835d0c + a60ca58 commit 9e7a6ef
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
5 changes: 4 additions & 1 deletion nuxt-app/components/ResourceRegistryItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ import dde from "~~/assets/img/dde-logo-o.svg";
import n3cLogo from "~~/assets/img/N3Co.png";
import niaidIcon from "~~/assets/img/niaid/icon.svg";
import outbreakIcon from "~~/assets/img/icon-01.svg";
import nde from "~~/assets/img/niaid/nde.svg";
export default {
name: "ResourceRegistryItem",
Expand Down Expand Up @@ -125,7 +126,9 @@ export default {
return outbreakIcon;
} else if (guide.includes("n3c")) {
return n3cLogo;
} else {
} else if (guide.includes("nde")){
return nde
}else {
return dde;
}
},
Expand Down
9 changes: 9 additions & 0 deletions nuxt-app/pages/dataset/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ import dde from "~~/assets/img/dde-logo-o.svg";
import n3cLogo from "~~/assets/img/N3Co.png";
import niaidIcon from "~~/assets/img/niaid/icon.svg";
import outbreakIcon from "~~/assets/img/icon-01.svg";
import nde from "~~/assets/img/niaid/nde.svg";
import { mapGetters } from "vuex";
Expand Down Expand Up @@ -406,6 +407,14 @@ export default {
icon: outbreakIcon,
type: "_meta.guide",
},
{
name: "NDE:ResourceCatalog",
value: "/guide/nde/ResourceCatalog",
template_aliases: ["nde:resourcecatalog"],
active: false,
icon: nde,
type: "_meta.guide",
},
{
name: "NIAID:Dataset",
value: "/guide/niaid",
Expand Down
2 changes: 1 addition & 1 deletion nuxt-app/pages/portal/[portal_name]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ useHead({
<div
class="col-sm-12 col-md-4 d-flex flex-column justify-content-center align-items-stretch alert-dark p-5"
>
<div class="text-center p-2 m-1 rounded p-3">
<div class="text-center p-2 m-1 rounded p-3" v-if="portal.showCoverage">
<CoverageIcon :color="portal?.colors[0]?.hex"></CoverageIcon>
<nuxt-link
:to="{ path: '/coverage' }"
Expand Down
5 changes: 5 additions & 0 deletions nuxt-app/store/modules/portals.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const portals = {
api: "https://api.outbreak.info/",
site: "https://outbreak.info/",
schema: "/view/outbreak",
showCoverage: true,
coverage: ["Dataset"],
guides: [
{
Expand All @@ -50,6 +51,7 @@ export const portals = {
portalicon: nde,
site: "https://data.niaid.nih.gov/portal",
schema: "/view/nde",
showCoverage: false,
coverage: ["Dataset", "ResourceCatalog"],
guides: [
{
Expand Down Expand Up @@ -91,6 +93,7 @@ export const portals = {
portalicon: niaidIcon,
site: "",
schema: "/view/niaid",
showCoverage: false,
coverage: ["Dataset", "ComputationalTool"],
guides: [
{
Expand Down Expand Up @@ -131,6 +134,7 @@ export const portals = {
portalicon: dde,
site: "https://ctsa.ncats.nih.gov/cd2h/",
schema: "/view/biomedical",
showCoverage: true,
coverage: ["Dataset"],
guides: [
{
Expand Down Expand Up @@ -159,6 +163,7 @@ export const portals = {
portalicon: n3c,
site: "https://covid.cd2h.org/N3C",
schema: "/view/n3c",
showCoverage: true,
coverage: ["Dataset"],
guides: [
{
Expand Down

0 comments on commit 9e7a6ef

Please sign in to comment.