Commit 2fd45c73 authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Upgrade theme

parent 2c869126
...@@ -45,7 +45,8 @@ ...@@ -45,7 +45,8 @@
isLinkedAccountsEnabled : ${realm.identityFederationEnabled?c}, isLinkedAccountsEnabled : ${realm.identityFederationEnabled?c},
isEventsEnabled : ${isEventsEnabled?c}, isEventsEnabled : ${isEventsEnabled?c},
isMyResourcesEnabled : ${(realm.userManagedAccessAllowed && isAuthorizationEnabled)?c}, isMyResourcesEnabled : ${(realm.userManagedAccessAllowed && isAuthorizationEnabled)?c},
isTotpConfigured : ${isTotpConfigured?c} isTotpConfigured : ${isTotpConfigured?c},
deleteAccountAllowed : ${deleteAccountAllowed?c}
} }
var availableLocales = []; var availableLocales = [];
...@@ -109,20 +110,20 @@ ...@@ -109,20 +110,20 @@
</#list> </#list>
</#if> </#if>
<link rel="stylesheet" type="text/css" href="${resourceUrl}/public/base.css"/> <link rel="stylesheet" type="text/css" href="${resourceCommonUrl}/web_modules/@patternfly/react-core/dist/styles/base.css"/>
<link rel="stylesheet" type="text/css" href="${resourceUrl}/public/app.css"/> <link rel="stylesheet" type="text/css" href="${resourceCommonUrl}/web_modules/@patternfly/react-core/dist/styles/app.css"/>
<link href="${resourceUrl}/public/layout.css" rel="stylesheet"/> <link href="${resourceUrl}/public/layout.css" rel="stylesheet"/>
</head> </head>
<body> <body>
<script> <script>
var keycloak = Keycloak({ const keycloak = Keycloak({
authServerUrl: authUrl, authServerUrl: authUrl,
realm: realm, realm: realm,
clientId: 'account-console' clientId: 'account-console'
}); });
keycloak.init({onLoad: 'check-sso', pkceMethod: 'S256'}).success(function(authenticated) { keycloak.init({onLoad: 'check-sso', pkceMethod: 'S256', promiseType: 'native'}).then((authenticated) => {
isReactLoading = true; isReactLoading = true;
toggleReact(); toggleReact();
if (!keycloak.authenticated) { if (!keycloak.authenticated) {
...@@ -135,8 +136,7 @@ ...@@ -135,8 +136,7 @@
} }
loadjs("/Main.js"); loadjs("/Main.js");
}).catch(() => {
}).error(function() {
alert('failed to initialize keycloak'); alert('failed to initialize keycloak');
}); });
</script> </script>
......
parent=keycloak-preview parent=keycloak.v2
logo=/public/archlinux-logo-light.svg logo=/public/archlinux-logo-light.svg
logoDark=/public/archlinux-logo-dark.svg logoDark=/public/archlinux-logo-dark.svg
favIcon=/public/archlinux-favicon.ico favIcon=/public/archlinux-favicon.ico
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment