11import { prefixPluginTranslations } from '@strapi/helper-plugin' ;
22import pluginPkg from '../../package.json' ;
33import pluginId from './pluginId' ;
4- import Initializer from './components/Initializer' ;
54import PluginIcon from './components/PluginIcon' ;
6- import AITextIcon from './components/PluginIcon' ;
75
86
97const name = pluginPkg . strapi . name ;
108
119export default {
1210 register ( app ) {
13- // app.addMenuLink({
14- // to: `/plugins/${pluginId}`,
15- // icon: PluginIcon,
16- // intlLabel: {
17- // id: `${pluginId}.plugin.name`,
18- // defaultMessage: name,
19- // },
20- // Component: async () => {
21- // const component = await import(/* webpackChunkName: "[request]" */ './pages/App');
22-
23- // return component;
24- // },
25- // permissions: [
26- // // Uncomment to set the permissions of the plugin here
27- // // {
28- // // action: '', // the action name should be plugin::plugin-name.actionType
29- // // subject: null,
30- // // },
31- // ],
32- // });
33- // app.registerPlugin({
34- // id: pluginId,
35- // initializer: Initializer,
36- // isReady: false,
37- // name,
38- // });
11+
3912 app . customFields . register ( {
4013 name : "text-ai" ,
4114 pluginId : "ai-text-generation" , // the custom field is created by a color-picker plugin
@@ -61,15 +34,10 @@ export default {
6134 {
6235 sectionTitle : { // Add a "Format" settings section
6336 id : 'ai-text-generation.text-ai.api.details' ,
64- defaultMessage : 'API Details' ,
37+ defaultMessage : 'Text Details' ,
6538 } ,
6639 items : [ // Add settings items to the section
6740 {
68- /*
69- Add a "Color format" dropdown
70- to choose between 2 different format options
71- for the color value: hexadecimal or RGBA
72- */
7341 intlLabel : {
7442 id : 'ai-text-generation.text-ai.key' ,
7543 defaultMessage : 'Key' ,
0 commit comments