-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Brian Reilly <[email protected]>
- Loading branch information
Showing
55 changed files
with
1,010 additions
and
693 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# This file is generated by the 'io.freefair.lombok' Gradle plugin | ||
config.stopBubbling = true | ||
lombok.extern.findbugs.addSuppressFBWarnings = true |
Binary file added
BIN
+10.8 KB
populate/src/main/resources/seed/portals/hearthive/images/favicon.ico
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import React from 'react' | ||
import { Link } from 'react-router-dom' | ||
import { studyParticipantsPath } from './portal/PortalRouter' | ||
import { useNavContext } from './navbar/NavContextProvider' | ||
import { getImageUrl } from './api/api' | ||
|
||
/** Shows a user the list of portals available to them */ | ||
function HomePage() { | ||
const { portalList } = useNavContext() | ||
|
||
return <div className="container"> | ||
<h1 className="h2">Juniper Home</h1> | ||
<div className="ms-5 mt-4"> | ||
<h2 className="h4">My Studies</h2> | ||
<ul className="list-group list-group-flush fs-5"> | ||
{ portalList.flatMap(portal => | ||
portal.portalStudies.map(portalStudy => { | ||
const study = portalStudy.study | ||
return <li key={`${portal.shortcode}-${study.shortcode}`} | ||
className="list-group-item my-1 border border-secondary-subtle rounded "> | ||
<Link to={studyParticipantsPath(portal.shortcode, study.shortcode, 'live')}> | ||
<img | ||
src={getImageUrl(portal.shortcode, 'favicon.ico', 1)} | ||
className="me-3" style={{ maxHeight: '1.5em' }}/> | ||
{study.name} | ||
</Link> | ||
</li> | ||
}) | ||
)} | ||
</ul> | ||
</div> | ||
</div> | ||
} | ||
|
||
export default HomePage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.