@schneiderelli/cms-runtime 0.0.11 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -73,6 +73,38 @@
|
|
|
73
73
|
list-style-type: square;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
/* Quill indent classes */
|
|
77
|
+
.csm-markdown :global(.ql-indent-1) {
|
|
78
|
+
padding-left: 3em;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.csm-markdown :global(.ql-indent-2) {
|
|
82
|
+
padding-left: 6em;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.csm-markdown :global(.ql-indent-3) {
|
|
86
|
+
padding-left: 9em;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.csm-markdown :global(.ql-indent-4) {
|
|
90
|
+
padding-left: 12em;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.csm-markdown :global(.ql-indent-5) {
|
|
94
|
+
padding-left: 15em;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Subscript and Superscript */
|
|
98
|
+
.csm-markdown :global(sub) {
|
|
99
|
+
font-size: 0.75em;
|
|
100
|
+
vertical-align: sub;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.csm-markdown :global(sup) {
|
|
104
|
+
font-size: 0.75em;
|
|
105
|
+
vertical-align: super;
|
|
106
|
+
}
|
|
107
|
+
|
|
76
108
|
.csm-markdown :global(strong) {
|
|
77
109
|
font-weight: 600;
|
|
78
110
|
}
|
package/dist/registry.js
CHANGED
|
@@ -13,9 +13,9 @@ export const blockRegistry = [
|
|
|
13
13
|
// =========================================================================
|
|
14
14
|
{
|
|
15
15
|
type: 'markdown',
|
|
16
|
-
label: '
|
|
16
|
+
label: 'Text',
|
|
17
17
|
icon: '📝',
|
|
18
|
-
description: '
|
|
18
|
+
description: 'Rich-Text mit Headings, Listen, Code, Tabellen, etc.',
|
|
19
19
|
category: 'content',
|
|
20
20
|
defaults: { content: '' },
|
|
21
21
|
fields: [
|
|
@@ -28,169 +28,6 @@ export const blockRegistry = [
|
|
|
28
28
|
}
|
|
29
29
|
]
|
|
30
30
|
},
|
|
31
|
-
{
|
|
32
|
-
type: 'heading',
|
|
33
|
-
label: 'Überschrift',
|
|
34
|
-
icon: '🔤',
|
|
35
|
-
description: 'Überschrift H1-H6',
|
|
36
|
-
category: 'content',
|
|
37
|
-
defaults: { text: '', level: 2 },
|
|
38
|
-
fields: [
|
|
39
|
-
{
|
|
40
|
-
name: 'text',
|
|
41
|
-
label: 'Text',
|
|
42
|
-
type: 'text',
|
|
43
|
-
required: true,
|
|
44
|
-
placeholder: 'Überschrift eingeben...'
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
name: 'level',
|
|
48
|
-
label: 'Level',
|
|
49
|
-
type: 'select',
|
|
50
|
-
options: [
|
|
51
|
-
{ value: '1', label: 'H1 - Hauptüberschrift' },
|
|
52
|
-
{ value: '2', label: 'H2 - Abschnitt' },
|
|
53
|
-
{ value: '3', label: 'H3 - Unterabschnitt' },
|
|
54
|
-
{ value: '4', label: 'H4' },
|
|
55
|
-
{ value: '5', label: 'H5' },
|
|
56
|
-
{ value: '6', label: 'H6' }
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
]
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
type: 'quote',
|
|
63
|
-
label: 'Zitat',
|
|
64
|
-
icon: '💬',
|
|
65
|
-
description: 'Zitat mit optionaler Quellenangabe',
|
|
66
|
-
category: 'content',
|
|
67
|
-
defaults: { content: '', source: '' },
|
|
68
|
-
fields: [
|
|
69
|
-
{
|
|
70
|
-
name: 'content',
|
|
71
|
-
label: 'Zitat',
|
|
72
|
-
type: 'textarea',
|
|
73
|
-
required: true,
|
|
74
|
-
placeholder: 'Zitat eingeben...'
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
name: 'source',
|
|
78
|
-
label: 'Quelle',
|
|
79
|
-
type: 'text',
|
|
80
|
-
placeholder: 'Autor oder Quelle...'
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
type: 'note',
|
|
86
|
-
label: 'Hinweis',
|
|
87
|
-
icon: '💡',
|
|
88
|
-
description: 'Info-Box, Warnung, Tipp oder Fehler',
|
|
89
|
-
category: 'content',
|
|
90
|
-
defaults: { content: '', variant: 'info' },
|
|
91
|
-
fields: [
|
|
92
|
-
{
|
|
93
|
-
name: 'content',
|
|
94
|
-
label: 'Inhalt',
|
|
95
|
-
type: 'markdown',
|
|
96
|
-
required: true,
|
|
97
|
-
placeholder: 'Hinweis-Text...'
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
name: 'variant',
|
|
101
|
-
label: 'Typ',
|
|
102
|
-
type: 'select',
|
|
103
|
-
options: [
|
|
104
|
-
{ value: 'info', label: '💙 Info' },
|
|
105
|
-
{ value: 'tip', label: '💚 Tipp' },
|
|
106
|
-
{ value: 'warning', label: '💛 Warnung' },
|
|
107
|
-
{ value: 'danger', label: '❤️ Achtung' }
|
|
108
|
-
]
|
|
109
|
-
}
|
|
110
|
-
]
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
type: 'faq',
|
|
114
|
-
label: 'FAQ',
|
|
115
|
-
icon: '❓',
|
|
116
|
-
description: 'Häufig gestellte Fragen',
|
|
117
|
-
category: 'content',
|
|
118
|
-
defaults: { title: '', items: [] },
|
|
119
|
-
fields: [
|
|
120
|
-
{
|
|
121
|
-
name: 'title',
|
|
122
|
-
label: 'Titel (optional)',
|
|
123
|
-
type: 'text',
|
|
124
|
-
placeholder: 'Häufige Fragen'
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
name: 'items',
|
|
128
|
-
label: 'Fragen',
|
|
129
|
-
type: 'list',
|
|
130
|
-
listFields: [
|
|
131
|
-
{ name: 'q', label: 'Frage', type: 'text', required: true },
|
|
132
|
-
{ name: 'a', label: 'Antwort', type: 'markdown', required: true }
|
|
133
|
-
]
|
|
134
|
-
}
|
|
135
|
-
]
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
type: 'howto',
|
|
139
|
-
label: 'Anleitung',
|
|
140
|
-
icon: '📋',
|
|
141
|
-
description: 'Schritt-für-Schritt-Anleitung',
|
|
142
|
-
category: 'content',
|
|
143
|
-
defaults: { title: '', steps: [] },
|
|
144
|
-
fields: [
|
|
145
|
-
{
|
|
146
|
-
name: 'title',
|
|
147
|
-
label: 'Titel (optional)',
|
|
148
|
-
type: 'text',
|
|
149
|
-
placeholder: 'So gehts...'
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
name: 'steps',
|
|
153
|
-
label: 'Schritte',
|
|
154
|
-
type: 'list',
|
|
155
|
-
listFields: [
|
|
156
|
-
{ name: 'title', label: 'Schritt-Titel', type: 'text', required: true },
|
|
157
|
-
{ name: 'description', label: 'Beschreibung', type: 'markdown', required: true }
|
|
158
|
-
]
|
|
159
|
-
}
|
|
160
|
-
]
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
type: 'hero',
|
|
164
|
-
label: 'Hero',
|
|
165
|
-
icon: '🦸',
|
|
166
|
-
description: 'Großer Titel-Bereich',
|
|
167
|
-
category: 'content',
|
|
168
|
-
defaults: { title: '', subtitle: '' },
|
|
169
|
-
fields: [
|
|
170
|
-
{
|
|
171
|
-
name: 'title',
|
|
172
|
-
label: 'Titel',
|
|
173
|
-
type: 'text',
|
|
174
|
-
required: true,
|
|
175
|
-
placeholder: 'Haupttitel'
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
name: 'subtitle',
|
|
179
|
-
label: 'Untertitel',
|
|
180
|
-
type: 'textarea',
|
|
181
|
-
placeholder: 'Kurze Beschreibung...'
|
|
182
|
-
}
|
|
183
|
-
]
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
type: 'divider',
|
|
187
|
-
label: 'Trennlinie',
|
|
188
|
-
icon: '➖',
|
|
189
|
-
description: 'Horizontale Trennlinie',
|
|
190
|
-
category: 'content',
|
|
191
|
-
defaults: {},
|
|
192
|
-
fields: []
|
|
193
|
-
},
|
|
194
31
|
// =========================================================================
|
|
195
32
|
// MEDIA BLOCKS
|
|
196
33
|
// =========================================================================
|
package/package.json
CHANGED