-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add account index template to the off theme
Only difference to the keycloak.v3/acount/index.ftl is that the logo will redirect to the `redirect_uri` when available. See Ensure "Back to Application" links are available everywhere #36
- Loading branch information
Showing
1 changed file
with
140 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
<!doctype html> | ||
<html lang="${locale}"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<base href="${resourceUrl}/"> | ||
<link rel="icon" type="${properties.favIconType!'image/svg+xml'}" href="${resourceUrl}${properties.favIcon!'/favicon.svg'}"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="description" content="${properties.description!'The Account Console is a web-based interface for managing your account.'}"> | ||
<title>${properties.title!'Account Management'}</title> | ||
<style> | ||
body { | ||
margin: 0; | ||
} | ||
body, #app { | ||
height: 100%; | ||
} | ||
.container { | ||
padding: 0; | ||
margin: 0; | ||
width: 100%; | ||
} | ||
.keycloak__loading-container { | ||
height: 100vh; | ||
width: 100%; | ||
background-color: #f0f0f0; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
flex-direction: column; | ||
margin: 0; | ||
} | ||
#loading-text { | ||
z-index: 1000; | ||
font-size: 20px; | ||
font-weight: 600; | ||
padding-top: 32px; | ||
} | ||
</style> | ||
<script type="importmap"> | ||
{ | ||
"imports": { | ||
"react": "${resourceCommonUrl}/vendor/react/react.production.min.js", | ||
"react/jsx-runtime": "${resourceCommonUrl}/vendor/react/react-jsx-runtime.production.min.js", | ||
"react-dom": "${resourceCommonUrl}/vendor/react-dom/react-dom.production.min.js" | ||
} | ||
} | ||
</script> | ||
<#if devServerUrl?has_content> | ||
<script type="module"> | ||
import { injectIntoGlobalHook } from "${devServerUrl}/@react-refresh"; | ||
injectIntoGlobalHook(window); | ||
window.$RefreshReg$ = () => {}; | ||
window.$RefreshSig$ = () => (type) => type; | ||
</script> | ||
<script type="module"> | ||
import { inject } from "${devServerUrl}/@vite-plugin-checker-runtime"; | ||
inject({ | ||
overlayConfig: {}, | ||
base: "/", | ||
}); | ||
</script> | ||
<script type="module" src="${devServerUrl}/@vite/client"></script> | ||
<script type="module" src="${devServerUrl}/src/main.tsx"></script> | ||
</#if> | ||
<#if entryStyles?has_content> | ||
<#list entryStyles as style> | ||
<link rel="stylesheet" href="${resourceUrl}/${style}"> | ||
</#list> | ||
</#if> | ||
<#if properties.styles?has_content> | ||
<#list properties.styles?split(' ') as style> | ||
<link rel="stylesheet" href="${resourceUrl}/${style}"> | ||
</#list> | ||
</#if> | ||
<#if entryScript?has_content> | ||
<script type="module" src="${resourceUrl}/${entryScript}"></script> | ||
</#if> | ||
<#if properties.scripts?has_content> | ||
<#list properties.scripts?split(' ') as script> | ||
<script type="module" src="${resourceUrl}/${script}"></script> | ||
</#list> | ||
</#if> | ||
<#if entryImports?has_content> | ||
<#list entryImports as import> | ||
<link rel="modulepreload" href="${resourceUrl}/${import}"> | ||
</#list> | ||
</#if> | ||
</head> | ||
<body> | ||
<div id="app"> | ||
<main class="container"> | ||
<div class="keycloak__loading-container"> | ||
<span class="pf-c-spinner pf-m-xl" role="progressbar" aria-valuetext="Loading…"> | ||
<span class="pf-c-spinner__clipper"></span> | ||
<span class="pf-c-spinner__lead-ball"></span> | ||
<span class="pf-c-spinner__tail-ball"></span> | ||
</span> | ||
<div> | ||
<p id="loading-text">Loading the Account Console</p> | ||
</div> | ||
</div> | ||
</main> | ||
</div> | ||
<noscript>JavaScript is required to use the Account Console.</noscript> | ||
<script id="environment" type="application/json"> | ||
{ | ||
"serverBaseUrl": "${serverBaseUrl}", | ||
"authUrl": "${authUrl}", | ||
"authServerUrl": "${authServerUrl}", | ||
"realm": "${realm.name}", | ||
"clientId": "${clientId}", | ||
"resourceUrl": "${resourceUrl}", | ||
"logo": "${properties.logo!""}", | ||
"logoUrl": "${referrer_uri!properties.logoUrl!""}", | ||
"baseUrl": "${baseUrl}", | ||
"locale": "${locale}", | ||
"referrerName": "${referrerName!""}", | ||
"referrerUrl": "${referrer_uri!""}", | ||
"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}, | ||
"isOid4VciEnabled": ${isOid4VciEnabled?c} | ||
} | ||
} | ||
</script> | ||
</body> | ||
</html> |