@keycloakify/angular 0.0.1-rc.22 → 0.0.1-rc.23
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/bin/925.index.js +2 -1
- package/package.json +1 -1
- package/src/bin/eject-page.ts +2 -1
package/bin/925.index.js
CHANGED
|
@@ -268,6 +268,7 @@ function replaceAll(string, searchValue, replaceValue) {
|
|
|
268
268
|
|
|
269
269
|
|
|
270
270
|
|
|
271
|
+
|
|
271
272
|
async function command(params) {
|
|
272
273
|
const { buildContext } = params;
|
|
273
274
|
console.log(source/* default */.Ay.cyan('Theme type:'));
|
|
@@ -403,7 +404,7 @@ async function command(params) {
|
|
|
403
404
|
` switch (pageId) {`,
|
|
404
405
|
`+ case '${pageId}':`,
|
|
405
406
|
`+ return {`,
|
|
406
|
-
`+ PageComponent: (await import('./${componentDirRelativeToThemeTypePath.split(external_path_.sep).join('/')}')).${kebabCaseToCamelCase(pageId.replace(/\.ftl$/, ''))}Component,`,
|
|
407
|
+
`+ PageComponent: (await import('./${componentDirRelativeToThemeTypePath.split(external_path_.sep).join('/')}')).${kebabCaseToCamelCase(capitalize(pageId).replace(/\.ftl$/, ''))}Component,`,
|
|
407
408
|
`+ TemplateComponent,`,
|
|
408
409
|
...(themeType === 'login' ? [`+ doMakeUserConfirmPassword,`] : []),
|
|
409
410
|
`+ doUseDefaultCss,`,
|
package/package.json
CHANGED
package/src/bin/eject-page.ts
CHANGED
|
@@ -23,6 +23,7 @@ import chalk from 'chalk';
|
|
|
23
23
|
import { transformCodebase } from './tools/transformCodebase';
|
|
24
24
|
import { kebabCaseToCamelCase } from './tools/kebabCaseToSnakeCase';
|
|
25
25
|
import { replaceAll } from './tools/String.prototype.replaceAll';
|
|
26
|
+
import { capitalize } from 'tsafe/capitalize';
|
|
26
27
|
|
|
27
28
|
export async function command(params: { buildContext: BuildContext }) {
|
|
28
29
|
const { buildContext } = params;
|
|
@@ -278,7 +279,7 @@ export async function command(params: { buildContext: BuildContext }) {
|
|
|
278
279
|
` switch (pageId) {`,
|
|
279
280
|
`+ case '${pageId}':`,
|
|
280
281
|
`+ return {`,
|
|
281
|
-
`+ PageComponent: (await import('./${componentDirRelativeToThemeTypePath.split(pathSep).join('/')}')).${kebabCaseToCamelCase(pageId.replace(/\.ftl$/, ''))}Component,`,
|
|
282
|
+
`+ PageComponent: (await import('./${componentDirRelativeToThemeTypePath.split(pathSep).join('/')}')).${kebabCaseToCamelCase(capitalize(pageId).replace(/\.ftl$/, ''))}Component,`,
|
|
282
283
|
`+ TemplateComponent,`,
|
|
283
284
|
...(themeType === 'login' ? [`+ doMakeUserConfirmPassword,`] : []),
|
|
284
285
|
`+ doUseDefaultCss,`,
|