mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Fixed import
This commit is contained in:
parent
a81fe24368
commit
23818cb428
@ -1,5 +1,6 @@
|
||||
class FsDriverDummy {
|
||||
|
||||
constructor() {}
|
||||
appendFileSync(path, string) {}
|
||||
writeBinaryFile(path, content) {}
|
||||
readFile(path) {}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import moment from 'moment';
|
||||
import { _ } from 'lib/locale.js';
|
||||
import FsDriverDummy from 'lib/fs-driver-dummy.js';
|
||||
import { FsDriverDummy } from 'lib/fs-driver-dummy.js';
|
||||
|
||||
class Logger {
|
||||
|
||||
|
@ -39,17 +39,10 @@ class Resource extends BaseItem {
|
||||
|
||||
static content(resource) {
|
||||
return this.fsDriver().readFile(this.fullPath(resource));
|
||||
// // TODO: node-only, and should probably be done with streams
|
||||
// const fs = require('fs-extra');
|
||||
// return fs.readFile(this.fullPath(resource));
|
||||
}
|
||||
|
||||
static setContent(resource, content) {
|
||||
return this.fsDriver().writeBinaryFile(this.fullPath(resource), content);
|
||||
// // TODO: node-only, and should probably be done with streams
|
||||
// const fs = require('fs-extra');
|
||||
// let buffer = new Buffer(content);
|
||||
// return fs.writeFile(this.fullPath(resource), buffer);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user