gcg-website/static/admin/config/props.js

94 lines
1.6 KiB
JavaScript
Raw Normal View History

const EditorProps = {
create: true,
editor: {
preview: true,
frame: true,
size: "half",
},
};
2023-05-11 06:44:30 +02:00
const MarkdownProps = {
widget: "markdown",
2024-01-07 15:18:05 +01:00
show_raw: true,
2023-05-29 16:22:34 +02:00
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",
],
},
2023-05-11 06:44:30 +02:00
};
const DateFormat = {
2023-05-29 16:22:34 +02:00
date_format: "dd.MM.yyyy",
time_format: false,
format: "yyyy-MM-dd'T'HH:mm:ss.SSSXXX",
2023-05-11 06:44:30 +02:00
};
2023-05-29 16:22:34 +02:00
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,
};
export { EditorProps, MarkdownProps, DateFormat, DataObject, PatternEmail, ImageProps };