-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1440 from PathwayCommons/v3.8.0
v3.8.0
- Loading branch information
Showing
16 changed files
with
182 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# this is for Docker Compose only, to resolve ${...} parameters/expressions | ||
# inside a YAML config file; these values won't automatically override replace | ||
# ARG or ENV values in Dockerfile or containers, unless specified to do so. | ||
PC_URL=http://beta.pathwaycommons.org/ | ||
# webapp | ||
APPUI_IMAGE_TAG=production | ||
APPUI_PORT=3000 | ||
PC_URL=https://www.pathwaycommons.org/ | ||
NODE_ENV=production | ||
PORT=9090 | ||
FACTOID_URL=http://unstable.factoid.baderlab.org/ | ||
FACTOID_URL=https://biofactoid.org/ |
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 was deleted.
Oops, something went wrong.
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,11 +1,18 @@ | ||
version: '3' | ||
version: "3.8" | ||
services: | ||
webapp: | ||
image: pathwaycommons/app-ui:master | ||
container_name: appui_webapp | ||
image: pathwaycommons/app-ui:${APPUI_IMAGE_TAG:-latest} | ||
restart: unless-stopped | ||
container_name: webapp | ||
ports: | ||
- "9090:3000" | ||
- "${APPUI_PORT:-3000}:3000" | ||
environment: | ||
NODE_ENV: "production" | ||
PC_URL: "http://www.pathwaycommons.org/" | ||
FACTOID_URL: "http://factoid.baderlab.org/" | ||
PC_URL: | ||
NODE_ENV: | ||
FACTOID_URL: | ||
networks: | ||
- app-ui-network | ||
|
||
networks: | ||
app-ui-network: | ||
driver: bridge |
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,4 @@ | ||
#!/bin/bash | ||
npm run clean | ||
npm run build | ||
cd /home/appuser/app && npm start |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,44 @@ | ||
const React = require('react'); | ||
const h = require('react-hyperscript'); | ||
const Popover = require('./popover'); | ||
|
||
const { FACTOID_URL } = require('../../../config'); | ||
|
||
class Contribute extends React.Component { | ||
constructor( props ){ | ||
super( props ); | ||
} | ||
|
||
render(){ | ||
const { text, info } = this.props; | ||
|
||
return h('div.contribute', {}, [ | ||
h('a.plain-link.contribute-popover-link', { | ||
href: `${FACTOID_URL}document/new`, | ||
target: '_blank' | ||
}, text), | ||
h(Popover , { | ||
tippy: { | ||
position: 'bottom', | ||
html: h('div.contribute-popover', [info] ) | ||
} | ||
}, [ h('i.material-icons', 'info') ] | ||
) | ||
]); | ||
} | ||
} | ||
|
||
// Specifies the default values for props: | ||
Contribute.defaultProps = { | ||
text: 'Add my data', | ||
info: h('div.contribute-popover-info', { | ||
}, [ | ||
`Authors of primary research articles with pathway and interaction information (e.g. binding, transcription) can contribute these findings to Pathway Commons through Biofactoid. Learn more at `, | ||
h('a.plain-link', { | ||
href: `${FACTOID_URL}`, | ||
target: '_blank' | ||
}, 'biofactoid.org'), '.' | ||
]), | ||
}; | ||
|
||
module.exports = { Contribute }; |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.contribute { | ||
position: absolute; | ||
margin: 0.5em 0; | ||
left: 0.25em; | ||
|
||
& i { | ||
margin: 0em 0.25em; | ||
color: var(--widgetDisabledTextColor); | ||
} | ||
|
||
& i:hover { | ||
cursor: pointer; | ||
} | ||
} | ||
|
||
.contribute-popover-info { | ||
max-width: 30em; | ||
padding: 0.5em; | ||
} | ||
|
||
@media( --small-width-viewport ){ | ||
.contribute-popover-info { | ||
font-size: 0.8em; | ||
} | ||
} | ||
|
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 |
---|---|---|
|
@@ -11,3 +11,4 @@ | |
@import "./tooltip.css"; | ||
@import "./card.css"; | ||
@import "./app-card.css"; | ||
@import "./contribute.css"; |
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