perf: 再次修改菜单

pull/13145/head
ibuler 2024-04-28 14:04:28 +08:00
parent d7916a62f0
commit fad9249810
5 changed files with 17 additions and 12 deletions

View File

@ -174,7 +174,6 @@ class AllTypes(ChoicesMixin):
if settings.XPACK_ENABLED: if settings.XPACK_ENABLED:
types.extend([ types.extend([
(Category.CLOUD, CloudTypes), (Category.CLOUD, CloudTypes),
# (Category.GPT, GPTTypes),
(Category.CUSTOM, CustomTypes), (Category.CUSTOM, CustomTypes),
]) ])
return types return types
@ -184,8 +183,8 @@ class AllTypes(ChoicesMixin):
choices = [] choices = []
for name, tp in dict(cls.category_types()).items(): for name, tp in dict(cls.category_types()).items():
if name == Category.CUSTOM and exclude_custom: # if name == Category.CUSTOM and exclude_custom:
continue # continue
choices.extend(tp.get_types()) choices.extend(tp.get_types())
return choices return choices

View File

@ -417,7 +417,7 @@
"Empty": "Empty", "Empty": "Empty",
"Enable": "Enable", "Enable": "Enable",
"EnableKoKoSSHHelpText": "When switched on, connecting to the asset will display SSH Client pull-up method", "EnableKoKoSSHHelpText": "When switched on, connecting to the asset will display SSH Client pull-up method",
"Endpoint": "Server Endpoint", "Endpoint": "Service Endpoint",
"EndpointListHelpMessage": "The service endpoint is the address (port) for users to access the service. When users connect to assets, they choose service endpoints based on endpoint rules and asset labels, using them as access points to establish connections and achieve distributed connections to assets", "EndpointListHelpMessage": "The service endpoint is the address (port) for users to access the service. When users connect to assets, they choose service endpoints based on endpoint rules and asset labels, using them as access points to establish connections and achieve distributed connections to assets",
"EndpointRule": "Endpoint Rules", "EndpointRule": "Endpoint Rules",
"EndpointRuleListHelpMessage": "For the server endpoint selection strategy, there are currently two options:<br>1、Specify the endpoint according to the endpoint rule (current page);<br>2、Choose the endpoint through asset labels, with the fixed label name being 'endpoint' and the value being the name of the endpoint.<br>The tag matching method is preferred for both methods, as the IP range may conflict, and the tag method exists as a supplement to the rules.", "EndpointRuleListHelpMessage": "For the server endpoint selection strategy, there are currently two options:<br>1、Specify the endpoint according to the endpoint rule (current page);<br>2、Choose the endpoint through asset labels, with the fixed label name being 'endpoint' and the value being the name of the endpoint.<br>The tag matching method is preferred for both methods, as the IP range may conflict, and the tag method exists as a supplement to the rules.",
@ -432,6 +432,7 @@
"EnterpriseEdition": "Enterprise Edition", "EnterpriseEdition": "Enterprise Edition",
"Equal": "Equals", "Equal": "Equals",
"Error": "Error", "Error": "Error",
"AccountTemplates": "Templates",
"ErrorMsg": "Error", "ErrorMsg": "Error",
"EsDisabled": "Node is unavailable, please contact administrator", "EsDisabled": "Node is unavailable, please contact administrator",
"EsIndex": "ES provides the default index: JumpServer. If indexing by date is enabled, the entered value will serve as the index prefix", "EsIndex": "ES provides the default index: JumpServer. If indexing by date is enabled, the entered value will serve as the index prefix",
@ -955,7 +956,7 @@
"Saturday": "Sat", "Saturday": "Sat",
"Save": "Save", "Save": "Save",
"SaveAdhoc": "Save Command", "SaveAdhoc": "Save Command",
"SaveAndAddAnother": "Save and Continue", "SaveAndAddAnother": "Save & Continue",
"SaveCommand": "Save Command", "SaveCommand": "Save Command",
"SaveCommandSuccess": "Command Saved Successfully", "SaveCommandSuccess": "Command Saved Successfully",
"SaveSetting": "Synchronization Settings", "SaveSetting": "Synchronization Settings",

View File

@ -18,7 +18,11 @@
"AccountPushList": "账号推送", "AccountPushList": "账号推送",
"AccountStorage": "账号存储", "AccountStorage": "账号存储",
"AccountTemplate": "账号模版", "AccountTemplate": "账号模版",
"AccountTemplates": "账号模版",
"AccountTemplateList": "模版列表", "AccountTemplateList": "模版列表",
"ACLs": "访问控制",
"FileExplorer": "文件浏览",
"SessionCommands": "会话命令",
"AccountTemplateUpdateSecretHelpText": "账号列表展示通过模版创建的账号。更新密文时,会更新通过模版所创建账号的密文。", "AccountTemplateUpdateSecretHelpText": "账号列表展示通过模版创建的账号。更新密文时,会更新通过模版所创建账号的密文。",
"Accounts": "账号管理", "Accounts": "账号管理",
"Action": "动作", "Action": "动作",

View File

@ -14,15 +14,15 @@
"Asset tree loading method": "Configure Asset Tree Loading Method", "Asset tree loading method": "Configure Asset Tree Loading Method",
"Asset: ": "Asset: {{value}}", "Asset: ": "Asset: {{value}}",
"Assignees": "Assignees", "Assignees": "Assignees",
"Automatic login next": "Automatic Login next time (right click asset Connection to re-select)", "Automatic login next": "Automatic Login next (right click asset to re-select)",
"Backspace as Ctrl+H": "CLI Backspace As Ctrl+H", "Backspace as Ctrl+H": "Backspace as Ctrl+H",
"Batch actions": "Batch actions", "Batch actions": "Batch actions",
"Batch connect": "Batch connect", "Batch connect": "Batch connect",
"Belgian French keyboard layout": "Belgian French (Azerty)", "Belgian French keyboard layout": "Belgian French (Azerty)",
"CLI": "CLI", "CLI": "CLI",
"CLI font size": "CLI font size", "CLI font size": "CLI font size",
"Cancel": "Cancel", "Cancel": "Cancel",
"Charset": "Character Set", "Charset": "Charset",
"Checkbox": "Checkbox", "Checkbox": "Checkbox",
"Choose a User": "Choose a User", "Choose a User": "Choose a User",
"Click to copy": "Click to copy", "Click to copy": "Click to copy",
@ -40,7 +40,7 @@
"Command line": "Command line", "Command line": "Command line",
"Confirm": "Confirm", "Confirm": "Confirm",
"Connect": "Connect", "Connect": "Connect",
"Connect Method": "Connect Method", "Connect method": "Connect method",
"Connect checked": "Connect checked", "Connect checked": "Connect checked",
"Connect command line": "Connect command line", "Connect command line": "Connect command line",
"Copied": "Copied", "Copied": "Copied",
@ -86,6 +86,7 @@
"Hide left manager": "Hide left manager", "Hide left manager": "Hide left manager",
"Host": "Host", "Host": "Host",
"Info": "Info", "Info": "Info",
"WordSep": " ",
"InstallClientMsg": "JumpServer client not found, Go to download and install?", "InstallClientMsg": "JumpServer client not found, Go to download and install?",
"Japanese keyboard layout": "Japanese (Qwerty)", "Japanese keyboard layout": "Japanese (Qwerty)",
"Keyboard keys": "Option + Left / Option + Right", "Keyboard keys": "Option + Left / Option + Right",
@ -108,7 +109,7 @@
"My applications": "My applications", "My applications": "My applications",
"My assets": "My assets", "My assets": "My assets",
"Name": "Name", "Name": "Name",
"Native": "Native", "Native": "Client",
"Need review for login asset": "This login needs manual review. Do you want to continue?", "Need review for login asset": "This login needs manual review. Do you want to continue?",
"Need to use": "Need to use", "Need to use": "Need to use",
"No": "No", "No": "No",

View File

@ -39,7 +39,7 @@
"Command line": "连接命令行", "Command line": "连接命令行",
"Confirm": "确认", "Confirm": "确认",
"Connect": "连接", "Connect": "连接",
"Connect Method": "连接方式", "Connect method": "连接方式",
"Connect checked": "连接选中", "Connect checked": "连接选中",
"Connect command line": "连接命令行", "Connect command line": "连接命令行",
"Copied": "已复制", "Copied": "已复制",
@ -205,4 +205,4 @@
"success": "成功", "success": "成功",
"system user": "系统用户", "system user": "系统用户",
"user": "用户" "user": "用户"
} }