Upgrade to Tippy.js v2, along with upgrading its dependency Popper.js

This commit is contained in:
Danielle McLean 2018-05-01 14:00:16 +10:00
parent 6f3f613cc8
commit ffd0d3384e
Signed by: 00dani
GPG key ID: 8EB789DDF3ABD240
5 changed files with 17 additions and 13 deletions

View file

@ -14,11 +14,11 @@
{% if app %}{{ app.name | first }}{% endif %} {% if app %}{{ app.name | first }}{% endif %}
{% if app %}({% endif %}<a class="u-url code{% if not app %} p-name{% endif %}" href="{{ params.client_id }}">{{ params.client_id }}</a>{% if app %}){% endif %}? {% if app %}({% endif %}<a class="u-url code{% if not app %} p-name{% endif %}" href="{{ params.client_id }}">{{ params.client_id }}</a>{% if app %}){% endif %}?
{% if verified %} {% if verified %}
<span data-tooltip data-theme="success" data-html="#verified-success"> <span data-tooltip data-tippy-theme="success" data-tippy-html="#verified-success">
<i class="fas fa-check-circle verified-success"></i> <i class="fas fa-check-circle verified-success"></i>
</span> </span>
{% else %} {% else %}
<span data-tooltip data-theme="warning" data-html="#verified-warning"> <span data-tooltip data-tippy-theme="warning" data-tippy-html="#verified-warning">
<i class="fas fa-question-circle verified-warning"></i> <i class="fas fa-question-circle verified-warning"></i>
</span> </span>
{% endif %} {% endif %}
@ -65,6 +65,6 @@
{% endblock %} {% endblock %}
{% block foot %} {% block foot %}
<script type="text/javascript"> <script type="text/javascript">
tippy('[data-tooltip]', {arrow: true}); tippy('[data-tippy-theme]', {arrow: true});
</script> </script>
{% endblock %} {% endblock %}

View file

@ -33,6 +33,10 @@ code, pre, .code, .pre
text-decoration none text-decoration none
line-height 1 line-height 1
.tippy-popper[x-placement^=top] .tippy-tooltip
.tippy-arrow
border-top-color $base03
body body
display flex display flex
flex-direction column flex-direction column

View file

@ -112,8 +112,8 @@
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" crossorigin="anonymous" <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" crossorigin="anonymous"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"></script> integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" crossorigin="anonymous" <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js" crossorigin="anonymous"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"></script> integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" crossorigin="anonymous" <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" crossorigin="anonymous"
integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm"></script> integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js" crossorigin="anonymous" <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js" crossorigin="anonymous"

View file

@ -9,6 +9,6 @@
}, },
"dependencies": { "dependencies": {
"openwebicons": "^1.4.3", "openwebicons": "^1.4.3",
"tippy.js": "^1.4.1" "tippy.js": "^2.5.2"
} }
} }

View file

@ -108,9 +108,9 @@ path-is-absolute@^1.0.0:
version "1.0.1" version "1.0.1"
resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
popper.js@^1.12.4: popper.js@^1.14.3:
version "1.12.6" version "1.14.3"
resolved "https://registry.yarnpkg.com/popper.js/-/popper.js-1.12.6.tgz#91e12a97b07815258b76915d64044e8ac053d426" resolved "https://registry.yarnpkg.com/popper.js/-/popper.js-1.14.3.tgz#1438f98d046acf7b4d78cd502bf418ac64d4f095"
sax@0.5.x: sax@0.5.x:
version "0.5.8" version "0.5.8"
@ -137,11 +137,11 @@ stylus@^0.54.5:
sax "0.5.x" sax "0.5.x"
source-map "0.1.x" source-map "0.1.x"
tippy.js@^1.4.1: tippy.js@^2.5.2:
version "1.4.1" version "2.5.2"
resolved "https://registry.yarnpkg.com/tippy.js/-/tippy.js-1.4.1.tgz#a20831a53e40566825c0b3c6ad72afc30e97c6f5" resolved "https://registry.yarnpkg.com/tippy.js/-/tippy.js-2.5.2.tgz#01de112a80219032a3cf06ac2d29a4d69480705d"
dependencies: dependencies:
popper.js "^1.12.4" popper.js "^1.14.3"
wrappy@1: wrappy@1:
version "1.0.2" version "1.0.2"