Skip to content

Commit

Permalink
chore: update models
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaack committed Aug 30, 2024
1 parent 049b730 commit ea44c74
Show file tree
Hide file tree
Showing 4 changed files with 199 additions and 26 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/semantic-release.yaml

This file was deleted.

49 changes: 48 additions & 1 deletion component-definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@
"resourceType": "core/franklin/components/block/v1/block",
"template": {
"name": "Hero",
"model": "hero"
"model": "hero",
"titleType": "h1"
}
}
}
Expand Down Expand Up @@ -192,6 +193,52 @@
}
}
}
},
{
"title": "Featured Articles",
"id": "featured-articles",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/block/v1/block",
"template": {
"name": "Featured Articles",
"model": "featured-articles"
}
}
}
}
},
{
"title": "Featured Article",
"id": "featured-article",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/block/v1/block/item",
"template": {
"name": "Featured Article",
"model": "featured-article"
}
}
}
}
},
{
"title": "Resource Center",
"id": "resource-center",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/block/v1/block",
"template": {
"name": "Resource Center",
"model": "resource-center",
"key-value": true
}
}
}
}
}
]
}
Expand Down
6 changes: 6 additions & 0 deletions component-filters.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,11 @@
"components": [
"fast-fact"
]
},
{
"id": "featured-articles",
"components": [
"featured-article"
]
}
]
147 changes: 145 additions & 2 deletions component-models.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,81 @@
[
{
"id": "page-metadata",
"fields": [
{
"component": "container",
"label": "Fieldset",
"fields": [
{
"component": "text",
"valueType": "string",
"name": "jcr:title",
"label": "Title"
},
{
"component": "text",
"valueType": "string",
"name": "jcr:description",
"label": "Description"
},
{
"component": "text",
"valueType": "string",
"name": "cq:canonicalUrl",
"label": "Canonical"
},
{
"component": "text",
"valueType": "string",
"name": "keywords",
"multi": true,
"label": "Keywords"
},
{
"component": "text",
"valueType": "string",
"name": "Tags",
"multi": true,
"label": "Tags"
},
{
"component": "text",
"valueType": "string",
"name": "Author",
"label": "Author"
},
{
"component": "date-time",
"valueType": "date-time",
"name": "Published Time",
"label": "Published Time"
},
{
"component": "date-time",
"valueType": "date-time",
"name": "Modified Time",
"label": "Modified Time"
},
{
"component": "select",
"label": "Table of Contents",
"name": "toc",
"valueType": "string",
"options": [
{ "name": "Enabled", "value": "yes" },
{ "name": "Disabled", "value": "" }
]
}
]
}
]
},
{
"id": "image",
"fields": [
{
"component": "reference",
"name": "image",
"name": "fileReference",
"label": "Image",
"multi": false
},
Expand Down Expand Up @@ -108,6 +179,25 @@
"value": "additional reading"
}
]
},
{
"component": "select",
"name": "location",
"label": "Location",
"options": [
{
"name": "main",
"value": "main"
},
{
"name": "sidebar",
"value": "sidebar"
},
{
"name": "document-footer",
"value": "document-footer"
}
]
}
]
},
Expand Down Expand Up @@ -176,6 +266,20 @@
"label": "Alt",
"value": ""
},
{
"component": "text",
"valueType": "string",
"name": "title",
"label": "Title",
"value": ""
},
{
"component": "text",
"valueType": "string",
"name": "titleType",
"value": "h1",
"hidden": true
},
{
"component": "richtext",
"name": "text",
Expand Down Expand Up @@ -223,7 +327,7 @@
"label": "Text"
},
{
"component": "aem-content",
"component": "text",
"valueType": "string",
"name": "promo_link",
"label": "Promo Link"
Expand Down Expand Up @@ -302,5 +406,44 @@
"valueType": "string"
}
]
},
{
"id": "featured-article",
"fields": [
{
"component": "aem-content",
"name": "link",
"value": ""
}
]
},
{
"id": "resource-center",
"fields": [
{
"component": "string",
"valueType": "string",
"name": "Tags",
"label": "Tags"
},
{
"component": "text",
"valueType": "string",
"name": "Content Type",
"label": "Content Type"
},
{
"component": "text",
"valueType": "string",
"name": "Limit",
"label": "Limit"
},
{
"component": "text",
"valueType": "string",
"name": "Info",
"label": "Info"
}
]
}
]

0 comments on commit ea44c74

Please sign in to comment.