couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deathb...@apache.org
Subject couchdb commit: updated refs/heads/Fix-the-build-d3-issue to 380a4ad
Date Wed, 26 Mar 2014 15:12:58 GMT
Repository: couchdb
Updated Branches:
  refs/heads/Fix-the-build-d3-issue [created] 380a4adb6


Fix the build for the d3 update


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

Branch: refs/heads/Fix-the-build-d3-issue
Commit: 380a4adb60ac1b046f678d83871cf0ea0f17020e
Parents: e3d5d12
Author: suelockwood <deathbear@apache.org>
Authored: Wed Mar 26 11:12:51 2014 -0400
Committer: suelockwood <deathbear@apache.org>
Committed: Wed Mar 26 11:12:51 2014 -0400

----------------------------------------------------------------------
 src/Makefile.am                         |  1 +
 src/fauxton/app/config.js               |  8 ++------
 src/fauxton/assets/js/libs/d3.global.js | 18 ++++++++++++++++++
 3 files changed, 21 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/380a4adb/src/Makefile.am
----------------------------------------------------------------------
diff --git a/src/Makefile.am b/src/Makefile.am
index e1007f9..00769a5 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -251,6 +251,7 @@ FAUXTON_FILES = \
     fauxton/assets/js/libs/backbone.js \
     fauxton/assets/js/libs/bootstrap.js \
     fauxton/assets/js/libs/d3.js \
+    fauxton/assets/js/libs/global.d3.js \
     fauxton/assets/js/libs/jquery.js \
     fauxton/assets/js/libs/lodash.js \
     fauxton/assets/js/libs/nv.d3.js \

http://git-wip-us.apache.org/repos/asf/couchdb/blob/380a4adb/src/fauxton/app/config.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/config.js b/src/fauxton/app/config.js
index d33f3b8..3ed1c31 100644
--- a/src/fauxton/app/config.js
+++ b/src/fauxton/app/config.js
@@ -30,7 +30,8 @@ require.config({
     spin: "../assets/js/libs/spin.min",
     d3: "../assets/js/libs/d3",
     "nv.d3": "../assets/js/libs/nv.d3",
-    "ace":"../assets/js/libs/ace"
+    "ace":"../assets/js/libs/ace",
+    "d3.global": "../assets/js/libs/d3.global"
   },
 
   baseUrl: '/',
@@ -63,8 +64,3 @@ require.config({
   }
 });
 
-define("d3.global", ["d3"], function(_) {
-  d3 = _;
-});
-
-require(["d3", "nv.d3"], function(d3, nvd3) {});

http://git-wip-us.apache.org/repos/asf/couchdb/blob/380a4adb/src/fauxton/assets/js/libs/d3.global.js
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/libs/d3.global.js b/src/fauxton/assets/js/libs/d3.global.js
new file mode 100644
index 0000000..9f38d04
--- /dev/null
+++ b/src/fauxton/assets/js/libs/d3.global.js
@@ -0,0 +1,18 @@
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not
+// use this file except in compliance with the License. You may obtain a copy of
+// the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+// License for the specific language governing permissions and limitations under
+// the License.
+
+// Set the require.js configuration for your application.
+
+define("d3.global", ["d3"], function(_) {
+	//get that global back
+  d3 = _;
+});


Mime
View raw message