1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-20 18:48:28 +02:00
joplin/packages/lib/services/plugins/defaultPlugins/desktopDefaultPluginsInfo.ts
Laurent Cozic 6dc1bc7870
Desktop: Resolves #11314: Make js-draw a default plugin (#11516)
Co-authored-by: Henry Heino <46334387+personalizedrefrigerator@users.noreply.github.com>
2024-12-17 19:04:36 +01:00

26 lines
717 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('homeDir')}`,
'createSubfolderPerProfile': true,
},
// 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(),
},
'io.github.personalizedrefrigerator.js-draw': {
},
};
return defaultPlugins;
};
export default getDefaultPluginsInfo;