feat: 添加配置项 KoKo SSH Client 方式

This commit is contained in:
Jiangjie.Bai 2022-04-19 16:01:56 +08:00 committed by Jiangjie.Bai
parent 54097f07be
commit dd5b805da9
5 changed files with 19 additions and 4 deletions

View File

@ -897,6 +897,8 @@
}
},
"setting": {
"EnableKoKoSSHHelpText": "Enabled, connect assets to display SSH Client pull-up method",
"SettingInEndpointHelpText": "Configure the service address and port in System Settings / Terminal Settings / Service Endpoints",
"Feature": "Feature",
"SMSProvider": "SMS provider",
"SMS": "SMS",

View File

@ -918,6 +918,8 @@
}
},
"setting": {
"EnableKoKoSSHHelpText": "有効にすると、アセットを接続してSSHクライアントのプルアップ方式を表示します",
"SettingInEndpointHelpText": "[システム設定]/[端末設定]/[サービスエンドポイント]でサービスアドレスとポートを構成します",
"Feature": "機能",
"AlibabaCloud": "Alibaba cloud",
"TencentCloud": "テンセント雲",
@ -1490,8 +1492,8 @@
"InterfaceSettings": "インターフェース設定",
"License": "ライセンス",
"ComponentMonitor": "コンポーネントモニタリング",
"Endpoint": "ターミナルエンドポイント",
"EndpointRule": "エンドポイントエンドポイントルール",
"Endpoint": "エンドポイント",
"EndpointRule": "エンドポイントルール",
"ServiceRatio": "コンポーネント負荷統計",
"LoadStatus": "コンポーネントステータス",
"NormalLoad": "正常",

View File

@ -919,6 +919,8 @@
}
},
"setting": {
"EnableKoKoSSHHelpText": "开启时连接资产会显示 SSH Client 拉起方式",
"SettingInEndpointHelpText": "在 系统设置 / 终端设置 / 服务端点 中配置服务地址和端口",
"Feature": "功能",
"AlibabaCloud": "阿里云",
"TencentCloud": "腾讯云",
@ -1491,8 +1493,8 @@
"InterfaceSettings": "界面设置",
"License": "许可证",
"ComponentMonitor": "组件监控",
"Endpoint": "终端节点",
"EndpointRule": "点规则",
"Endpoint": "服务端点",
"EndpointRule": "端点规则",
"ServiceRatio": "组件负载统计",
"LoadStatus":"组件状态",
"NormalLoad":"正常",

View File

@ -20,6 +20,7 @@ export default {
[
`SSH ${comp}(KoKo)`,
[
'TERMINAL_KOKO_SSH_ENABLED',
'TERMINAL_PASSWORD_AUTH', 'TERMINAL_PUBLIC_KEY_AUTH',
'TERMINAL_ASSET_LIST_SORT_BY',
'TERMINAL_ASSET_LIST_PAGE_SIZE', 'TERMINAL_TELNET_REGEX'
@ -39,16 +40,23 @@ export default {
]
],
fieldsMeta: {
TERMINAL_KOKO_SSH_ENABLED: {
helpText: this.$i18n.t('common.Info') + ': ' + this.$i18n.t('setting.EnableKoKoSSHHelpText')
},
TERMINAL_TELNET_REGEX: {
type: 'input'
},
XRDP_ENABLED: {
helpText: this.$i18n.t('common.Info') + ': ' + this.$i18n.t('setting.SettingInEndpointHelpText'),
hidden: () => {
return !this.$store.getters.hasValidLicense
},
el: {
hiddenGroup: true
}
},
TERMINAL_MAGNUS_ENABLED: {
helpText: this.$i18n.t('common.Info') + ': ' + this.$i18n.t('setting.SettingInEndpointHelpText')
}
},
getUrl: () => '/api/v1/settings/setting/?category=terminal',

View File

@ -100,6 +100,7 @@ export default {
'assets.gateway': ['assets.view_domain'],
'assets.view_authbook': ['assets.view_node'],
'assets.gathereduser': ['assets.view_node'],
'assets.refresh_assethardwareinfo': ['assets.change_asset'],
'xpack.gatherusertaskexecution': ['xpack.view_gatherusertask'],
'applications.add_application': ['assets.view_asset'],
'applications.view_account': ['applications.view_application'],