RustyCMS: File-based headless CMS with REST API, admin UI, multilingual support

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Peter Meier
2026-02-16 09:30:30 +01:00
commit aad93d145f
224 changed files with 19225 additions and 0 deletions

75
types/link.json5 Normal file
View File

@@ -0,0 +1,75 @@
{
// Corresponds to CF_Link / Contentful_Link.ts
name: "link",
description: "Internal or external link with label and optional icon",
tags: ["navigation", "component"],
category: "components",
fields: {
name: {
type: "string",
required: true,
description: "Internal link name",
},
internal: {
type: "string",
required: true,
description: "Internal key",
},
linkName: {
type: "string",
required: true,
description: "Display name (e.g. in navigation)",
},
url: {
type: "string",
required: true,
description: "Target URL",
},
icon: {
type: "string",
description: "Icon identifier",
},
color: {
type: "string",
description: "Color (e.g. for buttons)",
},
newTab: {
type: "boolean",
default: false,
description: "Open in new tab",
},
external: {
type: "boolean",
default: false,
description: "External link",
},
description: {
type: "string",
description: "Description",
},
alt: {
type: "string",
description: "Alt text (e.g. for icon)",
},
showText: {
type: "boolean",
default: true,
description: "Show text",
},
author: {
type: "string",
required: true,
description: "Author (e.g. for sources)",
},
date: {
type: "string",
required: true,
description: "Date (e.g. publication)",
},
source: {
type: "string",
required: true,
description: "Source",
},
},
}