You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-12-02 22:49:09 +02:00
All: Moving sync target logic to SyncTarget classes
This commit is contained in:
@@ -30,25 +30,25 @@ class BaseSyncTarget {
|
||||
return false;
|
||||
}
|
||||
|
||||
name() {
|
||||
throw new Error('Not implemented');
|
||||
static id() {
|
||||
throw new Error('id() not implemented');
|
||||
}
|
||||
|
||||
label() {
|
||||
throw new Error('Not implemented');
|
||||
static label() {
|
||||
throw new Error('label() not implemented');
|
||||
}
|
||||
|
||||
async initSynchronizer() {
|
||||
throw new Error('Not implemented');
|
||||
throw new Error('initSynchronizer() not implemented');
|
||||
}
|
||||
|
||||
initFileApi() {
|
||||
throw new Error('Not implemented');
|
||||
async initFileApi() {
|
||||
throw new Error('initFileApi() not implemented');
|
||||
}
|
||||
|
||||
fileApi() {
|
||||
async fileApi() {
|
||||
if (this.fileApi_) return this.fileApi_;
|
||||
this.fileApi_ = this.initFileApi();
|
||||
this.fileApi_ = await this.initFileApi();
|
||||
return this.fileApi_;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user