From 255817f5c6d3f29be94cc1f2ceb5d07055c96fab Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 2 Apr 2024 14:27:18 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BF=AE=E6=94=B9=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/serializers/platform.py | 25 ++++++++++++++++--------- apps/i18n/lina/en.json | 4 +++- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/apps/assets/serializers/platform.py b/apps/assets/serializers/platform.py index 7f50513e2..50587071a 100644 --- a/apps/assets/serializers/platform.py +++ b/apps/assets/serializers/platform.py @@ -30,35 +30,42 @@ class PlatformAutomationSerializer(serializers.ModelSerializer): ] extra_kwargs = { # 启用资产探测 - "ping_enabled": {"label": _("Ping enabled"), }, - "ping_method": {"label": _("Ping method"), "help_text": _("Enable asset detection")}, - "gather_facts_enabled": {"label": _("Gather facts enabled"), }, + "ping_enabled": {"label": _("Ping enabled"), "help_text": _("Enable asset detection")}, + "ping_method": {"label": _("Ping method")}, + "gather_facts_enabled": { + "label": _("Gather facts enabled"), + "help_text": _("Enable asset information collection") + }, "gather_facts_method": { "label": _("Gather facts method"), - "help_text": _("Enable asset information collection") + }, + "verify_account_enabled": { + "label": _("Verify account enabled"), + "help_text": _("Enable account verification") }, "verify_account_method": { "label": _("Verify account method"), - "help_text": _("Enable account verification") }, "change_secret_enabled": { "label": _("Change secret enabled"), + "help_text": _("Enable account secret auto change") }, "change_secret_method": { "label": _("Change secret method"), - "help_text": _("Enable account secret auto change") }, - "push_account_enabled": {"label": _("Push account enabled"), }, + "push_account_enabled": { + "label": _("Push account enabled"), + "help_text": _("Enable account auto push") + }, "push_account_method": { "label": _("Push account method"), - "help_text": _("Enable account auto push") }, "gather_accounts_enabled": { "label": _("Gather accounts enabled"), + "help_text": _("Enable account collection") }, "gather_accounts_method": { "label": _("Gather accounts method"), - "help_text": _("Enable account collection") }, } diff --git a/apps/i18n/lina/en.json b/apps/i18n/lina/en.json index 137232aba..47587b9b0 100644 --- a/apps/i18n/lina/en.json +++ b/apps/i18n/lina/en.json @@ -314,7 +314,9 @@ "CreatedBy": "Creator", "CriticalLoad": "Serious", "CronExpression": "Complete crontab expression", - "CrontabOfCreateUpdatePage": "For example: Perform every Sunday at 03:05 <5 3 * * 0>
Use 5-digit Linux crontab expressions (Online Tool)
If both regular execution and cycle execution are set, regular execution is prioritized", + "CrontabOfCreateUpdatePage": "", + "CrontabHelpText": "If both interval and crontab are set, crontab is prioritized", + "CrontabHelpTip": "For example: Perform every Sunday at 03:05 <5 3 * * 0>
Use 5-digit Linux crontab expressions (Online Tool)
", "CurrentConnectionUsers": "Online Users", "CurrentConnections": "Current Connections", "CurrentUserVerify": "Verify Current User",