aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2025-02-09 18:06:47 +0000
committerGravatar Chris Lovering <[email protected]>2025-02-09 18:06:47 +0000
commitb5f93c02bc315787fffc2c1885883e0e5b4c1427 (patch)
tree4fdb1f7407652ffd7d1ba9462ad7c1d7e3137999
parentSupport keycloakify breaking changes (diff)
Update name of jar file for keycloakify build
-rw-r--r--Dockerfile2
-rw-r--r--src/kc.gen.tsx26
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<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 */