1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

All: Added dev sync target and option to select it in mobile

This commit is contained in:
Laurent Cozic
2017-11-24 19:47:24 +00:00
parent 8e5b0eadd9
commit 26bb7dc33b
15 changed files with 77 additions and 18 deletions

View File

@@ -0,0 +1,37 @@
const BaseSyncTarget = require('lib/BaseSyncTarget.js');
const SyncTargetOneDrive = require('lib/SyncTargetOneDrive.js');
const { _ } = require('lib/locale.js');
const { OneDriveApi } = require('lib/onedrive-api.js');
const { Setting } = require('lib/models/setting.js');
const { parameters } = require('lib/parameters.js');
const { FileApi } = require('lib/file-api.js');
const { Synchronizer } = require('lib/synchronizer.js');
const { FileApiDriverOneDrive } = require('lib/file-api-driver-onedrive.js');
class SyncTargetOneDriveDev extends SyncTargetOneDrive {
static id() {
return 4;
}
static targetName() {
return 'onedrive_dev';
}
static label() {
return _('OneDrive Dev (For testing only)');
}
syncTargetId() {
return SyncTargetOneDriveDev.id();
}
oneDriveParameters() {
return parameters('dev').oneDrive;
}
}
const staticSelf = SyncTargetOneDriveDev;
module.exports = SyncTargetOneDriveDev;