Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
2f16a09ab8 | |||
183ae98c30 | |||
ba15e63879 | |||
654277feda |
@ -1,3 +1,7 @@
|
||||
### **0.3.19** (2021-04-01)
|
||||
|
||||
- Fix previous release
|
||||
|
||||
### **0.3.18** (2021-04-01)
|
||||
|
||||
- Fix error.ftt, Adopt best effort strategy to convert ftl values into JS
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "keycloakify",
|
||||
"version": "0.3.18",
|
||||
"version": "0.3.19",
|
||||
"description": "Keycloak theme generator for Reacts app",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -2,17 +2,19 @@
|
||||
{
|
||||
"url": (function (){
|
||||
|
||||
<#if !url?has_content>
|
||||
return undefined;
|
||||
<#if url?has_content>
|
||||
|
||||
return {
|
||||
"loginAction": "${(url.loginAction!'')?no_esc}",
|
||||
"resourcesPath": "${(url.resourcesPath!'')?no_esc}",
|
||||
"resourcesCommonPath": "${(url.resourcesCommonPath!'')?no_esc}",
|
||||
"loginRestartFlowUrl": "${(url.loginRestartFlowUrl!'')?no_esc}",
|
||||
"loginUrl": "${(url.loginUrl!'')?no_esc}"
|
||||
};
|
||||
|
||||
</#if>
|
||||
|
||||
return {
|
||||
"loginAction": "${(url.loginAction!'')?no_esc}",
|
||||
"resourcesPath": "${(url.resourcesPath!'')?no_esc}",
|
||||
"resourcesCommonPath": "${(url.resourcesCommonPath!'')?no_esc}",
|
||||
"loginRestartFlowUrl": "${(url.loginRestartFlowUrl!'')?no_esc}",
|
||||
"loginUrl": "${(url.loginUrl!'')?no_esc}"
|
||||
};
|
||||
return undefined;
|
||||
|
||||
})(),
|
||||
"realm": {
|
||||
@ -23,56 +25,58 @@
|
||||
},
|
||||
"locale": (function (){
|
||||
|
||||
<#if !realm.internationalizationEnabled>
|
||||
return undefined;
|
||||
<#if realm.internationalizationEnabled>
|
||||
|
||||
return {
|
||||
"supported": (function(){
|
||||
|
||||
var out= [];
|
||||
|
||||
<#list locale.supported as lng>
|
||||
out.push({
|
||||
"url": "${lng.url?no_esc}",
|
||||
"label": "${lng.label}",
|
||||
"languageTag": "${lng.languageTag}"
|
||||
});
|
||||
</#list>
|
||||
|
||||
return out;
|
||||
|
||||
})(),
|
||||
"current": "${locale.current}"
|
||||
};
|
||||
|
||||
</#if>
|
||||
|
||||
return {
|
||||
"supported": (function(){
|
||||
return undefined;
|
||||
|
||||
<#if !realm.internationalizationEnabled>
|
||||
return undefined;
|
||||
</#if>
|
||||
|
||||
var out= [];
|
||||
|
||||
<#list locale.supported as lng>
|
||||
out.push({
|
||||
"url": "${lng.url?no_esc}",
|
||||
"label": "${lng.label}",
|
||||
"languageTag": "${lng.languageTag}"
|
||||
});
|
||||
</#list>
|
||||
|
||||
return out;
|
||||
|
||||
})(),
|
||||
"current": "${locale.current}"
|
||||
};
|
||||
|
||||
})(),
|
||||
"auth": (function (){
|
||||
|
||||
<#if !auth?has_content>
|
||||
return undefined;
|
||||
<#if auth?has_content>
|
||||
|
||||
var out= {
|
||||
"showUsername": ${auth.showUsername()?c},
|
||||
"showResetCredentials": ${auth.showResetCredentials()?c},
|
||||
"showTryAnotherWayLink": ${auth.showTryAnotherWayLink()?c},
|
||||
};
|
||||
|
||||
<#if auth.showUsername() && !auth.showResetCredentials()>
|
||||
Object.assign(
|
||||
out,
|
||||
{
|
||||
"attemptedUsername": "${auth.attemptedUsername}"
|
||||
}
|
||||
);
|
||||
</#if>
|
||||
|
||||
return out;
|
||||
|
||||
</#if>
|
||||
|
||||
var out= {
|
||||
"showUsername": ${auth.showUsername()?c},
|
||||
"showResetCredentials": ${auth.showResetCredentials()?c},
|
||||
"showTryAnotherWayLink": ${auth.showTryAnotherWayLink()?c},
|
||||
};
|
||||
return undefined;
|
||||
|
||||
<#if auth.showUsername() && !auth.showResetCredentials()>
|
||||
Object.assign(
|
||||
out,
|
||||
{
|
||||
"attemptedUsername": "${auth.attemptedUsername}"
|
||||
}
|
||||
);
|
||||
</#if>
|
||||
|
||||
return out;
|
||||
|
||||
})(),
|
||||
"scripts": (function(){
|
||||
@ -90,14 +94,16 @@
|
||||
})(),
|
||||
"message": (function (){
|
||||
|
||||
<#if !message?has_content>
|
||||
return undefined;
|
||||
<#if message?has_content>
|
||||
|
||||
return {
|
||||
"type": "${message.type}",
|
||||
"summary": String.htmlUnescape("${message.summary}")
|
||||
};
|
||||
|
||||
</#if>
|
||||
|
||||
return {
|
||||
"type": "${message.type}",
|
||||
"summary": String.htmlUnescape("${message.summary}")
|
||||
};
|
||||
return undefined;
|
||||
|
||||
})(),
|
||||
"isAppInitiatedAction": (function (){
|
||||
|
Reference in New Issue
Block a user