Skip to content

Commit

Permalink
Update versions (#65)
Browse files Browse the repository at this point in the history
* Update Django

* Update JS libraries
  • Loading branch information
pehala authored Sep 9, 2023
1 parent e424312 commit 5fc19e3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
14 changes: 8 additions & 6 deletions backend/templates/songs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

{% block extra_head %}
<script async src="{% static 'js/chords.js' %}"></script>
<script defer type="text/javascript" src="https://cdn.datatables.net/v/bs4/dt-1.12.1/datatables.min.js"></script>
<script defer src="//cdn.jsdelivr.net/npm/bootstrap-input-spinner@1.16.5/src/bootstrap-input-spinner.js"></script>
<script defer type="text/javascript" src="//cdn.datatables.net/plug-ins/1.12.1/filtering/type-based/accent-neutralise.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jsrender/1.0.11/jsrender.min.js" integrity="sha512-bKlNlbTH3duwZ28zoqEhXui/yuaPuQVci6OAVu0zh2WfYbEKD39HszVR8byP4/L4YyBo3b5CGIY+4ldVN93uCg=="
<script defer type="text/javascript" src="https://cdn.datatables.net/v/bs4/dt-1.13.6/datatables.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/bootstrap-input-spinner@2.2.0/src/bootstrap-input-spinner.js"></script>
<script defer type="text/javascript" src="https://cdn.datatables.net/plug-ins/1.13.6/filtering/type-based/accent-neutralise.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jsrender/1.0.13/jsrender.min.js" integrity="sha512-T93uOawQ+FrEdyCPaWrQtppurbLm8SISu2QnHyddM0fGXKX9Amyirwibe1wGYbsW2F8lLzhOM/2+d3Zo94ljRQ=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
defer>
Expand Down Expand Up @@ -53,7 +53,7 @@ <h6 class="d-inline" ><%:author%></h6>
<div class="input-group-prepend">
<span class="input-group-text">{% trans "Transpose" %}</span>
</div>
<input class="form-control-sm raw" type="number" value="0" min="-11" max="11" step="1" previous_value=0 onchange="transpose(event, this, <%:number%> )"/>
<input class="form-control raw" type="number" value="0" min="-11" max="11" step="1" previous_value=0 onchange="transpose(event, this, <%:number%> )"/>
</div>
<%if capo > 0%><h5>Capo <%:capo%> </h5> <%/if%>
<div class="text-wrap song-text">
Expand Down Expand Up @@ -91,6 +91,8 @@ <h6 class="d-inline" ><%:author%></h6>
drawCallback: function () {
const selector = $(".raw[type='number']")
selector.inputSpinner({
{#decrementButton: "<strong>&minus;</strong>", // button text#}
{#incrementButton: "<strong>&plus;</strong>",#}
decrementButton: "<i class=\"icon-minus\"></i>", // button text
incrementButton: "<i class=\"icon-plus\"></i>",
groupClass: "transposer",
Expand Down Expand Up @@ -126,7 +128,7 @@ <h6 class="d-inline" ><%:author%></h6>
pageLength: 50,
{% if request.LANGUAGE_CODE == "cs" %}
language: {
url: "//cdn.datatables.net/plug-ins/1.10.21/i18n/Czech.json"
url: "//cdn.datatables.net/plug-ins/1.13.6/i18n/cs.json"
},
{% endif %}
});
Expand Down
3 changes: 1 addition & 2 deletions frontend/templates/base/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn"
crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
<script src="https://code.jquery.com/jquery-3.7.1.min.js"
crossorigin="anonymous"
type="text/javascript"
defer></script>
Expand Down
6 changes: 3 additions & 3 deletions pdf/templates/pdf/requests/select.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
{% block title %} {% trans "PDF Requests" %} {% endblock %}
{% block header %} {% trans "PDF Requests" %} {% endblock %}
{% block extra_head %}
<script defer type="text/javascript" src="https://cdn.datatables.net/v/bs4/dt-1.12.1/b-2.2.3/sl-1.4.0/datatables.min.js"></script>
<script defer type="text/javascript" src="https://cdn.datatables.net/v/bs4/dt-1.13.6/b-2.4.2/sl-1.7.0/datatables.min.js"></script>
<link rel="stylesheet" type="text/css" href="{% sass_src 'datatables.sass' %}">
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs4/dt-1.12.1/b-2.2.3/sl-1.4.0/datatables.min.css"/>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs4/dt-1.13.6/b-2.4.2/sl-1.7.0/datatables.min.css"/>
{% endblock %}

{% block framed_body %}
Expand Down Expand Up @@ -95,7 +95,7 @@
],
{% if request.LANGUAGE_CODE == "cs" %}
language: {
url: "//cdn.datatables.net/plug-ins/1.10.25/i18n/Czech.json"
url: "//cdn.datatables.net/plug-ins/1.13.6/i18n/cs.json"
},
{% endif %}
} );
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ readme = "README.md"

[tool.poetry.dependencies]
python = "^3.9"
django = "==4.1.10"
django = "==4.2.5"
django-bootstrap4 = "*"
dj-datatables-view = "*"
django-debug-toolbar = "*"
Expand All @@ -24,9 +24,9 @@ gevent = "*"
markdown = "*"
markdown3-newtab = "*"
netifaces = "*"
psycopg2-binary = "*"
django-compressor = "*"
libsass = "*"
psycopg = {extras = ["binary", "pool"], version = "^3.1.10"}

[tool.poetry.group.dev.dependencies]
pylint = "*"
Expand Down

0 comments on commit 5fc19e3

Please sign in to comment.