From 62b9b6883ecdef5ba5a873453c6e9930a119852a Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Tue, 11 Mar 2025 15:04:40 +0800 Subject: [PATCH] perf: report css --- apps/accounts/notifications.py | 4 - .../accounts/backup_account_report.html | 183 ++++++++++++++++- .../accounts/change_secret_report.html | 184 ++++++++++++++++- .../accounts/check_account_report.html | 182 ++++++++++++++++- .../accounts/gather_account_report.html | 181 ++++++++++++++++- .../accounts/push_account_report.html | 185 +++++++++++++++++- 6 files changed, 890 insertions(+), 29 deletions(-) diff --git a/apps/accounts/notifications.py b/apps/accounts/notifications.py index 20807ba97..4ab56963e 100644 --- a/apps/accounts/notifications.py +++ b/apps/accounts/notifications.py @@ -2,7 +2,6 @@ from django.template.loader import render_to_string from django.utils.translation import gettext_lazy as _ from premailer import transform -from accounts.models import ChangeSecretRecord from common.tasks import send_mail_attachment_async, upload_backup_to_obj_storage from notifications.notifications import UserMessage from terminal.models.component.storage import ReplayStorage @@ -122,8 +121,5 @@ class ChangeSecretReportMsg(UserMessage): @classmethod def gen_test_msg(cls): - name = 'test' user = User.objects.first() - record = ChangeSecretRecord.objects.first() - execution_id = str(record.execution_id) return cls(user, {}) diff --git a/apps/accounts/templates/accounts/backup_account_report.html b/apps/accounts/templates/accounts/backup_account_report.html index 95179770b..5cd2cc3e3 100644 --- a/apps/accounts/templates/accounts/backup_account_report.html +++ b/apps/accounts/templates/accounts/backup_account_report.html @@ -47,10 +47,6 @@ - - \ No newline at end of file + + + \ No newline at end of file diff --git a/apps/accounts/templates/accounts/change_secret_report.html b/apps/accounts/templates/accounts/change_secret_report.html index 17b74f94b..556eae750 100644 --- a/apps/accounts/templates/accounts/change_secret_report.html +++ b/apps/accounts/templates/accounts/change_secret_report.html @@ -1,7 +1,6 @@ {% load i18n %} {% load static %} -
@@ -137,9 +136,7 @@
- + \ No newline at end of file + + + diff --git a/apps/accounts/templates/accounts/check_account_report.html b/apps/accounts/templates/accounts/check_account_report.html index af00a8ed5..14df6bb2b 100644 --- a/apps/accounts/templates/accounts/check_account_report.html +++ b/apps/accounts/templates/accounts/check_account_report.html @@ -109,9 +109,6 @@ - \ No newline at end of file + + + \ No newline at end of file diff --git a/apps/accounts/templates/accounts/gather_account_report.html b/apps/accounts/templates/accounts/gather_account_report.html index a19d10086..fa9b4bb51 100644 --- a/apps/accounts/templates/accounts/gather_account_report.html +++ b/apps/accounts/templates/accounts/gather_account_report.html @@ -135,10 +135,6 @@ - - + + diff --git a/apps/accounts/templates/accounts/push_account_report.html b/apps/accounts/templates/accounts/push_account_report.html index e8138856f..b2fe345c5 100644 --- a/apps/accounts/templates/accounts/push_account_report.html +++ b/apps/accounts/templates/accounts/push_account_report.html @@ -1,8 +1,6 @@ {% load i18n %} {% load static %} - -
@@ -138,10 +136,6 @@
- - \ No newline at end of file + + + \ No newline at end of file