couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowal...@apache.org
Subject [4/6] fauxton commit: updated refs/heads/master to ae2225e
Date Wed, 27 May 2015 12:06:01 GMT
mango: better doc urls

PR: #427
PR-URL: https://github.com/apache/couchdb-fauxton/pull/427
Reviewed-By: garren smith <garren.smith@gmail.com>


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

Branch: refs/heads/master
Commit: bb2ed153aa1cfc7118ceef4e17df035f52c7f4dc
Parents: 330e1e3
Author: Robert Kowalski <robertkowalski@apache.org>
Authored: Wed May 20 12:13:59 2015 +0200
Committer: Robert Kowalski <robertkowalski@apache.org>
Committed: Wed May 27 14:09:39 2015 +0200

----------------------------------------------------------------------
 app/addons/documents/mango/mango.components.react.jsx | 4 ++--
 app/addons/documents/routes-mango.js                  | 4 ++--
 app/constants.js                                      | 3 ++-
 3 files changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/bb2ed153/app/addons/documents/mango/mango.components.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/mango/mango.components.react.jsx b/app/addons/documents/mango/mango.components.react.jsx
index b13874a..a47ff12 100644
--- a/app/addons/documents/mango/mango.components.react.jsx
+++ b/app/addons/documents/mango/mango.components.react.jsx
@@ -88,7 +88,7 @@ function (app, FauxtonAPI, React, Stores, Actions,
           onSubmit={this.runQuery}
           title={this.props.editorTitle}
           additionalIndexesText={this.props.additionalIndexesText}
-          docs={getDocUrl('MANGO')}
+          docs={getDocUrl('MANGO_SEARCH')}
           exampleCode={this.state.queryCode}
           changedQuery={this.state.changedQuery}
           availableIndexes={this.state.availableIndexes}
@@ -258,7 +258,7 @@ function (app, FauxtonAPI, React, Stores, Actions,
           dbName={this.state.database.id}
           onSubmit={this.saveQuery}
           title="Index"
-          docs={getDocUrl('MANGO')}
+          docs={getDocUrl('MANGO_INDEX')}
           exampleCode={this.state.queryIndexCode}
           confirmbuttonText="Create Index" />
       );

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/bb2ed153/app/addons/documents/routes-mango.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/routes-mango.js b/app/addons/documents/routes-mango.js
index 6e3e990..31705c7 100644
--- a/app/addons/documents/routes-mango.js
+++ b/app/addons/documents/routes-mango.js
@@ -119,7 +119,7 @@ function (app, FauxtonAPI, Helpers, BaseRoute, Databases,
       this.setComponent('#dashboard-lower-content', IndexResultsComponents.List);
 
       this.apiUrl = function () {
-        return [mangoResultCollection.urlRef('query-apiurl', urlParams), FauxtonAPI.constants.DOC_URLS.MANGO];
+        return [mangoResultCollection.urlRef('query-apiurl', urlParams), FauxtonAPI.constants.DOC_URLS.MANGO_SEARCH];
       };
     },
 
@@ -160,7 +160,7 @@ function (app, FauxtonAPI, Helpers, BaseRoute, Databases,
       });
 
       this.apiUrl = function () {
-        return [mangoIndexCollection.urlRef('index-apiurl', urlParams), FauxtonAPI.constants.DOC_URLS.MANGO];
+        return [mangoIndexCollection.urlRef('index-apiurl', urlParams), FauxtonAPI.constants.DOC_URLS.MANGO_INDEX];
       };
     }
   });

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/bb2ed153/app/constants.js
----------------------------------------------------------------------
diff --git a/app/constants.js b/app/constants.js
index c0daca1..16c653a 100644
--- a/app/constants.js
+++ b/app/constants.js
@@ -48,7 +48,8 @@ define([], function () {
       LOG: '/_utils/docs/api/server/common.html?highlight=stats#log',
       CONFIG: '/_utils/docs/config/index.html',
       VIEWS: '/_utils/docs/intro/overview.html#views',
-      MANGO: '/_utils/docs/intro/api.html#documents',
+      MANGO_INDEX: '/_utils/docs/intro/api.html#documents',
+      MANGO_SEARCH: '/_utils/docs/intro/api.html#documents',
       CHANGES: '/_utils/docs/api/database/changes.html?highlight=changes#post--db-_changes'
     },
 


Mime
View raw message