Update core react dependencies

This commit is contained in:
Matthew Taylor 2015-10-14 22:58:32 -04:00
parent 60d81cdca3
commit c3b62c8f05
9 changed files with 7552 additions and 8430 deletions

View file

@ -42,8 +42,10 @@
"jsx-loader": "0.13.2",
"minilog": "2.0.8",
"node-sass": "3.3.3",
"react": "0.13.3",
"react-modal": "0.3.0",
"react": "0.14.0",
"react-addons-test-utils": "0.14.0",
"react-dom": "0.14.0",
"react-onclickoutside": "0.3.1",
"react-slick": "0.7.0",
"routes-to-nginx-conf": "0.0.4",

View file

@ -36,6 +36,8 @@
<!-- Scripts -->
<script src="/js/lib/react.js"></script>
<script src="/js/lib/react-dom.js"></script>
<script src="/js/main.bundle.js"></script>
<script src="/js/{{view}}.bundle.js"></script>

View file

@ -13,8 +13,8 @@ var Login = React.createClass({
handleSubmit: function (event) {
event.preventDefault();
this.props.onLogIn({
'username': this.refs.username.getDOMNode().value,
'password': this.refs.password.getDOMNode().value
'username': this.refs.username.value,
'password': this.refs.password.value
});
},
render: function () {

View file

@ -1,8 +1,8 @@
var React = require('react');
var ReactDOM = require('react-dom');
var Renderer = {
render: function (jsx, toElement) {
var rendered = React.render(jsx, toElement);
var rendered = ReactDOM.render(jsx, toElement);
if (process.env.NODE_ENV != 'production') {
window.renderedComponents = window.renderedComponents || [];
window.renderedComponents.push(rendered);

42
static/js/lib/react-dom.js vendored Normal file
View file

@ -0,0 +1,42 @@
/**
* ReactDOM v0.14.0
*
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
// Based off https://github.com/ForbesLindesay/umd/blob/master/template.js
;(function(f) {
// CommonJS
if (typeof exports === "object" && typeof module !== "undefined") {
module.exports = f(require('react'));
// RequireJS
} else if (typeof define === "function" && define.amd) {
define(['react'], f);
// <script>
} else {
var g
if (typeof window !== "undefined") {
g = window;
} else if (typeof global !== "undefined") {
g = global;
} else if (typeof self !== "undefined") {
g = self;
} else {
// works providing we're not in "use strict";
// needed for Java 8 Nashorn
// see https://github.com/facebook/react/issues/3037
g = this;
}
g.ReactDOM = f(g.React);
}
})(function(React) {
return React.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
});

12
static/js/lib/react-dom.min.js vendored Normal file
View file

@ -0,0 +1,12 @@
/**
* ReactDOM v0.14.0
*
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e(require("react"));else if("function"==typeof define&&define.amd)define(["react"],e);else{var f;f="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,f.ReactDOM=e(f.React)}}(function(e){return e.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED});

14739
static/js/lib/react.js vendored

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -21,7 +21,8 @@ module.exports = {
devtool: 'source-map',
externals: {
'react': 'React',
'react/addons': 'React'
'react/addons': 'React',
'react-dom': 'ReactDOM'
},
output: {
path: path.resolve(__dirname, 'build/js'),