From 534c8bd72547a258ea30065237a1844d76ba2671 Mon Sep 17 00:00:00 2001 From: Ehco1996 Date: Fri, 1 Mar 2024 08:44:58 +0800 Subject: [PATCH] chore: fix djlint config --- pyproject.toml | 3 +++ templates/404.html | 2 +- templates/base.html | 11 ++--------- templates/web/user_info.html | 2 -- 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index dca703dd77..4ff98668f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] description = "django sspanel" diff --git a/templates/404.html b/templates/404.html index c76ab04e31..34dd51c808 100755 --- a/templates/404.html +++ b/templates/404.html @@ -1,5 +1,5 @@ - + 该页面不存在/需要登录才能访问 diff --git a/templates/base.html b/templates/base.html index 3563aed03d..cbb73a44c9 100644 --- a/templates/base.html +++ b/templates/base.html @@ -175,15 +175,8 @@

{% settings_value "SITE_SUBTITLE" %}

{% if messages %} {% endif %} {% block extra_js %} diff --git a/templates/web/user_info.html b/templates/web/user_info.html index da0fd99b47..25c3cebc98 100644 --- a/templates/web/user_info.html +++ b/templates/web/user_info.html @@ -375,8 +375,6 @@

根据您的客户端一键选择

swal("复制成功", "订阅地址已复制到剪贴板", "success"); }); - - // 重置订阅连接 var restSubButton = $("#id-reset-sub-link") var restSubButtonReq = function() {