1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-05 12:50:29 +02:00
joplin/ReactNativeClient/lib/parameters.js

35 lines
721 B
JavaScript
Raw Normal View History

2017-07-08 00:25:03 +02:00
import { Setting } from 'lib/models/setting.js';
const parameters_ = {};
parameters_.dev = {
oneDrive: {
id: 'cbabb902-d276-4ea4-aa88-062a5889d6dc',
secret: 'YSvrgQMqw9NzVqgiLfuEky1',
},
oneDriveDemo: {
id: '606fd4d7-4dfb-4310-b8b7-a47d96aa22b6',
secret: 'qabchuPYL7931$ePDEQ3~_$',
},
2017-07-08 00:25:03 +02:00
};
parameters_.prod = {
oneDrive: {
id: 'e09fc0de-c958-424f-83a2-e56a721d331b',
secret: 'JA3cwsqSGHFtjMwd5XoF5L5',
},
oneDriveDemo: {
id: '606fd4d7-4dfb-4310-b8b7-a47d96aa22b6',
secret: 'qabchuPYL7931$ePDEQ3~_$',
},
2017-07-08 00:25:03 +02:00
};
function parameters() {
let output = parameters_[Setting.value('env')];
if (Setting.value('isDemo')) {
output.oneDrive = output.oneDriveDemo;
}
return output;
2017-07-08 00:25:03 +02:00
}
export { parameters }