RustyCMS: File-based headless CMS with REST API, admin UI, multilingual support
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
75
types/link.json5
Normal file
75
types/link.json5
Normal 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",
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user