mirror of
https://github.com/strapi/strapi.git
synced 2025-08-22 15:48:59 +00:00
Load sentry plugin
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
parent
0f78b38eb3
commit
ec7baf3bb3
@ -1,11 +1,13 @@
|
||||
// TODO temp file
|
||||
import documentationPlugin from '../../../../plugins/documentation/admin/src';
|
||||
import graphqlPlugin from '../../../../plugins/graphql/admin/src';
|
||||
import sentryPlugin from '../../../../plugins/sentry/admin/src';
|
||||
import usersPermissionsPlugin from '../../../../plugins/users-permissions/admin/src';
|
||||
|
||||
const plugins = {
|
||||
'@strapi/plugin-documentation': documentationPlugin,
|
||||
'@strapi/plugin-graphql': graphqlPlugin,
|
||||
'@strapi/plugin-sentry': sentryPlugin,
|
||||
'@strapi/plugin-users-permissions': usersPermissionsPlugin,
|
||||
};
|
||||
|
||||
|
@ -3,27 +3,23 @@ import pluginId from './pluginId';
|
||||
import pluginLogo from './assets/images/logo.svg';
|
||||
import trads from './translations';
|
||||
|
||||
export default strapi => {
|
||||
const pluginDescription = pluginPkg.strapi.description || pluginPkg.description;
|
||||
const icon = pluginPkg.strapi.icon;
|
||||
const name = pluginPkg.strapi.name;
|
||||
|
||||
const plugin = {
|
||||
blockerComponent: null,
|
||||
blockerComponentProps: {},
|
||||
export default {
|
||||
register(app) {
|
||||
app.registerPlugin({
|
||||
description: pluginDescription,
|
||||
icon: pluginPkg.strapi.icon,
|
||||
icon,
|
||||
id: pluginId,
|
||||
isReady: true,
|
||||
initializer: () => null,
|
||||
injectedComponents: [],
|
||||
isRequired: pluginPkg.strapi.required || false,
|
||||
layout: null,
|
||||
lifecycles: () => {},
|
||||
mainComponent: null,
|
||||
name: pluginPkg.strapi.name,
|
||||
name,
|
||||
pluginLogo,
|
||||
preventComponentRendering: false,
|
||||
trads,
|
||||
};
|
||||
|
||||
return strapi.registerPlugin(plugin);
|
||||
});
|
||||
},
|
||||
boot() {},
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user