@@ -10,7 +10,7 @@ import Keycloak from 'keycloak-js'
1010 standalone : false ,
1111} )
1212export class AppComponent implements OnInit , AfterViewInit {
13- constructor ( public renderer : Renderer2 ) { }
13+ constructor ( public renderer : Renderer2 ) { }
1414
1515 ngOnInit ( ) : void {
1616 const favicon = getThemeConfig ( ) . FAVICON
@@ -35,11 +35,9 @@ export class AppComponent implements OnInit, AfterViewInit {
3535 const authContainer = document . getElementById ( 'header-auth' )
3636 if ( ! authContainer ) return
3737
38- const client_id = 'cartes-gouv-public' ;
39- let sso_url ;
40- if (
41- encodeURIComponent ( window . location . href ) . includes ( 'mut-dev' )
42- ) {
38+ const client_id = 'cartes-gouv-public'
39+ let sso_url
40+ if ( encodeURIComponent ( window . location . href ) . includes ( 'mut-dev' ) ) {
4341 sso_url = 'sso-qua.priv.geopf.fr'
4442 } else {
4543 sso_url = 'sso.geopf.fr'
@@ -70,13 +68,13 @@ export class AppComponent implements OnInit, AfterViewInit {
7068 <li>
7169 <div class="fr-translate fr-nav">
7270 <div class="fr-nav__item">
73- <button aria-controls="${ collapseId } " aria-expanded="false" title="Mon espace" class="fr-nav__btn fr-btn fr-px-2w ">
71+ <button aria-controls="${ collapseId } " aria-expanded="false" title="Mon espace" class="fr-nav__btn edu-menu-dropdown__btn fr-btn--sm fr-btn--icon-left fr-btn fr-btn--tertiary-no-outline ">
7472 <span class="fr-icon-account-circle-fill fr-icon--sm fr-mr-1w" aria-hidden="true"></span>Mon espace</button>
75- <div class="fr-collapse fr-translate__menu fr- menu" id="${ collapseId } ">
73+ <div class="fr-collapse fr-menu" style="width: 18rem; " id="${ collapseId } ">
7674 <ul class="fr-menu__list">
7775 <li style="pointer-events: none;">
7876 <div class="fr-text--sm">
79- <p class="custom-center-btn fr-text--bold fr-mx-2w fr-text--sm fr-mt-3v fr-mb-2v ">${ displayName } </p>
77+ <p class="custom-center-btn fr-text--bold fr-mx-2w fr-text--sm fr-mt-3v" style="text-align: left; ">${ displayName } </p>
8078 <p class="fr-text--xs fr-mb-3v fr-mx-2w fr-text-mention--grey" style="text-align: left;">${ claims . email } </p>
8179 </div>
8280 </li>
@@ -89,9 +87,9 @@ export class AppComponent implements OnInit, AfterViewInit {
8987 <span class="fr-icon-user-line fr-icon--sm"> Mon compte</span></a>
9088 </li>
9189 <li>
92- <div>
90+ <div style="text-align: center;" >
9391 <a href="https://${ sso_url } /realms/geoplateforme/protocol/openid-connect/logout?post_logout_redirect_uri=${ currentUrl } &client_id=${ client_id } "
94- class="fr-icon-logout-box-r-line fr-icon--sm custom-center-btn fr-btn fr-btn--tertiary fr-btn--sm fr-mt-3v fr-mx-2w">
92+ class="fr-icon-logout-box-r-line fr-icon--sm custom-center-btn fr-btn fr-btn--tertiary fr-btn--sm fr-mt-3v fr-mx-2w" style="width: 14rem; justify-content: center;" >
9593 Se déconnecter
9694 </a>
9795 </div>
@@ -120,11 +118,11 @@ export class AppComponent implements OnInit, AfterViewInit {
120118 clientId : client_id ,
121119 } )
122120
123- let locationChecker ;
121+ let locationChecker
124122 if ( window . location . href . includes ( 'localhost' ) ) {
125- locationChecker = `${ window . location . origin } /assets/silent-check-sso.html` ;
123+ locationChecker = `${ window . location . origin } /assets/silent-check-sso.html`
126124 } else {
127- locationChecker = `${ window . location . origin } /rechercher-une-donnee/assets/silent-check-sso.html` ;
125+ locationChecker = `${ window . location . origin } /rechercher-une-donnee/assets/silent-check-sso.html`
128126 }
129127
130128 // "Authorization Code" flow avec PKCE (type de client Keycloak : Public).
0 commit comments