2024-06-12 09:55:14 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<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">
|
2024-10-31 10:19:03 +00:00
|
|
|
<meta name="color-scheme" content="light${darkMode?then(' dark', '')}">
|
2024-06-12 09:55:14 +00:00
|
|
|
<meta name="description" content="${properties.description!'The Keycloak Administration Console is a web-based interface for managing Keycloak.'}">
|
|
|
|
<title>${properties.title!'Keycloak Administration Console'}</title>
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
body, #app {
|
|
|
|
height: 100%;
|
2024-10-21 08:34:44 +00:00
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: hidden;
|
2024-06-12 09:55:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.container {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.keycloak__loading-container {
|
|
|
|
height: 100vh;
|
|
|
|
width: 100%;
|
2024-08-29 14:13:02 +00:00
|
|
|
color: #151515;
|
|
|
|
background-color: #fff;
|
2024-06-12 09:55:14 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
flex-direction: column;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2024-08-29 14:13:02 +00:00
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
.keycloak__loading-container {
|
|
|
|
color: #e0e0e0;
|
|
|
|
background-color: #1b1d21;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-12 09:55:14 +00:00
|
|
|
#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>
|
2024-10-31 10:19:03 +00:00
|
|
|
<#if darkMode>
|
2024-10-04 12:27:37 +00:00
|
|
|
<script type="module" async blocking="render">
|
|
|
|
const DARK_MODE_CLASS = "${properties.kcDarkModeClass}";
|
|
|
|
const mediaQuery = window.matchMedia("(prefers-color-scheme: dark)");
|
|
|
|
|
|
|
|
updateDarkMode(mediaQuery.matches);
|
|
|
|
mediaQuery.addEventListener("change", (event) => updateDarkMode(event.matches));
|
|
|
|
|
|
|
|
function updateDarkMode(isEnabled) {
|
|
|
|
const { classList } = document.documentElement;
|
|
|
|
|
|
|
|
if (isEnabled) {
|
|
|
|
classList.add(DARK_MODE_CLASS);
|
|
|
|
} else {
|
|
|
|
classList.remove(DARK_MODE_CLASS);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</#if>
|
2024-10-03 10:51:23 +00:00
|
|
|
<#if !isSecureContext>
|
|
|
|
<script type="module" src="${resourceCommonUrl}/vendor/web-crypto-shim/web-crypto-shim.js"></script>
|
|
|
|
</#if>
|
2024-06-12 09:55:14 +00:00
|
|
|
<#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 Administration Console</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
<noscript>JavaScript is required to use the Administration Console.</noscript>
|
|
|
|
<script id="environment" type="application/json">
|
|
|
|
{
|
2024-06-19 13:21:53 +00:00
|
|
|
"serverBaseUrl": "${serverBaseUrl}",
|
|
|
|
"adminBaseUrl": "${adminBaseUrl}",
|
2024-06-12 09:55:14 +00:00
|
|
|
"authUrl": "${authUrl}",
|
|
|
|
"authServerUrl": "${authServerUrl}",
|
|
|
|
"realm": "${loginRealm!"master"}",
|
|
|
|
"clientId": "${clientId}",
|
|
|
|
"resourceUrl": "${resourceUrl}",
|
|
|
|
"logo": "${properties.logo!""}",
|
|
|
|
"logoUrl": "${properties.logoUrl!""}",
|
|
|
|
"consoleBaseUrl": "${consoleBaseUrl}",
|
|
|
|
"masterRealm": "${masterRealm}",
|
|
|
|
"resourceVersion": "${resourceVersion}"
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|