-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into check-file-sizes
- Loading branch information
Showing
9 changed files
with
64 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,11 @@ import { | |
} from 'antd'; | ||
import { CheckCircleTwoTone, CloseCircleTwoTone, DeleteOutlined } from '@ant-design/icons'; | ||
import Dropzone from 'react-dropzone'; | ||
|
||
import config from 'config'; | ||
import techOptions from 'utils/upload/fileUploadSpecifications'; | ||
import handleError from 'utils/http/handleError'; | ||
import { fileObjectToFileRecord } from 'utils/upload/processUpload'; | ||
|
||
import integrationTestConstants from 'utils/integrationTestConstants'; | ||
import endUserMessages from 'utils/endUserMessages'; | ||
|
||
|
@@ -149,7 +150,7 @@ const FileUploadModal = (props) => { | |
<Text type='secondary'> | ||
<i> | ||
Is your dataset generated using another single cell RNA-seq technology (e.g. Nadia, BD Rhapsody, etc.)? Email us to find out if we can support your data: | ||
<a href='mailto:[email protected]'> [email protected]</a> | ||
<a href={`mailto:${config.supportEmail}`}>{config.supportEmail}</a> | ||
</i> | ||
</Text> | ||
</Space> | ||
|
@@ -172,7 +173,7 @@ const FileUploadModal = (props) => { | |
<Paragraph type='secondary'> | ||
<i> | ||
Don’t have the data in the accepted format? Email us for help with file conversion (e.g. from Fastq or H5 file): | ||
<a href='mailto:[email protected]'> [email protected]</a> | ||
<a href={`mailto:${config.supportEmail}`}>{config.supportEmail}</a> | ||
</i> | ||
<span style={{ display: 'block', height: '0.6rem' }} /> | ||
<i> | ||
|
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,21 +1,32 @@ | ||
import React, { useState } from 'react'; | ||
import { Button, Dropdown, Card } from 'antd'; | ||
import { QuestionCircleOutlined, DownOutlined } from '@ant-design/icons'; | ||
import nextConfig from 'next/config'; | ||
|
||
import config from 'config'; | ||
import { AccountId } from 'utils/deploymentInfo'; | ||
|
||
const accountId = nextConfig()?.publicRuntimeConfig?.accountId; | ||
|
||
const HelpButton = () => { | ||
const [visible, setVisible] = useState(false); | ||
|
||
const overlay = () => ( | ||
<Card size='small' style={{ padding: '1em', width: '265px' }}> | ||
For tutorial videos, ‘how to’ guides and FAQs on how to use Cellenics, visit | ||
{' '} | ||
<a href='https://www.biomage.net/get-started' target='_blank' rel='noreferrer'>our website</a> | ||
. | ||
<br /> | ||
<br /> | ||
{accountId !== AccountId.HMS && ( | ||
<> | ||
For tutorial videos, ‘how to’ guides and FAQs on how to use Cellenics, visit | ||
{' '} | ||
<a href='https://www.biomage.net/get-started' target='_blank' rel='noreferrer'>our website</a> | ||
. | ||
<br /> | ||
<br /> | ||
</> | ||
)} | ||
|
||
If you need additional help with your analysis, email: | ||
{' '} | ||
<a href='mailto:[email protected]'>[email protected]</a> | ||
<a href={`mailto:${config.supportEmail}`}>{config.supportEmail}</a> | ||
</Card> | ||
); | ||
|
||
|
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,16 @@ | ||
import nextConfig from 'next/config'; | ||
|
||
import { AccountId } from 'utils/deploymentInfo'; | ||
|
||
const accountId = nextConfig()?.publicRuntimeConfig?.accountId ?? AccountId.BIOMAGE; | ||
|
||
const supportEmailsByAccountId = { | ||
[AccountId.BIOMAGE]: '[email protected]', | ||
[AccountId.HMS]: '[email protected]', | ||
}; | ||
|
||
const config = { | ||
supportEmail: supportEmailsByAccountId[accountId], | ||
}; | ||
|
||
export default config; |
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,12 @@ | ||
import defaultConfig from 'config/defaultConfig'; | ||
import testConfig from 'config/testConfig'; | ||
|
||
// eslint-disable-next-line import/no-mutable-exports | ||
let config; | ||
if (process.env.NODE_ENV === 'test' || process.env.JEST_WORKER_ID) { | ||
config = testConfig; | ||
} else { | ||
config = defaultConfig; | ||
} | ||
|
||
export default config; |
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,5 @@ | ||
const config = { | ||
supportEmail: '[email protected]', | ||
}; | ||
|
||
export default config; |
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