gcg-website/static/admin/config/props.js
Denys Konovalov 25af663be4
All checks were successful
website-main / prod-build (push) Successful in 13s
website-main / test-build (push) Successful in 5s
Static CMS v4 (#252)
Reviewed-on: #252
2023-12-13 12:42:59 +01:00

99 lines
1.7 KiB
JavaScript

const EditorProps = {
create: true,
editor: {
preview: true,
frame: true,
size: "half",
},
};
const MarkdownProps = {
widget: "markdown",
toolbar_buttons: {
main: [
"bold",
"italic",
"strikethrough",
"code",
"font",
"unordered-list",
"ordered-list",
"decrease-indent",
"increase-indent",
"insert-table",
"blockquote",
"file-link",
"code-block",
"shortcode",
],
empty: [],
selection: [
"bold",
"italic",
"strikethrough",
"code",
"font",
"file-link",
"blockquote",
],
table_empty: [
"bold",
"italic",
"strikethrough",
"code",
"insert-row",
"delete-row",
"insert-column",
"delete-column",
"delete-table",
"file-link",
"shortcode",
],
table_selection: [
"bold",
"italic",
"strikethrough",
"code",
"insert-row",
"delete-row",
"insert-column",
"delete-column",
"delete-table",
"file-link",
"shortcode",
],
},
media_library: {
folder_support: true,
}
};
const DateFormat = {
date_format: "dd.MM.yyyy",
time_format: false,
format: "yyyy-MM-dd'T'HH:mm:ss.SSSXXX",
};
const DataObject = {
widget: "object",
collapsed: true,
summary: "{{fields.enable | ternary('aktiv', 'inaktiv')}}",
};
const PatternEmail = {
pattern: [
"^\\w+([-+.']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$",
"name@domain.tld",
],
};
const ImageProps = {
widget: "image",
required: false,
media_library: {
folder_support: true,
}
};
export { EditorProps, MarkdownProps, DateFormat, DataObject, PatternEmail, ImageProps };