Skip to content

Commit

Permalink
chore: fix djlint config
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 committed Mar 1, 2024
1 parent 6ab9d8e commit 534c8bd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ format_js = true
format_css = true
ignore = "T002,H020,H031,H021,H006,H030,D004,D018"

[tool.djlint.js]
templating = "django"

[tool.poetry]
authors = ["Ehco1996 <[email protected]>"]
description = "django sspanel"
Expand Down
2 changes: 1 addition & 1 deletion templates/404.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE htmlL>
<html>
<html lang="zh">
<head>
<title>该页面不存在/需要登录才能访问</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Expand Down
11 changes: 2 additions & 9 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,8 @@ <h1 class="subtitle">{% settings_value "SITE_SUBTITLE" %}</h1>
<!--整站消息提醒功能 -->
{% if messages %}
<script>
{
%
for message in messages %
}
swal("{{ message.extra_tags }}", '{{ message }}', '{{ message.level_tag }}');
{
%
endfor %
}
{% for message in messages %}swal("{{ message.extra_tags }}", '{{ message }}', '{{ message.level_tag }}');
{% endfor %}
</script>
{% endif %}
{% block extra_js %}
Expand Down
2 changes: 0 additions & 2 deletions templates/web/user_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,6 @@ <h2 class="subtitle">根据您的客户端一键选择</h2>
swal("复制成功", "订阅地址已复制到剪贴板", "success");
});



// 重置订阅连接
var restSubButton = $("#id-reset-sub-link")
var restSubButtonReq = function() {
Expand Down

0 comments on commit 534c8bd

Please sign in to comment.