You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-23 22:36:32 +02:00
All: Added "None" sync target to allow disabling synchronisation
This commit is contained in:
30
packages/lib/SyncTargetNone.ts
Normal file
30
packages/lib/SyncTargetNone.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import { _ } from './locale.js';
|
||||
import BaseSyncTarget from './BaseSyncTarget';
|
||||
import { FileApi } from './file-api';
|
||||
|
||||
export default class SyncTargetNone extends BaseSyncTarget {
|
||||
|
||||
public static id() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static targetName() {
|
||||
return 'none';
|
||||
}
|
||||
|
||||
public static label() {
|
||||
return _('(None)');
|
||||
}
|
||||
|
||||
public async fileApi(): Promise<FileApi> {
|
||||
return null;
|
||||
}
|
||||
|
||||
protected async initFileApi() {
|
||||
|
||||
}
|
||||
|
||||
protected async initSynchronizer() {
|
||||
return null as any;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user