Migrate to Keycloakify 8

This commit is contained in:
garronej 2023-08-28 19:25:55 +02:00
parent 74cf715381
commit 7d3b683a62
4 changed files with 15 additions and 14 deletions

View File

@ -29,7 +29,7 @@
"evt": "^2.4.15", "evt": "^2.4.15",
"jwt-decode": "^3.1.2", "jwt-decode": "^3.1.2",
"keycloak-js": "^21.0.1", "keycloak-js": "^21.0.1",
"keycloakify": "^7.15.9", "keycloakify": "8.0.0-rc.2",
"powerhooks": "^0.26.8", "powerhooks": "^0.26.8",
"react": "18.1.0", "react": "18.1.0",
"react-dom": "18.1.0", "react-dom": "18.1.0",

View File

@ -19,9 +19,11 @@ export default function Template(props: TemplateProps<KcContext, I18n>) {
const { isReady } = usePrepareTemplate({ const { isReady } = usePrepareTemplate({
"doFetchDefaultThemeResources": doUseDefaultCss, "doFetchDefaultThemeResources": doUseDefaultCss,
url, "styles": [
"stylesCommon": ["node_modules/patternfly/dist/css/patternfly.min.css", "node_modules/patternfly/dist/css/patternfly-additions.min.css"], `${url.resourcesCommonPath}/node_modules/patternfly/dist/css/patternfly.min.css`,
"styles": ["css/account.css"], `${url.resourcesCommonPath}/node_modules/patternfly/dist/css/patternfly-additions.min.css`,
`${url.resourcesPath}/css/account.css`
],
"htmlClassName": undefined, "htmlClassName": undefined,
"bodyClassName": clsx("admin-console", "user", getClassName("kcBodyClass")) "bodyClassName": clsx("admin-console", "user", getClassName("kcBodyClass"))
}); });

View File

@ -33,13 +33,12 @@ export default function Template(props: TemplateProps<KcContext, I18n>) {
const { isReady } = usePrepareTemplate({ const { isReady } = usePrepareTemplate({
"doFetchDefaultThemeResources": doUseDefaultCss, "doFetchDefaultThemeResources": doUseDefaultCss,
url, "styles": [
"stylesCommon": [ `${url.resourcesCommonPath}/node_modules/patternfly/dist/css/patternfly.min.css`,
"node_modules/patternfly/dist/css/patternfly.min.css", `${url.resourcesCommonPath}/node_modules/patternfly/dist/css/patternfly-additions.min.css`,
"node_modules/patternfly/dist/css/patternfly-additions.min.css", `${url.resourcesCommonPath}/lib/zocial/zocial.css`,
"lib/zocial/zocial.css" `${url.resourcesPath}/css/login.css`
], ],
"styles": ["css/login.css"],
"htmlClassName": getClassName("kcHtmlClass"), "htmlClassName": getClassName("kcHtmlClass"),
"bodyClassName": undefined "bodyClassName": undefined
}); });

View File

@ -9768,10 +9768,10 @@ keycloak-js@^21.0.1:
base64-js "^1.5.1" base64-js "^1.5.1"
js-sha256 "^0.9.0" js-sha256 "^0.9.0"
keycloakify@^7.15.9: keycloakify@8.0.0-rc.2:
version "7.15.9" version "8.0.0-rc.2"
resolved "https://registry.yarnpkg.com/keycloakify/-/keycloakify-7.15.9.tgz#c41d06f57338a540edfe1b09884c357b51ba53f6" resolved "https://registry.yarnpkg.com/keycloakify/-/keycloakify-8.0.0-rc.2.tgz#748c16b538c89f8b2be9d309dea98d5fb4c8ada7"
integrity sha512-GANwtnKtEaer4EfZ1FkihfQK437Qk+aAA/8C1nQWh2JVNn28qkofk2cDl4wJCHr5u+7SxFXyA9H0FbR5qhMHnQ== integrity sha512-W9ImhiXCHGW8i1KP8zb5MZ0Ug1imro1mKsos8QBbFci51sDLrKM/ymmpsvkm+5mmXAjh4mVgBAn4mspvizo1WQ==
dependencies: dependencies:
"@babel/generator" "^7.22.9" "@babel/generator" "^7.22.9"
"@babel/parser" "^7.22.7" "@babel/parser" "^7.22.7"