Skip to content

Commit 2e24cb4

Browse files
committed
Add link to RNAcanvas Code
1 parent 9a3db86 commit 2e24cb4

File tree

6 files changed

+15
-4
lines changed

6 files changed

+15
-4
lines changed

dist/r2dt-web.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/r2dt-web.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rnacentral/r2dt-web",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Visualise RNA secondary structure using standard layouts.",
55
"scripts": {
66
"clean": "rm -rf dist/*",

src/containers/R2DT/components/Results/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,8 @@ class Results extends React.Component {
274274
<button className="btn btn-outline-secondary dropdown-toggle" style={{fontSize: fixCss}} type="button" id="editDropdownButton" onClick={this.toggleEditDropdown}><span className="btn-icon"><FaEdit size="1.2em"/></span> Edit image</button>
275275
<ul className="dropdown-menu" style={{fontSize: fixCss}} id="editDropdownMenu" ref={this.editMenuRef}>
276276
<li><a className="dropdown-item" href={routes.rnaCanvas(this.props.jobId)} target="_blank">Edit in RNAcanvas</a></li>
277-
<li><a className="dropdown-item" href={routes.xRNA(this.props.jobId)} target="_blank">Edit in XRNA</a></li>
277+
<li><a className="dropdown-item" href={routes.xRNA(this.props.jobId)} target="_blank">Edit in XRNA-React</a></li>
278+
<li><a className="dropdown-item beta" href={routes.canvasCode(this.props.jobId)} target="_blank">Edit in RNAcanvas Code </a></li>
278279
</ul>
279280
</div>
280281
</>

src/services/routes.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ module.exports = {
1717
firebaseId: (id) => `${firebaseServer}/data/${id}.json`,
1818
fetchUrs: (urs) => `https://${rnacentralServer}.org/api/v1/rna/${urs}/2d/`,
1919
rnaCanvas: (jobId) => `${rnaCanvasServer}?rna_2d_schema_url=${server}/result/${jobId}/json`,
20+
canvasCode: (jobId) => `https://code.rnacanvas.app/?schema=${server}/result/${jobId}/json`,
2021
xRNA: (jobId) => `https://ldwlab.github.io/XRNA-React/?source_url=${server}/result/${jobId}/json`
2122
};

src/styles/index.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ body {
7070
font-family: monospace;
7171
}
7272

73+
.beta::after {
74+
content: "BETA";
75+
vertical-align: top;
76+
font-size: 12px;
77+
background: yellow;
78+
border-radius: 4px;
79+
padding: 2px 4px;
80+
}
81+
7382
/* Advanced search */
7483

7584
// Close Button

0 commit comments

Comments
 (0)