Skip to content

Commit ea5c1e6

Browse files
committed
feat(admin-ui): resolved merge conflict #412
2 parents daa519f + 07d7408 commit ea5c1e6

File tree

29 files changed

+518
-57
lines changed

29 files changed

+518
-57
lines changed

CHANGELOG.md

+128
Large diffs are not rendered by default.

admin-ui/CHANGELOG.md

+115
Large diffs are not rendered by default.

admin-ui/app/components/ThemeSetting/ThemeSettings.js

+20-8
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,34 @@ import lightBlueThumbnail from 'Images/theme-thumbnail/lightBlue.jpg'
1111
import lightGreenThumbnail from 'Images/theme-thumbnail/lightGreen.jpg'
1212
import styles from './styles'
1313

14-
export function ThemeSettings() {
14+
export function ThemeSettings({ userInfo }) {
1515
const classes = styles()
1616
const [open, setOpen] = React.useState(false)
17-
const theme = useContext(ThemeContext)
18-
19-
const onChangeTheme = (value) => {
20-
theme.dispatch({ type: value })
21-
return
22-
}
17+
const themeContext = useContext(ThemeContext)
2318

2419
const themeList = [
2520
{ value: 'darkBlack', thumbnail: darkBlackThumbnail, text: 'Dark Black' },
2621
{ value: 'darkBlue', thumbnail: darkBlueThumbnail, text: 'Dark Blue' },
2722
{ value: 'lightBlue', thumbnail: lightBlueThumbnail, text: 'Light Blue' },
2823
{ value: 'lightGreen', thumbnail: lightGreenThumbnail, text: 'Light Green' },
2924
]
25+
const existingConfig = JSON.parse(localStorage.getItem('userConfig'))
26+
const lang = existingConfig?.lang || {}
27+
const theme = existingConfig?.theme || {}
28+
29+
const onChangeTheme = (value) => {
30+
const { inum } = userInfo
31+
32+
if (inum) {
33+
theme[inum] = value
34+
}
35+
36+
const newConfig = { lang, theme }
37+
localStorage.setItem('userConfig', JSON.stringify(newConfig))
38+
39+
themeContext.dispatch({ type: value })
40+
return
41+
}
3042

3143
const toggleDrawer = (open) => (event) => {
3244
if (event.type === 'keydown' && (event.key === 'Tab' || event.key === 'Shift')) {
@@ -50,7 +62,7 @@ export function ThemeSettings() {
5062
{themeList.map(text => (
5163
<Box
5264
className={clsx(classes.selectItem, {
53-
[classes.selectedItem]: theme.state.theme === text.value
65+
[classes.selectedItem]: themeContext.state.theme === text.value
5466
})}
5567
onClick={() => onChangeTheme(text.value)}
5668
key={text.value}

admin-ui/app/context/theme/themeContext.js

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const initialState = {
88

99
const themeReducer = (state, action) => {
1010
if (action.type) {
11-
window.localStorage.setItem('initTheme', action.type)
1211
return { theme: action.type }
1312
}
1413

admin-ui/app/locales/en/translation.json

+14-6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"accept": "Accept",
44
"add": "Add",
55
"add_ldap_configuration": "Add LDAP Configuration",
6+
"add_mapping":"Add Mapping",
67
"add_property": "Add property",
78
"apply": "Apply",
89
"back_home": "Back Home",
@@ -18,6 +19,7 @@
1819
"search": "Search",
1920
"submit": "Submit",
2021
"remove": "Remove",
22+
"revert": "revert",
2123
"test": "Test",
2224
"view": "View",
2325
"yes": "Yes",
@@ -72,11 +74,13 @@
7274
"client_name": "Client name",
7375
"client_secret": "Client secret",
7476
"computation_pool_size": "Computation Pool Size",
77+
"config_api_url": "Config API URL",
7578
"configuration_id": "Configuration Id",
7679
"connection_factory_type": "Connection Factory Type",
7780
"connection_timeout": "Connection Timeout",
7881
"consent_gathering_scripts": "OAuth Consent",
7982
"custom_properties": "Custom Properties (key/values)",
83+
"dark_mode": "Dark Mode",
8084
"data_type": "Data Type",
8185
"default_acr": "Default Authentication Method (ACR)",
8286
"default_bucket": "Default Bucket",
@@ -97,22 +101,18 @@
97101
"enabled_oAuth_audit_logging": "Enable Oauth Audit Logging?",
98102
"enter_the_attribute_inum": "Enter the attribute inum",
99103
"grant_types": "Grants",
100-
"redirect_regex": "Redirect Regex",
101104
"host_name": "Host Name",
102105
"hide_on_discovery": "Hide On Discovery?",
103106
"http_logging_enabled": "Enable HTTP Logging",
104107
"id": "id",
105108
"id_token_encrypted_response_alg": "JWS alg for encryption",
106109
"id_token_encrypted_response_enc": "JWS enc for encryption",
107110
"id_token_signed_response_alg": "JWS alg for signing",
108-
"spontaneousScopes": "Spontaneous scopes",
109-
"spontaneousScopesREGEX": "Spontaneous scope validation regex",
110111
"inactive": "InActive",
111112
"include_in_scim_extension": "Include In SCIM Extension?",
112113
"in_memory_configuration": "inMemoryConfiguration",
113114
"internal": "Internal",
114115
"introspection_scripts": "Introspection",
115-
"ropcScripts": "Password Grant",
116116
"inum": "inum",
117117
"is_active": "Active",
118118
"is_expirable_client": "Is Expirable Client?",
@@ -123,6 +123,7 @@
123123
"authorizationSignedResponseAlg": "JWS alg for signing",
124124
"authorizationEncryptedResponseAlg": "JWS alg for encryption",
125125
"authorizationEncryptedResponseEnc": "JWS enc for encryption",
126+
"list_paging_size": "List paging size",
126127
"location_type": "Location Type",
127128
"log_level": "Log level",
128129
"log_layout": "Log layout",
@@ -157,6 +158,7 @@
157158
"pre_authorization": "Pre-Authorization",
158159
"primary_key": "Primary Key",
159160
"programming_language": "Programming Language",
161+
"redirect_regex": "Redirect Regex",
160162
"redirect_uris": "Redirect URIs",
161163
"redirectUrisRegex": "Redirect Regex",
162164
"redis_configuration": "redisConfiguration",
@@ -169,6 +171,7 @@
169171
"required_ssl": "Required SSL",
170172
"response_types": "Response types",
171173
"revision": "Revision",
174+
"ropcScripts": "Password Grant",
172175
"rpt_scripts": "RPT Modification Script",
173176
"saml1_uri": "Saml1 URI",
174177
"saml2_uri": "Saml2 URI",
@@ -196,6 +199,8 @@
196199
"spontaneous_client_id": "Spontaneous Client Id",
197200
"spontaneous_scope_script_dns": "Spontaneous Scope Script Dns",
198201
"spontaneous_scopes": "Spontaneous Scopes",
202+
"spontaneousScopes": "Spontaneous scopes",
203+
"spontaneousScopesREGEX": "Spontaneous scope validation regex",
199204
"updateTokenScriptDns": "Update Token",
200205
"ssl_trust_store_file": "SSL Trust Store File",
201206
"ssl_trust_store_file_path": "sslTrustStoreFilePath",
@@ -283,11 +288,11 @@
283288
"givenName": "Given Name",
284289
"resources": "Resources",
285290
"resourceId": "Resource id",
286-
"iconUrl": "Icon URL",
287291
"scopeSelection": "Scope Selection",
288292
"scopeOrExpression": "Scope (or Expression)",
289293
"associatedClient": "Associated Client",
290294
"creationTime": "Creation Time",
295+
"select_date_range":"Select a date range",
291296
"scope": "Scope",
292297
"scopeExpression": "Scope Expression"
293298
},
@@ -380,7 +385,10 @@
380385
"refresh_data": "Refresh Data",
381386
"view_attribute": "View attribute",
382387
"edit_sql": "Edit SQL",
383-
"add_sql": "Add SQL"
388+
"add_sql": "Add SQL",
389+
"client_credentials_access_token_count": "Client credentials access token count",
390+
"authz_code_access_token_count": "Authz code access token count",
391+
"authz_code_idtoken_count": "Authz code idtoken count"
384392
},
385393
"placeholders": {
386394
"id": "Enter id",

admin-ui/app/locales/fr/translation.json

+26-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"token_issued_count": "Nombre de jetons émis",
1212
"user_info": "Informations utilisateur",
1313
"product_name": "Nom du produit",
14-
"type_licence": "Type de licence",
14+
"license_type": "Type de licence",
1515
"customer_email": "Courriel du client",
1616
"company_name": "Nom de l'entreprise",
1717
"license_status": "Statut de la licence",
@@ -28,14 +28,20 @@
2828
},
2929
"menus": {
3030
"adminui": "Administratrice",
31+
"config-api": "Config-API",
32+
"api": {
33+
"roles": "Rôles d'accès",
34+
"permissions": "Autorisations",
35+
"mapping": "Mapping"
36+
},
3137
"cache": "Cacher",
3238
"clients": "Clientes",
3339
"configuration": "Configuration",
3440
"couchbase": "Base de canapé",
3541
"dashboard": "Tableau de bord",
3642
"defaults": "Valeurs par défaut",
3743
"health": "Santé",
38-
"home": "Domicile",
44+
"home": "Accueil",
3945
"keys": "Clés",
4046
"ldap": "Ldap",
4147
"license": "Licence",
@@ -58,13 +64,14 @@
5864
"signout": "Déconnexion",
5965
"user_management": "User Management",
6066
"maugraph": "MAU",
61-
"users": "Users",
67+
"users": "Utilisateurs",
6268
"user-management": "User Management"
6369
},
6470
"actions": {
6571
"accept": "J'accepte",
6672
"add": "Ajouter",
6773
"add_ldap_configuration": "Ajouter une configuration LDAP",
74+
"add_mapping":"Ajouter un Mapping",
6875
"add_property": "Ajouter une propriété",
6976
"apply": "Appliquer",
7077
"back_home": "Retour à la maison",
@@ -75,8 +82,10 @@
7582
"no": "Non",
7683
"previous": "Précédent",
7784
"save": "sauver",
85+
"search": "Rechercher",
7886
"submit": "Soumettre",
7987
"remove": "Supprimer",
88+
"revert": "rétablir",
8089
"test": "Test",
8190
"view": "Vue",
8291
"yes": "Oui",
@@ -108,11 +117,13 @@
108117
"client_name": "Nom du client",
109118
"client_secret": "Secret du client",
110119
"computation_pool_size": "Taille du pool de calcul",
120+
"config_api_url": "Config API URL",
111121
"configuration_id": "Identifiant de configuration",
112122
"connection_factory_type": "Type d'usine de connexion",
113123
"connection_timeout": "Délai de connection dépassé",
114124
"consent_gathering_scripts": "Scripts de collecte de consentement",
115125
"custom_properties": "Propriétés personnalisées (clé/valeurs)",
126+
"dark_mode": "Mode Nuit",
116127
"data_type": "Type de données",
117128
"default_acr": "Méthode d'authentification par défaut (ACR)",
118129
"default_bucket": "Seau par défaut",
@@ -152,6 +163,7 @@
152163
"json_web_keys": "Clés Web JSON",
153164
"jwks": "Jwks",
154165
"jwks_uri": "Jwks URI",
166+
"list_paging_size": "Taille de la pagination de la liste",
155167
"location_type": "Type de lieu",
156168
"log_level": "Niveau de journal",
157169
"log_layout": "Disposition du journal",
@@ -186,6 +198,7 @@
186198
"pre_authorization": "Pré-autorisation",
187199
"primary_key": "Clé primaire",
188200
"programming_language": "Langage de programmation",
201+
"redirect_regex": "Regex de redirection",
189202
"redirect_uris": "Rediriger les URIs",
190203
"redis_configuration": "redisConfiguration",
191204
"redis_provider_type": "Type de fournisseur Redis",
@@ -197,13 +210,15 @@
197210
"required_ssl": "SSL requis",
198211
"response_types": "Types de réponse",
199212
"revision": "Révision",
213+
"ropcScripts": "Attribution du mot de passe",
200214
"rpt_scripts": "Script de modification RPT",
201215
"saml1_uri": "URI Saml1",
202216
"saml2_uri": "URI Saml2",
203217
"scope_type": "Type de portée",
204218
"scopes:": "Portées",
205219
"scripts": "Scénarios",
206220
"script_type": "Type de script",
221+
"select_date_range":"Sélectionnez une plage de dates",
207222
"sector_uri": "Identificateur de secteur URI",
208223
"sender_email": "Courriel de l'expéditeur",
209224
"sender_name": "Nom de l'expéditeur",
@@ -219,6 +234,8 @@
219234
"spontaneous_client_id": "Identifiant client spontané",
220235
"spontaneous_scope_script_dns": "DNS de script de portée spontanée",
221236
"spontaneous_scopes": "Portées spontanées",
237+
"spontaneousScopes": "Portées spontanées",
238+
"spontaneousScopesREGEX": "Regex de validation spontanée de la portée",
222239
"ssl_trust_store_file": "Fichier de magasin de confiance SSL",
223240
"ssl_trust_store_file_path": "sslTrustStoreFilePath",
224241
"ssl_trust_store_format": "Format de magasin de confiance SSL",
@@ -304,7 +321,10 @@
304321
"edit_ldap": "Modifier LDAP",
305322
"edit_attribute": "Modifier l'attribut",
306323
"refresh_data": "Actualiser les données",
307-
"view_attribute": "Afficher l'attribut"
324+
"view_attribute": "Afficher l'attribut",
325+
"client_credentials_access_token_count": "Nombre de jetons d'accès aux informations d'identification du client",
326+
"authz_code_access_token_count": "Code d'accès Authz token count",
327+
"authz_code_idtoken_count": "Code d'autorisation - nombre d'idtoken"
308328
},
309329
"placeholders": {
310330
"id": "Enter id",
@@ -367,9 +387,11 @@
367387
"sql_authentication": "Authentification SQL",
368388
"logging": "ENREGISTREMENT",
369389
"jwk_keys": "Clés JWK",
390+
"mapping": "MAPPAGE DES RÔLES/PERMISSIONS DE L'API",
370391
"modules_properties": "Propriétés du module",
371392
"oauth_server_status_title": "État du serveur OAuth",
372393
"oidc_clients": "Clients OIDC",
394+
"permissions": "Autorisations",
373395
"private_keys": "Clés privées",
374396
"public_keys": "Clés publiques",
375397
"profile_detail": "Détails du profil",

admin-ui/app/locales/pt/translation.json

+18-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@
2828
},
2929
"menus": {
3030
"adminui": "Admin",
31+
"config-api": "Config-API",
32+
"api": {
33+
"roles": "Papéis de acesso",
34+
"permissions": "Permissões",
35+
"mapping": "Mapeamento"
36+
},
3137
"cache": "Cache",
3238
"clients": "Clientes",
3339
"configuration": "Configuração",
@@ -64,6 +70,7 @@
6470
"accept": "Aceitar",
6571
"add": "Adicionar",
6672
"add_ldap_configuration": "Adicionar configuração LDAP",
73+
"add_mapping":"Add Mapping",
6774
"add_property": "Adicionar propriedade",
6875
"apply": "Aplicar",
6976
"back_home": "Voltar para casa",
@@ -76,6 +83,7 @@
7683
"save": "Salvar",
7784
"submit": "Enviar",
7885
"remove": "Remover",
86+
"revert": "revert",
7987
"test": "Teste",
8088
"view": "Visualizar",
8189
"yes": "Sim",
@@ -107,11 +115,13 @@
107115
"client_name": "Nome do cliente",
108116
"client_secret": "Segredo do cliente",
109117
"computation_pool_size": "Tamanho do pool de computação",
118+
"config_api_url": "Config API URL",
110119
"configuration_id": "Id de configuração",
111120
"connection_factory_type": "Tipo de conexão de fábrica",
112121
"connection_timeout": "Tempo limite de conexão",
113122
"consent_gathering_scripts": "Scripts de coleta de consentimento",
114123
"custom_properties": "Propriedades personalizadas (chave / valores)",
124+
"dark_mode": "Dark Mode",
115125
"data_type": "Tipo de dados",
116126
"default_acr": "Método de autenticação padrão (ACR)",
117127
"default_bucket": "Bucket padrão",
@@ -151,6 +161,7 @@
151161
"json_web_keys": "JSON Web Keys",
152162
"jwks": "Jwks",
153163
"jwks_uri": "Jwks Uri",
164+
"list_paging_size": "List paging size",
154165
"location_type": "Tipo de localização",
155166
"log_level": "Nível de registro",
156167
"log_layout": "Layout de log",
@@ -206,6 +217,7 @@
206217
"sector_uri": "URI de identificador de setor",
207218
"sender_email": "Email do Remetente",
208219
"sender_name": "Nome do remetente",
220+
"select_date_range":"Select a date range",
209221
"sentinel_master_group_name": "sentinelMasterGroupName",
210222
"servers": "Servidores",
211223
"show_in_configuration_endpoint": "Mostrar ponto final na configuração",
@@ -303,7 +315,10 @@
303315
"edit_ldap": "Editar Ldap",
304316
"edit_attribute": "Editar Atributo",
305317
"refresh_data": "Atualizar dados",
306-
"view_attribute": "Ver atributo"
318+
"view_attribute": "Ver atributo",
319+
"client_credentials_access_token_count": "Contagem de fichas de acesso de credenciais de clientes",
320+
"authz_code_access_token_count": "Contagem do código Authz de acesso",
321+
"authz_code_idtoken_count": "Authz code idtoken count"
307322
},
308323
"placeholders": {
309324
"id": "Enter id",
@@ -366,9 +381,11 @@
366381
"sql_authentication": "Autenticação Sql",
367382
"logging": "EXPLORAÇÃO MADEIREIRA",
368383
"jwk_keys": "Chaves JWK",
384+
"mapping": "API ROLES/PERMISSIONS MAPPING",
369385
"modules_properties": "Propriedades do Módulo",
370386
"oauth_server_status_title": "Status do servidor OAuth",
371387
"oidc_clients": "Clientes OIDC",
388+
"permissions": "Permissões",
372389
"private_keys": "Chaves Privadas",
373390
"public_keys": "Chaves Públicas",
374391
"profile_detail": "Detalhes de perfil",

0 commit comments

Comments
 (0)