2023-05-29 16:22:34 +02:00
|
|
|
import {
|
|
|
|
DataObject,
|
|
|
|
DateFormat,
|
|
|
|
MarkdownProps,
|
|
|
|
PatternEmail,
|
2023-12-12 17:25:51 +01:00
|
|
|
ImageProps
|
2023-05-29 16:22:34 +02:00
|
|
|
} from "../props.js";
|
|
|
|
import {
|
|
|
|
ButtonObject,
|
|
|
|
EnableBoolean,
|
|
|
|
Title,
|
|
|
|
IconList,
|
|
|
|
PreviewNumber,
|
|
|
|
DescriptionText,
|
|
|
|
DisableBoolean,
|
2023-10-01 15:24:00 +02:00
|
|
|
AuthorRelation,
|
2023-05-29 16:22:34 +02:00
|
|
|
} from "./widgets.js";
|
2023-05-11 06:44:30 +02:00
|
|
|
|
|
|
|
const SettingsCollection = {
|
2023-05-29 16:22:34 +02:00
|
|
|
name: "settings",
|
|
|
|
label: "Einstellungen",
|
|
|
|
icon: "settings",
|
|
|
|
description:
|
|
|
|
"Hier können die Basiseinstellungen der Website geändert werden. Die meisten Bereiche müssen nur in Ausnahmefällen angepasst werden.",
|
|
|
|
editor: {
|
|
|
|
preview: false,
|
|
|
|
size: "half",
|
|
|
|
},
|
|
|
|
files: [
|
|
|
|
{
|
|
|
|
name: "data-homepage",
|
|
|
|
label: "Startseiteneinstellungen",
|
2023-06-19 20:31:21 +02:00
|
|
|
file: "data/homepage.yml",
|
2023-05-29 16:22:34 +02:00
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "top_banner",
|
|
|
|
label: "Banner",
|
|
|
|
...DataObject,
|
|
|
|
fields: [
|
|
|
|
EnableBoolean,
|
|
|
|
{
|
|
|
|
name: "text",
|
|
|
|
label: "Text",
|
|
|
|
required: false,
|
|
|
|
...MarkdownProps,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "color",
|
|
|
|
label: "Farbe",
|
|
|
|
widget: "color",
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "font_color",
|
|
|
|
label: "Schriftfarbe",
|
|
|
|
widget: "color",
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
IconList,
|
|
|
|
{
|
|
|
|
name: "temporarily",
|
|
|
|
label: "Zeitschaltung",
|
|
|
|
widget: "object",
|
|
|
|
fields: [
|
|
|
|
EnableBoolean,
|
|
|
|
{
|
|
|
|
name: "start_date",
|
|
|
|
label: "Startdatum",
|
|
|
|
widget: "datetime",
|
|
|
|
...DateFormat,
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "end_date",
|
|
|
|
label: "Enddatum",
|
|
|
|
widget: "datetime",
|
|
|
|
...DateFormat,
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "slider",
|
|
|
|
label: "Karusell",
|
|
|
|
...DataObject,
|
|
|
|
fields: [
|
|
|
|
EnableBoolean,
|
|
|
|
{
|
|
|
|
name: "bg_image",
|
|
|
|
label: "Hintergrundbild",
|
2023-12-12 17:25:51 +01:00
|
|
|
...ImageProps,
|
2023-05-29 16:22:34 +02:00
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
Title(false),
|
|
|
|
{
|
|
|
|
name: "slider_item",
|
|
|
|
label: "Elemente",
|
|
|
|
label_singular: "Element",
|
|
|
|
widget: "list",
|
|
|
|
collapsed: true,
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "content",
|
|
|
|
label: "Text",
|
|
|
|
widget: "string",
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
ButtonObject,
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "header_logos",
|
|
|
|
label: "Partnerlogos (oben)",
|
|
|
|
...DataObject,
|
|
|
|
fields: [
|
|
|
|
EnableBoolean,
|
|
|
|
{
|
|
|
|
name: "logos",
|
|
|
|
label: "Logos",
|
|
|
|
label_singular: "Logo",
|
|
|
|
widget: "list",
|
|
|
|
required: false,
|
|
|
|
collapsed: true,
|
|
|
|
fields: [
|
|
|
|
Title(true),
|
|
|
|
{
|
|
|
|
name: "link",
|
|
|
|
label: "Link",
|
|
|
|
widget: "string",
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "image",
|
|
|
|
label: "Grafik",
|
2023-12-12 17:25:51 +01:00
|
|
|
...ImageProps,
|
2023-05-29 16:22:34 +02:00
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "about",
|
|
|
|
label: "Einstiegsabschnitt",
|
|
|
|
...DataObject,
|
|
|
|
fields: [
|
|
|
|
EnableBoolean,
|
|
|
|
Title(false),
|
|
|
|
{
|
|
|
|
name: "content",
|
|
|
|
label: "Inhalt",
|
|
|
|
required: false,
|
|
|
|
...MarkdownProps,
|
|
|
|
},
|
|
|
|
ButtonObject,
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "blog",
|
|
|
|
label: "Blog-Abschnitt",
|
|
|
|
...DataObject,
|
|
|
|
fields: [EnableBoolean, Title(false), PreviewNumber],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "success_banner",
|
|
|
|
label: "Erfolge",
|
|
|
|
...DataObject,
|
|
|
|
fields: [
|
|
|
|
EnableBoolean,
|
|
|
|
{
|
|
|
|
name: "image",
|
|
|
|
label: "Hintergrundbild",
|
2023-12-12 17:25:51 +01:00
|
|
|
...ImageProps,
|
2023-05-29 16:22:34 +02:00
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "feature_item",
|
|
|
|
label: "Elemente",
|
|
|
|
label_singular: "Element",
|
|
|
|
widget: "list",
|
|
|
|
collapsed: true,
|
|
|
|
types: [
|
|
|
|
{
|
|
|
|
name: "image",
|
|
|
|
label: "Grafik",
|
|
|
|
widget: "object",
|
|
|
|
summary: "{{fields.name}}",
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "name",
|
|
|
|
label: "Bezeichnung",
|
|
|
|
widget: "string",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "image",
|
|
|
|
label: "Grafik",
|
2023-12-12 17:25:51 +01:00
|
|
|
...ImageProps,
|
2023-05-29 16:22:34 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "content",
|
|
|
|
label: "Inhalt",
|
|
|
|
required: false,
|
|
|
|
...MarkdownProps,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "icon",
|
|
|
|
label: "Symbol",
|
|
|
|
widget: "object",
|
|
|
|
summary: "{{fields.name}}",
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "name",
|
|
|
|
label: "Bezeichnung",
|
|
|
|
widget: "string",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
IconList,
|
|
|
|
{
|
|
|
|
name: "content",
|
|
|
|
label: "Inhalt",
|
|
|
|
required: false,
|
|
|
|
...MarkdownProps,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "ganztagsangebote",
|
|
|
|
label: "Ganztagsangebote",
|
|
|
|
...DataObject,
|
|
|
|
fields: [EnableBoolean, Title(false), PreviewNumber],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "cta",
|
|
|
|
label: "Button-Abschnitt",
|
|
|
|
...DataObject,
|
|
|
|
fields: [
|
|
|
|
EnableBoolean,
|
|
|
|
Title(false),
|
|
|
|
{
|
|
|
|
name: "subtitle",
|
|
|
|
label: "Untertitel",
|
|
|
|
widget: "string",
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
ButtonObject,
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "info",
|
|
|
|
label: "Informationsabschnitt (inkl. Video)",
|
|
|
|
...DataObject,
|
|
|
|
fields: [
|
|
|
|
EnableBoolean,
|
|
|
|
{
|
|
|
|
name: "bg_image",
|
|
|
|
label: "Hintergrundbild",
|
2023-12-12 17:25:51 +01:00
|
|
|
...ImageProps,
|
2023-05-29 16:22:34 +02:00
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
Title(false),
|
|
|
|
{
|
|
|
|
name: "content",
|
|
|
|
label: "Inhalt",
|
|
|
|
required: false,
|
|
|
|
...MarkdownProps,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "video_link",
|
|
|
|
label: "Video-Link",
|
|
|
|
widget: "string",
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "termine",
|
|
|
|
label: "Termine",
|
|
|
|
...DataObject,
|
|
|
|
fields: [EnableBoolean, Title(false), PreviewNumber],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "digitalpakt",
|
|
|
|
label: "DigitalPakt-Banner",
|
|
|
|
...DataObject,
|
|
|
|
fields: [
|
|
|
|
EnableBoolean,
|
|
|
|
Title(false),
|
|
|
|
{
|
|
|
|
name: "image",
|
|
|
|
label: "Bild",
|
2023-12-12 17:25:51 +01:00
|
|
|
...ImageProps,
|
2023-05-29 16:22:34 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "content",
|
|
|
|
label: "Inhalt",
|
|
|
|
required: false,
|
|
|
|
...MarkdownProps,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "footer_logos",
|
|
|
|
label: "Partnerlogos (unten)",
|
|
|
|
...DataObject,
|
|
|
|
fields: [
|
|
|
|
EnableBoolean,
|
|
|
|
{
|
|
|
|
name: "logos",
|
|
|
|
label: "Logos",
|
|
|
|
label_singular: "Logo",
|
|
|
|
widget: "list",
|
|
|
|
required: false,
|
|
|
|
collapsed: true,
|
|
|
|
fields: [
|
|
|
|
Title(true),
|
|
|
|
{
|
|
|
|
name: "link",
|
|
|
|
label: "Link",
|
|
|
|
widget: "string",
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "image",
|
|
|
|
label: "Grafik",
|
2023-12-12 17:25:51 +01:00
|
|
|
...ImageProps,
|
2023-05-29 16:22:34 +02:00
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "data-ausblick",
|
|
|
|
label: "Ausblick auf die Woche",
|
2023-06-19 20:31:21 +02:00
|
|
|
file: "data/ausblick.yml",
|
2023-05-29 16:22:34 +02:00
|
|
|
fields: [
|
|
|
|
EnableBoolean,
|
|
|
|
Title(false),
|
2023-10-01 15:24:00 +02:00
|
|
|
AuthorRelation,
|
2023-05-29 16:22:34 +02:00
|
|
|
{
|
|
|
|
name: "image",
|
|
|
|
label: "Titelbild",
|
2023-12-12 17:25:51 +01:00
|
|
|
...ImageProps,
|
2023-05-29 16:22:34 +02:00
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "content",
|
|
|
|
label: "Inhalt",
|
|
|
|
required: false,
|
|
|
|
...MarkdownProps,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "hugo-config",
|
|
|
|
label: "Website-Einstellungen für Entwickler",
|
|
|
|
file: "config.yml",
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "baseURL",
|
|
|
|
label: "Website-URL",
|
|
|
|
widget: "string",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
Title(false),
|
|
|
|
{
|
|
|
|
name: "paginate",
|
|
|
|
label: "Anzahl der Seitenelemente",
|
|
|
|
widget: "number",
|
|
|
|
value_type: "int",
|
|
|
|
min: 1,
|
|
|
|
step: 1,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "summaryLength",
|
|
|
|
label: "Länge von Zusammenfassungen (Zeichenanzahl)",
|
|
|
|
widget: "number",
|
|
|
|
value_type: "int",
|
|
|
|
min: 1,
|
|
|
|
step: 1,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "defaultContentLanguage",
|
|
|
|
label: "Standardsprache",
|
|
|
|
widget: "string",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "enableEmoji",
|
|
|
|
label: "Emoji",
|
|
|
|
widget: "boolean",
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "enableRobotsTxt",
|
|
|
|
label: "robots.txt generieren",
|
|
|
|
widget: "boolean",
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "timeZone",
|
|
|
|
label: "Zeitzone",
|
|
|
|
widget: "string",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "removePathAccents",
|
|
|
|
label: "Pfadbereinigung",
|
|
|
|
hint: "Entfernt Umlaute, Akzente u. ä. aus Dateinamen und Pfaden",
|
|
|
|
widget: "boolean",
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "markup",
|
|
|
|
label: "Markup",
|
|
|
|
widget: "object",
|
|
|
|
collapsed: true,
|
|
|
|
summary: "{{fields.defaultMarkdownHandler}}",
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "defaultMarkdownHandler",
|
|
|
|
label: "Markdown-Handler",
|
|
|
|
hint: "Dienst, welcher als Markdown-Renderer fungiert.",
|
|
|
|
widget: "select",
|
|
|
|
options: ["blackfriday", "goldmark"],
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "goldmark",
|
|
|
|
label: "Goldmark-Einstellungen",
|
|
|
|
widget: "object",
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "renderer",
|
|
|
|
label: "Renderer",
|
|
|
|
widget: "object",
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "unsafe",
|
|
|
|
label: "Unsicheren Inhalt erlauben",
|
|
|
|
hint: "Ermöglicht das Rendern von HTML in Markdown-Dateien",
|
|
|
|
widget: "boolean",
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "params",
|
|
|
|
label: "Parameter",
|
|
|
|
widget: "object",
|
|
|
|
collapsed: true,
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "plugins",
|
|
|
|
label: "Erweiterungen",
|
|
|
|
widget: "object",
|
|
|
|
collapsed: true,
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "css",
|
|
|
|
label: "CSS-Stylesheets",
|
|
|
|
label_singular: "CSS-Stylesheet",
|
|
|
|
widget: "list",
|
|
|
|
collapsed: true,
|
|
|
|
fields: [{ name: "link", label: "Link", widget: "string" }],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "head_js",
|
|
|
|
label: "JavaScript (am Seitenanfang)",
|
|
|
|
label_singular: "JS-Datei",
|
|
|
|
widget: "list",
|
|
|
|
collapsed: true,
|
|
|
|
fields: [{ name: "link", label: "Link", widget: "string" }],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "js",
|
|
|
|
label: "JavaScript (am Seitenende)",
|
|
|
|
label_singular: "JS-Datei",
|
|
|
|
widget: "list",
|
|
|
|
collapsed: true,
|
|
|
|
fields: [{ name: "link", label: "Link", widget: "string" }],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "logo",
|
|
|
|
label: "Logo",
|
2023-12-12 17:25:51 +01:00
|
|
|
...ImageProps,
|
2023-05-29 16:22:34 +02:00
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "author",
|
|
|
|
label: "Autor-Eintrag",
|
|
|
|
widget: "string",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "address",
|
|
|
|
label: "Adresse",
|
|
|
|
widget: "string",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "route_link",
|
|
|
|
label: "Route (Link)",
|
|
|
|
widget: "string",
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "mobile",
|
|
|
|
label: "Telefonnummer",
|
|
|
|
widget: "string",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "email",
|
|
|
|
label: "E-Mail-Adresse",
|
|
|
|
widget: "string",
|
|
|
|
required: true,
|
|
|
|
...PatternEmail,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "email_label",
|
|
|
|
label: "E-Mail-Adresse (UI-Ansicht)",
|
|
|
|
hint: "Wird über die E-Mail-Adresse gelegt, um Spambots entgegenzuwirken",
|
|
|
|
widget: "string",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
DescriptionText,
|
|
|
|
{
|
|
|
|
name: "top_header",
|
|
|
|
label: "Kontakt-Leiste",
|
|
|
|
widget: "boolean",
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "images",
|
|
|
|
label: "Vorschaubilder",
|
|
|
|
label_singular: "Vorschaubild",
|
|
|
|
hint: "Werden als Linkvorschau in soz. Netzwerken & co. angezeigt",
|
|
|
|
widget: "list",
|
|
|
|
required: false,
|
|
|
|
collapsed: true,
|
|
|
|
fields: [{ name: "path", label: "Bild-Pfad", widget: "string" }],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "preloader",
|
|
|
|
label: "Ladebildschirm",
|
|
|
|
...DataObject,
|
|
|
|
fields: [
|
|
|
|
EnableBoolean,
|
|
|
|
{
|
|
|
|
name: "preloader",
|
|
|
|
label: "Logo",
|
2023-12-12 17:25:51 +01:00
|
|
|
...ImageProps,
|
2023-05-29 16:22:34 +02:00
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "loader",
|
|
|
|
label: "Ladeanimation",
|
2023-12-12 17:25:51 +01:00
|
|
|
...ImageProps,
|
2023-05-29 16:22:34 +02:00
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "social",
|
|
|
|
label: "Soziale Netzwerke",
|
|
|
|
label_singular: "Link",
|
|
|
|
widget: "list",
|
|
|
|
collapsed: true,
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "title",
|
|
|
|
label: "Bezeichnung",
|
|
|
|
widget: "string",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
IconList,
|
|
|
|
{
|
|
|
|
name: "link",
|
|
|
|
label: "Link",
|
|
|
|
widget: "string",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2023-06-21 17:58:49 +02:00
|
|
|
{
|
|
|
|
name: "impressumURL",
|
|
|
|
label: "Link zum Impressum",
|
|
|
|
hint: "pages/impressum",
|
|
|
|
widget: "string",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "dseURL",
|
|
|
|
label: "Link zur Datenschutzerklärung",
|
|
|
|
hint: "pages/datenschutz",
|
|
|
|
widget: "string",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "copyright",
|
|
|
|
label: "Copyright-Eintrag",
|
|
|
|
hint: "Am Seitenende sichtbar",
|
|
|
|
required: true,
|
|
|
|
...MarkdownProps,
|
|
|
|
},
|
2023-05-29 16:22:34 +02:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "menu",
|
|
|
|
label: "Menüs",
|
|
|
|
widget: "object",
|
|
|
|
collapsed: true,
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "main",
|
|
|
|
label: "Hauptmenü",
|
|
|
|
label_singular: "Menüeintrag",
|
|
|
|
hint: "Wird am Seitenanfang angezeigt",
|
|
|
|
widget: "list",
|
|
|
|
collapsed: true,
|
|
|
|
fields: [
|
2023-05-29 16:37:32 +02:00
|
|
|
{
|
|
|
|
name: "name",
|
|
|
|
label: "Bezeichnung",
|
|
|
|
widget: "string",
|
2023-10-01 15:24:00 +02:00
|
|
|
required: true,
|
2023-05-29 16:37:32 +02:00
|
|
|
},
|
2023-05-29 16:22:34 +02:00
|
|
|
{
|
|
|
|
name: "weight",
|
|
|
|
label: "Positionierung",
|
|
|
|
hint: "Je höher die Zahl, desto weiter unten liegt der Eintrag",
|
|
|
|
widget: "number",
|
|
|
|
value_type: "int",
|
|
|
|
min: 1,
|
|
|
|
step: 1,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "hasChildren",
|
|
|
|
label: "Erweitertes Menü",
|
|
|
|
hint: "Der Menüpunkt dient als Untermenü für weitere Elemente",
|
|
|
|
widget: "boolean",
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "parent",
|
|
|
|
label: "Übergeordneter Eintrag",
|
|
|
|
hint: "Falls ausgewählt, wird dieser Eintrag im Untermenü erscheinen",
|
|
|
|
widget: "relation",
|
2023-05-29 16:37:32 +02:00
|
|
|
collection: "settings",
|
2023-05-29 16:22:34 +02:00
|
|
|
file: "hugo-config",
|
|
|
|
value_field: "menu.main.*.name",
|
|
|
|
search_fields: ["menu.main.*.name"],
|
|
|
|
display_fields: ["menu.main.*.name"],
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "URL",
|
|
|
|
label: "Link",
|
|
|
|
widget: "string",
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "params",
|
|
|
|
label: "Parameter",
|
|
|
|
widget: "object",
|
|
|
|
collapsed: false,
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "external",
|
|
|
|
label: "Externer Link",
|
|
|
|
hint: "Wird in einem neuen Tab geöffnet",
|
|
|
|
widget: "boolean",
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "separator",
|
|
|
|
label: "Trennlinie",
|
|
|
|
hint: "Wird unter dem Menüpunkt eingefügt",
|
|
|
|
widget: "boolean",
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "footer",
|
|
|
|
label: "Link-Liste",
|
|
|
|
label_singular: "Link",
|
|
|
|
hint: "Wird am Seitenende angezeigt",
|
|
|
|
widget: "list",
|
|
|
|
collapsed: true,
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "name",
|
|
|
|
label: "Bezeichnung",
|
|
|
|
widget: "string",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "URL",
|
|
|
|
label: "Link",
|
|
|
|
widget: "string",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "privacy",
|
|
|
|
label: "Datenschutz-Optionen",
|
|
|
|
hint: "Konfiguration externer Dienste",
|
|
|
|
widget: "object",
|
|
|
|
collapsed: true,
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "disqus",
|
|
|
|
label: "Disqus",
|
|
|
|
widget: "object",
|
|
|
|
fields: [DisableBoolean],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "googleAnalytics",
|
|
|
|
label: "Google Analytics",
|
|
|
|
widget: "object",
|
|
|
|
fields: [DisableBoolean],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "instagram",
|
|
|
|
label: "Instagram",
|
|
|
|
widget: "object",
|
|
|
|
fields: [DisableBoolean],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "twitter",
|
|
|
|
label: "Twitter",
|
|
|
|
widget: "object",
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "enableDNT",
|
|
|
|
label: "Tracking deaktivieren",
|
|
|
|
widget: "boolean",
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "youtube",
|
|
|
|
label: "YouTube",
|
|
|
|
widget: "object",
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "privacyEnhanced",
|
|
|
|
label: "Piped-Proxy",
|
|
|
|
hint: "Datenschutzfreundliche Oberfläche für YouTube",
|
|
|
|
widget: "boolean",
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "vimeo",
|
|
|
|
label: "Vimeo",
|
|
|
|
widget: "object",
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "enableDNT",
|
|
|
|
label: "Tracking deaktivieren",
|
|
|
|
widget: "boolean",
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "data-categories",
|
|
|
|
label: "Kategorien und Zuordnungen",
|
2023-06-19 20:31:21 +02:00
|
|
|
file: "data/categories.yml",
|
2023-05-29 16:22:34 +02:00
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "blog",
|
|
|
|
label: "Aktuelles",
|
|
|
|
label_singular: "Kategorie",
|
|
|
|
widget: "list",
|
|
|
|
required: true,
|
|
|
|
collapsed: true,
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "category",
|
|
|
|
label: "Kategorie",
|
|
|
|
widget: "string",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "ganztag",
|
|
|
|
label: "Ganztagsbereich",
|
|
|
|
label_singular: "Kategorie",
|
|
|
|
widget: "list",
|
|
|
|
required: true,
|
|
|
|
collapsed: true,
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "category",
|
|
|
|
label: "Kategorie",
|
|
|
|
widget: "string",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "contests",
|
|
|
|
label: "Wettbewerbe",
|
|
|
|
label_singular: "Kategorie",
|
|
|
|
widget: "list",
|
|
|
|
required: true,
|
|
|
|
collapsed: true,
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "category",
|
|
|
|
label: "Kategorie",
|
|
|
|
widget: "string",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "begabte",
|
|
|
|
label: "Begabtenförderung",
|
|
|
|
label_singular: "Kategorie",
|
|
|
|
widget: "list",
|
|
|
|
required: true,
|
|
|
|
collapsed: true,
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "category",
|
|
|
|
label: "Kategorie",
|
|
|
|
widget: "string",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "subjects",
|
|
|
|
label: "Fächer (Fachzuordnung)",
|
|
|
|
label_singular: "Fach",
|
|
|
|
widget: "list",
|
|
|
|
required: true,
|
|
|
|
collapsed: true,
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "category",
|
|
|
|
label: "Kategorie",
|
|
|
|
widget: "string",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2023-05-11 06:44:30 +02:00
|
|
|
},
|
2023-05-29 16:22:34 +02:00
|
|
|
],
|
2023-05-11 06:44:30 +02:00
|
|
|
};
|
|
|
|
|
2023-05-29 16:22:34 +02:00
|
|
|
export default SettingsCollection;
|