Sprint 8: add widget manifest and data source engine
This commit is contained in:
@@ -221,7 +221,7 @@
|
||||
"key": "home",
|
||||
"title": "Home",
|
||||
"route": {
|
||||
"path": "/platform",
|
||||
"path": "/",
|
||||
"exact": true
|
||||
},
|
||||
"layout": "default-public",
|
||||
@@ -232,6 +232,17 @@
|
||||
"id": "section-hero",
|
||||
"type": "hero",
|
||||
"order": 1,
|
||||
"layout": {
|
||||
"strategy": "hero",
|
||||
"columns": 1,
|
||||
"gap": "1.5rem",
|
||||
"align": "stretch"
|
||||
},
|
||||
"visibility": {
|
||||
"desktop": true,
|
||||
"tablet": true,
|
||||
"mobile": true
|
||||
},
|
||||
"visible": true,
|
||||
"widgets": [
|
||||
{
|
||||
@@ -246,6 +257,67 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "section-categories",
|
||||
"type": "categories",
|
||||
"order": 2,
|
||||
"layout": {
|
||||
"strategy": "grid",
|
||||
"columns": 1,
|
||||
"gap": "1.5rem",
|
||||
"align": "stretch"
|
||||
},
|
||||
"visibility": {
|
||||
"desktop": true,
|
||||
"tablet": true,
|
||||
"mobile": true
|
||||
},
|
||||
"visible": true,
|
||||
"widgets": [
|
||||
{
|
||||
"id": "widget-categories-root",
|
||||
"type": "categories",
|
||||
"version": "1.0.0",
|
||||
"visible": true,
|
||||
"props": {
|
||||
"title": "Categories",
|
||||
"source": "root",
|
||||
"emptyMessage": "No categories available"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "section-featured-products",
|
||||
"type": "product-collection",
|
||||
"order": 3,
|
||||
"layout": {
|
||||
"strategy": "carousel",
|
||||
"columns": 1,
|
||||
"gap": "1rem",
|
||||
"align": "stretch"
|
||||
},
|
||||
"visibility": {
|
||||
"desktop": true,
|
||||
"tablet": true,
|
||||
"mobile": true
|
||||
},
|
||||
"visible": true,
|
||||
"widgets": [
|
||||
{
|
||||
"id": "widget-featured-products",
|
||||
"type": "product-collection",
|
||||
"version": "1.0.0",
|
||||
"visible": true,
|
||||
"props": {
|
||||
"title": "Featured Products",
|
||||
"source": "featured",
|
||||
"count": 8,
|
||||
"actionLabel": "Select"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user