Files
seal/templates/base/_js.html
hequan2017 a830d3a7a4 fix: 修复 246 个 Dependabot 依赖漏洞
- requirements.txt 由 2019 年 pip freeze 快照重写为直接依赖清单(Python>=3.10)
- Django 2.2.4 -> 5.2.16,DRF 3.9.2 -> 3.17.2,channels 2.2 -> 4.3,celery 4.1 -> 5.5
- 移除代码未使用的 apache-airflow/tornado/GitPython/numpy/thrift/lxml/SQLAlchemy/Mako/Werkzeug/gevent/autobahn/ipython 等历史依赖(含 system/tests.py 中的 airflow 示例)
- 已停维的 django-rest-swagger/DRF coreapi 文档替换为 drf-spectacular
- celery.platforms/C_FORCE_ROOT/CELERYBEAT_SCHEDULE 按 celery 5 规范迁移
- asgi.py 迁移至 channels 4 入口写法;graphene-django 升级至 3.x(schema 增加 fields)
- static/js/jquery-3.1.1.min.js(XSS 漏洞)替换为 jquery-3.7.1 并更新模板引用
2026-09-28 14:13:02 +08:00

88 lines
2.9 KiB
Python

{% load static %}
<script src="{% static "js/jquery-3.7.1.min.js" %}" type="text/javascript" ></script>
<script src="{% static "js/bootstrap.min.js" %}"></script>
<script src="{% static "js/plugins/metisMenu/jquery.metisMenu.js" %}"></script>
<script src="{% static "js/plugins/slimscroll/jquery.slimscroll.min.js" %}"></script>
<!-- Custom and plugin javascript -->
<script src="{% static "js/inspinia.js" %} "></script>
<script src="{% static "js/plugins/pace/pace.min.js" %}"></script>
<script src="{% static "js/datatables.min.js" %}"></script>
<script src="{% static "js/plugins/select2/select2.full.min.js" %}"></script>
<!-- Sweet alert -->
<script src="{% static "js/plugins/sweetalert/sweetalert.min.js" %}"></script>
<script type="text/JavaScript">
$.ajaxSetup({headers: {"X-CSRFToken": '{{ csrf_token }}'}});
</script>
<script>
$(document).ready(function () {
$('.dataTables-example').DataTable({
"oLanguage": {
"sLengthMenu": "每页显示 _MENU_ 条记录",
"sZeroRecords": "对不起,查询不到任何相关数据",
"sInfo": "当前显示 _START_ 到 _END_ 条,共 _TOTAL_条记录",
"sInfoEmtpy": "找不到相关数据",
"sInfoFiltered": " 数据表中共为 _MAX_ 条记录",
"sProcessing": "正在加载中...",
"sSearch": "搜索",
"oPaginate": {
"sFirst": "第一页",
"sPrevious": " 上一页 ",
"sNext": " 下一页 ",
"sLast": " 最后一页 "
}
},
dom: '<"html5buttons"B>lTfgitp,',
buttons: [ 'copy', 'csv', 'excel' ]
});
$('.dataTables-code').DataTable({
"oLanguage": {
"sLengthMenu": "每页显示 _MENU_ 条记录",
"sZeroRecords": "对不起,查询不到任何相关数据",
"sInfo": "当前显示 _START_ 到 _END_ 条,共 _TOTAL_条记录",
"sInfoEmtpy": "找不到相关数据",
"sInfoFiltered": " 数据表中共为 _MAX_ 条记录",
"sProcessing": "正在加载中...",
"sSearch": "搜索",
"oPaginate": {
"sFirst": "第一页",
"sPrevious": " 上一页 ",
"sNext": " 下一页 ",
"sLast": " 最后一页 "
}
},
bFilter: false,
"order": [[1, 'desc']],
"info": false,//是否显示页脚信息
destroy: true,
"ordering": false,
dom: '<"html5buttons"B>lTfgitp,',
buttons: [],
lengthMenu: [[-1], ["全部"]],
"paging": false, // 禁止分页
});
});
$(function () {
$(".select2").select2();
});
</script>