keycloakify 9.3.1 → 9.4.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/account/kcContext/getKcContextFromWindow.js +2 -2
- package/account/kcContext/getKcContextFromWindow.js.map +1 -1
- package/bin/constants.d.ts +4 -1
- package/bin/constants.js +5 -2
- package/bin/constants.js.map +1 -1
- package/bin/copy-keycloak-resources-to-public.js +3 -4
- package/bin/copy-keycloak-resources-to-public.js.map +1 -1
- package/bin/download-builtin-keycloak-theme.js +163 -53
- package/bin/download-builtin-keycloak-theme.js.map +1 -1
- package/bin/eject-keycloak-page.js +2 -2
- package/bin/eject-keycloak-page.js.map +1 -1
- package/bin/{getSrcDirPath.js → getThemeSrcDirPath.js} +1 -1
- package/bin/getThemeSrcDirPath.js.map +1 -0
- package/bin/initialize-email-theme.js +6 -5
- package/bin/initialize-email-theme.js.map +1 -1
- package/bin/keycloakify/{BuildOptions.d.ts → buildOptions/buildOptions.d.ts} +2 -1
- package/bin/keycloakify/buildOptions/buildOptions.js +136 -0
- package/bin/keycloakify/buildOptions/buildOptions.js.map +1 -0
- package/bin/keycloakify/buildOptions/getKeycloakifyBuildDirPath.d.ts +7 -0
- package/bin/keycloakify/buildOptions/getKeycloakifyBuildDirPath.js +27 -0
- package/bin/keycloakify/buildOptions/getKeycloakifyBuildDirPath.js.map +1 -0
- package/bin/keycloakify/buildOptions/index.d.ts +1 -0
- package/bin/keycloakify/{generateJavaStackFiles → buildOptions}/index.js +1 -1
- package/bin/keycloakify/buildOptions/index.js.map +1 -0
- package/bin/keycloakify/buildOptions/parsedPackageJson.d.ts +19 -0
- package/bin/keycloakify/{parsedPackageJson.js → buildOptions/parsedPackageJson.js} +6 -7
- package/bin/keycloakify/buildOptions/parsedPackageJson.js.map +1 -0
- package/bin/keycloakify/buildOptions/resolvedViteConfig.d.ts +12 -0
- package/bin/keycloakify/buildOptions/resolvedViteConfig.js +82 -0
- package/bin/keycloakify/buildOptions/resolvedViteConfig.js.map +1 -0
- package/bin/keycloakify/generateFtl/generateFtl.d.ts +4 -1
- package/bin/keycloakify/generateFtl/generateFtl.js +5 -5
- package/bin/keycloakify/generateFtl/generateFtl.js.map +1 -1
- package/bin/keycloakify/generatePom.d.ts +12 -0
- package/bin/keycloakify/generatePom.js +59 -0
- package/bin/keycloakify/generatePom.js.map +1 -0
- package/bin/keycloakify/{generateJavaStackFiles → generateTheme}/bringInAccountV1.d.ts +2 -1
- package/bin/keycloakify/{generateJavaStackFiles → generateTheme}/bringInAccountV1.js +21 -67
- package/bin/keycloakify/generateTheme/bringInAccountV1.js.map +1 -0
- package/bin/keycloakify/generateTheme/downloadKeycloakStaticResources.d.ts +0 -3
- package/bin/keycloakify/generateTheme/downloadKeycloakStaticResources.js +5 -34
- package/bin/keycloakify/generateTheme/downloadKeycloakStaticResources.js.map +1 -1
- package/bin/keycloakify/generateTheme/generateTheme.d.ts +4 -1
- package/bin/keycloakify/generateTheme/generateTheme.js +123 -70
- package/bin/keycloakify/generateTheme/generateTheme.js.map +1 -1
- package/bin/keycloakify/keycloakify.js +13 -72
- package/bin/keycloakify/keycloakify.js.map +1 -1
- package/bin/keycloakify/replacers/replaceImportsInCssCode.js +2 -1
- package/bin/keycloakify/replacers/replaceImportsInCssCode.js.map +1 -1
- package/bin/keycloakify/replacers/replaceImportsInInlineCssCode.js +2 -1
- package/bin/keycloakify/replacers/replaceImportsInInlineCssCode.js.map +1 -1
- package/bin/keycloakify/replacers/replaceImportsInJsCode/index.d.ts +1 -0
- package/bin/keycloakify/replacers/replaceImportsInJsCode/index.js +18 -0
- package/bin/keycloakify/replacers/replaceImportsInJsCode/index.js.map +1 -0
- package/bin/keycloakify/replacers/replaceImportsInJsCode/replaceImportsInJsCode.d.ts +12 -0
- package/bin/keycloakify/replacers/replaceImportsInJsCode/replaceImportsInJsCode.js +70 -0
- package/bin/keycloakify/replacers/replaceImportsInJsCode/replaceImportsInJsCode.js.map +1 -0
- package/bin/keycloakify/replacers/replaceImportsInJsCode/vite.d.ts +13 -0
- package/bin/keycloakify/replacers/replaceImportsInJsCode/vite.js +95 -0
- package/bin/keycloakify/replacers/replaceImportsInJsCode/vite.js.map +1 -0
- package/bin/keycloakify/replacers/replaceImportsInJsCode/webpack.d.ts +12 -0
- package/bin/keycloakify/replacers/replaceImportsInJsCode/webpack.js +108 -0
- package/bin/keycloakify/replacers/replaceImportsInJsCode/webpack.js.map +1 -0
- package/bin/promptKeycloakVersion.js +0 -1
- package/bin/promptKeycloakVersion.js.map +1 -1
- package/bin/tools/OptionalIfCanBeUndefined.d.ts +14 -0
- package/bin/tools/OptionalIfCanBeUndefined.js +3 -0
- package/bin/tools/OptionalIfCanBeUndefined.js.map +1 -0
- package/bin/tools/SemVer.d.ts +26 -0
- package/bin/tools/{NpmModuleVersion.js → SemVer.js} +39 -23
- package/bin/tools/SemVer.js.map +1 -0
- package/bin/tools/String.prototype.replaceAll.d.ts +1 -0
- package/bin/tools/String.prototype.replaceAll.js +29 -0
- package/bin/tools/String.prototype.replaceAll.js.map +1 -0
- package/bin/tools/crawl.js +9 -9
- package/bin/tools/crawl.js.map +1 -1
- package/bin/tools/downloadAndUnzip.js +127 -32
- package/bin/tools/downloadAndUnzip.js.map +1 -1
- package/bin/tools/fs.rm.d.ts +8 -0
- package/bin/tools/fs.rm.js +151 -0
- package/bin/tools/fs.rm.js.map +1 -0
- package/bin/tools/fs.rmSync.d.ts +8 -0
- package/bin/tools/fs.rmSync.js +58 -0
- package/bin/tools/fs.rmSync.js.map +1 -0
- package/bin/tools/getAbsoluteAndInOsFormatPath.js +1 -0
- package/bin/tools/getAbsoluteAndInOsFormatPath.js.map +1 -1
- package/bin/tools/octokit-addons/getLatestsSemVersionedTag.d.ts +2 -3
- package/bin/tools/octokit-addons/getLatestsSemVersionedTag.js +6 -6
- package/bin/tools/octokit-addons/getLatestsSemVersionedTag.js.map +1 -1
- package/bin/tools/transformCodebase.d.ts +5 -1
- package/bin/tools/transformCodebase.js +31 -13
- package/bin/tools/transformCodebase.js.map +1 -1
- package/login/kcContext/getKcContextFromWindow.js +2 -2
- package/login/kcContext/getKcContextFromWindow.js.map +1 -1
- package/package.json +104 -53
- package/src/account/kcContext/getKcContextFromWindow.ts +2 -2
- package/src/bin/constants.ts +4 -1
- package/src/bin/copy-keycloak-resources-to-public.ts +2 -3
- package/src/bin/download-builtin-keycloak-theme.ts +161 -73
- package/src/bin/eject-keycloak-page.ts +1 -1
- package/src/bin/initialize-email-theme.ts +4 -3
- package/src/bin/keycloakify/buildOptions/buildOptions.ts +185 -0
- package/src/bin/keycloakify/buildOptions/getKeycloakifyBuildDirPath.ts +33 -0
- package/src/bin/keycloakify/buildOptions/index.ts +1 -0
- package/src/bin/keycloakify/{parsedPackageJson.ts → buildOptions/parsedPackageJson.ts} +4 -6
- package/src/bin/keycloakify/buildOptions/resolvedViteConfig.ts +85 -0
- package/src/bin/keycloakify/generateFtl/generateFtl.ts +12 -8
- package/src/bin/keycloakify/generatePom.ts +70 -0
- package/src/bin/keycloakify/generateStartKeycloakTestingContainer.ts +1 -1
- package/src/bin/keycloakify/generateTheme/bringInAccountV1.ts +83 -0
- package/src/bin/keycloakify/generateTheme/downloadKeycloakStaticResources.ts +11 -52
- package/src/bin/keycloakify/generateTheme/generateTheme.ts +141 -51
- package/src/bin/keycloakify/keycloakify.ts +11 -58
- package/src/bin/keycloakify/replacers/replaceImportsInCssCode.ts +3 -2
- package/src/bin/keycloakify/replacers/replaceImportsInInlineCssCode.ts +3 -2
- package/src/bin/keycloakify/replacers/replaceImportsInJsCode/index.ts +1 -0
- package/src/bin/keycloakify/replacers/replaceImportsInJsCode/replaceImportsInJsCode.ts +66 -0
- package/src/bin/keycloakify/replacers/replaceImportsInJsCode/vite.ts +85 -0
- package/src/bin/keycloakify/replacers/replaceImportsInJsCode/webpack.ts +90 -0
- package/src/bin/promptKeycloakVersion.ts +0 -1
- package/src/bin/tools/OptionalIfCanBeUndefined.ts +12 -0
- package/src/bin/tools/SemVer.ts +99 -0
- package/src/bin/tools/String.prototype.replaceAll.ts +30 -0
- package/src/bin/tools/crawl.ts +8 -8
- package/src/bin/tools/downloadAndUnzip.ts +78 -9
- package/src/bin/tools/fs.rm.ts +43 -0
- package/src/bin/tools/fs.rmSync.ts +34 -0
- package/src/bin/tools/getAbsoluteAndInOsFormatPath.ts +2 -0
- package/src/bin/tools/octokit-addons/getLatestsSemVersionedTag.ts +9 -9
- package/src/bin/tools/transformCodebase.ts +35 -14
- package/src/login/kcContext/getKcContextFromWindow.ts +2 -2
- package/src/tsconfig.json +1 -1
- package/src/vite-plugin/config.json +232 -0
- package/src/vite-plugin/index.ts +1 -0
- package/src/vite-plugin/tsconfig.json +18 -0
- package/src/vite-plugin/vite-plugin.ts +128 -0
- package/vite-plugin/index.d.ts +1 -0
- package/vite-plugin/index.js +18 -0
- package/vite-plugin/index.js.map +1 -0
- package/vite-plugin/tsconfig.tsbuildinfo +1 -0
- package/vite-plugin/vite-plugin.d.ts +2 -0
- package/vite-plugin/vite-plugin.js +118 -0
- package/vite-plugin/vite-plugin.js.map +1 -0
- package/bin/getSrcDirPath.js.map +0 -1
- package/bin/keycloakify/BuildOptions.js +0 -113
- package/bin/keycloakify/BuildOptions.js.map +0 -1
- package/bin/keycloakify/ftlValuesGlobalName.d.ts +0 -1
- package/bin/keycloakify/ftlValuesGlobalName.js +0 -5
- package/bin/keycloakify/ftlValuesGlobalName.js.map +0 -1
- package/bin/keycloakify/generateJavaStackFiles/bringInAccountV1.js.map +0 -1
- package/bin/keycloakify/generateJavaStackFiles/generateJavaStackFiles.d.ts +0 -16
- package/bin/keycloakify/generateJavaStackFiles/generateJavaStackFiles.js +0 -205
- package/bin/keycloakify/generateJavaStackFiles/generateJavaStackFiles.js.map +0 -1
- package/bin/keycloakify/generateJavaStackFiles/index.d.ts +0 -1
- package/bin/keycloakify/generateJavaStackFiles/index.js.map +0 -1
- package/bin/keycloakify/generateTheme/readStaticResourcesUsage.d.ts +0 -15
- package/bin/keycloakify/generateTheme/readStaticResourcesUsage.js +0 -158
- package/bin/keycloakify/generateTheme/readStaticResourcesUsage.js.map +0 -1
- package/bin/keycloakify/parsedPackageJson.d.ts +0 -108
- package/bin/keycloakify/parsedPackageJson.js.map +0 -1
- package/bin/keycloakify/replacers/replaceImportsFromStaticInJsCode.d.ts +0 -5
- package/bin/keycloakify/replacers/replaceImportsFromStaticInJsCode.js +0 -74
- package/bin/keycloakify/replacers/replaceImportsFromStaticInJsCode.js.map +0 -1
- package/bin/tools/NpmModuleVersion.d.ts +0 -22
- package/bin/tools/NpmModuleVersion.js.map +0 -1
- package/src/bin/keycloakify/BuildOptions.ts +0 -157
- package/src/bin/keycloakify/ftlValuesGlobalName.ts +0 -1
- package/src/bin/keycloakify/generateJavaStackFiles/bringInAccountV1.ts +0 -101
- package/src/bin/keycloakify/generateJavaStackFiles/generateJavaStackFiles.ts +0 -141
- package/src/bin/keycloakify/generateJavaStackFiles/index.ts +0 -1
- package/src/bin/keycloakify/generateTheme/readStaticResourcesUsage.ts +0 -76
- package/src/bin/keycloakify/replacers/replaceImportsFromStaticInJsCode.ts +0 -51
- package/src/bin/tools/NpmModuleVersion.ts +0 -73
- /package/bin/{getSrcDirPath.d.ts → getThemeSrcDirPath.d.ts} +0 -0
- /package/src/bin/{getSrcDirPath.ts → getThemeSrcDirPath.ts} +0 -0
package/README.md
CHANGED
@@ -43,6 +43,10 @@
|
|
43
43
|
|
44
44
|
Keycloakify is fully compatible with Keycloak 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, [~~22~~](https://github.com/keycloakify/keycloakify/issues/389#issuecomment-1822509763), **23** [and up](https://github.com/keycloakify/keycloakify/discussions/346#discussioncomment-5889791)!
|
45
45
|
|
46
|
+
> 📣 I've observed that a few people have unstarred the project recently.
|
47
|
+
> I'm concerned that I may have inadvertently introduced some misinformation in the documentation, leading to frustration.
|
48
|
+
> If you're having a negative experience, [please let me know so I can resolve the issue](https://github.com/keycloakify/keycloakify/discussions/507).
|
49
|
+
|
46
50
|
## Sponsor 👼
|
47
51
|
|
48
52
|
We are exclusively sponsored by [Cloud IAM](https://cloud-iam.com/?mtm_campaign=keycloakify-deal&mtm_source=keycloakify-github), a French company offering Keycloak as a service.
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { nameOfTheGlobal } from "../../bin/constants";
|
2
2
|
export function getKcContextFromWindow() {
|
3
|
-
return typeof window === "undefined" ? undefined : window[
|
3
|
+
return typeof window === "undefined" ? undefined : window[nameOfTheGlobal];
|
4
4
|
}
|
5
5
|
//# sourceMappingURL=getKcContextFromWindow.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getKcContextFromWindow.js","sourceRoot":"","sources":["../../src/account/kcContext/getKcContextFromWindow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"getKcContextFromWindow.js","sourceRoot":"","sources":["../../src/account/kcContext/getKcContextFromWindow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAO5D,MAAM,UAAU,sBAAsB;IAClC,OAAO,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAE,MAAc,CAAC,eAAe,CAAC,CAAC;AACxF,CAAC"}
|
package/bin/constants.d.ts
CHANGED
@@ -1,7 +1,10 @@
|
|
1
|
+
export declare const nameOfTheGlobal = "kcContext";
|
1
2
|
export declare const keycloak_resources = "keycloak-resources";
|
2
3
|
export declare const resources_common = "resources-common";
|
3
4
|
export declare const lastKeycloakVersionWithAccountV1 = "21.1.2";
|
5
|
+
export declare const resolvedViteConfigJsonBasename = ".keycloakifyViteConfig.json";
|
6
|
+
export declare const basenameOfTheKeycloakifyResourcesDir = "build";
|
4
7
|
export declare const themeTypes: readonly ["login", "account"];
|
5
8
|
export declare const retrocompatPostfix = "_retrocompat";
|
6
|
-
export declare const
|
9
|
+
export declare const accountV1ThemeName = "account-v1";
|
7
10
|
export type ThemeType = (typeof themeTypes)[number];
|
package/bin/constants.js
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.accountV1ThemeName = exports.retrocompatPostfix = exports.themeTypes = exports.basenameOfTheKeycloakifyResourcesDir = exports.resolvedViteConfigJsonBasename = exports.lastKeycloakVersionWithAccountV1 = exports.resources_common = exports.keycloak_resources = exports.nameOfTheGlobal = void 0;
|
4
|
+
exports.nameOfTheGlobal = "kcContext";
|
4
5
|
exports.keycloak_resources = "keycloak-resources";
|
5
6
|
exports.resources_common = "resources-common";
|
6
7
|
exports.lastKeycloakVersionWithAccountV1 = "21.1.2";
|
8
|
+
exports.resolvedViteConfigJsonBasename = ".keycloakifyViteConfig.json";
|
9
|
+
exports.basenameOfTheKeycloakifyResourcesDir = "build";
|
7
10
|
exports.themeTypes = ["login", "account"];
|
8
11
|
exports.retrocompatPostfix = "_retrocompat";
|
9
|
-
exports.
|
12
|
+
exports.accountV1ThemeName = "account-v1";
|
10
13
|
//# sourceMappingURL=constants.js.map
|
package/bin/constants.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/bin/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,gBAAgB,GAAG,kBAAkB,CAAC;AACtC,QAAA,gCAAgC,GAAG,QAAQ,CAAC;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/bin/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,WAAW,CAAC;AAC9B,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,gBAAgB,GAAG,kBAAkB,CAAC;AACtC,QAAA,gCAAgC,GAAG,QAAQ,CAAC;AAC5C,QAAA,8BAA8B,GAAG,6BAA6B,CAAC;AAC/D,QAAA,oCAAoC,GAAG,OAAO,CAAC;AAE/C,QAAA,UAAU,GAAG,CAAC,OAAO,EAAE,SAAS,CAAU,CAAC;AAC3C,QAAA,kBAAkB,GAAG,cAAc,CAAC;AACpC,QAAA,kBAAkB,GAAG,YAAY,CAAC"}
|
@@ -73,7 +73,7 @@ var __values = (this && this.__values) || function(o) {
|
|
73
73
|
Object.defineProperty(exports, "__esModule", { value: true });
|
74
74
|
var downloadKeycloakStaticResources_1 = require("./keycloakify/generateTheme/downloadKeycloakStaticResources");
|
75
75
|
var path_1 = require("path");
|
76
|
-
var
|
76
|
+
var buildOptions_1 = require("./keycloakify/buildOptions");
|
77
77
|
var constants_1 = require("./constants");
|
78
78
|
var fs = __importStar(require("fs"));
|
79
79
|
(function () { return __awaiter(void 0, void 0, void 0, function () {
|
@@ -83,7 +83,7 @@ var fs = __importStar(require("fs"));
|
|
83
83
|
switch (_b.label) {
|
84
84
|
case 0:
|
85
85
|
reactAppRootDirPath = process.cwd();
|
86
|
-
buildOptions = (0,
|
86
|
+
buildOptions = (0, buildOptions_1.readBuildOptions)({
|
87
87
|
reactAppRootDirPath: reactAppRootDirPath,
|
88
88
|
"processArgv": process.argv.slice(2)
|
89
89
|
});
|
@@ -102,7 +102,6 @@ var fs = __importStar(require("fs"));
|
|
102
102
|
})(),
|
103
103
|
themeType: themeType,
|
104
104
|
"themeDirPath": reservedDirPath,
|
105
|
-
"usedResources": undefined,
|
106
105
|
buildOptions: buildOptions
|
107
106
|
})];
|
108
107
|
case 1:
|
@@ -144,7 +143,7 @@ var fs = __importStar(require("fs"));
|
|
144
143
|
"This is just a test folder that helps develop",
|
145
144
|
"the login and register page without having to run a Keycloak container"
|
146
145
|
].join(" ")));
|
147
|
-
fs.writeFileSync((0, path_1.join)(buildOptions.publicDirPath,
|
146
|
+
fs.writeFileSync((0, path_1.join)(buildOptions.publicDirPath, constants_1.keycloak_resources, ".gitignore"), Buffer.from("*", "utf8"));
|
148
147
|
console.log("".concat((0, path_1.relative)(reactAppRootDirPath, reservedDirPath), " directory created."));
|
149
148
|
return [2 /*return*/];
|
150
149
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"copy-keycloak-resources-to-public.js","sourceRoot":"","sources":["../src/bin/copy-keycloak-resources-to-public.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,+GAA8G;AAC9G,6BAAkE;AAClE,2DAA8D;AAC9D,yCAA+F;AAC/F,qCAAyB;AAEzB,CAAC;;;;;;gBACS,mBAAmB,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;gBAEpC,YAAY,GAAG,IAAA,+BAAgB,EAAC;oBAClC,mBAAmB,qBAAA;oBACnB,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;iBACvC,CAAC,CAAC;gBAEG,eAAe,GAAG,IAAA,WAAQ,EAAC,YAAY,CAAC,aAAa,EAAE,8BAAkB,CAAC,CAAC;oCAEtE,SAAS;;;oCAChB,qBAAM,IAAA,iEAA+B,EAAC;oCAClC,iBAAiB,EAAE,CAAC;wCAChB,QAAQ,SAAS,EAAE;4CACf,KAAK,OAAO;gDACR,OAAO,YAAY,CAAC,sCAAsC,CAAC;4CAC/D,KAAK,SAAS;gDACV,OAAO,4CAAgC,CAAC;yCAC/C;oCACL,CAAC,CAAC,EAAE;oCACJ,SAAS,WAAA;oCACT,cAAc,EAAE,eAAe;oCAC/B,
|
1
|
+
{"version":3,"file":"copy-keycloak-resources-to-public.js","sourceRoot":"","sources":["../src/bin/copy-keycloak-resources-to-public.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,+GAA8G;AAC9G,6BAAkE;AAClE,2DAA8D;AAC9D,yCAA+F;AAC/F,qCAAyB;AA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AAC,EAAE,CAAC"}
|
@@ -59,16 +59,44 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
59
59
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
60
60
|
}
|
61
61
|
};
|
62
|
+
var __read = (this && this.__read) || function (o, n) {
|
63
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
64
|
+
if (!m) return o;
|
65
|
+
var i = m.call(o), r, ar = [], e;
|
66
|
+
try {
|
67
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
68
|
+
}
|
69
|
+
catch (error) { e = { error: error }; }
|
70
|
+
finally {
|
71
|
+
try {
|
72
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
73
|
+
}
|
74
|
+
finally { if (e) throw e.error; }
|
75
|
+
}
|
76
|
+
return ar;
|
77
|
+
};
|
78
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
79
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
80
|
+
if (ar || !(i in from)) {
|
81
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
82
|
+
ar[i] = from[i];
|
83
|
+
}
|
84
|
+
}
|
85
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
86
|
+
};
|
62
87
|
Object.defineProperty(exports, "__esModule", { value: true });
|
63
88
|
exports.downloadBuiltinKeycloakTheme = void 0;
|
64
89
|
var path_1 = require("path");
|
65
90
|
var downloadAndUnzip_1 = require("./tools/downloadAndUnzip");
|
66
91
|
var promptKeycloakVersion_1 = require("./promptKeycloakVersion");
|
67
92
|
var logger_1 = require("./tools/logger");
|
68
|
-
var
|
93
|
+
var buildOptions_1 = require("./keycloakify/buildOptions");
|
69
94
|
var assert_1 = require("tsafe/assert");
|
70
95
|
var child_process = __importStar(require("child_process"));
|
71
96
|
var fs = __importStar(require("fs"));
|
97
|
+
var fs_rmSync_1 = require("./tools/fs.rmSync");
|
98
|
+
var constants_1 = require("./constants");
|
99
|
+
var transformCodebase_1 = require("./tools/transformCodebase");
|
72
100
|
(0, assert_1.assert)();
|
73
101
|
function downloadBuiltinKeycloakTheme(params) {
|
74
102
|
return __awaiter(this, void 0, void 0, function () {
|
@@ -89,35 +117,8 @@ function downloadBuiltinKeycloakTheme(params) {
|
|
89
117
|
"action": function (_a) {
|
90
118
|
var destDirPath = _a.destDirPath;
|
91
119
|
return __awaiter(_this, void 0, void 0, function () {
|
92
|
-
var
|
120
|
+
var commonResourcesDirPath, keycloakV2DirPath, pathOfNodeModules, toDeletePerfixes_1, accountCssFilePath, totpFtlFilePath, nodeModulesDirPath, usedCommonResourceRelativeFilePaths_1;
|
93
121
|
return __generator(this, function (_b) {
|
94
|
-
fix_account_css: {
|
95
|
-
accountCssFilePath = (0, path_1.join)(destDirPath, "keycloak", "account", "resources", "css", "account.css");
|
96
|
-
if (!fs.existsSync(accountCssFilePath)) {
|
97
|
-
break fix_account_css;
|
98
|
-
}
|
99
|
-
fs.writeFileSync(accountCssFilePath, Buffer.from(fs.readFileSync(accountCssFilePath).toString("utf8").replace("top: -34px;", "top: -34px !important;"), "utf8"));
|
100
|
-
}
|
101
|
-
fix_account_topt: {
|
102
|
-
totpFtlFilePath = (0, path_1.join)(destDirPath, "base", "account", "totp.ftl");
|
103
|
-
if (!fs.existsSync(totpFtlFilePath)) {
|
104
|
-
break fix_account_topt;
|
105
|
-
}
|
106
|
-
fs.writeFileSync(totpFtlFilePath, Buffer.from(fs
|
107
|
-
.readFileSync(totpFtlFilePath)
|
108
|
-
.toString("utf8")
|
109
|
-
.replace([
|
110
|
-
" <#list totp.policy.supportedApplications as app>",
|
111
|
-
" <li>${app}</li>",
|
112
|
-
" </#list>"
|
113
|
-
].join("\n"), [
|
114
|
-
" <#if totp.policy.supportedApplications?has_content>",
|
115
|
-
" <#list totp.policy.supportedApplications as app>",
|
116
|
-
" <li>${app}</li>",
|
117
|
-
" </#list>",
|
118
|
-
" </#if>"
|
119
|
-
].join("\n")), "utf8"));
|
120
|
-
}
|
121
122
|
install_common_node_modules: {
|
122
123
|
commonResourcesDirPath = (0, path_1.join)(destDirPath, "keycloak", "common", "resources");
|
123
124
|
if (!fs.existsSync(commonResourcesDirPath)) {
|
@@ -134,32 +135,141 @@ function downloadBuiltinKeycloakTheme(params) {
|
|
134
135
|
"stdio": "ignore"
|
135
136
|
});
|
136
137
|
}
|
137
|
-
|
138
|
-
|
139
|
-
if (!fs.existsSync(
|
140
|
-
break
|
138
|
+
remove_keycloak_v2: {
|
139
|
+
keycloakV2DirPath = (0, path_1.join)(destDirPath, "keycloak.v2");
|
140
|
+
if (!fs.existsSync(keycloakV2DirPath)) {
|
141
|
+
break remove_keycloak_v2;
|
141
142
|
}
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
143
|
+
(0, fs_rmSync_1.rmSync)(keycloakV2DirPath, { "recursive": true });
|
144
|
+
}
|
145
|
+
// Note, this is an optimization for reducing the size of the jar
|
146
|
+
remove_unused_node_modules: {
|
147
|
+
pathOfNodeModules = (0, path_1.join)(destDirPath, "keycloak", "common", "resources", "node_modules");
|
148
|
+
if (!fs.existsSync(pathOfNodeModules)) {
|
149
|
+
break remove_unused_node_modules;
|
150
|
+
}
|
151
|
+
toDeletePerfixes_1 = [
|
152
|
+
"angular",
|
153
|
+
"bootstrap",
|
154
|
+
"rcue",
|
155
|
+
"font-awesome",
|
156
|
+
"ng-file-upload",
|
157
|
+
(0, path_1.join)("patternfly", "dist", "sass"),
|
158
|
+
(0, path_1.join)("patternfly", "dist", "less"),
|
159
|
+
(0, path_1.join)("patternfly", "dist", "js"),
|
160
|
+
"d3",
|
161
|
+
(0, path_1.join)("jquery", "src"),
|
162
|
+
"c3",
|
163
|
+
"core-js",
|
164
|
+
"eonasdan-bootstrap-datetimepicker",
|
165
|
+
"moment",
|
166
|
+
"react",
|
167
|
+
"patternfly-bootstrap-treeview",
|
168
|
+
"popper.js",
|
169
|
+
"tippy.js",
|
170
|
+
"jquery-match-height",
|
171
|
+
"google-code-prettify",
|
172
|
+
"patternfly-bootstrap-combobox",
|
173
|
+
"focus-trap",
|
174
|
+
"tabbable",
|
175
|
+
"scheduler",
|
176
|
+
"@types",
|
177
|
+
"datatables.net",
|
178
|
+
"datatables.net-colreorder",
|
179
|
+
"tslib",
|
180
|
+
"prop-types",
|
181
|
+
"file-selector",
|
182
|
+
"datatables.net-colreorder-bs",
|
183
|
+
"object-assign",
|
184
|
+
"warning",
|
185
|
+
"js-tokens",
|
186
|
+
"loose-envify",
|
187
|
+
"prop-types-extra",
|
188
|
+
"attr-accept",
|
189
|
+
"datatables.net-select",
|
190
|
+
"drmonty-datatables-colvis",
|
191
|
+
"datatables.net-bs",
|
192
|
+
(0, path_1.join)("@patternfly", "react"),
|
193
|
+
(0, path_1.join)("@patternfly", "patternfly", "docs")
|
194
|
+
];
|
195
|
+
(0, transformCodebase_1.transformCodebase)({
|
196
|
+
"srcDirPath": pathOfNodeModules,
|
197
|
+
"destDirPath": pathOfNodeModules,
|
198
|
+
"transformSourceCode": function (_a) {
|
199
|
+
var sourceCode = _a.sourceCode, fileRelativePath = _a.fileRelativePath;
|
200
|
+
if (fileRelativePath.endsWith(".map")) {
|
201
|
+
return undefined;
|
202
|
+
}
|
203
|
+
if (toDeletePerfixes_1.find(function (prefix) { return fileRelativePath.startsWith(prefix); }) !== undefined) {
|
204
|
+
return undefined;
|
205
|
+
}
|
206
|
+
if (fileRelativePath.startsWith((0, path_1.join)("patternfly", "dist", "fonts"))) {
|
207
|
+
if (!fileRelativePath.endsWith(".woff2") &&
|
208
|
+
!fileRelativePath.endsWith(".woff") &&
|
209
|
+
!fileRelativePath.endsWith(".ttf")) {
|
210
|
+
return undefined;
|
211
|
+
}
|
212
|
+
}
|
213
|
+
return { "modifiedSourceCode": sourceCode };
|
150
214
|
}
|
215
|
+
});
|
216
|
+
}
|
217
|
+
last_account_v1_transformations: {
|
218
|
+
if (constants_1.lastKeycloakVersionWithAccountV1 !== keycloakVersion) {
|
219
|
+
break last_account_v1_transformations;
|
220
|
+
}
|
221
|
+
{
|
222
|
+
accountCssFilePath = (0, path_1.join)(destDirPath, "keycloak", "account", "resources", "css", "account.css");
|
223
|
+
fs.writeFileSync(accountCssFilePath, Buffer.from(fs.readFileSync(accountCssFilePath).toString("utf8").replace("top: -34px;", "top: -34px !important;"), "utf8"));
|
224
|
+
}
|
225
|
+
{
|
226
|
+
totpFtlFilePath = (0, path_1.join)(destDirPath, "base", "account", "totp.ftl");
|
227
|
+
fs.writeFileSync(totpFtlFilePath, Buffer.from(fs
|
228
|
+
.readFileSync(totpFtlFilePath)
|
229
|
+
.toString("utf8")
|
230
|
+
.replace([
|
231
|
+
" <#list totp.policy.supportedApplications as app>",
|
232
|
+
" <li>${app}</li>",
|
233
|
+
" </#list>"
|
234
|
+
].join("\n"), [
|
235
|
+
" <#if totp.policy.supportedApplications?has_content>",
|
236
|
+
" <#list totp.policy.supportedApplications as app>",
|
237
|
+
" <li>${app}</li>",
|
238
|
+
" </#list>",
|
239
|
+
" </#if>"
|
240
|
+
].join("\n")), "utf8"));
|
241
|
+
}
|
242
|
+
// Note, this is an optimization for reducing the size of the jar
|
243
|
+
{
|
244
|
+
nodeModulesDirPath = (0, path_1.join)(destDirPath, "keycloak", "common", "resources");
|
245
|
+
usedCommonResourceRelativeFilePaths_1 = __spreadArray(__spreadArray([], __read(["patternfly.min.css", "patternfly-additions.min.css", "patternfly-additions.min.css"].map(function (fileBasename) {
|
246
|
+
return (0, path_1.join)("patternfly", "dist", "css", fileBasename);
|
247
|
+
})), false), __read([
|
248
|
+
"OpenSans-Light-webfont.woff2",
|
249
|
+
"OpenSans-Regular-webfont.woff2",
|
250
|
+
"OpenSans-Bold-webfont.woff2",
|
251
|
+
"OpenSans-Semibold-webfont.woff2",
|
252
|
+
"OpenSans-Bold-webfont.woff",
|
253
|
+
"OpenSans-Light-webfont.woff",
|
254
|
+
"OpenSans-Regular-webfont.woff",
|
255
|
+
"OpenSans-Semibold-webfont.woff",
|
256
|
+
"OpenSans-Regular-webfont.ttf",
|
257
|
+
"OpenSans-Light-webfont.ttf",
|
258
|
+
"OpenSans-Semibold-webfont.ttf",
|
259
|
+
"OpenSans-Bold-webfont.ttf"
|
260
|
+
].map(function (fileBasename) { return (0, path_1.join)("patternfly", "dist", "fonts", fileBasename); })), false);
|
261
|
+
(0, transformCodebase_1.transformCodebase)({
|
262
|
+
"srcDirPath": nodeModulesDirPath,
|
263
|
+
"destDirPath": nodeModulesDirPath,
|
264
|
+
"transformSourceCode": function (_a) {
|
265
|
+
var sourceCode = _a.sourceCode, fileRelativePath = _a.fileRelativePath;
|
266
|
+
if (!usedCommonResourceRelativeFilePaths_1.includes(fileRelativePath)) {
|
267
|
+
return undefined;
|
268
|
+
}
|
269
|
+
return { "modifiedSourceCode": sourceCode };
|
270
|
+
}
|
271
|
+
});
|
151
272
|
}
|
152
|
-
child_process.execSync("".concat(packageManager, " install"), { "cwd": accountV2DirSrcDirPath, "stdio": "ignore" });
|
153
|
-
packageJsonFilePath = (0, path_1.join)(accountV2DirSrcDirPath, "package.json");
|
154
|
-
packageJsonRaw = fs.readFileSync(packageJsonFilePath);
|
155
|
-
parsedPackageJson = JSON.parse(packageJsonRaw.toString("utf8"));
|
156
|
-
parsedPackageJson.scripts.build = parsedPackageJson.scripts.build
|
157
|
-
.replace("".concat(packageManager, " run check-types"), "true")
|
158
|
-
.replace("".concat(packageManager, " run babel"), "true");
|
159
|
-
fs.writeFileSync(packageJsonFilePath, Buffer.from(JSON.stringify(parsedPackageJson, null, 2), "utf8"));
|
160
|
-
child_process.execSync("".concat(packageManager, " run build"), { "cwd": accountV2DirSrcDirPath, "stdio": "ignore" });
|
161
|
-
fs.writeFileSync(packageJsonFilePath, packageJsonRaw);
|
162
|
-
fs.rmSync((0, path_1.join)(accountV2DirSrcDirPath, "node_modules"), { "recursive": true });
|
163
273
|
}
|
164
274
|
return [2 /*return*/];
|
165
275
|
});
|
@@ -181,7 +291,7 @@ function main() {
|
|
181
291
|
return __generator(this, function (_a) {
|
182
292
|
switch (_a.label) {
|
183
293
|
case 0:
|
184
|
-
buildOptions = (0,
|
294
|
+
buildOptions = (0, buildOptions_1.readBuildOptions)({
|
185
295
|
"reactAppRootDirPath": process.cwd(),
|
186
296
|
"processArgv": process.argv.slice(2)
|
187
297
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"download-builtin-keycloak-theme.js","sourceRoot":"","sources":["../src/bin/download-builtin-keycloak-theme.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"download-builtin-keycloak-theme.js","sourceRoot":"","sources":["../src/bin/download-builtin-keycloak-theme.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,6BAAwC;AACxC,6DAA4D;AAC5D,iEAAgE;AAChE,yCAA2C;AAC3C,2DAAiF;AACjF,uCAAsC;AACtC,2DAA+C;AAC/C,qCAAyB;AACzB,+CAA2C;AAC3C,yCAA+D;AAC/D,+DAA8D;AAM9D,IAAA,eAAM,GAAwD,CAAC;AAE/D,SAAsB,4BAA4B,CAAC,MAAwF;;;;;;;oBAC/H,eAAe,GAAgC,MAAM,gBAAtC,EAAE,WAAW,GAAmB,MAAM,YAAzB,EAAE,YAAY,GAAK,MAAM,aAAX,CAAY;oBAE9D,qBAAM,IAAA,mCAAgB,EAAC;4BACnB,YAAY,EAAE,IAAI;4BAClB,cAAc,EAAE,YAAY,CAAC,YAAY;4BACzC,WAAW,aAAA;4BACX,KAAK,EAAE,iEAA0D,eAAe,SAAM;4BACtF,uBAAuB,EAAE,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC,GAAG,CAAC,UAAA,GAAG,IAAI,OAAA,mBAAY,eAAe,uCAA6B,GAAG,WAAQ,EAAnE,CAAmE,CAAC;4BAC3H,m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EAAA;;oBAzMF,SAyME,CAAC;;;;;CACN;AA7MD,oEA6MC;AAED,SAAe,IAAI;;;;;;oBACT,YAAY,GAAG,IAAA,+BAAgB,EAAC;wBAClC,qBAAqB,EAAE,OAAO,CAAC,GAAG,EAAE;wBACpC,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;qBACvC,CAAC,CAAC;oBAEG,MAAM,GAAG,IAAA,kBAAS,EAAC,EAAE,UAAU,EAAE,YAAY,CAAC,QAAQ,EAAE,CAAC,CAAC;oBACpC,qBAAM,IAAA,6CAAqB,GAAE,EAAA;;oBAAjD,eAAe,GAAK,CAAA,SAA6B,CAAA,gBAAlC;oBAEjB,WAAW,GAAG,IAAA,WAAQ,EAAC,YAAY,CAAC,uBAAuB,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;oBAExG,MAAM,CAAC,GAAG,CAAC,iDAA0C,eAAe,mBAAS,WAAW,CAAE,CAAC,CAAC;oBAE5F,qBAAM,4BAA4B,CAAC;4BAC/B,eAAe,iBAAA;4BACf,WAAW,aAAA;4BACX,YAAY,cAAA;yBACf,CAAC,EAAA;;oBAJF,SAIE,CAAC;;;;;CACN;AAED,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE;IACzB,IAAI,EAAE,CAAC;CACV"}
|
@@ -74,7 +74,7 @@ var fs_1 = require("fs");
|
|
74
74
|
var path_1 = require("path");
|
75
75
|
var kebabCaseToSnakeCase_1 = require("./tools/kebabCaseToSnakeCase");
|
76
76
|
var assert_1 = require("tsafe/assert");
|
77
|
-
var
|
77
|
+
var getThemeSrcDirPath_1 = require("./getThemeSrcDirPath");
|
78
78
|
var constants_1 = require("./constants");
|
79
79
|
(function () { return __awaiter(void 0, void 0, void 0, function () {
|
80
80
|
var reactAppRootDirPath, themeType, pageId, pageBasename, themeSrcDirPath, targetFilePath, _a, _b;
|
@@ -109,7 +109,7 @@ var constants_1 = require("./constants");
|
|
109
109
|
case 2:
|
110
110
|
pageId = (_c.sent()).value;
|
111
111
|
pageBasename = (0, capitalize_1.capitalize)((0, kebabCaseToSnakeCase_1.kebabCaseToCamelCase)(pageId)).replace(/ftl$/, "tsx");
|
112
|
-
themeSrcDirPath = (0,
|
112
|
+
themeSrcDirPath = (0, getThemeSrcDirPath_1.getThemeSrcDirPath)({ reactAppRootDirPath: reactAppRootDirPath }).themeSrcDirPath;
|
113
113
|
targetFilePath = (0, path_1.join)(themeSrcDirPath, themeType, "pages", pageBasename);
|
114
114
|
if ((0, fs_1.existsSync)(targetFilePath)) {
|
115
115
|
console.log("".concat(pageId, " is already ejected, ").concat((0, path_1.relative)(process.cwd(), targetFilePath), " already exists"));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eject-keycloak-page.js","sourceRoot":"","sources":["../src/bin/eject-keycloak-page.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,yDAAwD;AACxD,0DAAmC;AACnC,yDAAmI;AACnI,+CAA8C;AAC9C,wCAAkD;AAClD,yBAAgC;AAChC,6BAAkE;AAClE,qEAAoE;AACpE,uCAA8C;AAC9C,
|
1
|
+
{"version":3,"file":"eject-keycloak-page.js","sourceRoot":"","sources":["../src/bin/eject-keycloak-page.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,yDAAwD;AACxD,0DAAmC;AACnC,yDAAmI;AACnI,+CAA8C;AAC9C,wCAAkD;AAClD,yBAAgC;AAChC,6BAAkE;AAClE,qEAAoE;AACpE,uCAA8C;AAC9C,2DAA0D;AAC1D,yCAAyD;AAEzD,CAAC;;;;;gBACG,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;gBAE7B,mBAAmB,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;gBAEb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AAA;gBAC1B,IAAM,KAAK,GAAG,gBAAgB,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;gBAC1D,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;oBACpB,OAAO,IAAA,WAAQ,EAAC,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,mBAAmB,CAAC,CAAC;iBAC/D;aACJ;;;;;;;;;QACD,OAAO,SAAS,CAAC;IACrB,CAAC,CAAC;SACD,MAAM,CAAC,IAAA,eAAO,EAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAEnC,IAAI,eAAe,KAAK,SAAS,EAAE;QAC/B,OAAO,EAAE,eAAe,iBAAA,EAAE,CAAC;KAC9B;;QAED,KAAwB,IAAA,KAAA,gDAAI,sBAAU,YAAE,OAAO,UAAC,gBAAA,4BAAE;YAA7C,IAAM,SAAS,WAAA;YAChB,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAA,WAAQ,EAAC,UAAU,EAAE,SAAS,CAAC,CAAC,EAAE;gBACjD,SAAS;aACZ;YACD,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,CAAC;SAC5C;;;;;;;;;IAED,OAAO,CAAC,KAAK,CACT;QACI,iEAAiE;QACjE,mDAAmD;QACnD,yGAAyG;KAC5G,CAAC,IAAI,CAAC,IAAI,CAAC,CACf,CAAC;IAEF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AACrB,CAAC;AArCD,gDAqCC"}
|
@@ -65,10 +65,11 @@ var download_builtin_keycloak_theme_1 = require("./download-builtin-keycloak-the
|
|
65
65
|
var path_1 = require("path");
|
66
66
|
var transformCodebase_1 = require("./tools/transformCodebase");
|
67
67
|
var promptKeycloakVersion_1 = require("./promptKeycloakVersion");
|
68
|
-
var
|
68
|
+
var buildOptions_1 = require("./keycloakify/buildOptions");
|
69
69
|
var fs = __importStar(require("fs"));
|
70
70
|
var logger_1 = require("./tools/logger");
|
71
|
-
var
|
71
|
+
var getThemeSrcDirPath_1 = require("./getThemeSrcDirPath");
|
72
|
+
var fs_rmSync_1 = require("./tools/fs.rmSync");
|
72
73
|
function main() {
|
73
74
|
return __awaiter(this, void 0, void 0, function () {
|
74
75
|
var reactAppRootDirPath, buildOptions, logger, themeSrcDirPath, emailThemeSrcDirPath, keycloakVersion, builtinKeycloakThemeTmpDirPath, themePropertyFilePath;
|
@@ -76,12 +77,12 @@ function main() {
|
|
76
77
|
switch (_a.label) {
|
77
78
|
case 0:
|
78
79
|
reactAppRootDirPath = process.cwd();
|
79
|
-
buildOptions = (0,
|
80
|
+
buildOptions = (0, buildOptions_1.readBuildOptions)({
|
80
81
|
reactAppRootDirPath: reactAppRootDirPath,
|
81
82
|
"processArgv": process.argv.slice(2)
|
82
83
|
});
|
83
84
|
logger = (0, logger_1.getLogger)({ "isSilent": buildOptions.isSilent });
|
84
|
-
themeSrcDirPath = (0,
|
85
|
+
themeSrcDirPath = (0, getThemeSrcDirPath_1.getThemeSrcDirPath)({
|
85
86
|
reactAppRootDirPath: reactAppRootDirPath
|
86
87
|
}).themeSrcDirPath;
|
87
88
|
emailThemeSrcDirPath = (0, path_1.join)(themeSrcDirPath, "email");
|
@@ -109,7 +110,7 @@ function main() {
|
|
109
110
|
fs.writeFileSync(themePropertyFilePath, Buffer.from("parent=base\n".concat(fs.readFileSync(themePropertyFilePath).toString("utf8")), "utf8"));
|
110
111
|
}
|
111
112
|
logger.log("".concat((0, path_1.relative)(process.cwd(), emailThemeSrcDirPath), " ready to be customized, feel free to remove every file you do not customize"));
|
112
|
-
|
113
|
+
(0, fs_rmSync_1.rmSync)(builtinKeycloakThemeTmpDirPath, { "recursive": true, "force": true });
|
113
114
|
return [2 /*return*/];
|
114
115
|
}
|
115
116
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"initialize-email-theme.js","sourceRoot":"","sources":["../src/bin/initialize-email-theme.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;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AjD,eAAe,GAAK,CAAA,SAA6B,CAAA,gBAAlC;oBAEjB,8BAA8B,GAAG,IAAA,WAAQ,EAAC,oBAAoB,EAAE,IAAI,EAAE,kCAAkC,CAAC,CAAC;oBAEhH,qBAAM,IAAA,8DAA4B,EAAC;4BAC/B,eAAe,iBAAA;4BACf,aAAa,EAAE,8BAA8B;4BAC7C,YAAY,cAAA;yBACf,CAAC,EAAA;;oBAJF,SAIE,CAAC;oBAEH,IAAA,qCAAiB,EAAC;wBACd,YAAY,EAAE,IAAA,WAAQ,EAAC,8BAA8B,EAAE,MAAM,EAAE,OAAO,CAAC;wBACvE,aAAa,EAAE,oBAAoB;qBACtC,CAAC,CAAC;oBAEH;wBACU,qBAAqB,GAAG,IAAA,WAAQ,EAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAAC;wBAEjF,EAAE,CAAC,aAAa,CAAC,qBAAqB,EAAE,MAAM,CAAC,IAAI,CAAC,uBAAgB,EAAE,CAAC,YAAY,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAE,EAAE,MAAM,CAAC,CAAC,CAAC;qBAC3I;oBAED,MAAM,CAAC,GAAG,CAAC,UAAG,IAAA,eAAY,EAAC,OAAO,CAAC,GAAG,EAAE,EAAE,oBAAoB,CAAC,iFAA8E,CAAC,CAAC;oBAE/I,IAAA,kBAAM,EAAC,8BAA8B,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;;;;;CAChF;AA9CD,oBA8CC;AAED,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE;IACzB,IAAI,EAAE,CAAC;CACV"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/** Consolidated build option gathered form CLI arguments and config in package.json */
|
2
2
|
export type BuildOptions = {
|
3
|
+
bundler: "vite" | "webpack";
|
3
4
|
isSilent: boolean;
|
4
5
|
themeVersion: string;
|
5
6
|
themeNames: string[];
|
@@ -9,7 +10,6 @@ export type BuildOptions = {
|
|
9
10
|
doCreateJar: boolean;
|
10
11
|
loginThemeResourcesFromKeycloakVersion: string;
|
11
12
|
reactAppRootDirPath: string;
|
12
|
-
/** Directory of your built react project. Defaults to {cwd}/build */
|
13
13
|
reactAppBuildDirPath: string;
|
14
14
|
/** Directory that keycloakify outputs to. Defaults to {cwd}/build_keycloak */
|
15
15
|
keycloakifyBuildDirPath: string;
|
@@ -18,6 +18,7 @@ export type BuildOptions = {
|
|
18
18
|
/** If your app is hosted under a subpath, it's the case in CRA if you have "homepage": "https://example.com/my-app" in your package.json
|
19
19
|
* In this case the urlPathname will be "/my-app/" */
|
20
20
|
urlPathname: string | undefined;
|
21
|
+
assetsDirPath: string;
|
21
22
|
doBuildRetrocompatAccountTheme: boolean;
|
22
23
|
};
|
23
24
|
export declare function readBuildOptions(params: {
|