2020-01-30 13:59:48 +01:00
|
|
|
import pluginPkg from '../../package.json';
|
|
|
|
import pluginId from './pluginId';
|
|
|
|
|
|
|
|
export default strapi => {
|
2020-03-02 15:18:08 +01:00
|
|
|
const pluginDescription = pluginPkg.strapi.description || pluginPkg.description;
|
2020-01-30 13:59:48 +01:00
|
|
|
|
|
|
|
const plugin = {
|
|
|
|
blockerComponent: null,
|
|
|
|
blockerComponentProps: {},
|
|
|
|
description: pluginDescription,
|
|
|
|
icon: pluginPkg.strapi.icon,
|
|
|
|
id: pluginId,
|
|
|
|
initializer: () => null,
|
|
|
|
injectedComponents: [],
|
|
|
|
isReady: true,
|
2020-02-28 11:40:55 +01:00
|
|
|
isRequired: pluginPkg.strapi.required || false,
|
2020-01-30 13:59:48 +01:00
|
|
|
leftMenuLinks: [],
|
|
|
|
leftMenuSections: [],
|
|
|
|
mainComponent: null,
|
|
|
|
name: pluginPkg.strapi.name,
|
|
|
|
preventComponentRendering: false,
|
|
|
|
settings: null,
|
|
|
|
trads: {},
|
|
|
|
};
|
|
|
|
|
|
|
|
return strapi.registerPlugin(plugin);
|
|
|
|
};
|