Skip to content

Commit

Permalink
refactor: empty component-files
Browse files Browse the repository at this point in the history
  • Loading branch information
bpauli committed May 28, 2024
1 parent 15270fd commit 4e73edc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 370 deletions.
143 changes: 1 addition & 142 deletions test/fixtures/import/component-definition.json
Original file line number Diff line number Diff line change
@@ -1,142 +1 @@
{
"groups": [
{
"title": "Default Content",
"id": "default",
"components": [
{
"title": "Text",
"id": "text",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/text/v1/text",
"template": {}
}
}
}
},
{
"title": "Title",
"id": "title",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/title/v1/title",
"template": {}
}
}
}
},
{
"title": "Image",
"id": "image",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/image/v1/image",
"template": {}
}
}
}
},
{
"title": "Button",
"id": "button",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/button/v1/button",
"template": {}
}
}
}
}
]
},
{
"title": "Sections",
"id": "sections",
"components": [
{
"title": "Section",
"id": "section",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/section/v1/section",
"template": {}
}
}
}
}
]
},
{
"title": "Blocks",
"id": "blocks",
"components": [
{
"title": "Columns",
"id": "columns",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/columns/v1/columns",
"template": {
"columns": "2",
"rows": "1"
}
}
}
}
},
{
"title": "Hero",
"id": "hero",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/block/v1/block",
"template": {
"name": "Hero",
"model": "hero"
}
}
}
}
},
{
"title": "Cards",
"id": "cards",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/block/v1/block",
"template": {
"name": "Cards",
"filter": "cards"
}
}
}
}
},
{
"title": "Card",
"id": "card",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/block/v1/block/item",
"template": {
"name": "Card",
"model": "card"
}
}
}
}
}
]
}
]
}
{}
40 changes: 1 addition & 39 deletions test/fixtures/import/component-filters.json
Original file line number Diff line number Diff line change
@@ -1,39 +1 @@
[
{
"id": "main",
"components": [
"section"
]
},
{
"id": "columns",
"components": []
},
{
"id": "column",
"components": [
"text",
"image",
"button",
"title"
]
},
{
"id": "section",
"components": [
"text",
"image",
"button",
"title",
"hero",
"cards",
"columns"
]
},
{
"id": "cards",
"components": [
"card"
]
}
]
{}
190 changes: 1 addition & 189 deletions test/fixtures/import/component-models.json
Original file line number Diff line number Diff line change
@@ -1,189 +1 @@
[
{
"id": "title",
"fields": [
{
"component": "text",
"valueType": "string",
"name": "jcr:title",
"value": "",
"label": "Text"
},
{
"component": "select",
"name": "type",
"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"
}
]
}
]
},
{
"id": "image",
"fields": [
{
"component": "reference",
"valueType": "string",
"name": "fileReference",
"label": "Image",
"multi": false
},
{
"component": "text",
"valueType": "string",
"name": "alt",
"value": "Default alt",
"label": "Alt Text"
}
]
},
{
"id": "button",
"fields": [
{
"component": "text",
"valueType": "string",
"name": "href",
"value": "",
"label": "Link"
},
{
"component": "text",
"valueType": "string",
"name": "text",
"value": "",
"label": "Text"
},
{
"component": "text",
"valueType": "string",
"name": "title",
"value": "",
"label": "Title"
},
{
"component": "select",
"name": "type",
"value": "",
"label": "Type",
"valueType": "string",
"options": [
{
"name": "default",
"value": ""
},
{
"name": "primary",
"value": "primary"
},
{
"name": "secondary",
"value": "secondary"
}
]
}
]
},
{
"id": "columns",
"fields": [
{
"component": "text",
"valueType": "number",
"name": "columns",
"value": "",
"label": "Columns"
},
{
"component": "text",
"valueType": "number",
"name": "rows",
"value": "",
"label": "Rows"
}
]
},
{
"id": "card",
"fields": [
{
"component": "reference",
"valueType": "string",
"name": "image",
"label": "Image",
"multi": false
},
{
"component": "richtext",
"name": "text",
"value": "",
"label": "Text",
"valueType": "string"
}
]
},
{
"id": "section",
"fields": [
{
"component": "text",
"name": "style",
"value": "",
"label": "Style",
"valueType": "string"
}
]
},
{
"id": "hero",
"fields": [
{
"component": "reference",
"valueType": "string",
"name": "image",
"label": "Image",
"multi": false
},
{
"component": "text",
"valueType": "string",
"name": "imageAlt",
"label": "Alt",
"value": ""
},
{
"component": "richtext",
"name": "text",
"value": "",
"label": "Text",
"valueType": "string"
}
]
}
]
{}

0 comments on commit 4e73edc

Please sign in to comment.