diff options
author | 2025-02-09 18:06:47 +0000 | |
---|---|---|
committer | 2025-02-09 18:06:47 +0000 | |
commit | b5f93c02bc315787fffc2c1885883e0e5b4c1427 (patch) | |
tree | 4fdb1f7407652ffd7d1ba9462ad7c1d7e3137999 | |
parent | Support keycloakify breaking changes (diff) |
Update name of jar file for keycloakify build
-rw-r--r-- | Dockerfile | 2 | ||||
-rw-r--r-- | src/kc.gen.tsx | 26 |
2 files changed, 12 insertions, 16 deletions
@@ -12,7 +12,7 @@ RUN pnpm run build-keycloak-theme FROM quay.io/keycloak/keycloak:${KEYCLOAK_VERSION} as builder WORKDIR /opt/keycloak -COPY --from=keycloakify_jar_builder /opt/app/dist_keycloak/keycloak-theme-for-kc-22-and-above.jar /opt/keycloak/providers/ +COPY --from=keycloakify_jar_builder /opt/app/dist_keycloak/keycloak-theme-for-kc-all-other-versions.jar /opt/keycloak/providers/ ENV KC_DB=postgres RUN /opt/keycloak/bin/kc.sh build --features="passkeys" diff --git a/src/kc.gen.tsx b/src/kc.gen.tsx index a9ac152..f2f261c 100644 --- a/src/kc.gen.tsx +++ b/src/kc.gen.tsx @@ -1,4 +1,5 @@ -/* prettier-ignore-start */ +// This file is auto-generated by the `update-kc-gen` command. Do not edit it manually. +// Hash: 7852738310167426a221686c9b9e551f4ae0ecc2a7fefbea0f0ae4bf67a515f8 /* eslint-disable */ @@ -6,8 +7,6 @@ // noinspection JSUnusedGlobalSymbols -// This file is auto-generated by Keycloakify - import { lazy, Suspense, type ReactNode } from "react"; export type ThemeName = "pydis-theme"; @@ -20,9 +19,12 @@ export const kcEnvNames: KcEnvName[] = []; export const kcEnvDefaults: Record<KcEnvName, string> = {}; -export type KcContext = - | import("./login/KcContext").KcContext - ; +/** + * NOTE: Do not import this type except maybe in your entrypoint. + * If you need to import the KcContext import it either from src/login/KcContext.ts or src/account/KcContext.ts. + * Depending on the theme type you are working on. + */ +export type KcContext = import("./login/KcContext").KcContext; declare global { interface Window { @@ -32,22 +34,16 @@ declare global { export const KcLoginPage = lazy(() => import("./login/KcPage")); -export function KcPage( - props: { - kcContext: KcContext; - fallback?: ReactNode; - } -) { +export function KcPage(props: { kcContext: KcContext; fallback?: ReactNode }) { const { kcContext, fallback } = props; return ( <Suspense fallback={fallback}> {(() => { switch (kcContext.themeType) { - case "login": return <KcLoginPage kcContext={kcContext} />; + case "login": + return <KcLoginPage kcContext={kcContext} />; } })()} </Suspense> ); } - -/* prettier-ignore-end */ |