keycloak-theme/account/index.ftl

74 lines
2.4 KiB
Plaintext

<!DOCTYPE html>
<html>
<head>
<title>${msg("accountManagementTitle")}</title>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="robots" content="noindex, nofollow">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script>
window.globals = {
<#if properties.developmentMode?has_content && properties.developmentMode == "true">
developmentMode: true,
<#else>
developmentMode: false,
</#if>
clientId: '${clientId}',
authUrl: '${authUrl}',
baseUrl: '${baseUrl}',
realm: '${realm.name}',
resourceUrl: '${resourceUrl}',
isReactLoading: false,
<#if properties.logoUrl?has_content>
brandUrl: '${properties.logoUrl}',
<#else>
brandUrl: baseUrl,
</#if>
<#if referrer??>
referrer: '${referrer}',
referrerName: '${referrerName}',
referrerUri: '${referrer_uri}'.replace('&amp;', '&'),
</#if>
<#if msg??>
locale: '${locale}',
<#outputformat "JavaScript">
l18nMsg: JSON.parse('${msgJSON?js_string}'),
</#outputformat>
<#else>
locale: 'en',
l18Msg: {},
</#if>
};
const features = {
isRegistrationEmailAsUsername : ${realm.registrationEmailAsUsername?c},
isEditUserNameAllowed : ${realm.editUsernameAllowed?c},
isInternationalizationEnabled : ${realm.isInternationalizationEnabled()?c},
isLinkedAccountsEnabled : ${realm.identityFederationEnabled?c},
isMyResourcesEnabled : ${(realm.userManagedAccessAllowed && isAuthorizationEnabled)?c},
deleteAccountAllowed : ${deleteAccountAllowed?c},
updateEmailFeatureEnabled: ${updateEmailFeatureEnabled?c},
updateEmailActionEnabled: ${updateEmailActionEnabled?c},
isViewGroupsEnabled : ${isViewGroupsEnabled?c}
};
const availableLocales = [];
<#list supportedLocales as locale, label>
availableLocales.push({locale : '${locale}', label : '${label}'});
</#list>
</script>
<script type="module" crossorigin src="${resourceUrl}/assets/index-${js_index_hash}></script>
<link rel="stylesheet" href="${resourceUrl}/assets/index-${css_index_hash}.css">
</head>
<body>
<div id="app"></div>
</body>
</html>