This commit is contained in:
life
2015-02-27 22:29:38 +08:00
parent 3a179380db
commit 6df80d2fed
12 changed files with 45413 additions and 100 deletions

10
node_modules/db.js generated vendored
View File

@@ -6,8 +6,14 @@ var Evt = require('evt');
// var dbPath = require('nw.gui').App.dataPath + '/nedb';
// var dbPath = Evt.getBasePath() + '/Users/life/Library/Application Support/Leanote' + '/nedb';
var dbPath = Evt.getBasePath() + '/nedb';
console.log(",,,,,,,,,,,,,");
console.log(dbPath);
// test
if(dbPath.length < 6) {
var dbPath = '/Users/life/Library/Application Support/Leanote' + '/nedb';
}
// console.log(",,,,,,,,,,,,,");
// console.log(dbPath);
var db = {};
var dbNames = ['notebooks', 'notes', 'users', 'tags', 'images', 'attachs', 'noteHistories'];
for(var i in dbNames) {