Locally hosting jstree, instead of linking to cloudflare.
Should speed up the site, and remove a possible point of failure. This also upgrades JSTree to the latest version (3.3.3).
This commit is contained in:
parent
dde5526022
commit
6f9feea8a9
6
pillar/web/static/assets/jstree/jstree.min.js
vendored
Normal file
6
pillar/web/static/assets/jstree/jstree.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
pillar/web/static/assets/jstree/themes/default/32px.png
Normal file
BIN
pillar/web/static/assets/jstree/themes/default/32px.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
BIN
pillar/web/static/assets/jstree/themes/default/40px.png
Normal file
BIN
pillar/web/static/assets/jstree/themes/default/40px.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
1102
pillar/web/static/assets/jstree/themes/default/style.css
Normal file
1102
pillar/web/static/assets/jstree/themes/default/style.css
Normal file
File diff suppressed because it is too large
Load Diff
1
pillar/web/static/assets/jstree/themes/default/style.min.css
vendored
Normal file
1
pillar/web/static/assets/jstree/themes/default/style.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
pillar/web/static/assets/jstree/themes/default/throbber.gif
Normal file
BIN
pillar/web/static/assets/jstree/themes/default/throbber.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
@ -66,7 +66,7 @@ meta(property="og:url", content="{{url_for('projects.view', project_url=project.
|
||||
| {% endblock %}
|
||||
|
||||
| {% block head %}
|
||||
link(href="//cdnjs.cloudflare.com/ajax/libs/jstree/3.3.1/themes/default/style.min.css", rel="stylesheet")
|
||||
link(href="{{ url_for('static_pillar', filename='assets/jstree/themes/default/style.min.css') }}", rel="stylesheet")
|
||||
| {% if node %}
|
||||
link(rel="amphtml", href="{{ url_for('nodes.view', node_id=node._id, _external=True, format='amp') }}")
|
||||
| {% endif %}
|
||||
@ -343,7 +343,7 @@ script.
|
||||
| {% endblock %}
|
||||
|
||||
| {% block footer_scripts %}
|
||||
script(src="//cdnjs.cloudflare.com/ajax/libs/jstree/3.3.1/jstree.min.js")
|
||||
script(src="{{ url_for('static_pillar', filename='assets/jstree/jstree.min.js') }}")
|
||||
|
||||
script.
|
||||
{% if show_project %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user