Merge pull request #1931 from jumpserver/dev

v2.24.0-rc1
This commit is contained in:
Jiangjie.Bai 2022-07-14 17:51:58 +08:00 committed by GitHub
commit 6f25d93909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 7 deletions

View File

@ -126,7 +126,7 @@
"Charset": "Charset",
"CmdFilter": "CmdFilter",
"CommandFilterDetail": "Command filter detail",
"CommandFilterHelpMessage": "System user bound some command filter, each command filter has some rules, When user login asset with this system user, then run a command, The command will be filter by rules, higher priority rule run first, When a rule matched, if rule action is allow, then allow command execute, else if action is deny, then command with be deny, else match next rule, if none matched, allowed",
"CommandFilterHelpMessage": "The system user supports binding multiple command filters to achieve the effect of prohibiting the input of certain commands; multiple rules can be configured in the filter. When the system user is used to connect to the asset, the input command takes effect according to the priority of the rules configured in the filter. <br>Example: The first matched rule is \"Allow\", the command is executed, the first matched rule is \"Forbidden\", the command execution is prohibited; if the last rule is not matched, it is allowed to be executed.",
"CommandFilterRuleContentHelpText": "One line one command",
"CommandFilterRulePriorityHelpText": "1-100, the higher will be match first",
"CommandFilterRules": "Command filter rules",

View File

@ -128,7 +128,7 @@
"Charset": "文字セット",
"CmdFilter": "コマンドフィルタ",
"CommandFilterDetail": "コマンドフィルタの詳細",
"CommandFilterHelpMessage": "システムユーザーはいくつかのコマンドフィルタをバインドすることができ、一つのフィルタはいくつかのルールを定義することができます。ユーザーがこのシステムユーザーを使用して資産にログインし、一つのコマンドを実行するには、フィルタをバインドするすべてのルールが一致する必要があります優先度の高いものが先にマッチされ、ルールがマッチしたとき、ルールのアクションが許可されていれば、このコマンドは発行され、ルールのアクションが禁止されていれば、コマンドは実行されなくなりますそれ以外の場合は次のルールがマッチし、最後にルールがマッチしない場合は実行が許可されます",
"CommandFilterHelpMessage": "Xìtǒng yònghù zhīchí bǎng dìng duō gè mìnglìng guòlǜ qì shíxiàn jìnzhǐ shūrù mǒu xiē mìnglìng de xiàoguǒ; guòlǜ qì zhōng kě pèizhì duō gè guīzé, zài shǐyòng gāi xìtǒng yònghù liánjiē zīchǎn shí, shūrù de mìnglìng ànzhào guòlǜ qì zhōng pèizhì de guīzé yōuxiān jí shēngxiào; lì: Shǒuxiān pǐpèi dào de guīzé shì “yǔnxǔ”, zé gāi mìnglìng zhíxíng, shǒuxiān pǐpèi dào de guīzé wèi “jìnzhǐ”, zé jìnzhǐ gāi mìnglìng zhíxíng; rúguǒ zuìhòu wèi pǐpèi dào guīzé, zé yǔnxǔ zhíxíng.\n展开\n140 / 5,000\n翻译结果\nシステムユーザーは、複数のコマンドフィルターのバインドをサポートして、特定のコマンドの入力を禁止する効果を実現します。フィルターで複数のルールを構成できます。システムユーザーがアセットへの接続に使用される場合、入力コマンドは、フィルタで設定されたルール。<br>例:最初に一致したルールが「許可」の場合、コマンドが実行されます。最初に一致したルールが「禁止」の場合、コマンドの実行が禁止されます。最後のルールが一致しない場合、実行が許可されます。",
"CommandFilterRuleContentHelpText": "各行のコマンド",
"CommandFilterRulePriorityHelpText": "優先度の選択範囲は1-100、1最低優先度、100最高優先度です",
"CommandFilterRules": "コマンドフィルタルール",

View File

@ -128,7 +128,7 @@
"Charset": "字符集",
"CmdFilter": "命令过滤器",
"CommandFilterDetail": "命令过滤器详情",
"CommandFilterHelpMessage": "系统用户可以绑定一些命令过滤器,一个过滤器可以定义一些规则 当用户使用这个系统用户登录资产,然后执行一个命令 这个命令需要被绑定过滤器的所有规则匹配,高优先级先被匹配, 当一个规则匹配到了,如果规则的动作是允许,这个命令会被放行, 如果规则的动作是禁止,命令将会被禁止执行, 否则就匹配下一个规则,如果最后没有匹配到规则,则允许执行",
"CommandFilterHelpMessage": "系统用户支持绑定多个命令过滤器实现禁止输入某些命令的效果;过滤器中可配置多个规则,在使用该系统用户连接资产时,输入的命令按照过滤器中配置的规则优先级生效。<br>例:首先匹配到的规则是“允许”,则该命令执行,首先匹配到的规则为“禁止”,则禁止该命令执行;如果最后未匹配到规则,则允许执行。",
"CommandFilterRuleContentHelpText": "每行一个命令",
"CommandFilterRulePriorityHelpText": "优先级可选范围为1-1001最低优先级100最高优先级",
"CommandFilterRules": "命令过滤器规则",

View File

@ -46,6 +46,11 @@ export default {
]]
],
fieldsMeta: {
title: {
el: {
type: 'input'
}
},
type: {
hidden: () => true,
el: {
@ -122,7 +127,9 @@ export default {
component: Select2,
el: {
multiple: false,
options: this.$store.state.users.workbenchOrgs?.map((item) => {
options: this.$store.state.users.workbenchOrgs.filter(item => {
return item.id !== '00000000-0000-0000-0000-000000000000'
})?.map((item) => {
return { label: item.name, value: item.id }
})
},
@ -156,7 +163,9 @@ export default {
},
computed: {
...mapState({
workbenchOrgs: state => state.users.workbenchOrgs
workbenchOrgs: state => state.users.workbenchOrgs.filter(item => {
return item.id !== '00000000-0000-0000-0000-000000000000'
})
}),
...mapGetters(['currentOrg'])
},

View File

@ -42,6 +42,11 @@ export default {
]]
],
fieldsMeta: {
title: {
el: {
type: 'input'
}
},
type: {
hidden: () => true,
el: {
@ -100,7 +105,9 @@ export default {
component: Select2,
el: {
multiple: false,
options: this.$store.state.users.workbenchOrgs?.map((item) => {
options: this.$store.state.users.workbenchOrgs.filter(item => {
return item.id !== '00000000-0000-0000-0000-000000000000'
})?.map((item) => {
return { label: item.name, value: item.id }
})
},
@ -130,7 +137,9 @@ export default {
},
computed: {
...mapState({
workbenchOrgs: state => state.users.workbenchOrgs
workbenchOrgs: state => state.users.workbenchOrgs.filter(item => {
return item.id !== '00000000-0000-0000-0000-000000000000'
})
}),
...mapGetters(['currentOrg'])
},