Update Readme
This commit is contained in:
parent
cee8ea7ecb
commit
e379043ed2
|
@ -10,14 +10,15 @@
|
|||
<a href="https://starter.keycloakify.dev/storybook">Keycloak theme Storybook</a>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
# Introduction
|
||||
|
||||
This repo constitutes an easily reusable setup for a standalone Keycloak theme project OR for a SPA React App that generates a
|
||||
Keycloak theme that goes along with it.
|
||||
If you are only looking to create a theme (and not a theme + an App) there are a lot of things that you can remove from this starter: [Please read this section of the README](#standalone-keycloak-theme).
|
||||
|
||||
❗️ WARNING ❗️: Don't waste time trying to setup Keycloakify in a [Vite](https://vitejs.dev/) project.
|
||||
Currently Keycloakify only works with Webpack. If you want Vite support [join the conversation](https://github.com/InseeFrLab/keycloakify/issues/271#issuecomment-1478242786).
|
||||
|
||||
# Quick start
|
||||
|
||||
```bash
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import "./KcApp.css";
|
||||
import { lazy, Suspense } from "react";
|
||||
import Fallback, { type PageProps } from "keycloakify/account";
|
||||
import type { PageProps } from "keycloakify/account";
|
||||
import type { KcContext } from "./kcContext";
|
||||
import { useI18n } from "./i18n";
|
||||
|
||||
|
@ -10,6 +10,7 @@ const DefaultTemplate = lazy(() => import("keycloakify/account/Template"));
|
|||
const Password = lazy(() => import("./pages/Password"));
|
||||
const MyExtraPage1 = lazy(() => import("./pages/MyExtraPage1"));
|
||||
const MyExtraPage2 = lazy(() => import("./pages/MyExtraPage2"));
|
||||
const Fallback = lazy(()=> import("keycloakify/account"));
|
||||
|
||||
const classes: PageProps<any, any>["classes"] = {
|
||||
"kcBodyClass": "my-root-class"
|
||||
|
|
Loading…
Reference in a new issue