scms v4 fixes
This commit is contained in:
parent
13335bfabb
commit
d2690a0c5f
@ -1,4 +1,4 @@
|
|||||||
import { MarkdownProps } from "../props.js";
|
import { MarkdownProps, ImageProps } from "../props.js";
|
||||||
import { DraftBoolean, Title } from "./widgets.js";
|
import { DraftBoolean, Title } from "./widgets.js";
|
||||||
|
|
||||||
const AbiturientenCollection = {
|
const AbiturientenCollection = {
|
||||||
@ -33,9 +33,8 @@ const AbiturientenCollection = {
|
|||||||
{
|
{
|
||||||
name: "image",
|
name: "image",
|
||||||
label: "Bild",
|
label: "Bild",
|
||||||
widget: "image",
|
|
||||||
default: "/media/image.webp",
|
default: "/media/image.webp",
|
||||||
required: false,
|
...ImageProps,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "type",
|
name: "type",
|
||||||
@ -46,7 +45,6 @@ const AbiturientenCollection = {
|
|||||||
{
|
{
|
||||||
name: "body",
|
name: "body",
|
||||||
label: "Text",
|
label: "Text",
|
||||||
widget: "markdown",
|
|
||||||
required: false,
|
required: false,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { MarkdownProps, PatternEmail } from "../props.js";
|
import { MarkdownProps, PatternEmail, ImageProps } from "../props.js";
|
||||||
import { DescriptionText } from "./widgets.js";
|
import { DescriptionText } from "./widgets.js";
|
||||||
|
|
||||||
const AuthorCollection = {
|
const AuthorCollection = {
|
||||||
@ -81,9 +81,8 @@ const AuthorCollection = {
|
|||||||
{
|
{
|
||||||
name: "image",
|
name: "image",
|
||||||
label: "Bild",
|
label: "Bild",
|
||||||
widget: "image",
|
|
||||||
required: false,
|
|
||||||
default: "/media/people/gcg.webp",
|
default: "/media/people/gcg.webp",
|
||||||
|
...ImageProps,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "simplified",
|
name: "simplified",
|
||||||
@ -107,7 +106,6 @@ const AuthorCollection = {
|
|||||||
{
|
{
|
||||||
name: "body",
|
name: "body",
|
||||||
label: "Beschreibung",
|
label: "Beschreibung",
|
||||||
widget: "markdown",
|
|
||||||
required: false,
|
required: false,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { MarkdownProps } from "../props.js";
|
import { MarkdownProps, ImageProps } from "../props.js";
|
||||||
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
||||||
|
|
||||||
const BegabteCollection = {
|
const BegabteCollection = {
|
||||||
@ -27,9 +27,9 @@ const BegabteCollection = {
|
|||||||
{
|
{
|
||||||
name: "image",
|
name: "image",
|
||||||
label: "Titelbild",
|
label: "Titelbild",
|
||||||
widget: "image",
|
|
||||||
required: true,
|
|
||||||
default: "/media/image.webp",
|
default: "/media/image.webp",
|
||||||
|
...ImageProps,
|
||||||
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "class",
|
name: "class",
|
||||||
@ -52,7 +52,6 @@ const BegabteCollection = {
|
|||||||
{
|
{
|
||||||
name: "body",
|
name: "body",
|
||||||
label: "Inhalt",
|
label: "Inhalt",
|
||||||
widget: "markdown",
|
|
||||||
required: true,
|
required: true,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { DateFormat, MarkdownProps } from "../props.js";
|
import { DateFormat, MarkdownProps, ImageProps } from "../props.js";
|
||||||
import {
|
import {
|
||||||
AuthorRelation,
|
AuthorRelation,
|
||||||
DescriptionText,
|
DescriptionText,
|
||||||
@ -57,9 +57,9 @@ const BlogCollection = {
|
|||||||
name: "image",
|
name: "image",
|
||||||
label: "Titelbild",
|
label: "Titelbild",
|
||||||
hint: "16:9 Seitenverhältnis beachten",
|
hint: "16:9 Seitenverhältnis beachten",
|
||||||
widget: "image",
|
|
||||||
required: true,
|
|
||||||
default: "/media/image.webp",
|
default: "/media/image.webp",
|
||||||
|
...ImageProps,
|
||||||
|
required: true,
|
||||||
},
|
},
|
||||||
AuthorRelation,
|
AuthorRelation,
|
||||||
{
|
{
|
||||||
@ -106,7 +106,6 @@ const BlogCollection = {
|
|||||||
{
|
{
|
||||||
name: "body",
|
name: "body",
|
||||||
label: "Inhalt",
|
label: "Inhalt",
|
||||||
widget: "markdown",
|
|
||||||
required: true,
|
required: true,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { MarkdownProps } from "../props.js";
|
import { MarkdownProps, ImageProps } from "../props.js";
|
||||||
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
||||||
|
|
||||||
const CantorforaCollection = {
|
const CantorforaCollection = {
|
||||||
@ -44,8 +44,8 @@ const CantorforaCollection = {
|
|||||||
{
|
{
|
||||||
name: "image",
|
name: "image",
|
||||||
label: "Titelbild",
|
label: "Titelbild",
|
||||||
widget: "image",
|
|
||||||
default: "/media/image.webp",
|
default: "/media/image.webp",
|
||||||
|
...ImageProps,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -57,7 +57,6 @@ const CantorforaCollection = {
|
|||||||
{
|
{
|
||||||
name: "body",
|
name: "body",
|
||||||
label: "Text",
|
label: "Text",
|
||||||
widget: "markdown",
|
|
||||||
required: true,
|
required: true,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { MarkdownProps } from "../props.js";
|
import { MarkdownProps, ImageProps } from "../props.js";
|
||||||
import { DescriptionText, DraftBoolean } from "./widgets.js";
|
import { DescriptionText, DraftBoolean } from "./widgets.js";
|
||||||
|
|
||||||
const CantorpreisCollection = {
|
const CantorpreisCollection = {
|
||||||
@ -45,9 +45,8 @@ const CantorpreisCollection = {
|
|||||||
{
|
{
|
||||||
name: "image",
|
name: "image",
|
||||||
label: "Bild",
|
label: "Bild",
|
||||||
widget: "image",
|
|
||||||
default: "/media/image.webp",
|
default: "/media/image.webp",
|
||||||
required: false,
|
...ImageProps,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "type",
|
name: "type",
|
||||||
@ -58,7 +57,6 @@ const CantorpreisCollection = {
|
|||||||
{
|
{
|
||||||
name: "body",
|
name: "body",
|
||||||
label: "Text",
|
label: "Text",
|
||||||
widget: "markdown",
|
|
||||||
required: false,
|
required: false,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
|
@ -43,7 +43,6 @@ const ChronikjahreCollection = {
|
|||||||
name: "pretext",
|
name: "pretext",
|
||||||
label: "Einleitung",
|
label: "Einleitung",
|
||||||
hint: "Text für die Jahreszahl",
|
hint: "Text für die Jahreszahl",
|
||||||
widget: "markdown",
|
|
||||||
required: false,
|
required: false,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
@ -64,7 +63,6 @@ const ChronikjahreCollection = {
|
|||||||
{
|
{
|
||||||
name: "content",
|
name: "content",
|
||||||
label: "Inhalt",
|
label: "Inhalt",
|
||||||
widget: "markdown",
|
|
||||||
required: false,
|
required: false,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
@ -102,7 +100,6 @@ const ChronikjahreCollection = {
|
|||||||
name: "body",
|
name: "body",
|
||||||
label: "Text",
|
label: "Text",
|
||||||
hint: "Erscheint zusätzlich zu den Kreativen Haufen",
|
hint: "Erscheint zusätzlich zu den Kreativen Haufen",
|
||||||
widget: "markdown",
|
|
||||||
required: false,
|
required: false,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
|
@ -48,7 +48,6 @@ const ChronikseitenCollection = {
|
|||||||
{
|
{
|
||||||
name: "body",
|
name: "body",
|
||||||
label: "Inhalt",
|
label: "Inhalt",
|
||||||
widget: "markdown",
|
|
||||||
required: false,
|
required: false,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
|
@ -55,7 +55,6 @@ const FormsCollection = {
|
|||||||
{
|
{
|
||||||
name: "body",
|
name: "body",
|
||||||
label: "Inhalt",
|
label: "Inhalt",
|
||||||
widget: "markdown",
|
|
||||||
required: false,
|
required: false,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { MarkdownProps } from "../props.js";
|
import { MarkdownProps, ImageProps } from "../props.js";
|
||||||
import { Title, DescriptionText, DraftBoolean } from "./widgets.js";
|
import { Title, DescriptionText, DraftBoolean } from "./widgets.js";
|
||||||
|
|
||||||
const GanztagCollection = {
|
const GanztagCollection = {
|
||||||
@ -27,8 +27,8 @@ const GanztagCollection = {
|
|||||||
{
|
{
|
||||||
name: "image",
|
name: "image",
|
||||||
label: "Titelbild",
|
label: "Titelbild",
|
||||||
widget: "image",
|
|
||||||
default: "/media/ganztagsangebote/image.webp",
|
default: "/media/ganztagsangebote/image.webp",
|
||||||
|
...ImageProps,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -82,7 +82,6 @@ const GanztagCollection = {
|
|||||||
{
|
{
|
||||||
name: "body",
|
name: "body",
|
||||||
label: "Inhalt",
|
label: "Inhalt",
|
||||||
widget: "markdown",
|
|
||||||
required: false,
|
required: false,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
|
@ -3,6 +3,7 @@ import {
|
|||||||
DateFormat,
|
DateFormat,
|
||||||
MarkdownProps,
|
MarkdownProps,
|
||||||
PatternEmail,
|
PatternEmail,
|
||||||
|
ImageProps
|
||||||
} from "../props.js";
|
} from "../props.js";
|
||||||
import { DescriptionText, EnableBoolean, Title } from "./widgets.js";
|
import { DescriptionText, EnableBoolean, Title } from "./widgets.js";
|
||||||
|
|
||||||
@ -36,8 +37,7 @@ const IndexPagesCollection = {
|
|||||||
{
|
{
|
||||||
name: "image",
|
name: "image",
|
||||||
label: "Bild",
|
label: "Bild",
|
||||||
widget: "image",
|
...ImageProps,
|
||||||
required: false,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "stats",
|
name: "stats",
|
||||||
@ -75,7 +75,6 @@ const IndexPagesCollection = {
|
|||||||
{
|
{
|
||||||
name: "body",
|
name: "body",
|
||||||
label: "Inhalt",
|
label: "Inhalt",
|
||||||
widget: "markdown",
|
|
||||||
required: false,
|
required: false,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
@ -91,7 +90,6 @@ const IndexPagesCollection = {
|
|||||||
{
|
{
|
||||||
name: "body",
|
name: "body",
|
||||||
label: "Inhalt",
|
label: "Inhalt",
|
||||||
widget: "markdown",
|
|
||||||
required: false,
|
required: false,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
@ -107,7 +105,6 @@ const IndexPagesCollection = {
|
|||||||
{
|
{
|
||||||
name: "content",
|
name: "content",
|
||||||
label: "Inhalt",
|
label: "Inhalt",
|
||||||
widget: "markdown",
|
|
||||||
required: true,
|
required: true,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
@ -131,7 +128,6 @@ const IndexPagesCollection = {
|
|||||||
{
|
{
|
||||||
name: "body",
|
name: "body",
|
||||||
label: "Inhalt",
|
label: "Inhalt",
|
||||||
widget: "markdown",
|
|
||||||
required: false,
|
required: false,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
@ -273,7 +269,6 @@ const IndexPagesCollection = {
|
|||||||
{
|
{
|
||||||
name: "body",
|
name: "body",
|
||||||
label: "Inhalt",
|
label: "Inhalt",
|
||||||
widget: "markdown",
|
|
||||||
required: false,
|
required: false,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
@ -289,7 +284,6 @@ const IndexPagesCollection = {
|
|||||||
{
|
{
|
||||||
name: "body",
|
name: "body",
|
||||||
label: "Inhalt",
|
label: "Inhalt",
|
||||||
widget: "markdown",
|
|
||||||
required: false,
|
required: false,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
@ -302,8 +296,7 @@ const IndexPagesCollection = {
|
|||||||
{
|
{
|
||||||
name: "image",
|
name: "image",
|
||||||
label: "Bild",
|
label: "Bild",
|
||||||
widget: "image",
|
...ImageProps,
|
||||||
required: false,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "quote",
|
name: "quote",
|
||||||
|
@ -48,7 +48,6 @@ const PagesCollection = {
|
|||||||
{
|
{
|
||||||
name: "body",
|
name: "body",
|
||||||
label: "Inhalt",
|
label: "Inhalt",
|
||||||
widget: "markdown",
|
|
||||||
required: false,
|
required: false,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
|
@ -32,7 +32,6 @@ const ProjektwocheCollection = {
|
|||||||
{
|
{
|
||||||
name: "body",
|
name: "body",
|
||||||
label: "Inhalt",
|
label: "Inhalt",
|
||||||
widget: "markdown",
|
|
||||||
required: false,
|
required: false,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
@ -61,7 +60,6 @@ const ProjektwocheCollection = {
|
|||||||
{
|
{
|
||||||
name: "content",
|
name: "content",
|
||||||
label: "Inhalt",
|
label: "Inhalt",
|
||||||
widget: "markdown",
|
|
||||||
required: true,
|
required: true,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
|
@ -3,6 +3,7 @@ import {
|
|||||||
DateFormat,
|
DateFormat,
|
||||||
MarkdownProps,
|
MarkdownProps,
|
||||||
PatternEmail,
|
PatternEmail,
|
||||||
|
ImageProps
|
||||||
} from "../props.js";
|
} from "../props.js";
|
||||||
import {
|
import {
|
||||||
ButtonObject,
|
ButtonObject,
|
||||||
@ -40,7 +41,6 @@ const SettingsCollection = {
|
|||||||
{
|
{
|
||||||
name: "text",
|
name: "text",
|
||||||
label: "Text",
|
label: "Text",
|
||||||
widget: "markdown",
|
|
||||||
required: false,
|
required: false,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
@ -90,7 +90,7 @@ const SettingsCollection = {
|
|||||||
{
|
{
|
||||||
name: "bg_image",
|
name: "bg_image",
|
||||||
label: "Hintergrundbild",
|
label: "Hintergrundbild",
|
||||||
widget: "image",
|
...ImageProps,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
Title(false),
|
Title(false),
|
||||||
@ -136,7 +136,7 @@ const SettingsCollection = {
|
|||||||
{
|
{
|
||||||
name: "image",
|
name: "image",
|
||||||
label: "Grafik",
|
label: "Grafik",
|
||||||
widget: "image",
|
...ImageProps,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@ -153,7 +153,6 @@ const SettingsCollection = {
|
|||||||
{
|
{
|
||||||
name: "content",
|
name: "content",
|
||||||
label: "Inhalt",
|
label: "Inhalt",
|
||||||
widget: "markdown",
|
|
||||||
required: false,
|
required: false,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
@ -175,7 +174,7 @@ const SettingsCollection = {
|
|||||||
{
|
{
|
||||||
name: "image",
|
name: "image",
|
||||||
label: "Hintergrundbild",
|
label: "Hintergrundbild",
|
||||||
widget: "image",
|
...ImageProps,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -200,13 +199,11 @@ const SettingsCollection = {
|
|||||||
{
|
{
|
||||||
name: "image",
|
name: "image",
|
||||||
label: "Grafik",
|
label: "Grafik",
|
||||||
widget: "image",
|
...ImageProps,
|
||||||
required: false,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "content",
|
name: "content",
|
||||||
label: "Inhalt",
|
label: "Inhalt",
|
||||||
widget: "markdown",
|
|
||||||
required: false,
|
required: false,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
@ -228,7 +225,6 @@ const SettingsCollection = {
|
|||||||
{
|
{
|
||||||
name: "content",
|
name: "content",
|
||||||
label: "Inhalt",
|
label: "Inhalt",
|
||||||
widget: "markdown",
|
|
||||||
required: false,
|
required: false,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
@ -269,14 +265,13 @@ const SettingsCollection = {
|
|||||||
{
|
{
|
||||||
name: "bg_image",
|
name: "bg_image",
|
||||||
label: "Hintergrundbild",
|
label: "Hintergrundbild",
|
||||||
widget: "image",
|
...ImageProps,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
Title(false),
|
Title(false),
|
||||||
{
|
{
|
||||||
name: "content",
|
name: "content",
|
||||||
label: "Inhalt",
|
label: "Inhalt",
|
||||||
widget: "markdown",
|
|
||||||
required: false,
|
required: false,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
@ -304,13 +299,11 @@ const SettingsCollection = {
|
|||||||
{
|
{
|
||||||
name: "image",
|
name: "image",
|
||||||
label: "Bild",
|
label: "Bild",
|
||||||
widget: "image",
|
...ImageProps,
|
||||||
required: false,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "content",
|
name: "content",
|
||||||
label: "Inhalt",
|
label: "Inhalt",
|
||||||
widget: "markdown",
|
|
||||||
required: false,
|
required: false,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
@ -340,7 +333,7 @@ const SettingsCollection = {
|
|||||||
{
|
{
|
||||||
name: "image",
|
name: "image",
|
||||||
label: "Grafik",
|
label: "Grafik",
|
||||||
widget: "image",
|
...ImageProps,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@ -360,13 +353,12 @@ const SettingsCollection = {
|
|||||||
{
|
{
|
||||||
name: "image",
|
name: "image",
|
||||||
label: "Titelbild",
|
label: "Titelbild",
|
||||||
widget: "image",
|
...ImageProps,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "content",
|
name: "content",
|
||||||
label: "Inhalt",
|
label: "Inhalt",
|
||||||
widget: "markdown",
|
|
||||||
required: false,
|
required: false,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
@ -512,7 +504,7 @@ const SettingsCollection = {
|
|||||||
{
|
{
|
||||||
name: "logo",
|
name: "logo",
|
||||||
label: "Logo",
|
label: "Logo",
|
||||||
widget: "image",
|
...ImageProps,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -579,13 +571,13 @@ const SettingsCollection = {
|
|||||||
{
|
{
|
||||||
name: "preloader",
|
name: "preloader",
|
||||||
label: "Logo",
|
label: "Logo",
|
||||||
widget: "image",
|
...ImageProps,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "loader",
|
name: "loader",
|
||||||
label: "Ladeanimation",
|
label: "Ladeanimation",
|
||||||
widget: "image",
|
...ImageProps,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@ -630,7 +622,6 @@ const SettingsCollection = {
|
|||||||
name: "copyright",
|
name: "copyright",
|
||||||
label: "Copyright-Eintrag",
|
label: "Copyright-Eintrag",
|
||||||
hint: "Am Seitenende sichtbar",
|
hint: "Am Seitenende sichtbar",
|
||||||
widget: "markdown",
|
|
||||||
required: true,
|
required: true,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
|
@ -74,8 +74,7 @@ const SuperhaufenCollection = {
|
|||||||
{
|
{
|
||||||
name: "content",
|
name: "content",
|
||||||
label: "Inhalt",
|
label: "Inhalt",
|
||||||
widget: "markdown",
|
required: false,
|
||||||
required: true,
|
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -89,8 +88,7 @@ const SuperhaufenCollection = {
|
|||||||
{
|
{
|
||||||
name: "content",
|
name: "content",
|
||||||
label: "Inhalt",
|
label: "Inhalt",
|
||||||
widget: "markdown",
|
required: false,
|
||||||
required: true,
|
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { MarkdownProps } from "../props.js";
|
import { MarkdownProps, ImageProps } from "../props.js";
|
||||||
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
||||||
|
|
||||||
const WettbewerbeCollection = {
|
const WettbewerbeCollection = {
|
||||||
@ -26,7 +26,7 @@ const WettbewerbeCollection = {
|
|||||||
{
|
{
|
||||||
name: "image",
|
name: "image",
|
||||||
label: "Titelbild",
|
label: "Titelbild",
|
||||||
widget: "image",
|
...ImageProps,
|
||||||
required: true,
|
required: true,
|
||||||
default: "/media/image.webp",
|
default: "/media/image.webp",
|
||||||
},
|
},
|
||||||
@ -63,7 +63,6 @@ const WettbewerbeCollection = {
|
|||||||
{
|
{
|
||||||
name: "body",
|
name: "body",
|
||||||
label: "Inhalt",
|
label: "Inhalt",
|
||||||
widget: "markdown",
|
|
||||||
required: true,
|
required: true,
|
||||||
...MarkdownProps,
|
...MarkdownProps,
|
||||||
},
|
},
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
const MarkdownProps = {
|
const MarkdownProps = {
|
||||||
|
widget: "markdown",
|
||||||
toolbar_buttons: {
|
toolbar_buttons: {
|
||||||
main: [
|
main: [
|
||||||
"bold",
|
"bold",
|
||||||
@ -74,4 +75,12 @@ const PatternEmail = {
|
|||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
export { MarkdownProps, DateFormat, DataObject, PatternEmail };
|
const ImageProps = {
|
||||||
|
widget: "image",
|
||||||
|
required: false,
|
||||||
|
media_library: {
|
||||||
|
folder_support: true,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
export { MarkdownProps, DateFormat, DataObject, PatternEmail, ImageProps };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user