Init load CTB

Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
soupette 2021-05-11 09:46:54 +02:00
parent ce612d8890
commit 1989f6dfac
2 changed files with 69 additions and 1 deletions

View File

@ -45,7 +45,6 @@ class StrapiApp {
this.plugins = {};
this.reducers = { ...reducers };
this.translations = translations;
this.getPlugin = this.getPlugin.bind(this);
}

View File

@ -27,7 +27,11 @@ export default {
description: pluginDescription,
icon,
id: pluginId,
<<<<<<< HEAD
// FIXME
=======
>>>>>>> 6665d1068 (Init load CTB)
injectedComponents: [
{
plugin: 'content-manager.editView',
@ -53,6 +57,11 @@ export default {
mainComponent: App,
name,
pluginLogo,
<<<<<<< HEAD
=======
// reducers,
>>>>>>> 6665d1068 (Init load CTB)
trads,
menu: {
pluginsSectionLinks: [
@ -76,3 +85,63 @@ export default {
},
boot() {},
};
// export default strapi => {
// const plugin = {
// blockerComponent: null,
// blockerComponentProps: {},
// description: pluginDescription,
// icon,
// id: pluginId,
// initializer: Initializer,
// injectedComponents: [
// {
// plugin: 'content-manager.editView',
// area: 'right.links',
// component: Link,
// key: 'content-type-builder.link',
// props: {
// message: {
// id: 'content-manager.containers.Edit.Link.Fields',
// },
// icon: 'fa-cog',
// },
// },
// {
// plugin: 'content-manager.editSettingsView',
// area: 'left.links',
// component: Button,
// key: 'content-type-builder.form',
// },
// ],
// isRequired: pluginPkg.strapi.required || false,
// layout: null,
// lifecycles,
// mainComponent: App,
// name,
// pluginLogo,
// preventComponentRendering: false,
// reducers,
// trads,
// menu: {
// pluginsSectionLinks: [
// {
// destination: `/plugins/${pluginId}`,
// icon,
// label: {
// id: `${pluginId}.plugin.name`,
// defaultMessage: 'Content-Types Builder',
// },
// name,
// permissions: pluginPermissions.main,
// },
// ],
// },
// // Internal APIs exposed by the CTB for the other plugins to use
// apis: {
// forms: formsAPI,
// },
// };
// return strapi.registerPlugin(plugin);
// };