-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Incorporated changes requested by NAR reviewers
- Loading branch information
1 parent
5fa6d27
commit 976511d
Showing
38 changed files
with
3,577 additions
and
732 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
Large diffs are not rendered by default.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
48 changes: 48 additions & 0 deletions
48
ui/src/components/ExperimentalStructuresModal/ExperimentalStructuresModal.tsx
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,48 @@ | ||
import { faArrowUpRightFromSquare } from "@fortawesome/free-solid-svg-icons"; | ||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | ||
import { Modal } from "react-bootstrap"; | ||
import "./experimental-structures-modal.scss"; | ||
import { ExperimentalStructuresModalAttributes } from "../ProteinTable/ProteinTable"; | ||
|
||
type Props = { | ||
attrs: ExperimentalStructuresModalAttributes; | ||
onHide: () => void; | ||
}; | ||
|
||
export function ExperimentalStructuresModal({ attrs, onHide }: Props) { | ||
if (attrs === null) | ||
return (<></>); | ||
|
||
const { experimentalStructures } = attrs; | ||
|
||
return ( | ||
<Modal | ||
show={experimentalStructures.length > 0} | ||
onHide={onHide} | ||
aria-labelledby="contained-modal-title-vcenter" | ||
centered | ||
className="experimental-structures-modal" | ||
> | ||
<Modal.Header closeButton className=""> | ||
<Modal.Title> | ||
Experimental Structures | ||
</Modal.Title> | ||
</Modal.Header> | ||
<Modal.Body> | ||
<p> | ||
Experimental structures (PDBe) corresponding to <b>{attrs.entryUniProtId}</b>: | ||
</p> | ||
<ul> | ||
{experimentalStructures.map((structure, index) => ( | ||
<li key={index}> | ||
<a href={`https://www.ebi.ac.uk/pdbe-srv/view/entry/${structure}`} target="_blank" rel="noreferrer"> | ||
{structure} | ||
<sup className="ms-1"><FontAwesomeIcon icon={faArrowUpRightFromSquare} /></sup> | ||
</a> | ||
</li> | ||
))} | ||
</ul> | ||
</Modal.Body> | ||
</Modal> | ||
); | ||
} |
21 changes: 21 additions & 0 deletions
21
ui/src/components/ExperimentalStructuresModal/experimental-structures-modal.scss
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,21 @@ | ||
.experimental-structures-modal { | ||
.modal-title { | ||
font-size: 1.2rem; | ||
} | ||
|
||
ul { | ||
list-style: none; | ||
// font-size: 1.1rem; | ||
max-height: 450px; | ||
overflow-y: scroll; | ||
|
||
li { | ||
margin-bottom: 0.75rem; | ||
// border-bottom: 1px solid #ccc; | ||
} | ||
} | ||
|
||
sup { | ||
font-size: 0.7rem; | ||
} | ||
} |
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,3 @@ | ||
import { ExperimentalStructuresModal } from "./ExperimentalStructuresModal"; | ||
|
||
export default ExperimentalStructuresModal; |
This file was deleted.
Oops, something went wrong.
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.