From 4b84920358ce28235b0961b2f1d7be7f768e2833 Mon Sep 17 00:00:00 2001 From: Lee Cattarin Date: Mon, 6 Jul 2026 14:18:52 -0700 Subject: [PATCH] Update content through Mattrbld --- .mattrbld/collections/categories.json | 21 +++++ .mattrbld/config.json | 86 +++++++++++++++++++++ .mattrbld/schemas/product-category.json | 67 ++++++++++++++++ .mattrbld/users/lee-cattarin-gmail-com.json | 6 ++ src/categories/.gitkeep | 0 src/categories/tests.md | 8 ++ 6 files changed, 188 insertions(+) create mode 100644 .mattrbld/collections/categories.json create mode 100644 .mattrbld/config.json create mode 100644 .mattrbld/schemas/product-category.json create mode 100644 .mattrbld/users/lee-cattarin-gmail-com.json create mode 100644 src/categories/.gitkeep create mode 100644 src/categories/tests.md diff --git a/.mattrbld/collections/categories.json b/.mattrbld/collections/categories.json new file mode 100644 index 0000000..f342c25 --- /dev/null +++ b/.mattrbld/collections/categories.json @@ -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": "" +} \ No newline at end of file diff --git a/.mattrbld/config.json b/.mattrbld/config.json new file mode 100644 index 0000000..763d988 --- /dev/null +++ b/.mattrbld/config.json @@ -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" + ] + } + } +} \ No newline at end of file diff --git a/.mattrbld/schemas/product-category.json b/.mattrbld/schemas/product-category.json new file mode 100644 index 0000000..44f25d7 --- /dev/null +++ b/.mattrbld/schemas/product-category.json @@ -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 + } + ] +} \ No newline at end of file diff --git a/.mattrbld/users/lee-cattarin-gmail-com.json b/.mattrbld/users/lee-cattarin-gmail-com.json new file mode 100644 index 0000000..5e9da11 --- /dev/null +++ b/.mattrbld/users/lee-cattarin-gmail-com.json @@ -0,0 +1,6 @@ +{ + "email": "lee.cattarin@gmail.com", + "id": "lee-cattarin-gmail-com", + "name": "Lee Cattarin", + "role": "owner" +} \ No newline at end of file diff --git a/src/categories/.gitkeep b/src/categories/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/categories/tests.md b/src/categories/tests.md new file mode 100644 index 0000000..352d5cb --- /dev/null +++ b/src/categories/tests.md @@ -0,0 +1,8 @@ +--- +title: Test Category +products: + - buy_btn_1To8elGBKE368w4e9N30YoK6 + - buy_btn_1To8OjGBKE368w4en9Tb9tbF +___mb_schema: /.mattrbld/schemas/product-category.json +--- +