Skip to content

Commit c48a647

Browse files
committed
Added r2dt static files and updated sequence.html code to use them
1 parent d59715a commit c48a647

File tree

4 files changed

+68
-7
lines changed

4 files changed

+68
-7
lines changed

rnacentral/portal/static/r2dt-web/dist/r2dt-web.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/*
2+
object-assign
3+
(c) Sindre Sorhus
4+
@license MIT
5+
*/
6+
7+
/*!
8+
Copyright (c) 2018 Jed Watson.
9+
Licensed under the MIT License (MIT), see
10+
http://jedwatson.github.io/classnames
11+
*/
12+
13+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
14+
15+
/**
16+
* Changes:
17+
* - Don't replace the node. Justs its innerHTML
18+
* Adapted from:
19+
* Original Copyright notice ---------------------------
20+
* SVGInjector v1.1.3 - Fast, caching, dynamic inline SVG DOM injection library
21+
* https://github.com/iconic/SVGInjector
22+
*
23+
* Copyright (c) 2014-2015 Waybury <[email protected]>
24+
* @license MIT
25+
*
26+
*/
27+
28+
/** @license React v0.20.2
29+
* scheduler.production.min.js
30+
*
31+
* Copyright (c) Facebook, Inc. and its affiliates.
32+
*
33+
* This source code is licensed under the MIT license found in the
34+
* LICENSE file in the root directory of this source tree.
35+
*/
36+
37+
/** @license React v16.13.1
38+
* react-is.production.min.js
39+
*
40+
* Copyright (c) Facebook, Inc. and its affiliates.
41+
*
42+
* This source code is licensed under the MIT license found in the
43+
* LICENSE file in the root directory of this source tree.
44+
*/
45+
46+
/** @license React v17.0.2
47+
* react-dom.production.min.js
48+
*
49+
* Copyright (c) Facebook, Inc. and its affiliates.
50+
*
51+
* This source code is licensed under the MIT license found in the
52+
* LICENSE file in the root directory of this source tree.
53+
*/
54+
55+
/** @license React v17.0.2
56+
* react.production.min.js
57+
*
58+
* Copyright (c) Facebook, Inc. and its affiliates.
59+
*
60+
* This source code is licensed under the MIT license found in the
61+
* LICENSE file in the root directory of this source tree.
62+
*/

rnacentral/portal/static/r2dt-web/dist/r2dt-web.js.map

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

rnacentral/portal/templates/portal/sequence.html

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -328,13 +328,8 @@ <h2>Molecular Relationships</h2>
328328
<r2dt-web
329329
search='{"urs": "{{ context.upi }}"}'
330330
customStyle='{"fixCss": "true", "titleColor": "#BF8E3E"}'
331-
/>
332-
333-
{% if request.get_host == 'test.rnacentral.org' or request.get_host == 'localhost:8000' %}
334-
<script type="text/javascript" src="{% static "r2dt-web/dist/r2dt-web.js" %}"></script>
335-
{% else %}
336-
<script type="text/javascript" src="https://rnacentral.github.io/r2dt-web/dist/r2dt-web.js"></script>
337-
{% endif %}
331+
/>
332+
<script type="text/javascript" src="{% static "r2dt-web/dist/r2dt-web.js" %}"></script>
338333
</uib-tab>
339334
{% endif %}
340335

0 commit comments

Comments
 (0)