Промежуточный коммит

This commit is contained in:
Book Pauk
2019-01-14 00:14:19 +07:00
parent ae9893ac58
commit 3d6c62c5e0
5 changed files with 37 additions and 5 deletions

View File

@@ -1,7 +1,23 @@
import 'localforage';
import path from 'path';
import BookParser from './BookParser';
class BookManager {
async add() {
async addBook(book, callback) {
let meta = {url: book.url, path: book.path};
meta.key = path.basename(book.path);
if (callback)
callback(100);
return meta;
}
async hasBook(meta) {
}
async getBook(meta) {
}
}