vulcan:embedly -> vulcan:embed

This commit is contained in:
SachaG 2017-09-15 10:05:18 +02:00
parent d8159d3bde
commit c8f35e88e2
20 changed files with 15 additions and 43 deletions

View file

@ -1,11 +1,11 @@
import Posts from '../posts/index.js';
import { EmbedlyURL } from 'meteor/vulcan:embedly';
import { EmbedURL } from 'meteor/vulcan:embed';
Posts.addField([
{
fieldName: 'url',
fieldSchema: {
control: EmbedlyURL, // we are just extending the field url, not replacing it
control: EmbedURL, // we are just extending the field url, not replacing it
}
},
{

View file

@ -5,7 +5,7 @@ Callbacks to add media/thumbnail after submit and on edit
*/
import { addCallback, getSetting } from 'meteor/vulcan:core';
import Embed from 'meteor/vulcan:embedly';
import Embed from 'meteor/vulcan:embed';
const embedProvider = getSetting('embedProvider', 'builtin');

View file

@ -23,7 +23,7 @@ Package.onUse(function (api) {
'vulcan:forms',
'vulcan:newsletter',
'vulcan:events',
'vulcan:embedly',
'vulcan:embed',
]);

View file

@ -1,28 +0,0 @@
import { Posts } from 'meteor/example-forum';
Posts.addField([
{
fieldName: 'cloudinaryId',
fieldSchema: {
type: String,
optional: true,
viewableBy: ['guests'],
}
},
{
fieldName: 'cloudinaryUrls',
fieldSchema: {
type: Array,
optional: true,
viewableBy: ['guests'],
}
},
{
fieldName: 'cloudinaryUrls.$',
fieldSchema: {
type: Object,
blackbox: true,
optional: true
}
}
]);

View file

@ -7,7 +7,7 @@ Example usage:
export default withMutation({
name: 'getEmbedData',
args: {url: 'String'},
})(EmbedlyURL);
})(EmbedURL);
*/

View file

@ -6,7 +6,7 @@ import FRC from 'formsy-react-components';
const Input = FRC.Input;
class EmbedlyURL extends Component {
class EmbedURL extends Component {
constructor(props) {
super(props);
@ -182,13 +182,13 @@ class EmbedlyURL extends Component {
}
}
EmbedlyURL.propTypes = {
EmbedURL.propTypes = {
name: PropTypes.string,
value: PropTypes.any,
label: PropTypes.string
}
EmbedlyURL.contextTypes = {
EmbedURL.contextTypes = {
updateCurrentValues: PropTypes.func,
addToDeletedValues: PropTypes.func,
throwError: PropTypes.func,
@ -202,6 +202,6 @@ const options = {
args: {url: 'String'},
}
export default withMutation(options)(EmbedlyURL);
export default withMutation(options)(EmbedURL);
registerComponent('EmbedlyURL', EmbedlyURL, [withMutation, options]);
registerComponent('EmbedURL', EmbedURL, [withMutation, options]);

View file

@ -0,0 +1,3 @@
export { EmbedURL } from '../components/EmbedURL.jsx';
export * from './embed.js';

View file

@ -1,6 +1,6 @@
Package.describe({
name: "vulcan:embedly",
summary: "Vulcan Embedly module package",
name: "vulcan:embed",
summary: "Vulcan Embed package",
version: '1.7.0',
git: 'https://github.com/VulcanJS/Vulcan.git'
});

View file

@ -1,3 +0,0 @@
export { EmbedlyURL } from '../components/EmbedlyURL.jsx';
export * from './embed.js';