Skip to content

Commit

Permalink
feat: use env var for crisp website id
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien committed Nov 5, 2024
1 parent 6872d28 commit 8a638ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion theme/df-owner/login/template.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<script src="${script}" type="text/javascript"></script>
</#list>
</#if>
<script type="text/javascript">window.$crisp=[];window.CRISP_WEBSITE_ID="86f26e9b-d8e3-47ba-9980-6b01d439b8e5";(function(){d=document;s=d.createElement("script");s.src="https://client.crisp.chat/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();</script>
<script type="text/javascript">window.$crisp=[];window.CRISP_WEBSITE_ID="${properties.crispWebsiteId}";(function(){d=document;s=d.createElement("script");s.src="https://client.crisp.chat/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();</script>
</head>

<body class="${properties.kcBodyClass!}">
Expand Down
2 changes: 1 addition & 1 deletion theme/df/login/template.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<script src="${script}" type="text/javascript"></script>
</#list>
</#if>
<script type="text/javascript">window.$crisp=[];window.CRISP_WEBSITE_ID="86f26e9b-d8e3-47ba-9980-6b01d439b8e5";(function(){d=document;s=d.createElement("script");s.src="https://client.crisp.chat/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();</script>
<script type="text/javascript">window.$crisp=[];window.CRISP_WEBSITE_ID="${properties.crispWebsiteId}";(function(){d=document;s=d.createElement("script");s.src="https://client.crisp.chat/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();</script>
</head>

<body class="${properties.kcBodyClass!}">
Expand Down
3 changes: 2 additions & 1 deletion theme/df/login/theme.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ locales=ca,cs,da,de,en,es,fr,hu,it,ja,lt,nl,no,pl,pt-BR,ru,sk,sv,tr,zh-CN
appTenantUrl=${env.KC_APP_TENANT_URL:locataire.dossierfacile.fr}
appMainUrl=${env.KC_APP_MAIN_URL:www.dossierfacile.fr}
appOwnerUrl=${env.KC_APP_OWNER_URL:proprietaire.dossierfacile.fr}
registerUrl=${env.KC_APP_REGISTER_URL:/auth/realms/dossier-facile/protocol/openid-connect/registrations?client_id=dossier-facile-frontend&redirect_uri=https%3A%2F%2Flocataire.dossierfacile.logement.gouv.fr%2Fprofile&response_type=code&scope=openid}
registerUrl=${env.KC_APP_REGISTER_URL:/auth/realms/dossier-facile/protocol/openid-connect/registrations?client_id=dossier-facile-frontend&redirect_uri=https%3A%2F%2Flocataire.dossierfacile.logement.gouv.fr%2Fprofile&response_type=code&scope=openid}
crispWebsiteId=${env.KC_CRISP_WEBSITE_ID:86f26e9b-d8e3-47ba-9980-6b01d439b8e5}

0 comments on commit 8a638ee

Please sign in to comment.