diff --git a/ui.apps/src/main/content/jcr_root/apps/venia/components/commerce/resetpassword/.content.xml b/ui.apps/src/main/content/jcr_root/apps/venia/components/commerce/resetpassword/.content.xml new file mode 100644 index 00000000..34246be4 --- /dev/null +++ b/ui.apps/src/main/content/jcr_root/apps/venia/components/commerce/resetpassword/.content.xml @@ -0,0 +1,5 @@ + + \ No newline at end of file diff --git a/ui.content/src/main/content/jcr_root/content/venia/language-masters/en/reset-password/.content.xml b/ui.content/src/main/content/jcr_root/content/venia/language-masters/en/reset-password/.content.xml new file mode 100755 index 00000000..5fcc2ba6 --- /dev/null +++ b/ui.content/src/main/content/jcr_root/content/venia/language-masters/en/reset-password/.content.xml @@ -0,0 +1,44 @@ + + + + + + + <container + jcr:primaryType="nt:unstructured" + sling:resourceType="venia/components/container" + layout="responsiveGrid"> + <title + jcr:created="{Date}2020-09-17T15:59:06.020+02:00" + jcr:createdBy="admin" + jcr:lastModified="{Date}2020-09-17T16:00:05.129+02:00" + jcr:lastModifiedBy="admin" + jcr:primaryType="nt:unstructured" + sling:resourceType="venia/components/title"/> + <resetpassword + jcr:created="{Date}2020-09-22T16:06:43.023+02:00" + jcr:createdBy="admin" + jcr:lastModified="{Date}2020-09-22T16:06:43.023+02:00" + jcr:lastModifiedBy="admin" + jcr:primaryType="nt:unstructured" + sling:resourceType="venia/components/commerce/resetpassword"/> + </container> + </container> + </root> + </jcr:content> +</jcr:root> diff --git a/ui.content/src/main/content/jcr_root/content/venia/us/en/reset-password/.content.xml b/ui.content/src/main/content/jcr_root/content/venia/us/en/reset-password/.content.xml new file mode 100755 index 00000000..a752f6ea --- /dev/null +++ b/ui.content/src/main/content/jcr_root/content/venia/us/en/reset-password/.content.xml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="UTF-8"?> +<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" + jcr:primaryType="cq:Page"> + <jcr:content + cq:lastModified="{Date}2020-09-17T16:03:08.083+02:00" + cq:lastModifiedBy="admin" + cq:lastRolledout="{Date}2020-09-17T16:03:08.085+02:00" + cq:lastRolledoutBy="admin" + cq:template="/conf/venia/settings/wcm/templates/page-content" + jcr:mixinTypes="[cq:LiveRelationship]" + jcr:primaryType="cq:PageContent" + jcr:title="Venia Demo Store - Reset Password" + sling:resourceType="venia/components/page" + pageTitle="Reset Password" + hideInNav="{Boolean}true"> + <root + cq:lastRolledout="{Date}2020-09-17T16:03:08.051+02:00" + cq:lastRolledoutBy="admin" + jcr:mixinTypes="[cq:LiveRelationship]" + jcr:primaryType="nt:unstructured" + sling:resourceType="venia/components/container"> + <container + cq:lastRolledout="{Date}2020-09-17T16:03:08.059+02:00" + cq:lastRolledoutBy="admin" + jcr:mixinTypes="[cq:LiveRelationship]" + jcr:primaryType="nt:unstructured" + sling:resourceType="venia/components/container"> + <title + cq:lastRolledout="{Date}2020-09-17T16:03:08.064+02:00" + cq:lastRolledoutBy="admin" + jcr:mixinTypes="[cq:LiveRelationship]" + jcr:primaryType="nt:unstructured" + sling:resourceType="venia/components/title"/> + <container + cq:lastRolledout="{Date}2020-09-17T16:03:08.073+02:00" + cq:lastRolledoutBy="admin" + jcr:mixinTypes="[cq:LiveRelationship]" + jcr:primaryType="nt:unstructured" + sling:resourceType="venia/components/container" + layout="responsiveGrid"> + <title + cq:lastRolledout="{Date}2020-09-17T16:03:08.079+02:00" + cq:lastRolledoutBy="admin" + jcr:created="{Date}2020-09-17T15:59:06.020+02:00" + jcr:createdBy="admin" + jcr:lastModified="{Date}2020-09-17T16:03:08.075+02:00" + jcr:lastModifiedBy="admin" + jcr:mixinTypes="[cq:LiveRelationship]" + jcr:primaryType="nt:unstructured" + sling:resourceType="venia/components/title"/> + <resetpassword + cq:lastRolledout="{Date}2020-09-22T16:07:54.874+02:00" + cq:lastRolledoutBy="admin" + jcr:created="{Date}2020-09-22T16:06:43.023+02:00" + jcr:createdBy="admin" + jcr:lastModified="{Date}2020-09-22T16:06:43.023+02:00" + jcr:lastModifiedBy="admin" + jcr:mixinTypes="[cq:LiveRelationship]" + jcr:primaryType="nt:unstructured" + sling:resourceType="venia/components/commerce/resetpassword"/> + </container> + </container> + </root> + </jcr:content> +</jcr:root> diff --git a/ui.frontend/src/main/components/App/App.js b/ui.frontend/src/main/components/App/App.js index 8f71d49c..f0f7def8 100644 --- a/ui.frontend/src/main/components/App/App.js +++ b/ui.frontend/src/main/components/App/App.js @@ -24,7 +24,8 @@ import { AuthBar, AccountContainer, AddressBook, - BundleProductOptions + BundleProductOptions, + ResetPassword } from '@adobe/aem-core-cif-react-components'; import i18n from './i18n'; @@ -62,6 +63,11 @@ const App = () => { <AddressBook /> </Portal> </Route> + <Route path={pagePaths.resetPassword}> + <Portal selector={mountingPoints.resetPasswordPage}> + <ResetPassword /> + </Portal> + </Route> <Portal selector={mountingPoints.bundleProductOptionsContainer}> <BundleProductOptions /> </Portal> diff --git a/ui.frontend/src/main/components/App/config.js b/ui.frontend/src/main/components/App/config.js index ca6eacbc..0963dec0 100644 --- a/ui.frontend/src/main/components/App/config.js +++ b/ui.frontend/src/main/components/App/config.js @@ -19,9 +19,11 @@ export default { cartTrigger: '.header__cartTrigger', navPanel: 'aside.navigation__root', bundleProductOptionsContainer: '#bundle-product-options', - minicart: '#minicart' + minicart: '#minicart', + resetPasswordPage: '#reset-password-page' }, pagePaths: { - addressBook: '/content/venia/us/en/my-account/address-book.html' + addressBook: '/content/venia/us/en/my-account/address-book.html', + resetPassword: '/content/venia/us/en/reset-password.html' } };