Skip to content

Commit

Permalink
Fauxton fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
garrensmith committed Jan 13, 2014
1 parent 4b69ff3 commit 86b6a14
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 13 deletions.
9 changes: 6 additions & 3 deletions license.skip
Expand Up @@ -124,9 +124,6 @@
^src/ejson/.*
^src/etap/.*
^src/fauxton/app/addons/config/assets/less/config.less
^src/fauxton/app/modules/pouchdb/base.js
^src/fauxton/app/modules/pouchdb/pouch.collate.js
^src/fauxton/app/modules/pouchdb/pouchdb.mapreduce.js
^src/fauxton/assets/css/codemirror.css
^src/fauxton/assets/css/nv.d3.css
^src/fauxton/assets/img/.*
Expand All @@ -152,6 +149,8 @@
^src/fauxton/test/mocha/sinon-chai.js
^src/fauxton/tasks/addon/rename.json
^src/fauxton/assets/lib/ace/.*
^src/fauxton/app/addons/pouchdb/pouch.collate.js
^src/fauxton/app/addons/pouchdb/pouchdb.mapreduce.js
^src/ibrowse/.*
^src/mochiweb/.*
^src/my-first-couchdb-plugin/priv/*/*
Expand Down Expand Up @@ -184,3 +183,7 @@
^var/Makefile
^var/Makefile.in
^Vagrantfile
^share/www/fauxton/Makefile
^share/www/fauxton/Makefile.in
^share/www/Makefile
^share/www/Makefile.in
6 changes: 3 additions & 3 deletions src/Makefile.am
Expand Up @@ -273,12 +273,12 @@ FAUXTON_FILES = \
fauxton/assets/less/bootstrap/utilities.less \
fauxton/assets/less/bootstrap/variables.less \
fauxton/assets/less/bootstrap/wells.less \
fauxton/addons/config/assets/less/config.less \
fauxton/app/addons/config/assets/less/config.less \
fauxton/assets/less/couchdb.less \
fauxton/addons/databases/assets/less/databases.less \
fauxton/app/addons/databases/assets/less/databases.less \
fauxton/assets/less/fauxton.less \
fauxton/assets/less/icons.less \
fauxton/addons/logs/assets/less/logs.less \
fauxton/app/addons/logs/assets/less/logs.less \
fauxton/assets/less/prettyprint.less \
fauxton/assets/less/variables.less \
fauxton/bin/grunt \
Expand Down
11 changes: 11 additions & 0 deletions src/fauxton/app/addons/documents/assets/less/documents.less
@@ -1,3 +1,14 @@
// 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.
/*ALL DOCS TABLE*/
tr.all-docs-item{
border: none;
Expand Down
7 changes: 5 additions & 2 deletions src/fauxton/app/addons/documents/views.js
Expand Up @@ -234,7 +234,8 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb, resizeColum
},

events: {
"click #duplicate-btn":"duplicate"
"click #duplicate-btn":"duplicate",
"submit #doc-duplicate": "duplicate"

},

Expand Down Expand Up @@ -1481,6 +1482,7 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb, resizeColum
promise.then(function () {
params.docs = that.database.allDocs.map(function (model) { return model.get('doc');});

console.log('p', params, paramsInfo);
var queryPromise = pouchdb.runViewQuery({map: mapVal, reduce: reduceVal}, params);
queryPromise.then(function (results) {
FauxtonAPI.triggerRouteEvent('updatePreviewDocs', {rows: results.rows, ddoc: that.getCurrentDesignDoc().id, view: that.viewName});
Expand All @@ -1507,8 +1509,9 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb, resizeColum
reduceVal: function() {
var reduceOption = this.$('#reduce-function-selector :selected').val(),
reduceVal = "";

if (reduceOption === 'CUSTOM') {
if (!this.reduceEditor) { this.createReduceEditor(); }
reduceVal = this.reduceEditor.getValue();
} else if ( reduceOption !== 'NONE') {
reduceVal = reduceOption;
Expand Down
11 changes: 11 additions & 0 deletions src/fauxton/app/addons/pouchdb/base.js
@@ -1,3 +1,14 @@
// 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.
/*
* NOTE:
* This temporarily uses the PouchDB map reduce implementation
Expand Down
Expand Up @@ -19,7 +19,7 @@ <h3>Duplicate Document</h3>
</div>
<div class="modal-body">
<div id="modal-error" class="hide alert alert-error"/>
<form id="file-upload" class="form" method="post">
<form id="doc-duplicate" class="form" method="post">
<p class="help-block">
Set new documents ID:
</p>
Expand Down
2 changes: 1 addition & 1 deletion src/fauxton/test/core/layoutSpec.js
Expand Up @@ -10,7 +10,7 @@
// License for the specific language governing permissions and limitations under
// the License.
define([
'modules/fauxton/layout',
'addons/fauxton/layout',
'testUtils'
], function (Layout, testUtils) {
var assert = testUtils.assert;
Expand Down
2 changes: 1 addition & 1 deletion src/fauxton/test/core/navbarSpec.js
Expand Up @@ -10,7 +10,7 @@
// License for the specific language governing permissions and limitations under
// the License.
define([
'modules/fauxton/base',
'addons/fauxton/base',
'testUtils'
], function (Fauxton, testUtils) {
var assert = testUtils.assert,
Expand Down
4 changes: 2 additions & 2 deletions src/fauxton/test/core/paginateSpec.js
Expand Up @@ -11,8 +11,8 @@
// the License.
define([
'api',
'modules/fauxton/components',
'modules/documents/resources',
'addons/fauxton/components',
'addons/documents/resources',
'testUtils',
'app'
], function (FauxtonAPI, Views, Models, testUtils, app) {
Expand Down

0 comments on commit 86b6a14

Please sign in to comment.