-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CIF-1502 - XF based page header with authoring support (#176)
* CIF-1502 - XF based page header with authoring support * enabled v2 for header components * added experimental logo component * updated header XF for the Venia header * added XF based header to page templates and template types * enabled header components in Venia XF editor * CIF-1502 - XF based page header with authoring support * snapshot dependency for CIF components * CIF-1502 - XF based page header with authoring support * fixing ITs * CIF-1502 - XF based page header with authoring support * smaller fixes * CIF-1502 - XF based page header with authoring support * smaller fixes
- Loading branch information
Showing
40 changed files
with
239 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"product-ed0cbc4aea": { | ||
"product-5e145aefa3": { | ||
"xdm:listPrice": 14.0, | ||
"xdm:categories": [ | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"product-500741b9f1": { | ||
"product-9b9fa3d1aa": { | ||
"xdm:listPrice": 52.0, | ||
"xdm:categories": [ | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
ui.apps/src/main/content/jcr_root/apps/venia/components/commerce/accountdetails/.content.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<?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" | ||
jcr:primaryType="cq:Component" | ||
sling:resourceSuperType="core/cif/components/commerce/accountdetails/v1/accountdetails" | ||
componentGroup="Venia - Commerce" | ||
jcr:title="Account Details"> | ||
</jcr:root> | ||
xmlns:cq="http://www.day.com/jcr/cq/1.0" | ||
xmlns:jcr="http://www.jcp.org/jcr/1.0" | ||
jcr:primaryType="cq:Component" | ||
sling:resourceSuperType="core/cif/components/commerce/accountdetails/v2/accountdetails" | ||
componentGroup="Venia - Commerce" | ||
jcr:title="Account Details"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
ui.apps/src/main/content/jcr_root/apps/venia/components/commerce/logo/.content.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" | ||
xmlns:jcr="http://www.jcp.org/jcr/1.0" | ||
jcr:description="Logo Component" | ||
jcr:primaryType="cq:Component" | ||
jcr:title="Logo" | ||
componentGroup="Venia - Header"/> |
23 changes: 23 additions & 0 deletions
23
...pps/src/main/content/jcr_root/apps/venia/components/commerce/logo/_cq_dialog/.content.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?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="nt:unstructured" | ||
jcr:title="Logo" | ||
sling:resourceType="cq/gui/components/authoring/dialog" | ||
trackingFeature="venia:logo"> | ||
<content | ||
jcr:primaryType="nt:unstructured" | ||
sling:resourceType="granite/ui/components/coral/foundation/container"> | ||
<items jcr:primaryType="nt:unstructured"> | ||
<column jcr:primaryType="nt:unstructured" | ||
sling:resourceType="granite/ui/components/coral/foundation/container"> | ||
<items jcr:primaryType="nt:unstructured"> | ||
<id jcr:primaryType="nt:unstructured" | ||
sling:resourceType="granite/ui/components/coral/foundation/form/textfield" | ||
fieldDescription="HTML ID attribute to apply to the component." | ||
fieldLabel="ID" | ||
name="./id"/> | ||
</items> | ||
</column> | ||
</items> | ||
</content> | ||
</jcr:root> |
30 changes: 30 additions & 0 deletions
30
ui.apps/src/main/content/jcr_root/apps/venia/components/commerce/logo/logo.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!--/* | ||
Copyright 2021 Adobe Systems Incorporated | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/--> | ||
<sly data-sly-use.component="com.adobe.cq.wcm.core.components.models.Component" | ||
data-sly-use.header="com.adobe.cq.commerce.core.components.models.header.Header" | ||
data-sly-use.templates="core/wcm/components/commons/v1/templates.html" | ||
data-sly-set.logoName="logo.svg"/> | ||
<a id="${component.id}" class="logo__link" href="${header.navigationRootPageUrl}"> | ||
<img data-sly-set.testPath="${logoName}/jcr:primaryType" | ||
data-sly-test.hasImage="${resource[testPath]}" | ||
class="logo__image" | ||
src="${resource.path}/${logoName}" | ||
height="24" | ||
alt="${header.navigationRootPageTitle}" | ||
title="${header.navigationRootPageTitle}" /> | ||
<sly data-sly-test="${!hasImage}">${header.navigationRootPageTitle}</sly> | ||
</a> | ||
<sly data-sly-call="${templates.placeholder @ isEmpty = !hasImage && !header.navigationRootPageTitle}"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
ui.apps/src/main/content/jcr_root/apps/venia/components/commerce/resetpassword/.content.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<?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" | ||
jcr:title="Reset Password Form" | ||
sling:resourceSuperType="core/cif/components/commerce/resetpassword/v1/resetpassword" | ||
jcr:primaryType="cq:Component" /> | ||
jcr:title="Reset Password" | ||
sling:resourceSuperType="core/cif/components/commerce/resetpassword/v2/resetpassword" | ||
jcr:primaryType="cq:Component" | ||
componentGroup="Venia - Commerce"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.