From c22e9bbe78280b0abb0be030ba8c3ec8c503e0f5 Mon Sep 17 00:00:00 2001 From: zhangjingwei Date: Tue, 7 May 2024 16:28:55 +0800 Subject: [PATCH] feat: add unrestricted column for application credential Add unrestricted column for the application credential list page Change-Id: Ieefb3fc7ad160b114acea16f2b98cd5e59b17753 --- src/locales/en.json | 3 +++ src/locales/ko-kr.json | 3 +++ src/locales/ru.json | 3 +++ src/locales/tr-tr.json | 3 +++ src/locales/zh-hans.json | 3 +++ src/pages/user-center/containers/Credentials/index.jsx | 9 +++++++++ 6 files changed, 24 insertions(+) diff --git a/src/locales/en.json b/src/locales/en.json index a67c0643..7d04ea2f 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -2109,6 +2109,8 @@ "Restore from snapshot": "Restore from snapshot", "Restoring": "Restoring", "Restoring Backup": "Restoring Backup", + "Restricted": "Restricted", + "Restricted Situation": "Restricted Situation", "Resume": "Resume", "Resume Complete": "Resume Complete", "Resume Failed": "Resume Failed", @@ -2687,6 +2689,7 @@ "Used": "Used", "Used IPs": "Used IPs", "Used by tunnel(s): {names}. ID(s): {ids}": "Used by tunnel(s): {names}. ID(s): {ids}", + "Used to restrict whether the application credential may be used for the creation or destruction of other application credentials or trusts.": "Used to restrict whether the application credential may be used for the creation or destruction of other application credentials or trusts.", "User": "User", "User Account": "User Account", "User Center": "User Center", diff --git a/src/locales/ko-kr.json b/src/locales/ko-kr.json index 55c25087..2e345df1 100644 --- a/src/locales/ko-kr.json +++ b/src/locales/ko-kr.json @@ -2109,6 +2109,8 @@ "Restore from snapshot": "스냅샷에서 복원", "Restoring": "복원 중", "Restoring Backup": "백업 복원 중", + "Restricted": "제한된", + "Restricted Situation": "제한된 상황", "Resume": "재개", "Resume Complete": "재개 완료", "Resume Failed": "재개 실패", @@ -2687,6 +2689,7 @@ "Used": "사용중", "Used IPs": "사용중인 IP", "Used by tunnel(s): {names}. ID(s): {ids}": "Tunnel(s) {names}에 의해 사용 중입니다. ID(s): {ids}", + "Used to restrict whether the application credential may be used for the creation or destruction of other application credentials or trusts.": "다른 응용 프로그램 자격 증명이나 트러스트를 생성하거나 파기하는 데 응용 프로그램 자격 증명을 사용할 수 있는지 여부를 제한하는 데 사용됩니다.", "User": "사용자", "User Account": "사용자 계정", "User Center": "사용자 센터", diff --git a/src/locales/ru.json b/src/locales/ru.json index 1163dd96..d0413c95 100644 --- a/src/locales/ru.json +++ b/src/locales/ru.json @@ -2109,6 +2109,8 @@ "Restore from snapshot": "Восстановление из снимка", "Restoring": "Восстановление", "Restoring Backup": "Восстановление из резервной копии", + "Restricted": "Ограниченный", + "Restricted Situation": "Ограниченная ситуация", "Resume": "Возобновить", "Resume Complete": "Возобновление завершено", "Resume Failed": "Ошибка возобновления", @@ -2687,6 +2689,7 @@ "Used": "Используется", "Used IPs": "Используемые IP-адреса", "Used by tunnel(s): {names}. ID(s): {ids}": "Используется туннелем(ями): {names}. Идентификатор(ы): {ids}", + "Used to restrict whether the application credential may be used for the creation or destruction of other application credentials or trusts.": "Используется для ограничения возможности использования учетных данных приложения для создания или уничтожения других учетных данных или доверительных отношений приложения.", "User": "Пользователь", "User Account": "Учетная запись пользователя", "User Center": "Центр пользователя", diff --git a/src/locales/tr-tr.json b/src/locales/tr-tr.json index 97e4731d..2fc882d1 100644 --- a/src/locales/tr-tr.json +++ b/src/locales/tr-tr.json @@ -2109,6 +2109,8 @@ "Restore from snapshot": "Anlık Görüntüden Geri Yükle", "Restoring": "Geri yükleniyor", "Restoring Backup": "Yedekleme Geri Yükleniyor", + "Restricted": "Sınırlı", + "Restricted Situation": "Kısıtlı Durum", "Resume": "Devam Et", "Resume Complete": "Devam Etme Tamamlandı", "Resume Failed": "Devam Etme Başarısız", @@ -2687,6 +2689,7 @@ "Used": "Kullanılan", "Used IPs": "Kullanılan IP'ler", "Used by tunnel(s): {names}. ID(s): {ids}": "Tünel tarafından kullanılıyor: {names}. ID(ler): {ids}", + "Used to restrict whether the application credential may be used for the creation or destruction of other application credentials or trusts.": "Uygulama kimlik bilgilerinin diğer uygulama kimlik bilgilerinin veya güvenlerinin oluşturulması veya yok edilmesi için kullanılıp kullanılamayacağını kısıtlamak için kullanılır.", "User": "Kullanıcı", "User Account": "Kullanıcı Hesabı", "User Center": "Kullanıcı Merkezi", diff --git a/src/locales/zh-hans.json b/src/locales/zh-hans.json index 36d3a129..3428b5e4 100644 --- a/src/locales/zh-hans.json +++ b/src/locales/zh-hans.json @@ -2109,6 +2109,8 @@ "Restore from snapshot": "从快照恢复", "Restoring": "恢复中", "Restoring Backup": "恢复备份中", + "Restricted": "受限", + "Restricted Situation": "受限情况", "Resume": "恢复", "Resume Complete": "恢复完成", "Resume Failed": "恢复失败", @@ -2687,6 +2689,7 @@ "Used": "已使用", "Used IPs": "已用IP", "Used by tunnel(s): {names}. ID(s): {ids}": "被隧道使用中:{names}。 ID:{ids}", + "Used to restrict whether the application credential may be used for the creation or destruction of other application credentials or trusts.": "用于限制应用程序凭证是否可用于创建或销毁其他应用程序凭证或信任。", "User": "用户", "User Account": "用户账户", "User Center": "用户中心", diff --git a/src/pages/user-center/containers/Credentials/index.jsx b/src/pages/user-center/containers/Credentials/index.jsx index a2b57910..3cc9f9bc 100644 --- a/src/pages/user-center/containers/Credentials/index.jsx +++ b/src/pages/user-center/containers/Credentials/index.jsx @@ -67,6 +67,15 @@ export class Credentials extends Base { valueRender: 'toLocalTime', isHideable: true, }, + { + title: t('Restricted Situation'), + dataIndex: 'unrestricted', + isHideable: true, + render: (value) => (!value ? t('Restricted') : t('Unrestricted')), + titleTip: t( + 'Used to restrict whether the application credential may be used for the creation or destruction of other application credentials or trusts.' + ), + }, { title: t('Roles'), dataIndex: 'roles',