diff --git a/oidc-ui/public/locales/ar.json b/oidc-ui/public/locales/ar.json index 0dce7a61e..c1b4685b8 100644 --- a/oidc-ui/public/locales/ar.json +++ b/oidc-ui/public/locales/ar.json @@ -188,8 +188,8 @@ "consentDetails": { "essential_claims": "المطالبات الأساسية", "voluntary_claims": "المطالبات الطوعية", - "verified_claim": "المطالبة التي تم التحقق منها", - "unverified_claim": "مطالبة لم يتم التحقق منها", + "verified_claims": "المطالبات التي تم التحقق منها", + "unverified_claims": "مطالبات لم يتم التحقق منها", "name": "اسم", "given_name": "اسم", "middle_name": "الاسم الأوسط", diff --git a/oidc-ui/public/locales/en.json b/oidc-ui/public/locales/en.json index 33f869e73..dc2df8897 100644 --- a/oidc-ui/public/locales/en.json +++ b/oidc-ui/public/locales/en.json @@ -189,8 +189,8 @@ "consentDetails": { "essential_claims": "Essential Claims", "voluntary_claims": "Voluntary Claims", - "verified_claim": "Verified Claim", - "unverified_claim": "Unverified Claim", + "verified_claims": "Verified Claims", + "unverified_claims": "Unverified Claims", "name": "Name", "given_name": "Name", "middle_name": "Middle Name", diff --git a/oidc-ui/public/locales/hi.json b/oidc-ui/public/locales/hi.json index 504185a4a..db93d2ea4 100644 --- a/oidc-ui/public/locales/hi.json +++ b/oidc-ui/public/locales/hi.json @@ -189,8 +189,8 @@ "consentDetails": { "essential_claims": "आवश्यक दावे", "voluntary_claims": "स्वैच्छिक दावे", - "verified_claim": "सत्यापित दावा", - "unverified_claim": "असत्यापित दावा", + "verified_claims": "सत्यापित दावे", + "unverified_claims": "असत्यापित दावे", "name": "नाम", "given_name": "नाम", "middle_name": "मध्य नाम", diff --git a/oidc-ui/public/locales/km.json b/oidc-ui/public/locales/km.json index 60413315f..5cdac1d8d 100644 --- a/oidc-ui/public/locales/km.json +++ b/oidc-ui/public/locales/km.json @@ -189,8 +189,8 @@ "consentDetails": { "essential_claims": "ការទាមទារសំខាន់ៗ", "voluntary_claims": "ការទាមទារដោយស្ម័គ្រចិត្ត", - "verified_claim": "ការទាមទារដែលបានផ្ទៀងផ្ទាត់", - "unverified_claim": "ការទាមទារដែលមិនបានផ្ទៀងផ្ទាត់", + "verified_claims": "ការទាមទារដែលបានផ្ទៀងផ្ទាត់", + "unverified_claims": "ការទាមទារដែលមិនបានបញ្ជាក់", "name": "ឈ្មោះ", "given_name": "ឈ្មោះ", "middle_name": "ជា​ឈ្មោះ​ក​ណ្តា​ល", diff --git a/oidc-ui/public/locales/kn.json b/oidc-ui/public/locales/kn.json index eee455c0d..34f04a507 100644 --- a/oidc-ui/public/locales/kn.json +++ b/oidc-ui/public/locales/kn.json @@ -189,8 +189,8 @@ "consentDetails": { "essential_claims": "ಅಗತ್ಯ ಹಕ್ಕುಗಳು", "voluntary_claims": "ಸ್ವಯಂಪ್ರೇರಿತ ಹಕ್ಕುಗಳು", - "verified_claim": "ಪರಿಶೀಲಿಸಿದ ಹಕ್ಕು", - "unverified_claim": "ಪರಿಶೀಲಿಸದ ಹಕ್ಕು", + "verified_claims": "ಪರಿಶೀಲಿಸಿದ ಹಕ್ಕುಗಳು", + "unverified_claims": "ಪರಿಶೀಲಿಸದ ಹಕ್ಕುಗಳು", "name": "ಹೆಸರು", "given_name": "ಹೆಸರು", "middle_name": "ಮಧ್ಯದ ಹೆಸರು", diff --git a/oidc-ui/public/locales/ta.json b/oidc-ui/public/locales/ta.json index c7a3aee1b..619ad0883 100644 --- a/oidc-ui/public/locales/ta.json +++ b/oidc-ui/public/locales/ta.json @@ -189,8 +189,8 @@ "consentDetails": { "essential_claims": "அத்தியாவசிய உரிமைகோரல்கள்", "voluntary_claims": "தன்னார்வ உரிமைகோரல்கள்", - "verified_claim": "சரிபார்க்கப்பட்ட உரிமைகோரல்", - "unverified_claim": "சரிபார்க்கப்படாத உரிமைகோரல்", + "verified_claims": "சரிபார்க்கப்பட்ட உரிமைகோரல்கள்", + "unverified_claims": "சரிபார்க்கப்படாத உரிமைகோரல்கள்", "name": "பெயர்", "given_name": "பெயர்", "middle_name": "நடுத்தர பெயர்", diff --git a/oidc-ui/src/components/Authorize.js b/oidc-ui/src/components/Authorize.js index 5f6b81ba6..ffbc13c5a 100644 --- a/oidc-ui/src/components/Authorize.js +++ b/oidc-ui/src/components/Authorize.js @@ -79,6 +79,7 @@ export default function Authorize({ authService }) { setStatus(states.LOADED); if (request.idTokenHint) { + setStatus(states.LOADING); const base64UrlDecode = (str) => { return decodeURIComponent( atob(str.replace(/-/g, "+").replace(/_/g, "/")) @@ -207,7 +208,7 @@ export default function Authorize({ authService }) { switch (status) { case states.LOADING: - el = ; + el = ; break; case states.LOADED: if (!oAuthDetailResponse) { diff --git a/oidc-ui/src/components/ClaimDetails.js b/oidc-ui/src/components/ClaimDetails.js index 3f2915818..edd1681c2 100644 --- a/oidc-ui/src/components/ClaimDetails.js +++ b/oidc-ui/src/components/ClaimDetails.js @@ -72,17 +72,16 @@ const ClaimDetails = ({ if (label === "essential") { return (
-

{t1("essential_claims")}

{t1("essential_claims")}: {t1("essentialClaimsTooltip")}

- {t1("verified_claim")}: + {t1("verified_claims")}: {t1("verifiedClaimTooltip")}

- {t1("unverified_claim")}: + {t1("unverified_claims")}: {t1("unverifiedClaimTooltip")}

@@ -90,7 +89,6 @@ const ClaimDetails = ({ } else if (label === "voluntary") { return (
-

{t1("voluntary_claims")}

{t1("voluntaryClaimsTooltip")}

); diff --git a/oidc-ui/src/components/NavHeader.js b/oidc-ui/src/components/NavHeader.js index 9a65a2f18..d3208752a 100644 --- a/oidc-ui/src/components/NavHeader.js +++ b/oidc-ui/src/components/NavHeader.js @@ -23,29 +23,29 @@ export default function NavHeader({ langOptions, i18nKeyPrefix = "header" }) { }; const customStyles = { - control: (base) => ({ + control: (base) => ({ + ...base, + border: 0, + }), + ...(config["remove_language_indicator_pipe"] && { + valueContainer: (base) => ({ ...base, - border: 0, + padding: 0, }), - ...(config["remove_language_indicator_pipe"] && { - valueContainer: (base) => ({ - ...base, - padding: 0, - }), - indicatorSeparator: (base) => ({ - ...base, - display: "none", - }), - dropdownIndicator: (base) => ({ - ...base, - 'padding-left': 0, - color: '#140701', - }), - menu: (base) => ({ - ...base, - 'min-width': '100px' - }) - }) + indicatorSeparator: (base) => ({ + ...base, + display: "none", + }), + dropdownIndicator: (base) => ({ + ...base, + "padding-left": 0, + color: "#140701", + }), + menu: (base) => ({ + ...base, + "min-width": "100px", + }), + }), }; useEffect(() => { @@ -75,50 +75,56 @@ export default function NavHeader({ langOptions, i18nKeyPrefix = "header" }) { return option.value === lng; }); setSelectedLang(language); - - // Setting up the current i18n language in the URL on every language change. - - // Decode the authorize query param - const decodedBase64 = Buffer.from(authServices.getAuthorizeQueryParam(), 'base64').toString(); - - var urlSearchParams = new URLSearchParams(decodedBase64); - - // Convert the decoded string to JSON - var jsonObject = {}; - urlSearchParams.forEach(function (value, key) { - jsonObject[key] = value; - - // Assign the current i18n language to the ui_locales - if(key === ui_locales) { - jsonObject[key] = language.value - } - }); - - // Convert the JSON back to decoded string - Object.entries(jsonObject).forEach(([key, value]) => { - urlSearchParams.set(key, value); - }); - // Encode the string - var encodedString = urlSearchParams.toString(); + // Setting up the current i18n language in the URL on every language change. + + // Decode the authorize query param + const decodedBase64 = Buffer.from( + authServices.getAuthorizeQueryParam(), + "base64" + ).toString(); + + var urlSearchParams = new URLSearchParams(decodedBase64); + + // Convert the decoded string to JSON + var jsonObject = {}; + urlSearchParams.forEach(function (value, key) { + jsonObject[key] = value; - const encodedBase64 = Buffer.from(encodedString).toString("base64"); + // Assign the current i18n language to the ui_locales + if (key === ui_locales) { + jsonObject[key] = language.value; + } + }); + + // Convert the JSON back to decoded string + Object.entries(jsonObject).forEach(([key, value]) => { + urlSearchParams.set(key, value); + }); + + // Encode the string + var encodedString = urlSearchParams.toString(); + + const encodedBase64 = Buffer.from(encodedString).toString("base64"); - // Remove the old authorizeQueryParam from the local storage - localStorage.removeItem(authorizeQueryParam) + // Remove the old authorizeQueryParam from the local storage + localStorage.removeItem(authorizeQueryParam); - // Insert the new authorizeQueryParam to the local storage - localStorage.setItem(authorizeQueryParam, encodedBase64); + // Insert the new authorizeQueryParam to the local storage + localStorage.setItem(authorizeQueryParam, encodedBase64); }); }, [langOptions]); - + var dropdownItemClass = - "group text-[14px] leading-none flex items-center relative select-none outline-none data-[disabled]:pointer-events-none hover:font-bold cursor-pointer py-2"; + "group text-[14px] leading-none flex items-center relative select-none outline-none data-[disabled]:pointer-events-none hover:font-bold cursor-pointer py-2"; var borderBottomClass = "border-b-[1px]"; - + return ( -