Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UE] 1217 Updated for carousel for UE #1218

Merged
merged 2 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions component-definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,36 @@
}
}
},
{
"title": "Carousel",
"id": "carousel",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/block/v1/block",
"template": {
"name": "Carousel",
"filter": "carousel"
}
}
}
}
},
{
"title": "Carousel Item",
"id": "carousel-item",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/block/v1/block/item",
"template": {
"name": "Carousel Item",
"model": "carousel-item"
}
}
}
}
},
{
"title": "Recent Articles",
"id": "recent-articles",
Expand Down
12 changes: 10 additions & 2 deletions component-filters.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,20 @@
"takeway",
"call-to-action",
"accordion",
"recent-articles"
"recent-articles",
"carousel"
]
},
{
"id": "accordion",
"components": [
"accordion-item"
]
}]
},
{
"id": "carousel",
"components": [
"carousel-item"
]
}
]
94 changes: 94 additions & 0 deletions component-models.json
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,100 @@
}
]
},
{
"id": "carousel-item",
"fields": [
{
"component": "text",
"valueType": "string",
"name": "content_brand",
"value": "",
"label": "Brand"
},
{
"component": "text",
"valueType": "string",
"name": "content_title",
"value": "",
"label": "Title"
},
{
"component": "select",
"name": "content_titleType",
"value": "h1",
"label": "Type",
"valueType": "string",
"options": [
{
"name": "h1",
"value": "h1"
},
{
"name": "h2",
"value": "h2"
},
{
"name": "h3",
"value": "h3"
},
{
"name": "h4",
"value": "h4"
},
{
"name": "h5",
"value": "h5"
},
{
"name": "h6",
"value": "h6"
}
]
},
{
"component": "richtext",
"valueType": "string",
"name": "content_description",
"value": "",
"label": "Description"
},
{
"component": "aem-content",
"valueType": "string",
"name": "content_button1",
"value": "",
"label": "Button Link"
},
{
"component": "text",
"valueType": "string",
"name": "content_button1Text",
"value": "",
"label": "Button Text"
},
{
"component": "aem-content",
"valueType": "string",
"name": "content_button2",
"value": "",
"label": "Button Link"
},
{
"component": "text",
"valueType": "string",
"name": "content_button2Text",
"value": "",
"label": "Button Text"
},
{
"component": "reference",
"valueType": "string",
"name": "fileReference",
"label": "Image",
"multi": false
}
]
},
{
"id": "recent-articles",
"fields": []
Expand Down
1 change: 1 addition & 0 deletions tools/actions/convert/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ function skipConverter(path) {
// TODO: remove the logic for test pages (with -jck1 in the path)
if (!path) return false;
if (path.includes('-jck1')) return true;
if (path.includes('/en-new')) return true;
// skip the converter for pages like **/products/*/topics/**
const regex = /\/[^/]+\/[^/]+\/products\/[^/]+\/topics-jck1\/[^/]+/;
return regex.test(path);
Expand Down
Loading