diff --git a/app.js b/app.js index 8d5c5f74..6f0a87a7 100644 --- a/app.js +++ b/app.js @@ -3,7 +3,7 @@ var couchapp = require('couchapp') ; ddoc = - { _id:'_design/removalist' + { _id:'_design/recline' , rewrites : [ {from:"/", to:'pages/index.html'} , {from:"/api/csv", to:'_list/csv/all'} diff --git a/attachments/pages/index.html b/attachments/pages/index.html index df30df64..96dfa2ed 100644 --- a/attachments/pages/index.html +++ b/attachments/pages/index.html @@ -15,7 +15,7 @@ - +
@@ -25,7 +25,7 @@
+
diff --git a/attachments/script/jquery.couch2.js b/attachments/script/jquery.couch2.js
index e6111f13..f63135d8 100644
--- a/attachments/script/jquery.couch2.js
+++ b/attachments/script/jquery.couch2.js
@@ -23,7 +23,7 @@
return couch.request({
url: "/_session",
type: 'POST',
- data: {name: credentials.username, password: credentials.password}
+ data: JSON.stringify({name: credentials.username, password: credentials.password})
})
}
diff --git a/attachments/script/removalist.js b/attachments/script/recline.js
similarity index 98%
rename from attachments/script/removalist.js
rename to attachments/script/recline.js
index cb11bad8..51d48080 100644
--- a/attachments/script/removalist.js
+++ b/attachments/script/recline.js
@@ -1,4 +1,4 @@
-var removalist = function() {
+var recline = function() {
function formatDiskSize(bytes) {
return (parseFloat(bytes)/1024/1024).toString().substr(0,4) + "MB"
@@ -112,7 +112,7 @@ var removalist = function() {
var offset = response.offset + 1;
$('.viewpanel-pagingcount').text(offset + " - " + ((offset - 1) + getPageSize()));
app.cache = response.rows.map(function(row) { return row.value; } );
- removalist.renderRows(response);
+ renderRows(response);
});
}
diff --git a/attachments/script/site.js b/attachments/script/site.js
index 2a82b012..a1b8a1da 100644
--- a/attachments/script/site.js
+++ b/attachments/script/site.js
@@ -14,13 +14,13 @@ app.handler = function(route) {
app.routes = {
home: function() {
- removalist.bootstrap();
+ recline.bootstrap();
}
}
app.after = {
tableContainer: function() {
- removalist.activateControls();
+ recline.activateControls();
},
dataTable: function() {
$('.column-header-menu').click(function(e) {
@@ -52,7 +52,7 @@ app.after = {
util.notify("Updating row...", {persist: true, loader: true});
couch.request({type: "PUT", url: app.baseURL + "api/" + doc._id, data: JSON.stringify(doc)}).then(function(response) {
util.notify("Row updated successfully");
- removalist.fetchRows(false, app.offset);
+ recline.fetchRows(false, app.offset);
})
})
$('.data-table-cell-editor .cancelButton').click(function(e) {
@@ -80,8 +80,8 @@ app.after = {
}
});
},
- exportActions: removalist.handleMenuClick,
- columnActions: removalist.handleMenuClick,
+ exportActions: recline.handleMenuClick,
+ columnActions: recline.handleMenuClick,
signIn: function() {
util.observeExit($('.dialog-content'), function() {
@@ -126,7 +126,7 @@ app.after = {
var toUpdate = costco.mapDocs(docs.docs, funcText);
costco.updateDocs(toUpdate, function(msg) {
util.notify(msg.length + " documents updated successfully");
- removalist.fetchRows(false, app.offset);
+ recline.fetchRows(false, app.offset);
});
});
})
diff --git a/readme.md b/readme.md
index 95e571c8..eb72a2f1 100644
--- a/readme.md
+++ b/readme.md
@@ -1,6 +1,6 @@
-# Removalist
+# Recline
-A [CouchApp](http://couchapp.org) based on Google Refine's UI that lets you bulk edit and export your data in CouchDB
+A HTML5 port of Google Refine's UI that lets you bulk import, edit and export your data in and out of CouchDB
## Features
@@ -10,9 +10,9 @@ A [CouchApp](http://couchapp.org) based on Google Refine's UI that lets you bulk
## Installation
-After you install it, visit this link to open Removalist:
+After you install it, visit this link to open Recline:
- http://yourcouch/yourdb/_design/removalist/_rewrite
+ http://yourcouch/yourdb/_design/recline/_rewrite
### Quick install
@@ -20,10 +20,10 @@ After you install it, visit this link to open Removalist:
Copy these utilities to the new db:
- curl -X POST http://user:pass@YOURCOUCH/_replicate -d '{"source":"http://max.couchone.com/apps","target":"YOURDB", "doc_ids":["_design/removalist"]}' -H "Content-type: application/json"
+ curl -X POST http://user:pass@YOURCOUCH/_replicate -d '{"source":"http://max.couchone.com/apps","target":"YOURDB", "doc_ids":["_design/recline"]}' -H "Content-type: application/json"
### In-depth install
You'll have to get yourself a couch. The easiest way is from [the instructions on this page](http://couchone.com/get). Once it's going, open up `http://YOURCOUCH/_utils` and create a new database to store your data.
-You can either replicate the couchapp from my couch [max.couchone.com/apps/_design/removalist](http://max.couchone.com/apps/_design/removalist) (quickest option) or, if you want to hack on the removalist source code first, you'll need to install `mikeal/node.couchapp.js` and clone this repo.
\ No newline at end of file
+You can either replicate the couchapp from my couch [max.couchone.com/apps/_design/recline](http://max.couchone.com/apps/_design/recline) (quickest option) or, if you want to hack on the recline source code first, you'll need to install `mikeal/node.couchapp.js` and clone this repo.
\ No newline at end of file