Skip to content

Commit

Permalink
Updated HRA EUI and organ-info web components to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
bherr2 committed Oct 22, 2024
1 parent a04e89f commit 8d6e5ea
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 17 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-update-hra.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Updated HRA EUI and organ-info web components to latest version
3 changes: 1 addition & 2 deletions context/app/static/js/pages/Iframe/Iframe.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ function Switch({ organs_count }) {
return (
<ccf-organ-info
organ-iri={iri}
use-remote-api="true"
remote-api-endpoint="https://apps.humanatlas.io/hubmap-hra-api/v1"
data-sources='["https://apps.humanatlas.io/api/ds-graph/hubmap?token="]'
/>
);
default:
Expand Down
27 changes: 14 additions & 13 deletions context/app/templates/special-pages/ccf-eui.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<title>HuBMAP CCF Exploration User Interface (CCF-EUI)</title>
<base href="https://cdn.jsdelivr.net/gh/hubmapconsortium/ccf-ui@3/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&amp;display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<meta charset="utf-8" />
<title>HuBMAP HRA Exploration User Interface</title>
<base href="https://cdn.humanatlas.io/ui/ccf-eui/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/png" href="/favicon.png" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&amp;display=swap" rel="stylesheet" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined" rel="stylesheet" />
<link href="styles.css" rel="stylesheet" />
<script src="wc.js" async></script>
</head>

<body class="mat-typography">
<body>
<ccf-eui
hubmap-token="{{ groups_token }}"
use-remote-api="true"
remote-api-endpoint="https://apps.humanatlas.io/hubmap-hra-api/v1"
logo-tooltip="HuBMAP Data Portal"
home-url="https://portal.hubmapconsortium.org/"
data-sources='["https://apps.humanatlas.io/api/ds-graph/hubmap?token={{ groups_token }}"]'
theme="hubmap"
></ccf-eui>
</body>

Expand Down
5 changes: 3 additions & 2 deletions context/app/templates/special-pages/organ.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% extends 'base-pages/react-content.html' %}
{% block extra_stylesheets %}
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&amp;display=swap" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/gh/hubmapconsortium/ccf-ui@3/organ-info/styles.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/gh/hubmapconsortium/ccf-ui@3/organ-info/wc.js" async></script>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined" rel="stylesheet">
<link href="https://cdn.humanatlas.io/ui/ccf-organ-info/styles.css" rel="stylesheet">
<script src="https://cdn.humanatlas.io/ui/ccf-organ-info/wc.js" async></script>
{% endblock %}

0 comments on commit 8d6e5ea

Please sign in to comment.