mirror of
https://github.com/strapi/strapi.git
synced 2025-07-28 03:20:17 +00:00
31 lines
818 B
JavaScript
31 lines
818 B
JavaScript
import pluginPkg from '../../package.json';
|
|
import App from './containers/App';
|
|
import Initializer from './containers/Initializer';
|
|
import lifecycles from './lifecycles';
|
|
import trads from './translations';
|
|
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: Initializer,
|
|
injectedComponents: [],
|
|
layout: null,
|
|
lifecycles,
|
|
leftMenuLinks: [],
|
|
leftMenuSections: [],
|
|
mainComponent: App,
|
|
name: pluginPkg.strapi.name,
|
|
preventComponentRendering: false,
|
|
trads,
|
|
};
|
|
|
|
return strapi.registerPlugin(plugin);
|
|
};
|