From b5f93c02bc315787fffc2c1885883e0e5b4c1427 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Sun, 9 Feb 2025 18:06:47 +0000 Subject: Update name of jar file for keycloakify build --- Dockerfile | 2 +- src/kc.gen.tsx | 26 +++++++++++--------------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index 79d3706..804e03a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 = {}; -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 ( {(() => { switch (kcContext.themeType) { - case "login": return ; + case "login": + return ; } })()} ); } - -/* prettier-ignore-end */ -- cgit v1.2.3