Compare commits

...

4 Commits

3 changed files with 66 additions and 56 deletions

View File

@ -1,3 +1,7 @@
### **0.3.19** (2021-04-01)
- Fix previous release
### **0.3.18** (2021-04-01) ### **0.3.18** (2021-04-01)
- Fix error.ftt, Adopt best effort strategy to convert ftl values into JS - Fix error.ftt, Adopt best effort strategy to convert ftl values into JS

View File

@ -1,6 +1,6 @@
{ {
"name": "keycloakify", "name": "keycloakify",
"version": "0.3.18", "version": "0.3.19",
"description": "Keycloak theme generator for Reacts app", "description": "Keycloak theme generator for Reacts app",
"repository": { "repository": {
"type": "git", "type": "git",

View File

@ -2,9 +2,7 @@
{ {
"url": (function (){ "url": (function (){
<#if !url?has_content> <#if url?has_content>
return undefined;
</#if>
return { return {
"loginAction": "${(url.loginAction!'')?no_esc}", "loginAction": "${(url.loginAction!'')?no_esc}",
@ -14,6 +12,10 @@
"loginUrl": "${(url.loginUrl!'')?no_esc}" "loginUrl": "${(url.loginUrl!'')?no_esc}"
}; };
</#if>
return undefined;
})(), })(),
"realm": { "realm": {
"displayName": "${realm.displayName!''}" || undefined, "displayName": "${realm.displayName!''}" || undefined,
@ -23,17 +25,11 @@
}, },
"locale": (function (){ "locale": (function (){
<#if !realm.internationalizationEnabled> <#if realm.internationalizationEnabled>
return undefined;
</#if>
return { return {
"supported": (function(){ "supported": (function(){
<#if !realm.internationalizationEnabled>
return undefined;
</#if>
var out= []; var out= [];
<#list locale.supported as lng> <#list locale.supported as lng>
@ -50,12 +46,15 @@
"current": "${locale.current}" "current": "${locale.current}"
}; };
</#if>
return undefined;
})(), })(),
"auth": (function (){ "auth": (function (){
<#if !auth?has_content> <#if auth?has_content>
return undefined;
</#if>
var out= { var out= {
"showUsername": ${auth.showUsername()?c}, "showUsername": ${auth.showUsername()?c},
@ -74,6 +73,11 @@
return out; return out;
</#if>
return undefined;
})(), })(),
"scripts": (function(){ "scripts": (function(){
@ -90,15 +94,17 @@
})(), })(),
"message": (function (){ "message": (function (){
<#if !message?has_content> <#if message?has_content>
return undefined;
</#if>
return {  return { 
"type": "${message.type}", "type": "${message.type}",
"summary": String.htmlUnescape("${message.summary}") "summary": String.htmlUnescape("${message.summary}")
}; };
</#if>
return undefined;
})(), })(),
"isAppInitiatedAction": (function (){ "isAppInitiatedAction": (function (){