allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [8/8] allura git commit: [#8161] upgrade React from v0.14.3 to v16.0.0
Date Wed, 27 Sep 2017 17:53:11 GMT
[#8161] upgrade React from v0.14.3 to v16.0.0

create-react-class.min.js is from https://unpkg.com/create-react-class@15.6.2/create-react-class.js
prop-types.min.js is from https://unpkg.com/prop-types@15.6.0/prop-types.min.js
(with a line ended at end of each to make it work seamlessly)


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/0459800f
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/0459800f
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/0459800f

Branch: refs/heads/db/8161
Commit: 0459800fb8a2e6c40704ef764741712f5e9e509e
Parents: 78b89b4
Author: Dave Brondsema <dave@brondsema.net>
Authored: Wed Sep 27 11:04:50 2017 -0400
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Wed Sep 27 13:51:34 2017 -0400

----------------------------------------------------------------------
 Allura/LICENSE                                  |    11 +-
 .../lib/widgets/resources/js/subscriptions.js   |     3 +-
 .../public/nf/js/create-react-class.min.js      |     3 +
 Allura/allura/public/nf/js/navbar.es6.js        |     1 -
 .../allura/public/nf/js/phone-verification.js   |     2 +-
 Allura/allura/public/nf/js/prop-types.min.js    |     3 +
 .../public/nf/js/react-dom.development.js       | 18427 +++++++++++++++
 Allura/allura/public/nf/js/react-dom.js         |    42 -
 .../public/nf/js/react-dom.production.min.js    |   206 +
 Allura/allura/public/nf/js/react-with-addons.js | 20753 -----------------
 .../public/nf/js/react-with-addons.min.js       |    16 -
 Allura/allura/public/nf/js/react.development.js |  1995 ++
 .../allura/public/nf/js/react.production.min.js |    22 +
 Allura/allura/templates/jinja_master/lib.html   |    12 +
 .../allura/templates/jinja_master/top_nav.html  |     3 +-
 .../templates/phone_verification_fragment.html  |     4 +-
 Allura/allura/templates/widgets/subscribe.html  |     3 +-
 Brocfile.js                                     |     7 +-
 LICENSE                                         |    11 +-
 rat-excludes.txt                                |    10 +-
 20 files changed, 20699 insertions(+), 20835 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/0459800f/Allura/LICENSE
----------------------------------------------------------------------
diff --git a/Allura/LICENSE b/Allura/LICENSE
index 706155c..be64a02 100644
--- a/Allura/LICENSE
+++ b/Allura/LICENSE
@@ -246,11 +246,14 @@ For details, see allura/public/nf/css/blueprint/
 Sylvester, which is available under the MIT license.
 For details, see allura/public/nf/js/sylvester.js
 
-React.js, which is available under the BSD license.
+React.js, which is available under the MIT license.
 For details, see:
-    allura/public/nf/js/react-dom.js
-    allura/public/nf/js/react-with-addons.js
-    allura/public/nf/js/react-with-addons.min.js
+    allura/public/nf/js/react.development.js
+    allura/public/nf/js/react.production.min.js
+    allura/public/nf/js/react-dom.development.js
+    allura/public/nf/js/react-dom.production.min.js
+    allura/public/nf/js/create-react-class.min.js
+    allura/public/nf/js/prop-types.min.js
 
 React plugins, which are available under the MIT license.
 For details, see:

http://git-wip-us.apache.org/repos/asf/allura/blob/0459800f/Allura/allura/lib/widgets/resources/js/subscriptions.js
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/widgets/resources/js/subscriptions.js b/Allura/allura/lib/widgets/resources/js/subscriptions.js
index 14d37a7..986f05e 100644
--- a/Allura/allura/lib/widgets/resources/js/subscriptions.js
+++ b/Allura/allura/lib/widgets/resources/js/subscriptions.js
@@ -49,7 +49,8 @@ SubscriptionForm = React.createClass({
     return dom('a', opts);
   },
 
-  handleClick: function() {
+  handleClick: function(e) {
+    e.preventDefault();
     var url = this.props.url;
     var csrf = $.cookie('_session_id');
     var data = {_session_id: csrf};

http://git-wip-us.apache.org/repos/asf/allura/blob/0459800f/Allura/allura/public/nf/js/create-react-class.min.js
----------------------------------------------------------------------
diff --git a/Allura/allura/public/nf/js/create-react-class.min.js b/Allura/allura/public/nf/js/create-react-class.min.js
new file mode 100644
index 0000000..0bb914b
--- /dev/null
+++ b/Allura/allura/public/nf/js/create-react-class.min.js
@@ -0,0 +1,3 @@
+!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof
define&&define.amd?define(["react"],e):"object"==typeof exports?exports.createReactClass=e(require("react")):t.createReactClass=e(t.React)}(this,function(t){return
function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return
t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return
t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var
n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return
Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=2)}([function(t,e,n){"use strict";function
o(t){return t}function r(t,e,n){function r(t,e){var n=g.hasOwnProperty(e)?g[e]:null;_.hasOwnProperty(e)&&s("OVERRIDE_BASE"===n,"ReactClassInterface:
You are attempting to override `%s
 ` from your class specification. Ensure that your method names do not overlap with React
methods.",e),t&&s("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface:
You are attempting to define `%s` on your component more than once. This conflict may be due
to a mixin.",e)}function u(t,n){if(n){s("function"!=typeof n,"ReactClass: You're attempting
to use a component class or function as a mixin. Instead, just use a regular object."),s(!e(n),"ReactClass:
You're attempting to use a component as a mixin. Instead, just use a regular object.");var
o=t.prototype,i=o.__reactAutoBindPairs;n.hasOwnProperty(c)&&N.mixins(t,n.mixins);for(var
a in n)if(n.hasOwnProperty(a)&&a!==c){var u=n[a],p=o.hasOwnProperty(a);if(r(p,a),N.hasOwnProperty(a))N[a](t,u);else{var
f=g.hasOwnProperty(a),m="function"==typeof u,h=m&&!f&&!p&&!1!==n.autobind;if(h)i.push(a,u),o[a]=u;else
if(p){var y=g[a];s(f&&("DEFINE_MANY_MERGED"===y||"DEFINE_MANY"===y),"ReactClass: Unexpected
spec policy %s for key %s when mixin
 g in component specs.",y,a),"DEFINE_MANY_MERGED"===y?o[a]=l(o[a],u):"DEFINE_MANY"===y&&(o[a]=d(o[a],u))}else
o[a]=u}}}else;}function p(t,e){if(e)for(var n in e){var o=e[n];if(e.hasOwnProperty(n)){var
r=n in N;s(!r,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t
be on the "statics" key. Define it as an instance property instead; it will still be accessible
on the constructor.',n);var i=n in t;s(!i,"ReactClass: You are attempting to define `%s` on
your component more than once. This conflict may be due to a mixin.",n),t[n]=o}}}function
f(t,e){s(t&&e&&"object"==typeof t&&"object"==typeof e,"mergeIntoWithNoDuplicateKeys():
Cannot merge non-objects.");for(var n in e)e.hasOwnProperty(n)&&(s(void 0===t[n],"mergeIntoWithNoDuplicateKeys():
Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in
particular, this may be caused by two getInitialState() or getDefaultProps() methods returning
objects with clashing keys.",n),
 t[n]=e[n]);return t}function l(t,e){return function(){var n=t.apply(this,arguments),o=e.apply(this,arguments);if(null==n)return
o;if(null==o)return n;var r={};return f(r,n),f(r,o),r}}function d(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function
m(t,e){var n=e.bind(t);return n}function h(t){for(var e=t.__reactAutoBindPairs,n=0;n<e.length;n+=2){var
o=e[n],r=e[n+1];t[o]=m(t,r)}}function y(t){var e=o(function(t,o,r){this.__reactAutoBindPairs.length&&h(this),this.props=t,this.context=o,this.refs=a,this.updater=r||n,this.state=null;var
i=this.getInitialState?this.getInitialState():null;s("object"==typeof i&&!Array.isArray(i),"%s.getInitialState():
must return an object or null",e.displayName||"ReactCompositeComponent"),this.state=i});e.prototype=new
D,e.prototype.constructor=e,e.prototype.__reactAutoBindPairs=[],E.forEach(u.bind(null,e)),u(e,b),u(e,t),u(e,v),e.getDefaultProps&&(e.defaultProps=e.getDefaultProps()),s(e.prototype.render,"createClass(...):
Class 
 specification must implement a `render` method.");for(var r in g)e.prototype[r]||(e.prototype[r]=null);return
e}var E=[],g={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},N={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var
n=0;n<e.length;n++)u(t,e[n])},childContextTypes:function(t,e){t.childContextTypes=i({},t.childContextTypes,e)},contextTypes:function(t,e){t.contextTypes=i({},t.contextTypes,e)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=l(t.getDefaultPr
 ops,e):t.getDefaultProps=e},propTypes:function(t,e){t.propTypes=i({},t.propTypes,e)},statics:function(t,e){p(t,e)},autobind:function(){}},b={componentDidMount:function(){this.__isMounted=!0}},v={componentWillUnmount:function(){this.__isMounted=!1}},_={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t,e)},isMounted:function(){return!!this.__isMounted}},D=function(){};return
i(D.prototype,t.prototype,_),y}var i=n(5),a=n(3),s=n(4),c="mixins";t.exports=r},function(e,n){e.exports=t},function(t,e,n){"use
strict";var o=n(1),r=n(0);if(void 0===o)throw Error("create-react-class could not find the
React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var
i=(new o.Component).updater;t.exports=r(o.Component,o.isValidElement,i)},function(t,e,n){"use
strict";var o={};t.exports=o},function(t,e,n){"use strict";function o(t,e,n,o,i,a,s,c){if(r(e),!t){var
u;if(void 0===e)u=new Error("Minified exception occurred; use the non-mini
 fied dev environment for the full error message and additional helpful warnings.");else{var
p=[n,o,i,a,s,c],f=0;u=new Error(e.replace(/%s/g,function(){return p[f++]})),u.name="Invariant
Violation"}throw u.framesToPop=1,u}}var r=function(t){};t.exports=o},function(t,e,n){"use
strict";function o(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be
called with null or undefined");return Object(t)}var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var
t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return
e[t]}).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}()?Object.assign:f
 unction(t,e){for(var n,s,c=o(t),u=1;u<arguments.length;u++){n=Object(arguments[u]);for(var
p in n)i.call(n,p)&&(c[p]=n[p]);if(r){s=r(n);for(var f=0;f<s.length;f++)a.call(n,s[f])&&(c[s[f]]=n[s[f]])}}return
c}}])});
+
+React.createClass = createReactClass;
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/allura/blob/0459800f/Allura/allura/public/nf/js/navbar.es6.js
----------------------------------------------------------------------
diff --git a/Allura/allura/public/nf/js/navbar.es6.js b/Allura/allura/public/nf/js/navbar.es6.js
index a742bb2..5a5f3e1 100644
--- a/Allura/allura/public/nf/js/navbar.es6.js
+++ b/Allura/allura/public/nf/js/navbar.es6.js
@@ -176,7 +176,6 @@ var NormalNavItem = React.createClass({
         children: React.PropTypes.object,
         classes: React.PropTypes.string
     },
-    mixins: [React.addons.PureRenderMixin],
     render: function() {
         return (
             <li key={`tb-norm-${_.uniqueId()}`}>

http://git-wip-us.apache.org/repos/asf/allura/blob/0459800f/Allura/allura/public/nf/js/phone-verification.js
----------------------------------------------------------------------
diff --git a/Allura/allura/public/nf/js/phone-verification.js b/Allura/allura/public/nf/js/phone-verification.js
index a5582d4..32826be 100644
--- a/Allura/allura/public/nf/js/phone-verification.js
+++ b/Allura/allura/public/nf/js/phone-verification.js
@@ -62,7 +62,7 @@ var FormStepMixin = {
       type: 'text',
       ref: 'mainInput',
       className: grid,
-      value: this.props.state[this.getKey()],
+      value: this.props.state[this.getKey()] || '',
       disabled: this.isInputDisabled(),
       onChange: this.handleChange,
       onKeyDown: this.onKeyDown,

http://git-wip-us.apache.org/repos/asf/allura/blob/0459800f/Allura/allura/public/nf/js/prop-types.min.js
----------------------------------------------------------------------
diff --git a/Allura/allura/public/nf/js/prop-types.min.js b/Allura/allura/public/nf/js/prop-types.min.js
new file mode 100644
index 0000000..f45459f
--- /dev/null
+++ b/Allura/allura/public/nf/js/prop-types.min.js
@@ -0,0 +1,3 @@
+!function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else
if("function"==typeof define&&define.amd)define([],f);else{var g;g="undefined"!=typeof
window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,g.PropTypes=f()}}(function(){return
function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return
a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var
l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return
n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)s(r[o]);return
s}({1:[function(require,module){"use strict";var emptyFunction=require(4),invariant=require(5),ReactPropTypesSecret=require(3);module.exports=function(){function
e(e,r,t,n,p,o){o!==ReactPropTypesSecret&&invariant(!1,"Calling PropTypes validators
directly is not su
 pported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more
at http://fb.me/use-check-prop-types")}function r(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r};return
t.checkPropTypes=emptyFunction,t.PropTypes=t,t}},{3:3,4:4,5:5}],2:[function(require,module){module.exports=require(1)()},{1:1}],3:[function(require,module){"use
strict";var ReactPropTypesSecret="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";module.exports=ReactPropTypesSecret},{}],4:[function(require,module){"use
strict";function makeEmptyFunction(arg){return function(){return arg}}var emptyFunction=function(){};emptyFunction.thatReturns=makeEmptyFunction,emptyFunction.thatReturnsFalse=makeEmptyFunction(!1),emptyFunction.thatReturnsTrue=makeEmptyFunction(!0),emptyFunction.thatReturnsNull=makeEmptyFunction(null),emptyFunction.thatReturnsThis=function(){ret
 urn this},emptyFunction.thatReturnsArgument=function(arg){return arg},module.exports=emptyFunction},{}],5:[function(require,module){"use
strict";function invariant(condition,format,a,b,c,d,e,f){if(validateFormat(format),!condition){var
error;if(void 0===format)error=new Error("Minified exception occurred; use the non-minified
dev environment for the full error message and additional helpful warnings.");else{var args=[a,b,c,d,e,f],argIndex=0;error=new
Error(format.replace(/%s/g,function(){return args[argIndex++]})),error.name="Invariant Violation"}throw
error.framesToPop=1,error}}var validateFormat=function(){};module.exports=invariant},{}]},{},[2])(2)});
+
+React.PropTypes = PropTypes;
\ No newline at end of file


Mime
View raw message