Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ira ¯\_(ツ)_/¯
Keycloak Arch Linux Theme
Commits
2fd45c73
Commit
2fd45c73
authored
Jan 19, 2021
by
Sven-Hendrik Haase
Browse files
Upgrade theme
parent
2c869126
Changes
2
Hide whitespace changes
Inline
Side-by-side
archlinux/account/index.ftl
View file @
2fd45c73
...
...
@@ -45,7 +45,8 @@
isLinkedAccountsEnabled
:
$
{
realm
.identityFederationEnabled
?
c
},
isEventsEnabled
:
$
{
isEventsEnabled
?
c
},
isMyResourcesEnabled
:
$
{(
realm
.userManagedAccessAllowed
&&
isAuthorizationEnabled
)
?
c
},
isTotpConfigured
:
$
{
isTotpConfigured
?
c
}
isTotpConfigured
:
$
{
isTotpConfigured
?
c
},
deleteAccountAllowed
:
$
{
deleteAccountAllowed
?
c
}
}
var availableLocales = [];
...
...
@@ -109,20 +110,20 @@
</#list>
</#if>
<link rel="stylesheet" type="text/css" href="$
{
resource
Url
}
/public
/base.css"/>
<link rel="stylesheet" type="text/css" href="$
{
resource
Url
}
/public
/app.css"/>
<link rel="stylesheet" type="text/css" href="$
{
resource
CommonUrl
}
/web_modules/@patternfly/react-core/dist/styles
/base.css"/>
<link rel="stylesheet" type="text/css" href="$
{
resource
CommonUrl
}
/web_modules/@patternfly/react-core/dist/styles
/app.css"/>
<link href="$
{
resourceUrl
}
/public/layout.css" rel="stylesheet"/>
</head>
<body>
<script>
var
keycloak = Keycloak(
{
const
keycloak = Keycloak(
{
authServerUrl
:
authUrl
,
realm
:
realm
,
clientId
:
'
account-console
'
}
);
keycloak.init(
{
onLoad
:
'
check-sso
'
,
pkceMethod
:
'
S
256
'
}
).success(function
(authenticated)
{
keycloak.init(
{
onLoad
:
'
check-sso
'
,
pkceMethod
:
'
S
256
'
,
promiseType
:
'
native
'
}
).then(
(authenticated)
=>
{
isReactLoading
=
true
;
toggleReact
()
;
if
(
!
keycloak
.authenticated
)
{
...
...
@@ -135,8 +136,7 @@
}
loadjs
(
"/Main.js"
)
;
}
).error(function()
{
}
).catch(() =>
{
alert
(
'
failed
to
initialize
keycloak
'
)
;
}
);
</script>
...
...
archlinux/account/theme.properties
View file @
2fd45c73
parent
=
keycloak
-preview
parent
=
keycloak
.v2
logo
=
/public/archlinux-logo-light.svg
logoDark
=
/public/archlinux-logo-dark.svg
favIcon
=
/public/archlinux-favicon.ico
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment