@keycloakify/svelte 0.1.1 → 0.1.2
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.
|
@@ -631,13 +631,14 @@ async function command(params) {
|
|
|
631
631
|
console.log(chalk__WEBPACK_IMPORTED_MODULE_0___default().cyan('Select the page you want to customize:'));
|
|
632
632
|
const templateValue = 'Template.svelte (Layout common to every page)';
|
|
633
633
|
const userProfileFormFieldsValue = 'UserProfileFormFields.svelte (Renders the form of the register.ftl, login-update-profile.ftl, update-email.ftl and idp-review-user-profile.ftl)';
|
|
634
|
+
const otherPageValue = "The page you're looking for isn't listed here";
|
|
634
635
|
const { value: pageIdOrComponent } = await cli_select__WEBPACK_IMPORTED_MODULE_1___default()({
|
|
635
636
|
values: (() => {
|
|
636
637
|
switch (themeType) {
|
|
637
638
|
case 'login':
|
|
638
|
-
return [templateValue, userProfileFormFieldsValue, ..._core__WEBPACK_IMPORTED_MODULE_5__/* .LOGIN_THEME_PAGE_IDS */ .hz];
|
|
639
|
+
return [templateValue, userProfileFormFieldsValue, ..._core__WEBPACK_IMPORTED_MODULE_5__/* .LOGIN_THEME_PAGE_IDS */ .hz, otherPageValue];
|
|
639
640
|
case 'account':
|
|
640
|
-
return [templateValue, ..._core__WEBPACK_IMPORTED_MODULE_5__/* .ACCOUNT_THEME_PAGE_IDS */ .Hp];
|
|
641
|
+
return [templateValue, ..._core__WEBPACK_IMPORTED_MODULE_5__/* .ACCOUNT_THEME_PAGE_IDS */ .Hp, otherPageValue];
|
|
641
642
|
case 'admin':
|
|
642
643
|
return [];
|
|
643
644
|
}
|
|
@@ -646,6 +647,13 @@ async function command(params) {
|
|
|
646
647
|
}).catch(() => {
|
|
647
648
|
process.exit(-1);
|
|
648
649
|
});
|
|
650
|
+
if (pageIdOrComponent === otherPageValue) {
|
|
651
|
+
console.log([
|
|
652
|
+
'To style a page not included in the base Keycloak, such as one added by a third-party Keycloak extension,',
|
|
653
|
+
'refer to the documentation: https://docs.keycloakify.dev/features/styling-a-custom-page-not-included-in-base-keycloak',
|
|
654
|
+
].join(' '));
|
|
655
|
+
process.exit(0);
|
|
656
|
+
}
|
|
649
657
|
console.log(`→ ${pageIdOrComponent}`);
|
|
650
658
|
const componentBasename = (() => {
|
|
651
659
|
if (pageIdOrComponent === templateValue) {
|