Update keycloakify

This commit is contained in:
Joseph Garrone committed 2024-10-25 03:04:43 +02:00
1 parent 3564cbac6c
commit 13b0d685b8
5 files changed
+13 -24

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ yarn install # Or use an other package manager, just be sure to delete the yarn.
# Building the theme
You need to have [Maven](https://maven.apache.org/) installed to build the theme (Maven >= 3.1.1, Java >= 7).
The `mvn` command must be in the $PATH.
The `mvn` command must be in the $PATH.
- On macOS: `brew install maven`
- On Debian/Ubuntu: `sudo apt-get install maven`
+1 -1
View File
@@ -17,7 +17,7 @@
"license": "MIT",
"keywords": [],
"dependencies": {
"keycloakify": "^11.3.9",
"keycloakify": "^11.3.11",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
+6 -15
View File
@@ -1,4 +1,5 @@
/* prettier-ignore-start */
// This file is auto-generated by the `update-kc-gen` command. Do not edit it manually.
// Hash: 52e835881710cf6fd39c1589bb9282feccdcf06c9547d41c919576489f251d2f
/* 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 = "keycloakify-starter";
@@ -20,9 +19,7 @@ export const kcEnvNames: KcEnvName[] = [];
export const kcEnvDefaults: Record<KcEnvName, string> = {};
export type KcContext =
| import("./login/KcContext").KcContext
;
export type KcContext = import("./login/KcContext").KcContext;
declare global {
interface Window {
@@ -32,22 +29,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 */
Loaded 3 of 5 files, more files were not shown because too many files have changed in this diff. Show more