mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
21 lines
624 B
TypeScript
21 lines
624 B
TypeScript
import { DefaultPluginsInfo } from '../PluginService';
|
|
import Setting from '../../../models/Setting';
|
|
import shim from '../../../shim';
|
|
|
|
const getDefaultPluginsInfo = (): DefaultPluginsInfo => {
|
|
const defaultPlugins = {
|
|
'io.github.jackgruber.backup': {
|
|
settings: {
|
|
'path': `${Setting.value('profileDir')}`,
|
|
},
|
|
|
|
// Joplin Portable is more likely to run on a device with low write speeds
|
|
// and memory. Because Simple Backup has auto-backup enabled by default,
|
|
// we disable it in Joplin Portable.
|
|
enabled: !shim.isPortable(),
|
|
},
|
|
};
|
|
return defaultPlugins;
|
|
};
|
|
export default getDefaultPluginsInfo;
|