Vulcan/packages/telescope-embedly/lib/embedly.js

69 lines
No EOL
1.2 KiB
JavaScript

var thumbnailProperty = {
propertyName: 'thumbnailUrl',
propertySchema: {
type: String,
optional: true,
label: 'thumbnail',
autoform: {
type: 'bootstrap-postthumbnail'
}
}
}
addToPostSchema.push(thumbnailProperty);
var mediaProperty = {
propertyName: 'media',
propertySchema: {
type: Object,
optional: true,
blackbox: true,
hidden: true,
autoform: {
omit: true
}
}
}
addToPostSchema.push(mediaProperty);
postModules.push({
template: 'postThumbnail',
position: 'center-left'
});
var embedlyKeyProperty = {
propertyName: 'embedlyKey',
propertySchema: {
type: String,
optional: true,
autoform: {
group: 'embedly',
private: true
}
}
}
addToSettingsSchema.push(embedlyKeyProperty);
var thumbnailWidthProperty = {
propertyName: 'thumbnailWidth',
propertySchema: {
type: Number,
optional: true,
autoform: {
group: 'embedly'
}
}
}
addToSettingsSchema.push(thumbnailWidthProperty);
var thumbnailHeightProperty = {
propertyName: 'thumbnailHeight',
propertySchema: {
type: Number,
optional: true,
autoform: {
group: 'embedly'
}
}
}
addToSettingsSchema.push(thumbnailHeightProperty);