Remove unused parameter
This commit is contained in:
parent
cd68b07e19
commit
641cc38ae4
@ -25,7 +25,6 @@ import * as fs from "fs";
|
|||||||
for (const themeType of themeTypes) {
|
for (const themeType of themeTypes) {
|
||||||
await downloadKeycloakStaticResources({
|
await downloadKeycloakStaticResources({
|
||||||
projectDirPath,
|
projectDirPath,
|
||||||
"isSilent": false,
|
|
||||||
"keycloakVersion": buildOptions.keycloakVersionDefaultAssets,
|
"keycloakVersion": buildOptions.keycloakVersionDefaultAssets,
|
||||||
"themeType": themeType,
|
"themeType": themeType,
|
||||||
"themeDirPath": keycloakDirInPublicDir
|
"themeDirPath": keycloakDirInPublicDir
|
||||||
|
@ -7,12 +7,7 @@ import { readBuildOptions } from "./keycloakify/BuildOptions";
|
|||||||
import * as child_process from "child_process";
|
import * as child_process from "child_process";
|
||||||
import * as fs from "fs";
|
import * as fs from "fs";
|
||||||
|
|
||||||
export async function downloadBuiltinKeycloakTheme(params: {
|
export async function downloadBuiltinKeycloakTheme(params: { projectDirPath: string; keycloakVersion: string; destDirPath: string }) {
|
||||||
projectDirPath: string;
|
|
||||||
keycloakVersion: string;
|
|
||||||
destDirPath: string;
|
|
||||||
isSilent: boolean;
|
|
||||||
}) {
|
|
||||||
const { projectDirPath, keycloakVersion, destDirPath } = params;
|
const { projectDirPath, keycloakVersion, destDirPath } = params;
|
||||||
|
|
||||||
const start = Date.now();
|
const start = Date.now();
|
||||||
@ -98,8 +93,7 @@ async function main() {
|
|||||||
await downloadBuiltinKeycloakTheme({
|
await downloadBuiltinKeycloakTheme({
|
||||||
"projectDirPath": process.cwd(),
|
"projectDirPath": process.cwd(),
|
||||||
keycloakVersion,
|
keycloakVersion,
|
||||||
destDirPath,
|
destDirPath
|
||||||
"isSilent": buildOptions.isSilent
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,8 +38,7 @@ export async function main() {
|
|||||||
await downloadBuiltinKeycloakTheme({
|
await downloadBuiltinKeycloakTheme({
|
||||||
projectDirPath,
|
projectDirPath,
|
||||||
keycloakVersion,
|
keycloakVersion,
|
||||||
"destDirPath": builtinKeycloakThemeTmpDirPath,
|
"destDirPath": builtinKeycloakThemeTmpDirPath
|
||||||
isSilent
|
|
||||||
});
|
});
|
||||||
|
|
||||||
transformCodebase({
|
transformCodebase({
|
||||||
|
@ -16,11 +16,10 @@ export async function downloadKeycloakStaticResources(
|
|||||||
projectDirPath: string;
|
projectDirPath: string;
|
||||||
themeType: ThemeType;
|
themeType: ThemeType;
|
||||||
themeDirPath: string;
|
themeDirPath: string;
|
||||||
isSilent: boolean;
|
|
||||||
keycloakVersion: string;
|
keycloakVersion: string;
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
const { projectDirPath, themeType, isSilent, themeDirPath, keycloakVersion } = params;
|
const { projectDirPath, themeType, themeDirPath, keycloakVersion } = params;
|
||||||
|
|
||||||
const tmpDirPath = pathJoin(
|
const tmpDirPath = pathJoin(
|
||||||
themeDirPath,
|
themeDirPath,
|
||||||
@ -31,8 +30,7 @@ export async function downloadKeycloakStaticResources(
|
|||||||
await downloadBuiltinKeycloakTheme({
|
await downloadBuiltinKeycloakTheme({
|
||||||
projectDirPath,
|
projectDirPath,
|
||||||
keycloakVersion,
|
keycloakVersion,
|
||||||
"destDirPath": tmpDirPath,
|
"destDirPath": tmpDirPath
|
||||||
isSilent
|
|
||||||
});
|
});
|
||||||
|
|
||||||
transformCodebase({
|
transformCodebase({
|
||||||
|
@ -19,7 +19,6 @@ export namespace BuildOptionsLike {
|
|||||||
export type Common = {
|
export type Common = {
|
||||||
themeName: string;
|
themeName: string;
|
||||||
extraThemeProperties: string[] | undefined;
|
extraThemeProperties: string[] | undefined;
|
||||||
isSilent: boolean;
|
|
||||||
themeVersion: string;
|
themeVersion: string;
|
||||||
keycloakVersionDefaultAssets: string;
|
keycloakVersionDefaultAssets: string;
|
||||||
};
|
};
|
||||||
@ -207,7 +206,6 @@ export async function generateTheme(params: {
|
|||||||
|
|
||||||
await downloadKeycloakStaticResources({
|
await downloadKeycloakStaticResources({
|
||||||
projectDirPath,
|
projectDirPath,
|
||||||
"isSilent": buildOptions.isSilent,
|
|
||||||
"keycloakVersion": buildOptions.keycloakVersionDefaultAssets,
|
"keycloakVersion": buildOptions.keycloakVersionDefaultAssets,
|
||||||
"themeDirPath": keycloakDirInPublicDir,
|
"themeDirPath": keycloakDirInPublicDir,
|
||||||
themeType
|
themeType
|
||||||
@ -233,7 +231,6 @@ export async function generateTheme(params: {
|
|||||||
|
|
||||||
await downloadKeycloakStaticResources({
|
await downloadKeycloakStaticResources({
|
||||||
projectDirPath,
|
projectDirPath,
|
||||||
"isSilent": buildOptions.isSilent,
|
|
||||||
"keycloakVersion": buildOptions.keycloakVersionDefaultAssets,
|
"keycloakVersion": buildOptions.keycloakVersionDefaultAssets,
|
||||||
themeDirPath,
|
themeDirPath,
|
||||||
themeType
|
themeType
|
||||||
|
Loading…
x
Reference in New Issue
Block a user