mirror of
https://github.com/strapi/strapi.git
synced 2025-07-29 03:50:26 +00:00
31 lines
756 B
JavaScript
31 lines
756 B
JavaScript
![]() |
import pluginPkg from '../../package.json';
|
||
|
import pluginId from './pluginId';
|
||
|
import pluginLogo from './assets/images/logo.svg';
|
||
|
|
||
|
export default strapi => {
|
||
|
const pluginDescription =
|
||
|
pluginPkg.strapi.description || pluginPkg.description;
|
||
|
|
||
|
const plugin = {
|
||
|
blockerComponent: null,
|
||
|
blockerComponentProps: {},
|
||
|
description: pluginDescription,
|
||
|
icon: pluginPkg.strapi.icon,
|
||
|
id: pluginId,
|
||
|
isReady: true,
|
||
|
initializer: () => null,
|
||
|
injectedComponents: [],
|
||
|
layout: null,
|
||
|
lifecycles: () => {},
|
||
|
leftMenuLinks: [],
|
||
|
leftMenuSections: [],
|
||
|
mainComponent: null,
|
||
|
name: pluginPkg.strapi.name,
|
||
|
pluginLogo,
|
||
|
preventComponentRendering: false,
|
||
|
trads: {},
|
||
|
};
|
||
|
|
||
|
return strapi.registerPlugin(plugin);
|
||
|
};
|