mirror of
https://github.com/strapi/strapi.git
synced 2025-07-31 12:55:08 +00:00
28 lines
713 B
JavaScript
28 lines
713 B
JavaScript
import pluginPkg from '../../package.json';
|
|
import pluginId from './pluginId';
|
|
|
|
export default strapi => {
|
|
const pluginDescription = pluginPkg.strapi.description || pluginPkg.description;
|
|
|
|
const plugin = {
|
|
blockerComponent: null,
|
|
blockerComponentProps: {},
|
|
description: pluginDescription,
|
|
icon: pluginPkg.strapi.icon,
|
|
id: pluginId,
|
|
initializer: () => null,
|
|
injectedComponents: [],
|
|
isReady: true,
|
|
isRequired: pluginPkg.strapi.required || false,
|
|
leftMenuLinks: [],
|
|
leftMenuSections: [],
|
|
mainComponent: null,
|
|
name: pluginPkg.strapi.name,
|
|
preventComponentRendering: false,
|
|
settings: null,
|
|
trads: {},
|
|
};
|
|
|
|
return strapi.registerPlugin(plugin);
|
|
};
|