diff --git a/.mattrbld/collections/events.json b/.mattrbld/collections/events.json new file mode 100644 index 0000000..7a729a9 --- /dev/null +++ b/.mattrbld/collections/events.json @@ -0,0 +1,21 @@ +{ + "allowedTypes": [], + "defaultFilename": null, + "dir": "/src/events", + "disableComments": false, + "disablePreview": false, + "draftByDefault": false, + "linkable": false, + "maxSize": null, + "permissions": { + "everybody": [ + "everything" + ] + }, + "rawEntityNames": false, + "schemas": [ + "/.mattrbld/schemas/event.json" + ], + "type": "md", + "urlTemplate": "" +} \ No newline at end of file diff --git a/.mattrbld/config.json b/.mattrbld/config.json index b994377..267687f 100644 --- a/.mattrbld/config.json +++ b/.mattrbld/config.json @@ -44,6 +44,16 @@ } } }, + { + "icon": "calendar", + "label": "Events", + "target": { + "name": "Project.Collection", + "params": { + "path": "/.mattrbld/collections/events.json" + } + } + }, { "label": "Media library", "icon": "image-stack", diff --git a/.mattrbld/schemas/event.json b/.mattrbld/schemas/event.json new file mode 100644 index 0000000..cd9e9fb --- /dev/null +++ b/.mattrbld/schemas/event.json @@ -0,0 +1,192 @@ +{ + "fields": [ + { + "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": true, + "unit": "length" + }, + "value": null, + "version": 1, + "visibility": { + "hidden": false, + "showByValue": { + "field": null + } + } + }, + { + "type": "date", + "default": null, + "icon": "calendar", + "key": "date", + "label": "Date and Time", + "options": { + "outputFormat": "iso", + "removable": false, + "showTime": true, + "defaultToNow": false, + "useAsUpdatedAt": false, + "only": null + }, + "tab": "Content", + "validation": { + "max": null, + "min": null, + "required": true, + "unit": "date", + "isString": true + }, + "value": null, + "version": 2, + "visibility": { + "hidden": false, + "showByValue": { + "field": null + } + } + }, + { + "type": "image", + "default": null, + "icon": "image", + "key": "image", + "label": "Image", + "options": { + "resolutionHint": "", + "removable": true, + "simple": false + }, + "tab": "Content", + "validation": { + "max": null, + "required": false, + "unit": "filesize (MB)" + }, + "value": null, + "version": 1, + "visibility": { + "hidden": false, + "showByValue": { + "field": null + } + } + }, + { + "type": "tags", + "default": null, + "icon": "tags", + "key": "tags", + "label": "Tags", + "localised": false, + "options": { + "allowUnsuggested": true, + "autocompleteModel": [] + }, + "tab": "Content", + "validation": { + "max": null, + "min": null, + "unit": "tags" + }, + "value": null, + "version": 1, + "visibility": { + "hidden": false, + "showByValue": { + "field": null + } + } + }, + { + "type": "rich text", + "default": null, + "icon": "text", + "key": "content", + "label": "Description", + "localised": false, + "options": { + "outputFormat": "markdown", + "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": [ + "allowExternal", + "allowInternal" + ] + }, + "tab": "Content", + "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 + } + } + } + ], + "tabs": [ + { + "label": "Content", + "groupAs": null + } + ] +} \ No newline at end of file diff --git a/src/events/.gitkeep b/src/events/.gitkeep new file mode 100644 index 0000000..e69de29