mango: better doc urls PR: #427 PR-URL: https://github.com/apache/couchdb-fauxton/pull/427 Reviewed-By: garren smith <[email protected]>
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 <[email protected]> Authored: Wed May 20 12:13:59 2015 +0200 Committer: Robert Kowalski <[email protected]> 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' },
