@@ -68,6 +68,18 @@ const commentsSchema = {
68
68
}
69
69
} ;
70
70
71
+ const thumbs = {
72
+ teaserImg : {
73
+ cardS : '300x0/filters:background_color(fff)' ,
74
+ cardM : '400x0/filters:background_color(fff)' ,
75
+ cardL : '740x0/filters:background_color(fff)' ,
76
+ placeholder : '100x0/filters:blur(30):background_color(fff)' ,
77
+ zoom : '0x1024/filters:background_color(fff)' ,
78
+ cover : '729x300/smart/filters:background_color(fff)' ,
79
+ coverPlaceholder : '243x100/smart/filters:blur(30):background_color(fff)'
80
+ }
81
+ } ;
82
+
71
83
module . exports = {
72
84
before : {
73
85
all : [ ] ,
@@ -148,77 +160,27 @@ module.exports = {
148
160
getAssociatedCanDos ( )
149
161
) ,
150
162
xss ( { fields : [ 'content' , 'contentExcerpt' ] } ) ,
151
- thumbnails ( {
152
- teaserImg : {
153
- cardS : '300x0' ,
154
- cardM : '400x0' ,
155
- cardL : '740x0' ,
156
- placeholder : '100x0/filters:blur(30)' ,
157
- zoom : '0x1024' ,
158
- cover : '729x300/smart' ,
159
- coverPlaceholder : '243x100/smart/filters:blur(30)'
160
- }
161
- } )
163
+ thumbnails ( thumbs )
162
164
] ,
163
165
get : [
164
166
getAssociatedCanDos ( ) ,
165
167
xss ( { fields : [ 'content' , 'contentExcerpt' ] } ) ,
166
- thumbnails ( {
167
- teaserImg : {
168
- cardS : '300x0' ,
169
- cardM : '400x0' ,
170
- cardL : '740x0' ,
171
- zoom : '0x1024' ,
172
- cover : '800x300/smart' ,
173
- placeholder : '800x300/filters:blur(10)' ,
174
- coverPlaceholder : '243x100/smart/filters:blur(30)'
175
- }
176
- } )
168
+ thumbnails ( thumbs )
177
169
] ,
178
170
create : [
179
171
createMentionNotifications ( ) ,
180
172
xss ( { fields : [ 'content' , 'contentExcerpt' ] } ) ,
181
- thumbnails ( {
182
- teaserImg : {
183
- cardS : '300x0' ,
184
- cardM : '400x0' ,
185
- cardL : '740x0' ,
186
- placeholder : '100x0/filters:blur(30)' ,
187
- zoom : '0x1024' ,
188
- cover : '729x300/smart' ,
189
- coverPlaceholder : '243x100/smart/filters:blur(30)'
190
- }
191
- } )
173
+ thumbnails ( thumbs )
192
174
] ,
193
175
update : [
194
176
createMentionNotifications ( ) ,
195
177
xss ( { fields : [ 'content' , 'contentExcerpt' ] } ) ,
196
- thumbnails ( {
197
- teaserImg : {
198
- cardS : '300x0' ,
199
- cardM : '400x0' ,
200
- cardL : '740x0' ,
201
- placeholder : '100x0/filters:blur(30)' ,
202
- zoom : '0x1024' ,
203
- cover : '729x300/smart' ,
204
- coverPlaceholder : '243x100/smart/filters:blur(30)'
205
- }
206
- } )
178
+ thumbnails ( thumbs )
207
179
] ,
208
180
patch : [
209
181
createMentionNotifications ( ) ,
210
182
xss ( { fields : [ 'content' , 'contentExcerpt' ] } ) ,
211
- thumbnails ( {
212
- teaserImg : {
213
- cardS : '300x0' ,
214
- cardM : '400x0' ,
215
- cardL : '740x0' ,
216
- placeholder : '100x0/filters:blur(30)' ,
217
- zoom : '0x1024' ,
218
- cover : '729x300/smart' ,
219
- coverPlaceholder : '243x100/smart/filters:blur(30)'
220
- }
221
- } )
183
+ thumbnails ( thumbs )
222
184
] ,
223
185
remove : [ ]
224
186
} ,
0 commit comments