couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From benk...@apache.org
Subject fauxton commit: updated refs/heads/master to f4b64a1
Date Fri, 05 Feb 2016 16:40:58 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master 5f07e86c3 -> f4b64a19b


react-dom-server@0.14.7

React 14 moved the renderToStaticMarkup to react-dom-server.
This is still a helpful method on the client, like for example,
funnelling markup into React Bootstrap components which require
markup as properties on DOM elements.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/f4b64a19
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/f4b64a19
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/f4b64a19

Branch: refs/heads/master
Commit: f4b64a19b2bef0e629418fe4629da87be63153ad
Parents: 5f07e86
Author: Ben Keen <ben.keen@gmail.com>
Authored: Thu Feb 4 07:23:10 2016 -0800
Committer: Ben Keen <ben.keen@gmail.com>
Committed: Thu Feb 4 07:23:10 2016 -0800

----------------------------------------------------------------------
 app/config.js                      |  1 +
 assets/js/libs/react-dom-server.js | 42 +++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/f4b64a19/app/config.js
----------------------------------------------------------------------
diff --git a/app/config.js b/app/config.js
index 8097509..071eba8 100644
--- a/app/config.js
+++ b/app/config.js
@@ -36,6 +36,7 @@ require.config({
     "react-autocomplete": "../assets/js/plugins/react-autocomplete",
     react: "../assets/js/libs/react",
     'react-dom': "../assets/js/libs/react-dom",
+    'react-dom-server': "../assets/js/libs/react-dom-server",
     flux: "../assets/js/libs/flux",
     "es5-shim": "../assets/js/libs/es5-shim",
     "css.escape": "../assets/js/libs/css.escape",

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/f4b64a19/assets/js/libs/react-dom-server.js
----------------------------------------------------------------------
diff --git a/assets/js/libs/react-dom-server.js b/assets/js/libs/react-dom-server.js
new file mode 100644
index 0000000..60c66e7
--- /dev/null
+++ b/assets/js/libs/react-dom-server.js
@@ -0,0 +1,42 @@
+/**
+ * ReactDOMServer v0.14.7
+ *
+ * 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.ReactDOMServer = f(g.React);
+  }
+
+})(function(React) {
+  return React.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
+});


Mime
View raw message