Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elixir bsc #54

Merged
merged 2 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion frontend/package-lock.json

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

5 changes: 4 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,16 @@
"react-outside-click-handler": "^1.3.0",
"react-router-bootstrap": "0.26.2",
"react-router-dom": "^6.4.3",
"react-router-scroll-top": "^0.3.1",
"react-scripts": "^5.0.1",
"react-scroll-to-top": "^3.0.0",
"react-select": "^5.7.2",
"react-svg-worldmap": "^2.0.0-alpha.16",
"react-tag-box": "^1.6.0",
"reaselct": "^2.1.0",
"rsuite": "^5.33.1",
"web-vitals": "^2.1.0"
"web-vitals": "^2.1.0",
"with-router": "^1.0.1"
},
"scripts": {
"start": "react-scripts start",
Expand Down
44 changes: 23 additions & 21 deletions frontend/public/index.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--

<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Web site created using create-react-app" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Expand All @@ -24,12 +22,13 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>ELIXIR Beacon network demo</title>
</head>
<body class="dx-viewport">
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
<title>ELIXIR Beacon network demo</title>
</head>

<body class="dx-viewport">
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.

Expand All @@ -39,5 +38,8 @@
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script>
</body>

</html>
5 changes: 3 additions & 2 deletions frontend/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ html {
margin-bottom: 31px;
color: rgba(12, 16, 64, 0.606);
font-size: 16px;
font-feature-settings: 'pcap', 'c2pc', "pcap", "c2pc";
font-feature-settings: 'pcap', 'c2pc', 'pcap', 'c2pc';
font-variant-caps: all-petite-caps;
}

Expand Down Expand Up @@ -285,7 +285,6 @@ html {
sans-serif;
}


.labelVariantsTittle {
font-size: 16px;
margin-bottom: 27px;
Expand Down Expand Up @@ -654,6 +653,8 @@ select {
/* justify-content: center; */
align-content: center;
align-items: center;
padding-bottom: 10px;
min-height: 630px;
}

.resultSet2 {
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import Validator from './components/Validator/Validator'
import SignInFormNoLS from './components/SignIn/SignInFormNoLS'
import AboutSection from './components/AboutSection/AboutSection'
import SignInOptions from './components/SignInOptions/SignInOptions'
import Footer from './components/Footer/Footer'

function App () {
return (
Expand All @@ -42,6 +43,7 @@ function App () {
<Route path='/about' element={<AboutSection />} />
<Route path='*' element={<ErrorPage />} />
</Routes>
<Footer/>
</div>
)
}
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/components/AboutSection/AboutSection.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.aboutContainer{
height: 90vh;
}
2 changes: 1 addition & 1 deletion frontend/src/components/AboutSection/AboutSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import './AboutSection.css'

function AboutSection () {
return (
<div>
<div className='aboutContainer'>

</div>
)
Expand Down
20 changes: 12 additions & 8 deletions frontend/src/components/Analyses/AnalysesResults.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,9 @@ function AnalysesResults (props) {
setTimeOut(true)

if (
res.data.responseSummary.numTotalResults < 1 ||
res.data.responseSummary.numTotalResults === undefined
(res.data.responseSummary.numTotalResults < 1 ||
res.data.responseSummary.numTotalResults === undefined) &&
props.resultSets !== 'MISS'
) {
setError('No results. Please try another query')
setNumberResults(0)
Expand Down Expand Up @@ -295,10 +296,11 @@ function AnalysesResults (props) {
setTimeOut(true)

if (
res.data.responseSummary.numTotalResults < 1 ||
res.data.responseSummary.numTotalResults === undefined
(res.data.responseSummary.numTotalResults < 1 ||
res.data.responseSummary.numTotalResults === undefined) &&
props.resultSets !== 'MISS'
) {
setError('No results. Please try another query')
setError('. Please try another query')
setNumberResults(0)
setBoolean(false)
} else {
Expand Down Expand Up @@ -417,9 +419,11 @@ function AnalysesResults (props) {
<button className='typeResults' onClick={handleTypeResults2}>
<h5>Count</h5>
</button>
<button className='typeResults' onClick={handleTypeResults3}>
<h5>Full response</h5>
</button>
{props.resultSets !== 'MISS' && (
<button className='typeResults' onClick={handleTypeResults3}>
<h5>Full response</h5>
</button>
)}
</div>
</div>
)}
Expand Down
14 changes: 8 additions & 6 deletions frontend/src/components/Biosamples/BiosamplesResults.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,9 @@ function BiosamplesResults (props) {
setTimeOut(true)

if (
res.data.responseSummary.numTotalResults < 1 ||
res.data.responseSummary.numTotalResults === undefined
(res.data.responseSummary.numTotalResults < 1 ||
res.data.responseSummary.numTotalResults === undefined) &&
props.resultSets !== 'MISS'
) {
setError('No results. Please try another query')
setNumberResults(0)
Expand Down Expand Up @@ -299,8 +300,9 @@ function BiosamplesResults (props) {
setTimeOut(true)

if (
res.data.responseSummary.numTotalResults < 1 ||
res.data.responseSummary.numTotalResults === undefined
(res.data.responseSummary.numTotalResults < 1 ||
res.data.responseSummary.numTotalResults === undefined) &&
props.resultSets !== 'MISS'
) {
setError('No results. Please try another query')
setNumberResults(0)
Expand Down Expand Up @@ -420,9 +422,9 @@ function BiosamplesResults (props) {
<button className='typeResults' onClick={handleTypeResults2}>
<h5>Count</h5>
</button>
<button className='typeResults' onClick={handleTypeResults3}>
{props.resultSets !== 'MISS' && <button className='typeResults' onClick={handleTypeResults3}>
<h5>Full response</h5>
</button>
</button>}
</div>
</div>
)}
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/Cohorts/Cohorts.css
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ h12 {
align-items: center;
justify-content: center;
flex-direction: column;
min-height: 1000px;
}

.graphsDiv h3 {
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/components/CrossQueries/CrossQueries.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
display: flex;
flex-direction: column;
/* justify-content: center; */
margin-top: 40px;
margin-right: 30px;
margin-top: -83px;
/* margin-right: 30px; */
align-content: center;
align-items: flex-start;
}
Expand Down Expand Up @@ -39,6 +39,7 @@ select {
align-items: center;
width: 100vw;
flex-direction: column;
height: 100vh;
}

.crossQueriesForm label {
Expand Down
5 changes: 4 additions & 1 deletion frontend/src/components/Datasets/ResultsDatasets.css
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,11 @@ p a {
.resultsRecord {
display: flex;
flex-direction: row;

height: 140%;
flex-wrap: wrap;
justify-content: center;
align-content: center;
padding-bottom: 10px;
}

@media (max-width: 860px) {
Expand Down Expand Up @@ -257,6 +258,8 @@ p a {
justify-content: center;
align-content: center;
width: 100vw;
padding-bottom: 10px;
height: 160%;
}

.tittle4 {
Expand Down
Loading