forked from oceanbase/ob-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Access Control role text and ContentWithQuestion (oceanbase#555)
- Loading branch information
1 parent
356cc3c
commit bf1307d
Showing
5 changed files
with
2,702 additions
and
3,936 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import { intl } from '@/utils/intl'; | ||
|
||
export const ACCESS_ROLES_LIST = [ | ||
{ | ||
label: intl.formatMessage({ | ||
id: 'src.constants.D057DB4A', | ||
defaultMessage: '集群与租户', | ||
}), | ||
value: 'obcluster', | ||
descriptions: intl.formatMessage({ | ||
id: 'src.components.customModal.783C8ED3', | ||
defaultMessage: | ||
'集群与租户: 读权限涉及OB集群、租户的获取,写权限涉及集群和租户的创建、更新和删除', | ||
}), | ||
}, | ||
{ | ||
label: intl.formatMessage({ | ||
id: 'src.constants.9E29D52E', | ||
defaultMessage: '系统信息', | ||
}), | ||
value: 'system', | ||
descriptions: intl.formatMessage({ | ||
id: 'src.components.customModal.EA420EE1', | ||
defaultMessage: | ||
'系统信息: 读权限涉及监控指标和监控数据的获取,k8s集群节点、事件、命名空间、存储类的获取,写权限涉及命名空间的创建和系统配置的修改', | ||
}), | ||
}, | ||
{ | ||
label: intl.formatMessage({ | ||
id: 'src.constants.4EBEFDA8', | ||
defaultMessage: '监控告警', | ||
}), | ||
value: 'alarm', | ||
descriptions: { | ||
id: 'src.components.customModal.CC80EAD4', | ||
defaultMessage: | ||
'监控告警: 读权限涉及告警、Silencer、Rule、Receiver和Route的读取,写权限则涉及它们的着创建、更新和删除', | ||
}, | ||
}, | ||
{ | ||
label: 'OBProxy', | ||
value: 'obproxy', | ||
descriptions: { | ||
id: 'src.components.customModal.C97E041E', | ||
defaultMessage: | ||
'OBProxy: 读权限涉及OBProxy的获取,写权限涉及OBProxy的创建、更新和删除', | ||
}, | ||
}, | ||
{ | ||
label: intl.formatMessage({ | ||
id: 'src.constants.939130EF', | ||
defaultMessage: '权限控制', | ||
}), | ||
value: 'ac', | ||
descriptions: { | ||
id: 'src.components.customModal.2169D3CC', | ||
defaultMessage: | ||
'权限控制: 读权限涉及账号和角色的获取,写权限涉及它们的创建、更新和删除', | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.