1
0

Create initial Mattrbld settings

This commit is contained in:
mx 2025-03-28 11:53:58 +01:00
parent 8af74dd3c1
commit 622eea83ea
6 changed files with 655 additions and 0 deletions

@ -0,0 +1,19 @@
{
"allowedTypes": [],
"dir": "/src/_content",
"disableComments": false,
"disablePreview": false,
"draftByDefault": false,
"schemas": [
"/.mattrbld/schemas/homepage.json"
],
"linkable": false,
"maxSize": null,
"permissions": {
"everybody": [
"everything"
]
},
"type": "md",
"urlTemplate": ""
}

@ -0,0 +1,19 @@
{
"allowedTypes": [],
"dir": "/src/_content/work",
"disableComments": false,
"disablePreview": false,
"draftByDefault": false,
"schemas": [
"/.mattrbld/schemas/work.json"
],
"linkable": false,
"maxSize": null,
"permissions": {
"everybody": [
"everything"
]
},
"type": "md",
"urlTemplate": ""
}

79
.mattrbld/config.json Normal file

@ -0,0 +1,79 @@
{
"autoquotes": null,
"brandColors": [],
"corsProxy": "/corsprox",
"name": "pxls.homepage",
"sidebar": [
{
"label": "Dashboard",
"icon": "grid",
"target": {
"name": "Project"
},
"protected": true
},
{
"separator": true
},
{
"separator": true,
"target": {
"name": "Edit Content",
"params": {
"collection": "pages.json",
"path": "/src/_content/index.md"
}
},
"label": "Homepage",
"icon": "eye"
},
{
"separator": true,
"target": {
"name": "Project.Collection",
"params": {
"path": "/.mattrbld/collections/work.json"
}
},
"label": "Work",
"icon": "wrench"
},
{
"separator": true
},
{
"label": "Media Library",
"icon": "image-stack",
"target": {
"name": "Project.MediaLibrary"
},
"protected": true
},
{
"label": "Settings",
"icon": "settings",
"target": {
"name": "Project.Settings"
},
"onlyPrivileged": true,
"protected": true
}
],
"slugifyOptions": null,
"customRoles": [],
"draftsDir": null,
"previewUrl": null,
"languages": [],
"media": {
"advanced": false,
"customFields": null,
"dir": null,
"maxSize": null,
"outputPath": null,
"permissions": {
"everybody": [
"everything"
]
}
}
}

@ -0,0 +1,110 @@
{
"fields": [
{
"type": "text",
"default": null,
"icon": "text-input",
"key": "title",
"label": "Title",
"localised": false,
"options": {
"wrapping": true,
"multiline": false
},
"tab": "Page",
"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": "content",
"label": "Content",
"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": "Page",
"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
}
}
}
],
"tabs": [
{
"label": "Page",
"groupAs": null
}
]
}

422
.mattrbld/schemas/work.json Normal file

@ -0,0 +1,422 @@
{
"fields": [
{
"type": "text",
"default": null,
"icon": "text-input",
"key": "title",
"label": "Title",
"localised": false,
"options": {
"wrapping": true,
"multiline": false
},
"tab": "Sidebar",
"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": "subtitle",
"label": "Subtitle",
"localised": false,
"options": {
"wrapping": true,
"multiline": false
},
"tab": "Sidebar",
"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": "data",
"label": "Data",
"options": {
"compact": true,
"allowEditing": true,
"itemLabel": "Row"
},
"tab": "Sidebar",
"validation": {
"max": null,
"min": null,
"unit": "rows"
},
"value": [
{
"type": "group",
"displayField": null,
"icon": "group",
"key": "datum",
"label": "Datum",
"tab": "Sidebar",
"value": [
{
"type": "text",
"default": null,
"icon": "text-input",
"key": "name",
"label": "Name",
"localised": false,
"options": {
"wrapping": true,
"multiline": false
},
"tab": "Sidebar",
"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": "value",
"label": "Value",
"localised": false,
"options": {
"wrapping": true,
"multiline": false
},
"tab": "Sidebar",
"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
}
}
},
{
"type": "rows",
"default": null,
"icon": "rows",
"key": "elements",
"label": "Elements",
"options": {
"compact": true,
"allowEditing": true,
"itemLabel": "Row"
},
"tab": "Content",
"validation": {
"max": null,
"min": null,
"unit": "rows"
},
"value": [
{
"type": "group",
"displayField": null,
"icon": "group",
"key": "element",
"label": "Element",
"tab": "Content",
"value": [
{
"type": "text",
"default": null,
"icon": "text-input",
"key": "title",
"label": "Title",
"localised": false,
"options": {
"wrapping": true,
"multiline": false
},
"tab": "Content",
"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": "type",
"label": "Type",
"localised": false,
"options": {
"wrapping": true,
"multiline": false
},
"tab": "Content",
"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": "content",
"label": "Content",
"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": "Content",
"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
}
}
},
{
"type": "rich text",
"default": null,
"icon": "text",
"key": "content",
"label": "Content",
"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": "Sidebar",
"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
}
}
}
],
"tabs": [
{
"label": "Sidebar",
"groupAs": null
},
{
"label": "Content",
"groupAs": null
}
]
}

@ -0,0 +1,6 @@
{
"email": "mx@suroh.tk",
"id": "mx-suroh-tk",
"name": "mx",
"role": "owner"
}