Skip to content

Commit 102b938

Browse files
committed
add version of react package v0.12.2
1 parent fe6039b commit 102b938

File tree

11 files changed

+27
-27
lines changed

11 files changed

+27
-27
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Installing this component is very easy and it has just one dependency: [React](h
2020
$ bower install --save react-video
2121
```
2222

23-
- Or if you want to [download the lastest release](https://github.com/pedronauck/react-video/archive/v1.3.0.zip) and put in your website, it will work too!
23+
- Or if you want to [download the lastest release](https://github.com/pedronauck/react-video/archive/v1.4.0.zip) and put in your website, it will work too!
2424

2525
**NOTICE:** You need just one thing to make the component work. Put the [base component style](./dist/react-video.css) at the `<header>` tag. If you don't wanna use the `.css` extension, you can get the `.styl` or `.scss` extension at the folder `./lib`.
2626

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-video",
3-
"version": "1.3.0",
3+
"version": "1.4.0",
44
"description": "React component to load video from Vimeo or Youtube across any device",
55
"homepage": "https://github.com/pedronauck/react-video",
66
"authors": [

dist/react-video.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* React Video - React component to load video from Vimeo or Youtube across any device
3-
* @version v1.3.0
3+
* @version v1.4.0
44
* @link https://github.com/pedronauck/react-video
55
* @license MIT
66
* @author Pedro Nauck (https://github.com/pedronauck)

dist/react-video.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* React Video - React component to load video from Vimeo or Youtube across any device
3-
* @version v1.3.0
3+
* @version v1.4.0
44
* @link https://github.com/pedronauck/react-video
55
* @license MIT
66
* @author Pedro Nauck (https://github.com/pedronauck)
@@ -87,10 +87,10 @@ return /******/ (function(modules) { // webpackBootstrap
8787
};
8888
},
8989
isYoutube:function() {
90-
return this.props.from === 'youtube' || isNaN(this.props.id);
90+
return this.props.from === 'youtube' || isNaN(this.props.videoId);
9191
},
9292
isVimeo:function() {
93-
return this.props.from === 'vimeo' || !isNaN(this.props.id);
93+
return this.props.from === 'vimeo' || !isNaN(this.props.videoId);
9494
},
9595
componentDidMount:function() {
9696
this.isYoutube() && this.fetchYoutubeData();

dist/react-video.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-video.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<h1 class="title">React Video</h1>
2525
<ul class="github-buttons">
2626
<li>
27-
<a href="https://github.com/pedronauck/react-video/archive/v1.3.0.zip">Download v1.3.0</a>
27+
<a href="https://github.com/pedronauck/react-video/archive/v1.4.0.zip">Download v1.4.0</a>
2828
</li>
2929
<li>
3030
<a href="http://github.com/pedronauck/react-video">
@@ -113,8 +113,8 @@ <h2 class="section-title">Usage</h2>
113113
Made with ❤︎ by <a href="http://github.com/pedronauck">Pedro Nauck</a>
114114
</footer>
115115

116-
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.11.2/react-with-addons.min.js"></script>
117-
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.11.2/JSXTransformer.js"></script>
116+
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.12.2/react-with-addons.min.js"></script>
117+
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.12.2/JSXTransformer.js"></script>
118118
<script src="js/react-video.min.js"></script>
119119
<script src="js/highlight.pack.js"></script>
120120
<script>hljs.initHighlightingOnLoad();</script>

docs/js/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
var $vimeoBtn = document.querySelector('.cover-button-item[data-from="vimeo"]');
77
var mountNode = document.querySelector('#cover-video');
88

9-
React.renderComponent(<Video from='youtube' videoId='gZD0ahZHgBM' />, mountNode);
9+
React.render(<Video from='youtube' videoId='gZD0ahZHgBM' />, mountNode);
1010

1111
$youtubeBtn.addEventListener('click', function(ev) {
1212
$youtubeBtn.classList.add('is-active');
1313
$vimeoBtn.classList.remove('is-active');
1414

1515
React.unmountComponentAtNode(mountNode);
16-
React.renderComponent(<Video from='youtube' videoId='gZD0ahZHgBM' />, mountNode);
16+
React.render(<Video from='youtube' videoId='gZD0ahZHgBM' />, mountNode);
1717
ev.preventDefault();
1818
});
1919

@@ -22,7 +22,7 @@
2222
$youtubeBtn.classList.remove('is-active');
2323

2424
React.unmountComponentAtNode(mountNode);
25-
React.renderComponent(<Video from='vimeo' videoId='63836620' />, mountNode);
25+
React.render(<Video from='vimeo' videoId='63836620' />, mountNode);
2626
ev.preventDefault();
2727
});
2828
})();

example/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,20 @@
3232
<div id="video-vimeo"></div>
3333
</div>
3434

35-
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.11.2/react-with-addons.min.js"></script>
36-
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.11.2/JSXTransformer.js"></script>
35+
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.12.2/react-with-addons.min.js"></script>
36+
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.12.2/JSXTransformer.js"></script>
3737
<script src="react-video.js"></script>
3838
<script type="text/jsx">
3939
/** @jsx React.DOM */
4040
var Video = ReactVideo;
4141

42-
React.renderComponent(
43-
<Video from='youtube' videoId='jhg8XRTorYg' />,
42+
React.render(
43+
<Video videoId='jhg8XRTorYg' />,
4444
document.getElementById('video-youtube')
4545
);
4646

47-
React.renderComponent(
48-
<Video from='vimeo' videoId='108843586' />,
47+
React.render(
48+
<Video videoId='108843586' />,
4949
document.getElementById('video-vimeo')
5050
);
5151
</script>

lib/react-video.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ module.exports = React.createClass({
2323
};
2424
},
2525
isYoutube() {
26-
return this.props.from === 'youtube' || isNaN(this.props.id);
26+
return this.props.from === 'youtube' || isNaN(this.props.videoId);
2727
},
2828
isVimeo() {
29-
return this.props.from === 'vimeo' || !isNaN(this.props.id);
29+
return this.props.from === 'vimeo' || !isNaN(this.props.videoId);
3030
},
3131
componentDidMount() {
3232
this.isYoutube() && this.fetchYoutubeData();

0 commit comments

Comments
 (0)