Update content through Mattrbld

This commit is contained in:
2026-07-06 14:18:52 -07:00
parent 750387e1fe
commit 4b84920358
6 changed files with 188 additions and 0 deletions

View File

@ -0,0 +1,21 @@
{
"allowedTypes": [],
"defaultFilename": null,
"dir": "/src/categories",
"disableComments": false,
"disablePreview": false,
"draftByDefault": false,
"linkable": false,
"maxSize": null,
"permissions": {
"everybody": [
"everything"
]
},
"rawEntityNames": false,
"schemas": [
"/.mattrbld/schemas/product-category.json"
],
"type": "md",
"urlTemplate": ""
}

86
.mattrbld/config.json Normal file
View File

@ -0,0 +1,86 @@
{
"autoquotes": null,
"brandColors": [],
"corsProxy": "/corsprox",
"name": "stripe-test",
"sidebar": [
{
"label": "The sidebar has not yet been configured for this project"
},
{
"icon": "wrench-and-driver",
"label": "Configure now",
"target": {
"name": "Project.Settings",
"query": {
"tab": "sidebar"
}
},
"onlyPrivileged": true
},
{
"separator": true
},
{
"label": "Dashboard",
"icon": "grid",
"target": {
"name": "Project"
},
"protected": true
},
{
"label": "Media Library",
"icon": "image-stack",
"target": {
"name": "Project.MediaLibrary"
},
"protected": true
},
{
"icon": null,
"label": "categories",
"target": {
"name": "Project.Collection",
"params": {
"path": "/.mattrbld/collections/categories.json"
}
}
},
{
"label": "Settings",
"icon": "settings",
"target": {
"name": "Project.Settings"
},
"onlyPrivileged": true,
"protected": true
}
],
"slugifyOptions": {
"customReplacements": [],
"lowercase": true,
"decamelize": true,
"preserveLeadingUnderscore": true,
"preserveTrailingDash": false,
"preserveCharacters": [],
"separator": "-",
"transliterate": true
},
"customRoles": [],
"draftsDir": null,
"previewUrl": null,
"languages": [],
"media": {
"advanced": false,
"customFields": null,
"dir": null,
"maxSize": null,
"outputPath": null,
"permissions": {
"everybody": [
"everything"
]
}
}
}

View File

@ -0,0 +1,67 @@
{
"fields": [
{
"type": "text",
"default": null,
"icon": "text-input",
"key": "title",
"label": "Title",
"localised": false,
"options": {
"wrapping": true,
"multiline": false
},
"tab": "Category",
"validation": {
"enforceMinMax": true,
"max": null,
"min": null,
"regex": null,
"regexError": null,
"required": true,
"unit": "length"
},
"value": null,
"version": 1,
"visibility": {
"hidden": false,
"showByValue": {
"field": null
}
}
},
{
"type": "list",
"default": null,
"icon": "bullet-list",
"key": "products",
"label": "Products",
"localised": false,
"options": {
"limitToModel": false,
"model": []
},
"tab": "Category",
"validation": {
"enforceMinMax": true,
"max": null,
"min": 1,
"unit": "list items"
},
"value": null,
"version": 1,
"visibility": {
"hidden": false,
"showByValue": {
"field": null
}
}
}
],
"tabs": [
{
"label": "Category",
"groupAs": null
}
]
}

View File

@ -0,0 +1,6 @@
{
"email": "lee.cattarin@gmail.com",
"id": "lee-cattarin-gmail-com",
"name": "Lee Cattarin",
"role": "owner"
}

0
src/categories/.gitkeep Normal file
View File

8
src/categories/tests.md Normal file
View File

@ -0,0 +1,8 @@
---
title: Test Category
products:
- buy_btn_1To8elGBKE368w4e9N30YoK6
- buy_btn_1To8OjGBKE368w4en9Tb9tbF
___mb_schema: /.mattrbld/schemas/product-category.json
---