-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AppConfig]: format codebase to match prettier rules (#318)
* feat: add format script on packages * fix: format platform codebase * fix: format genetics codebase * fix: format platform/sections codebase * fix: format ui package codebase * feat: update turbo config
- Loading branch information
Showing
466 changed files
with
4,261 additions
and
6,468 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { default } from './ColocForGeneTable'; | ||
export { default } from "./ColocForGeneTable"; |
6 changes: 3 additions & 3 deletions
6
apps/genetics/src/components/ColocQTLGeneTissueTable/index.js
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,7 +1,7 @@ | ||
import ColocQTLGeneTissueTableCmp from './ColocQTLGeneTissueTable'; | ||
import ColocQTLGeneTissueTableCmp from "./ColocQTLGeneTissueTable"; | ||
|
||
export { getTableColumns } from './ColumnRenderers'; | ||
export { getTableColumns } from "./ColumnRenderers"; | ||
|
||
export { useColocTable } from './useColocTable'; | ||
export { useColocTable } from "./useColocTable"; | ||
|
||
export default ColocQTLGeneTissueTableCmp; |
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,2 @@ | ||
export { default as ExternalLink } from './ExternalLink'; | ||
export { default as XRefLinks } from './XRefLinks'; | ||
export { default as ExternalLink } from "./ExternalLink"; | ||
export { default as XRefLinks } from "./XRefLinks"; |
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 +1 @@ | ||
export { default } from './Search'; | ||
export { default } from "./Search"; |
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,13 +1,12 @@ | ||
const config = { | ||
apiUrl: | ||
window.configApiUrl ?? 'https://api.genetics.opentargets.org/graphql', | ||
// window.configApiUrl ?? 'https://api.genetics.dev.opentargets.xyz/graphql', | ||
apiUrl: window.configApiUrl ?? "https://api.genetics.opentargets.org/graphql", | ||
// window.configApiUrl ?? 'https://api.genetics.dev.opentargets.xyz/graphql', | ||
googleTagManagerID: window.configGoogleTagManagerID ?? null, | ||
helpdeskEmail: window.configHelpdeskEmail ?? '[email protected]', | ||
helpdeskEmail: window.configHelpdeskEmail ?? "[email protected]", | ||
profile: window.configProfile ?? {}, | ||
platformUrl: window.configPlatformUrl | ||
? window.configPlatformUrl.replace(/\/$/, '') | ||
: 'https://platform.opentargets.org', | ||
? window.configPlatformUrl.replace(/\/$/, "") | ||
: "https://platform.opentargets.org", | ||
}; | ||
|
||
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import pkg from '../package.json'; | ||
import pkg from "../package.json"; | ||
|
||
const defaults = { | ||
REACT_APP_GRAPHQL_API_URL: 'https://genetics-api.opentargets.io', | ||
REACT_APP_PLATFORM_URL: 'https://platform.opentargets.org/', | ||
REACT_APP_GIT_REVISION: '2222ccc', | ||
REACT_APP_CONTACT_URL: 'mailto:[email protected]', | ||
REACT_APP_GRAPHQL_API_URL: "https://genetics-api.opentargets.io", | ||
REACT_APP_PLATFORM_URL: "https://platform.opentargets.org/", | ||
REACT_APP_GIT_REVISION: "2222ccc", | ||
REACT_APP_CONTACT_URL: "mailto:[email protected]", | ||
}; | ||
|
||
const envVarOrDefault = envVarName => | ||
process.env[envVarName] ? process.env[envVarName] : defaults[envVarName]; | ||
|
||
export const packageVersion = pkg.version; | ||
export const graphqlApiUrl = envVarOrDefault('REACT_APP_GRAPHQL_API_URL'); | ||
export const platformUrl = envVarOrDefault('REACT_APP_PLATFORM_URL'); | ||
export const gitRevision = envVarOrDefault('REACT_APP_GIT_REVISION'); | ||
export const contactUrl = envVarOrDefault('REACT_APP_CONTACT_URL'); | ||
export const graphqlApiUrl = envVarOrDefault("REACT_APP_GRAPHQL_API_URL"); | ||
export const platformUrl = envVarOrDefault("REACT_APP_PLATFORM_URL"); | ||
export const gitRevision = envVarOrDefault("REACT_APP_GIT_REVISION"); | ||
export const contactUrl = envVarOrDefault("REACT_APP_CONTACT_URL"); |
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,102 +1,102 @@ | ||
import { faBook, faEnvelope } from '@fortawesome/free-solid-svg-icons'; | ||
import { faBook, faEnvelope } from "@fortawesome/free-solid-svg-icons"; | ||
import { | ||
faDiscourse, | ||
faTwitterSquare, | ||
faLinkedin, | ||
faGithubSquare, | ||
faYoutubeSquare, | ||
} from '@fortawesome/free-brands-svg-icons'; | ||
} from "@fortawesome/free-brands-svg-icons"; | ||
|
||
import { contactUrl as contactUrlConfig } from './configuration'; | ||
import config from './config'; | ||
import { contactUrl as contactUrlConfig } from "./configuration"; | ||
import config from "./config"; | ||
|
||
export const pvalThreshold = 4.94e-322; | ||
|
||
export const contactUrl = contactUrlConfig; | ||
|
||
export const naLabel = 'N/A'; | ||
export const naLabel = "N/A"; | ||
|
||
export const mainMenuItems = [ | ||
// Documentation | ||
{ | ||
name: 'Documentation', | ||
url: 'https://genetics-docs.opentargets.org', | ||
name: "Documentation", | ||
url: "https://genetics-docs.opentargets.org", | ||
external: true, | ||
}, | ||
// Data downloads | ||
{ | ||
name: 'Data downloads', | ||
url: 'https://genetics-docs.opentargets.org/data-access/data-download', | ||
name: "Data downloads", | ||
url: "https://genetics-docs.opentargets.org/data-access/data-download", | ||
external: true, | ||
}, | ||
// API | ||
// TODO: update config | ||
{ | ||
name: 'API', | ||
url: '/api', | ||
name: "API", | ||
url: "/api", | ||
// url: config.apiUrl.split('/graphql')[0], | ||
external: false, | ||
}, | ||
// Community | ||
{ | ||
name: 'Community', | ||
url: 'https://community.opentargets.org/', | ||
name: "Community", | ||
url: "https://community.opentargets.org/", | ||
external: true, | ||
}, | ||
]; | ||
|
||
export const externalLinks = { | ||
about: [ | ||
{ | ||
label: 'Community forum', | ||
url: 'https://community.opentargets.org/', | ||
label: "Community forum", | ||
url: "https://community.opentargets.org/", | ||
}, | ||
{ | ||
label: 'Privacy notice', | ||
url: 'https://www.ebi.ac.uk/data-protection/privacy-notice/open-targets', | ||
label: "Privacy notice", | ||
url: "https://www.ebi.ac.uk/data-protection/privacy-notice/open-targets", | ||
}, | ||
{ | ||
label: 'Terms of use', | ||
label: "Terms of use", | ||
url: `https://genetics-docs.opentargets.org/terms-of-use`, | ||
}, | ||
], | ||
license: { | ||
label: 'Open Targets Genetics', | ||
url: 'https://genetics.opentargets.org/', | ||
label: "Open Targets Genetics", | ||
url: "https://genetics.opentargets.org/", | ||
}, | ||
network: [ | ||
{ label: 'Science', url: 'https://www.opentargets.org/science' }, | ||
{ label: 'Publications', url: 'https://www.opentargets.org/publications' }, | ||
{ label: 'Platform', url: 'https://platform.opentargets.org/' }, | ||
{ label: 'Jobs', url: 'https://www.opentargets.org/jobs' }, | ||
{ label: 'Blog', url: 'https://blog.opentargets.org' }, | ||
{ label: "Science", url: "https://www.opentargets.org/science" }, | ||
{ label: "Publications", url: "https://www.opentargets.org/publications" }, | ||
{ label: "Platform", url: "https://platform.opentargets.org/" }, | ||
{ label: "Jobs", url: "https://www.opentargets.org/jobs" }, | ||
{ label: "Blog", url: "https://blog.opentargets.org" }, | ||
], | ||
partners: [ | ||
{ label: 'Bristol Myers Squibb', url: 'https://www.bms.com' }, | ||
{ label: 'EMBL-EBI', url: 'http://www.ebi.ac.uk' }, | ||
{ label: 'Genentech', url: 'https://www.gene.com' }, | ||
{ label: 'GSK', url: 'http://www.gsk.com' }, | ||
{ label: 'Pfizer', url: 'https://pfizer.com/' }, | ||
{ label: 'Sanofi', url: 'https://www.sanofi.com' }, | ||
{ label: 'Wellcome Sanger Institute', url: 'http://www.sanger.ac.uk' }, | ||
{ label: "Bristol Myers Squibb", url: "https://www.bms.com" }, | ||
{ label: "EMBL-EBI", url: "http://www.ebi.ac.uk" }, | ||
{ label: "Genentech", url: "https://www.gene.com" }, | ||
{ label: "GSK", url: "http://www.gsk.com" }, | ||
{ label: "Pfizer", url: "https://pfizer.com/" }, | ||
{ label: "Sanofi", url: "https://www.sanofi.com" }, | ||
{ label: "Wellcome Sanger Institute", url: "http://www.sanger.ac.uk" }, | ||
], | ||
help: [ | ||
{ | ||
label: 'Documentation', | ||
label: "Documentation", | ||
icon: faBook, | ||
url: 'https://genetics-docs.opentargets.org', | ||
url: "https://genetics-docs.opentargets.org", | ||
}, | ||
{ | ||
label: 'Community', | ||
label: "Community", | ||
icon: faDiscourse, | ||
url: 'https://community.opentargets.org', | ||
url: "https://community.opentargets.org", | ||
external: true, | ||
} | ||
}, | ||
], | ||
social: [ | ||
{ icon: faTwitterSquare, url: 'https://twitter.com/opentargets' }, | ||
{ icon: faLinkedin, url: 'https://www.linkedin.com/company/open-targets' }, | ||
{ icon: faYoutubeSquare, url: 'https://www.youtube.com/opentargets' }, | ||
{ icon: faGithubSquare, url: 'https://github.com/opentargets' }, | ||
{ icon: faTwitterSquare, url: "https://twitter.com/opentargets" }, | ||
{ icon: faLinkedin, url: "https://www.linkedin.com/company/open-targets" }, | ||
{ icon: faYoutubeSquare, url: "https://www.youtube.com/opentargets" }, | ||
{ icon: faGithubSquare, url: "https://github.com/opentargets" }, | ||
], | ||
}; |
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.