mirror of
https://github.com/freedit-org/freedit.git
synced 2026-01-10 13:08:13 -05:00
cache scripts for the current version
This commit is contained in:
@@ -61,7 +61,7 @@
|
||||
data-srt-url="/static/podcasts/{{ item.item_id }}.srt">
|
||||
</audio>
|
||||
</div>
|
||||
<script src="/static/js/transcript.js"></script>
|
||||
<script src="/static/js/transcript.js?v={{ crate::VERSION }}"></script>
|
||||
{% endif %}
|
||||
{% else %} {% endmatch %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
</p>
|
||||
<p>The code is copied from: <a href="https://github.com/galehouse5/rsa-webcrypto-tool">https://github.com/galehouse5/rsa-webcrypto-tool</a></p>
|
||||
</div>
|
||||
</article>
|
||||
</article>
|
||||
<div class="box">
|
||||
<fieldset>
|
||||
<div class="field">
|
||||
@@ -90,9 +90,9 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block extra %}
|
||||
<script src="/static/js/encoding-helper.js"></script>
|
||||
<script src="/static/js/encryption-helper.js"></script>
|
||||
<script src="/static/js/decrypt.js"></script>
|
||||
<script src="/static/js/encoding-helper.js?v={{ crate::VERSION }}"></script>
|
||||
<script src="/static/js/encryption-helper.js?v={{ crate::VERSION }}"></script>
|
||||
<script src="/static/js/decrypt.js?v={{ crate::VERSION }}"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block aside %}
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
<p class="has-text-danger">You must keep Private Key yourself and upload public key.</p>
|
||||
<p>You can generate key pair from <a href="https://github.com/galehouse5/rsa-webcrypto-tool">rsa-webcrypto-tool</a> and upload public key here.</p>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
</article>
|
||||
|
||||
<button id="button" class="button is-link">Generate Keys</button>
|
||||
<div id="message"></div>
|
||||
|
||||
@@ -90,9 +90,9 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block extra %}
|
||||
<script src="/static/js/encoding-helper.js"></script>
|
||||
<script src="/static/js/encryption-helper.js"></script>
|
||||
<script src="/static/js/key.js"></script>
|
||||
<script src="/static/js/encoding-helper.js?v={{ crate::VERSION }}"></script>
|
||||
<script src="/static/js/encryption-helper.js?v={{ crate::VERSION }}"></script>
|
||||
<script src="/static/js/key.js?v={{ crate::VERSION }}"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block aside %}
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<p>The code is copied from: <a href="https://github.com/galehouse5/rsa-webcrypto-tool">https://github.com/galehouse5/rsa-webcrypto-tool</a></p>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
|
||||
<div class="field is-hidden">
|
||||
<textarea id="public-key" readonly>{{key}}</textarea>
|
||||
</div>
|
||||
@@ -132,9 +132,9 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block extra %}
|
||||
<script src="/static/js/encoding-helper.js"></script>
|
||||
<script src="/static/js/encryption-helper.js"></script>
|
||||
<script src="/static/js/encrypt.js"></script>
|
||||
<script src="/static/js/encoding-helper?v={{ crate::VERSION }}"></script>
|
||||
<script src="/static/js/encryption-helper.js?v={{ crate::VERSION }}"></script>
|
||||
<script src="/static/js/encrypt.js?v={{ crate::VERSION }}"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block aside %}
|
||||
|
||||
@@ -248,7 +248,7 @@
|
||||
</nav>
|
||||
|
||||
{% if has_joined %}
|
||||
<script src="/static/js/overtype.min.js"></script>
|
||||
<script src="/static/js/overtype.min.js?v={{ crate::VERSION }}"></script>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
@@ -98,5 +98,5 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/static/js/overtype.min.js"></script>
|
||||
<script src="/static/js/overtype.min.js?v={{ crate::VERSION }}"></script>
|
||||
{% endblock %}
|
||||
@@ -62,5 +62,5 @@
|
||||
</article>
|
||||
|
||||
<div class="divider"></div>
|
||||
<script src="/static/js/overtype.min.js"></script>
|
||||
<script src="/static/js/overtype.min.js?v={{ crate::VERSION }}"></script>
|
||||
{% endblock %}
|
||||
@@ -203,5 +203,5 @@
|
||||
|
||||
<div class="divider"></div>
|
||||
|
||||
<script src="/static/js/overtype.min.js"></script>
|
||||
<script src="/static/js/overtype.min.js?v={{ crate::VERSION }}"></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -225,5 +225,5 @@
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<script src="/static/js/overtype.min.js"></script>
|
||||
<script src="/static/js/overtype.min.js?v={{ crate::VERSION }}"></script>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user