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

70 lines
1.2 KiB
JavaScript
Raw Normal View History

2014-08-29 10:37:35 +09:00
var thumbnailProperty = {
propertyName: 'thumbnailUrl',
propertySchema: {
type: String,
label: 'thumbnail',
2014-12-06 11:56:57 +09:00
optional: true,
2014-10-06 10:40:45 +09:00
autoform: {
2014-12-06 11:56:57 +09:00
editable: true,
type: 'bootstrap-postthumbnail'
2014-10-06 10:40:45 +09:00
}
2014-08-29 10:37:35 +09:00
}
}
addToPostSchema.push(thumbnailProperty);
var mediaProperty = {
propertyName: 'media',
propertySchema: {
type: Object,
optional: true,
2014-10-05 17:20:15 +09:00
blackbox: true,
hidden: true,
autoform: {
2014-10-06 10:40:45 +09:00
omit: true
2014-10-05 17:20:15 +09:00
}
2014-08-29 10:37:35 +09:00
}
}
addToPostSchema.push(mediaProperty);
postModules.push({
template: 'postThumbnail',
position: 'center-left'
});
var embedlyKeyProperty = {
propertyName: 'embedlyKey',
propertySchema: {
type: String,
optional: true,
autoform: {
group: 'embedly',
private: true
}
2014-08-29 10:37:35 +09:00
}
}
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);