Промежуточный коммит
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
export default class BookParser {
|
||||
}
|
||||
@@ -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) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user