afec4401fc
* initial version of the kc-create tool Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> * Update js/apps/kc-create/package.json Co-authored-by: Jon Koops <jonkoops@gmail.com> Signed-off-by: Erik Jan de Wit <edewit@redhat.com> * renamed and addressed review Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> --------- Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> Signed-off-by: Erik Jan de Wit <edewit@redhat.com> Co-authored-by: Jon Koops <jonkoops@gmail.com>
139 lines
4.6 KiB
Text
139 lines
4.6 KiB
Text
<!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 {{type}} ui is a web-based management interface.'}">
|
|
<title>${properties.title!'{{type}} Management'}</title>
|
|
<style>
|
|
.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 {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.loader {
|
|
width: 48px;
|
|
height: 48px;
|
|
border: 5px solid #FFF;
|
|
border-bottom-color: #06c;
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
box-sizing: border-box;
|
|
animation: rotation 1s linear infinite;
|
|
}
|
|
|
|
@keyframes rotation {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
</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">
|
|
<div class="keycloak__loading-container">
|
|
<span class="loader" role="progressbar" aria-valuetext="Loading...">
|
|
</span>
|
|
<div>
|
|
<p id="loading-text">Loading the {{type}} ui</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<noscript>JavaScript is required to use the {{type}} ui.</noscript>
|
|
<script id="environment" type="application/json">
|
|
{
|
|
"authUrl": "${authUrl}",
|
|
"authServerUrl": "${authServerUrl}",
|
|
"realm": "${realm.name}",
|
|
"clientId": "${clientId}",
|
|
"resourceUrl": "${resourceUrl}",
|
|
"logo": "${properties.logo!""}",
|
|
"logoUrl": "${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>
|