renaming to recline

This commit is contained in:
Max Ogden 2011-07-20 12:49:01 -07:00
parent 8fbbe2f848
commit 7a97befb5b
6 changed files with 18 additions and 18 deletions

2
app.js
View File

@ -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'}

View File

@ -15,7 +15,7 @@
<script type="text/javascript" src="script/microevent.js"></script>
<script type="text/javascript" src="script/util.js"></script>
<script type="text/javascript" src="script/costco.js"></script>
<script type="text/javascript" src="script/removalist.js"></script>
<script type="text/javascript" src="script/recline.js"></script>
<script type="text/javascript" src="script/site.js"></script>
</head>
<body>
@ -25,7 +25,7 @@
<li><a class="transform" href="JavaScript:void(0);">Transform...</a></li>
</ul>
<div id="header">
<a href="http://github.com/maxogden/removalist"><img id="couchLogo" src="images/couch.png"/></a>
<a href="http://github.com/maxogden/recline"><img id="couchLogo" src="images/couch.png"/></a>
<div class="project-title"></div>
<div class="project-actions"></div>
<div class="project-controls"></div>

View File

@ -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})
})
}

View File

@ -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);
});
}

View File

@ -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);
});
});
})

View File

@ -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.
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.