renaming to recline
This commit is contained in:
2
app.js
2
app.js
@@ -3,7 +3,7 @@ var couchapp = require('couchapp')
|
|||||||
;
|
;
|
||||||
|
|
||||||
ddoc =
|
ddoc =
|
||||||
{ _id:'_design/removalist'
|
{ _id:'_design/recline'
|
||||||
, rewrites :
|
, rewrites :
|
||||||
[ {from:"/", to:'pages/index.html'}
|
[ {from:"/", to:'pages/index.html'}
|
||||||
, {from:"/api/csv", to:'_list/csv/all'}
|
, {from:"/api/csv", to:'_list/csv/all'}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<script type="text/javascript" src="script/microevent.js"></script>
|
<script type="text/javascript" src="script/microevent.js"></script>
|
||||||
<script type="text/javascript" src="script/util.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/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>
|
<script type="text/javascript" src="script/site.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
<li><a class="transform" href="JavaScript:void(0);">Transform...</a></li>
|
<li><a class="transform" href="JavaScript:void(0);">Transform...</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<div id="header">
|
<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-title"></div>
|
||||||
<div class="project-actions"></div>
|
<div class="project-actions"></div>
|
||||||
<div class="project-controls"></div>
|
<div class="project-controls"></div>
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
return couch.request({
|
return couch.request({
|
||||||
url: "/_session",
|
url: "/_session",
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
data: {name: credentials.username, password: credentials.password}
|
data: JSON.stringify({name: credentials.username, password: credentials.password})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
var removalist = function() {
|
var recline = function() {
|
||||||
|
|
||||||
function formatDiskSize(bytes) {
|
function formatDiskSize(bytes) {
|
||||||
return (parseFloat(bytes)/1024/1024).toString().substr(0,4) + "MB"
|
return (parseFloat(bytes)/1024/1024).toString().substr(0,4) + "MB"
|
||||||
@@ -112,7 +112,7 @@ var removalist = function() {
|
|||||||
var offset = response.offset + 1;
|
var offset = response.offset + 1;
|
||||||
$('.viewpanel-pagingcount').text(offset + " - " + ((offset - 1) + getPageSize()));
|
$('.viewpanel-pagingcount').text(offset + " - " + ((offset - 1) + getPageSize()));
|
||||||
app.cache = response.rows.map(function(row) { return row.value; } );
|
app.cache = response.rows.map(function(row) { return row.value; } );
|
||||||
removalist.renderRows(response);
|
renderRows(response);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -14,13 +14,13 @@ app.handler = function(route) {
|
|||||||
|
|
||||||
app.routes = {
|
app.routes = {
|
||||||
home: function() {
|
home: function() {
|
||||||
removalist.bootstrap();
|
recline.bootstrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
app.after = {
|
app.after = {
|
||||||
tableContainer: function() {
|
tableContainer: function() {
|
||||||
removalist.activateControls();
|
recline.activateControls();
|
||||||
},
|
},
|
||||||
dataTable: function() {
|
dataTable: function() {
|
||||||
$('.column-header-menu').click(function(e) {
|
$('.column-header-menu').click(function(e) {
|
||||||
@@ -52,7 +52,7 @@ app.after = {
|
|||||||
util.notify("Updating row...", {persist: true, loader: true});
|
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) {
|
couch.request({type: "PUT", url: app.baseURL + "api/" + doc._id, data: JSON.stringify(doc)}).then(function(response) {
|
||||||
util.notify("Row updated successfully");
|
util.notify("Row updated successfully");
|
||||||
removalist.fetchRows(false, app.offset);
|
recline.fetchRows(false, app.offset);
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
$('.data-table-cell-editor .cancelButton').click(function(e) {
|
$('.data-table-cell-editor .cancelButton').click(function(e) {
|
||||||
@@ -80,8 +80,8 @@ app.after = {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
exportActions: removalist.handleMenuClick,
|
exportActions: recline.handleMenuClick,
|
||||||
columnActions: removalist.handleMenuClick,
|
columnActions: recline.handleMenuClick,
|
||||||
signIn: function() {
|
signIn: function() {
|
||||||
|
|
||||||
util.observeExit($('.dialog-content'), function() {
|
util.observeExit($('.dialog-content'), function() {
|
||||||
@@ -126,7 +126,7 @@ app.after = {
|
|||||||
var toUpdate = costco.mapDocs(docs.docs, funcText);
|
var toUpdate = costco.mapDocs(docs.docs, funcText);
|
||||||
costco.updateDocs(toUpdate, function(msg) {
|
costco.updateDocs(toUpdate, function(msg) {
|
||||||
util.notify(msg.length + " documents updated successfully");
|
util.notify(msg.length + " documents updated successfully");
|
||||||
removalist.fetchRows(false, app.offset);
|
recline.fetchRows(false, app.offset);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|||||||
12
readme.md
12
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
|
## Features
|
||||||
|
|
||||||
@@ -10,9 +10,9 @@ A [CouchApp](http://couchapp.org) based on Google Refine's UI that lets you bulk
|
|||||||
|
|
||||||
## Installation
|
## 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
|
### Quick install
|
||||||
|
|
||||||
@@ -20,10 +20,10 @@ After you install it, visit this link to open Removalist:
|
|||||||
|
|
||||||
Copy these utilities to the new db:
|
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
|
### 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'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.
|
||||||
Reference in New Issue
Block a user