mirror of
https://github.com/vale981/Vulcan
synced 2025-03-05 09:31:43 -05:00
vulcan:embedly -> vulcan:embed
This commit is contained in:
parent
d8159d3bde
commit
c8f35e88e2
20 changed files with 15 additions and 43 deletions
|
@ -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
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ Package.onUse(function (api) {
|
|||
'vulcan:forms',
|
||||
'vulcan:newsletter',
|
||||
'vulcan:events',
|
||||
'vulcan:embedly',
|
||||
'vulcan:embed',
|
||||
|
||||
]);
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
]);
|
|
@ -7,7 +7,7 @@ Example usage:
|
|||
export default withMutation({
|
||||
name: 'getEmbedData',
|
||||
args: {url: 'String'},
|
||||
})(EmbedlyURL);
|
||||
})(EmbedURL);
|
||||
|
||||
*/
|
||||
|
||||
|
|
|
@ -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]);
|
3
packages/vulcan-embed/lib/modules/index.js
Normal file
3
packages/vulcan-embed/lib/modules/index.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
export { EmbedURL } from '../components/EmbedURL.jsx';
|
||||
|
||||
export * from './embed.js';
|
|
@ -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'
|
||||
});
|
|
@ -1,3 +0,0 @@
|
|||
export { EmbedlyURL } from '../components/EmbedlyURL.jsx';
|
||||
|
||||
export * from './embed.js';
|
Loading…
Add table
Reference in a new issue