1
0

Update content through Mattrbld

This commit is contained in:
mx 2025-03-19 13:04:40 +01:00
parent 2903e067cc
commit 711ccf3014
4 changed files with 550 additions and 7 deletions
.mattrbld
src/data

@ -5,7 +5,8 @@
"disablePreview": false,
"draftByDefault": false,
"schemas": [
"/.mattrbld/schemas/site-meta.json"
"/.mattrbld/schemas/site-meta.json",
"/.mattrbld/schemas/cv.json"
],
"linkable": false,
"maxSize": null,

@ -90,6 +90,18 @@
{
"separator": true
},
{
"separator": true,
"target": {
"name": "Edit Content",
"params": {
"collection": "Site-Meta.json",
"path": "/src/data/cv.json"
}
},
"label": "CV",
"icon": "content-zone"
},
{
"separator": true,
"target": {

509
.mattrbld/schemas/cv.json Normal file

@ -0,0 +1,509 @@
{
"fields": [
{
"type": "text",
"default": null,
"icon": "text-input",
"key": "name",
"label": "Name",
"localised": false,
"options": {
"wrapping": true,
"multiline": false
},
"tab": "Header",
"validation": {
"enforceMinMax": true,
"max": null,
"min": null,
"regex": null,
"regexError": null,
"required": false,
"unit": "length"
},
"value": null,
"version": 1,
"visibility": {
"hidden": false,
"showByValue": {
"field": null
}
}
},
{
"type": "text",
"default": null,
"icon": "text-input",
"key": "summary",
"label": "Summary",
"localised": true,
"options": {
"wrapping": true,
"multiline": false
},
"tab": "Header",
"validation": {
"enforceMinMax": true,
"max": null,
"min": null,
"regex": null,
"regexError": null,
"required": false,
"unit": "length"
},
"value": null,
"version": 1,
"visibility": {
"hidden": false,
"showByValue": {
"field": null
}
}
},
{
"type": "rich text",
"default": null,
"icon": "text",
"key": "email",
"label": "Email",
"localised": false,
"options": {
"outputFormat": "html",
"blockFormats": [
"blockquote",
"heading",
"hr",
"orderedList",
"unorderedList",
"image"
],
"inlineFormats": [
"em",
"strong",
"link"
],
"formatOptions": [
"allowQuoteFooters",
"allowNestedLists",
"allowImageCaptions"
],
"inputRuleOptions": [
"autoquotes",
"dashes",
"ellipsis",
"noDoubleCaps",
"noDoubleSpace"
],
"minHeading": 2,
"maxHeading": 4,
"codeLangs": [
"html",
"css",
"javascript",
"markdown"
],
"allowRaw": false,
"urlTemplate": "",
"urlSuffix": "",
"linkOptions": [
"forceBlankTarget",
"allowExternal",
"allowInternal"
]
},
"tab": "Header",
"validation": {
"enforceMinMax": true,
"max": null,
"min": null,
"regex": null,
"regexError": null,
"required": false,
"unit": "length"
},
"value": null,
"version": 1,
"visibility": {
"hidden": false,
"showByValue": {
"field": null
}
}
},
{
"type": "text",
"default": null,
"icon": "text-input",
"key": "location",
"label": "Location",
"localised": true,
"options": {
"wrapping": true,
"multiline": false
},
"tab": "Header",
"validation": {
"enforceMinMax": true,
"max": null,
"min": null,
"regex": null,
"regexError": null,
"required": false,
"unit": "length"
},
"value": null,
"version": 1,
"visibility": {
"hidden": false,
"showByValue": {
"field": null
}
}
},
{
"type": "rows",
"default": null,
"icon": "rows",
"key": "experience",
"label": "Experience",
"options": {
"compact": true,
"allowEditing": true,
"itemLabel": "Experience"
},
"tab": "Experience",
"validation": {
"max": null,
"min": null,
"unit": "rows"
},
"value": [
{
"type": "group",
"displayField": null,
"icon": "group",
"key": "experience-element",
"label": "Experience-element",
"tab": "Experience",
"value": [
{
"type": "text",
"default": null,
"icon": "text-input",
"key": "title",
"label": "Title",
"localised": true,
"options": {
"wrapping": true,
"multiline": false
},
"tab": "Experience",
"validation": {
"enforceMinMax": true,
"max": null,
"min": null,
"regex": null,
"regexError": null,
"required": false,
"unit": "length"
},
"value": null,
"version": 1,
"visibility": {
"hidden": false,
"showByValue": {
"field": null
}
}
},
{
"type": "text",
"default": null,
"icon": "text-input",
"key": "slug",
"label": "Slug",
"localised": true,
"options": {
"wrapping": true,
"multiline": false
},
"tab": "Experience",
"validation": {
"enforceMinMax": true,
"max": null,
"min": null,
"regex": null,
"regexError": null,
"required": false,
"unit": "length"
},
"value": null,
"version": 1,
"visibility": {
"hidden": false,
"showByValue": {
"field": null
}
}
},
{
"type": "rows",
"default": null,
"icon": "rows",
"key": "items",
"label": "Items",
"options": {
"compact": true,
"allowEditing": true,
"itemLabel": "Row"
},
"tab": "Experience",
"validation": {
"max": null,
"min": null,
"unit": "rows"
},
"value": [
{
"type": "group",
"displayField": null,
"icon": "group",
"key": "item",
"label": "Item",
"tab": "Experience",
"value": [
{
"type": "text",
"default": null,
"icon": "text-input",
"key": "title",
"label": "Title",
"localised": true,
"options": {
"wrapping": true,
"multiline": false
},
"tab": "Experience",
"validation": {
"enforceMinMax": true,
"max": null,
"min": null,
"regex": null,
"regexError": null,
"required": false,
"unit": "length"
},
"value": null,
"version": 1,
"visibility": {
"hidden": false,
"showByValue": {
"field": null
}
}
},
{
"type": "rich text",
"default": null,
"icon": "text",
"key": "summary",
"label": "Summary",
"localised": true,
"options": {
"outputFormat": "html",
"blockFormats": [
"blockquote",
"heading",
"hr",
"orderedList",
"unorderedList",
"image"
],
"inlineFormats": [
"em",
"strong",
"link"
],
"formatOptions": [
"allowQuoteFooters",
"allowNestedLists",
"allowImageCaptions"
],
"inputRuleOptions": [
"autoquotes",
"dashes",
"ellipsis",
"noDoubleCaps",
"noDoubleSpace"
],
"minHeading": 2,
"maxHeading": 4,
"codeLangs": [
"html",
"css",
"javascript",
"markdown"
],
"allowRaw": false,
"urlTemplate": "",
"urlSuffix": "",
"linkOptions": [
"forceBlankTarget",
"allowExternal",
"allowInternal"
]
},
"tab": "Experience",
"validation": {
"enforceMinMax": true,
"max": null,
"min": null,
"regex": null,
"regexError": null,
"required": false,
"unit": "length"
},
"value": null,
"version": 1,
"visibility": {
"hidden": false,
"showByValue": {
"field": null
}
}
},
{
"type": "columns",
"default": null,
"icon": "columns",
"key": "dates",
"label": "Dates",
"options": {
"allowEditing": true,
"itemLabel": "Dates"
},
"tab": "Experience",
"validation": {
"max": 2,
"min": null,
"unit": "columns"
},
"value": [
{
"type": "date",
"default": null,
"icon": "calendar",
"key": "date",
"label": "date",
"options": {
"outputFormat": "iso",
"removable": true,
"showTime": false,
"defaultToNow": false,
"useAsUpdatedAt": false,
"only": null
},
"tab": "Experience",
"validation": {
"max": null,
"min": null,
"required": false,
"unit": "date",
"isString": true
},
"value": null,
"version": 2,
"visibility": {
"hidden": false,
"showByValue": {
"field": null
}
}
}
],
"version": 1,
"visibility": {
"hidden": false,
"showByValue": {
"field": null
}
}
},
{
"type": "text",
"default": null,
"icon": "text-input",
"key": "location",
"label": "Location",
"localised": true,
"options": {
"wrapping": true,
"multiline": false
},
"tab": "Experience",
"validation": {
"enforceMinMax": true,
"max": null,
"min": null,
"regex": null,
"regexError": null,
"required": false,
"unit": "length"
},
"value": null,
"version": 1,
"visibility": {
"hidden": false,
"showByValue": {
"field": null
}
}
}
],
"version": 1,
"visibility": {
"hidden": false,
"showByValue": {
"field": null
}
}
}
],
"version": 1,
"visibility": {
"hidden": false,
"showByValue": {
"field": null
}
}
}
],
"version": 1,
"visibility": {
"hidden": false,
"showByValue": {
"field": null
}
}
}
],
"version": 1,
"visibility": {
"hidden": false,
"showByValue": {
"field": null
}
}
}
],
"tabs": [
{
"label": "Header",
"groupAs": "header"
},
{
"label": "Experience",
"groupAs": null
}
]
}

@ -30,7 +30,7 @@
"summary": {
"en": "Training in web development: \"Web Integration Techniques\" and \"Web Development Techniques\"",
"fr": "Formation en développement web : \"Techniques d'intégration web\" et \"Techniques de développement web\""
},
},
"dates": [
"2021",
""
@ -39,6 +39,26 @@
"en": "Paris, France",
"fr": "Paris, France"
}
},
{
"title": {
"en": "A test",
"fr": "Une teste"
},
"summary": {
"en": "<p>Something here easy to remember</p>",
"fr": "<p>Quelque chose ici qui est facile a se rapeller.</p>"
},
"dates": [
{
"___mb_type": "startDate",
"startDate": "2025-02-04"
}
],
"location": {
"en": "Paris",
"fr": "Paris"
}
}
]
},
@ -54,13 +74,13 @@
"items": [
{
"title": {
"en" : "Author and program designer of \"iN&Di inclusion and diversity Intersectional Awareness Program\"",
"fr" : "\"iN&Di inclusion et diversité Programme de sensibilisation intersectionnelle\""
"en": "Author and program designer of \"iN&Di inclusion and diversity Intersectional Awareness Program\"",
"fr": "\"iN&Di inclusion et diversité Programme de sensibilisation intersectionnelle\""
},
"summary": {
"en": "Design and writing of the \"iN&Di\" guide to promote an intersectional approach to inclusion and diversity. [Link to publication](https://www.learningplanetinstitute.org/en/publication/indi-inclusion-diversity-intersectional-awareness-program/)",
"fr": "Conception et rédaction du guide \"iN&Di\" pour promouvoir une approche intersectionnelle de l'inclusion et de la diversité. [Lien vers la publication](https://www.learningplanetinstitute.org/publication/indi-inclusion-diversite-programme-de-sensibilisation-intersectionnel/)"
},
},
"dates": [
"2024",
""
@ -73,5 +93,6 @@
}
]
}
]
}
],
"___mb_schema": "/.mattrbld/schemas/cv.json"
}