From 2d9cd073587abc275ae8be260822f0ce3a63cf0b Mon Sep 17 00:00:00 2001 From: Noah Date: Tue, 11 Feb 2025 17:41:24 -0600 Subject: [PATCH] Update content through Mattrbld --- .mattrbld/collections/projects.json | 19 +++++++++ .mattrbld/config.json | 10 +++++ .mattrbld/schemas/Projects.json | 60 +++++++++++++++-------------- data/projects/.gitkeep | 0 data/projects/projects.json | 23 +++++++++++ 5 files changed, 84 insertions(+), 28 deletions(-) create mode 100644 .mattrbld/collections/projects.json create mode 100644 data/projects/.gitkeep create mode 100644 data/projects/projects.json diff --git a/.mattrbld/collections/projects.json b/.mattrbld/collections/projects.json new file mode 100644 index 0000000..43f5909 --- /dev/null +++ b/.mattrbld/collections/projects.json @@ -0,0 +1,19 @@ +{ + "allowedTypes": null, + "dir": "/data/projects", + "disableComments": false, + "disablePreview": false, + "draftByDefault": false, + "schemas": [ + "/.mattrbld/schemas/Projects.json" + ], + "linkable": false, + "maxSize": null, + "permissions": { + "everybody": [ + "everything" + ] + }, + "type": "json", + "urlTemplate": "" +} \ No newline at end of file diff --git a/.mattrbld/config.json b/.mattrbld/config.json index d33d948..b74dac6 100644 --- a/.mattrbld/config.json +++ b/.mattrbld/config.json @@ -58,6 +58,16 @@ "path": "/.mattrbld/collections/profile.json" } } + }, + { + "icon": "repo", + "label": "Projects", + "target": { + "name": "Project.Collection", + "params": { + "path": "/.mattrbld/collections/projects.json" + } + } } ], "slugifyOptions": null, diff --git a/.mattrbld/schemas/Projects.json b/.mattrbld/schemas/Projects.json index bb91812..55f3505 100644 --- a/.mattrbld/schemas/Projects.json +++ b/.mattrbld/schemas/Projects.json @@ -30,8 +30,38 @@ "type": "text", "default": null, "icon": "text-input", - "key": "name", - "label": "Name", + "key": "repoName", + "label": "Repo Name", + "localised": false, + "options": { + "wrapping": false, + "multiline": false + }, + "tab": "Untitled Tab", + "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": "title", + "label": "Title", "localised": false, "options": { "wrapping": true, @@ -155,32 +185,6 @@ "field": null } } - }, - { - "type": "link", - "default": null, - "icon": "link", - "key": "repoLink", - "label": "Repo Link", - "localised": false, - "options": { - "type": "both", - "byFilePath": false, - "urlSuffix": "/", - "urlTemplate": "" - }, - "tab": "Untitled Tab", - "validation": { - "required": false - }, - "value": null, - "version": 1, - "visibility": { - "hidden": false, - "showByValue": { - "field": null - } - } } ], "version": 1, diff --git a/data/projects/.gitkeep b/data/projects/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/data/projects/projects.json b/data/projects/projects.json new file mode 100644 index 0000000..78dbd41 --- /dev/null +++ b/data/projects/projects.json @@ -0,0 +1,23 @@ +{ + "projects": [ + { + "repoName": "noahspan-components", + "title": "Components (React + Storybook)", + "iconName": "fa-puzzle-piece", + "summary": "A component library with custom React components, extended components from Material UI, and a subset of Font Awesome icons." + }, + { + "repoName": "noahspan-flying", + "title": "Flying (React + Nest.js)", + "iconName": "fa-plane", + "summary": "A pilot logbook for logging flight hours." + }, + { + "repoName": "noahspan-modules", + "title": "Modules (Nest.js)", + "iconName": "fa-gear", + "summary": "A library of custom modules for projects using Nest.js." + } + ], + "___mb_schema": "/.mattrbld/schemas/Projects.json" +} \ No newline at end of file