Fix build and reduce size
This commit is contained in:
parent
63ccb0609e
commit
69f017df36
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "keycloak-react-theming",
|
||||
"version": "0.0.24",
|
||||
"version": "0.0.25",
|
||||
"description": "Keycloak theme generator for Reacts app",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
2
src/bin/build-keycloak-theme/ftlValuesGlobalName.ts
Normal file
2
src/bin/build-keycloak-theme/ftlValuesGlobalName.ts
Normal file
@ -0,0 +1,2 @@
|
||||
|
||||
export const ftlValuesGlobalName = "keycloakPagesContext";
|
@ -10,8 +10,7 @@ import { generateFtlFilesCodeFactory } from "./generateFtl";
|
||||
import { keycloakBuiltinThemesAndThirdPartyExamplesThemsUrl } from "../download-sample-keycloak-themes";
|
||||
import { downloadAndUnzip } from "../tools/downloadAndUnzip";
|
||||
import * as child_process from "child_process";
|
||||
|
||||
export const ftlValuesGlobalName = "keycloakPagesContext";
|
||||
import { ftlValuesGlobalName } from "./ftlValuesGlobalName";
|
||||
|
||||
export function generateKeycloakThemeResources(
|
||||
params: {
|
||||
|
31
src/lib/LoginPage.tsx
Normal file
31
src/lib/LoginPage.tsx
Normal file
@ -0,0 +1,31 @@
|
||||
|
||||
/*
|
||||
import { useState, memo } from "react";
|
||||
import { KcProperties, Template } from "./Template";
|
||||
import { assert } from "evt/tools/typeSafety/assert";
|
||||
import { keycloakPagesContext } from "./keycloakFtlValues";
|
||||
|
||||
export type Props = {
|
||||
properties: KcProperties;
|
||||
};
|
||||
|
||||
export const LoginPage = memo((props: Props)=>{
|
||||
|
||||
|
||||
const [{ }] = useState(() => {
|
||||
|
||||
assert(keycloakPagesContext !== undefined);
|
||||
|
||||
return keycloakPagesContext;
|
||||
|
||||
});
|
||||
|
||||
|
||||
return (
|
||||
<Template/>
|
||||
);
|
||||
|
||||
});
|
||||
*/
|
||||
|
||||
export {};
|
@ -15,18 +15,11 @@ import { useConstCallback } from "powerhooks";
|
||||
|
||||
type KcClasses<T extends string> = { [key in T]?: string[] | string };
|
||||
|
||||
|
||||
export type Props = {
|
||||
displayInfo?: boolean;
|
||||
displayMessage: boolean;
|
||||
displayRequiredFields: boolean;
|
||||
displayWide: boolean;
|
||||
showAnotherWayIfPresent: boolean;
|
||||
properties?: {
|
||||
export type KcProperties = {
|
||||
stylesCommon?: string[];
|
||||
styles?: string[];
|
||||
scripts?: string[];
|
||||
} & KcClasses<
|
||||
} & KcClasses<
|
||||
"kcLoginClass" |
|
||||
"kcHeaderClass" |
|
||||
"kcHeaderWrapperClass" |
|
||||
@ -50,7 +43,15 @@ export type Props = {
|
||||
"kcFormSocialAccountClass" |
|
||||
"kcSignUpClass" |
|
||||
"kcInfoAreaWrapperClass"
|
||||
>;
|
||||
>;
|
||||
|
||||
export type Props = {
|
||||
displayInfo?: boolean;
|
||||
displayMessage: boolean;
|
||||
displayRequiredFields: boolean;
|
||||
displayWide: boolean;
|
||||
showAnotherWayIfPresent: boolean;
|
||||
properties?: KcProperties;
|
||||
headerNode: ReactNode;
|
||||
showUsernameNode: ReactNode;
|
||||
formNode: ReactNode;
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
import { ftlValuesGlobalName } from "../bin/build-keycloak-theme/generateKeycloakThemeResources";
|
||||
import { ftlValuesGlobalName } from "../bin/build-keycloak-theme/ftlValuesGlobalName";
|
||||
import type { generateFtlFilesCodeFactory } from "../bin/build-keycloak-theme/generateFtl";
|
||||
import { id } from "evt/tools/typeSafety/id";
|
||||
//import type { LanguageLabel } from "./i18n/getLanguageLabel";
|
||||
|
Loading…
x
Reference in New Issue
Block a user