diff --git a/packages/strapi-admin/admin/src/app.js b/packages/strapi-admin/admin/src/app.js index a7e7cc5b6d..3abcead409 100644 --- a/packages/strapi-admin/admin/src/app.js +++ b/packages/strapi-admin/admin/src/app.js @@ -1,9 +1,16 @@ -// /** -// * -// * app.js -// * -// * Entry point of the application -// */ +/** + * + * app.js + * + * Entry point of the application + */ + +// NOTE TO PLUGINS DEVELOPERS: +// If you modify this file by adding new options to a plugin entry point +// Here's the file: strapi/docs/3.0.0-beta.x/plugin-development/frontend-field-api.md +// Here's the file: strapi/docs/3.0.0-beta.x/guides/registering-a-field-in-admin.md +// Also the strapi-generate-plugins/files/admin/src/index.js needs to be updated +// IF THE DOC IS NOT UPDATED THE PULL REQUEST WILL NOT BE MERGED /* eslint-disable */ @@ -61,6 +68,10 @@ Object.keys(plugins).forEach(current => { return plugin; }; const currentPluginFn = plugins[current]; + + // By updating this by adding required methods + // to load a plugin you need to update this file + // strapi-generate-plugins/files/admin/src/index.js needs to be updated const plugin = currentPluginFn({ registerField: strapi.fieldApi.registerField, registerPlugin, diff --git a/packages/strapi-admin/admin/src/config.js b/packages/strapi-admin/admin/src/config.js index 1a0d131806..711a4534d8 100644 --- a/packages/strapi-admin/admin/src/config.js +++ b/packages/strapi-admin/admin/src/config.js @@ -1,4 +1,10 @@ // DO NOT MODIFY THESE OPTIONS + +// NOTE TO PLUGINS DEVELOPERS: +// If you modify this file you also need to update the documentation accordingly +// Here's the file: strapi/docs/3.0.0-beta.x/admin-panel/customization.md#tutorial-videos +// IF THE DOC IS NOT UPDATED THE PULL REQUEST WILL NOT BE MERGED + export const LOGIN_LOGO = null; export const SHOW_TUTORIALS = true; export const SETTINGS_BASE_URL = '/settings'; diff --git a/packages/strapi-admin/admin/src/containers/SettingsPage/index.js b/packages/strapi-admin/admin/src/containers/SettingsPage/index.js index 7721a34f3c..4fdf571544 100644 --- a/packages/strapi-admin/admin/src/containers/SettingsPage/index.js +++ b/packages/strapi-admin/admin/src/containers/SettingsPage/index.js @@ -4,6 +4,11 @@ * */ +// NOTE TO PLUGINS DEVELOPERS: +// If you modify this file you also need to update the documentation accordingly +// Here's the file: strapi/docs/3.0.0-beta.x/plugin-development/frontend-settings-api.md +// IF THE DOC IS NOT UPDATED THE PULL REQUEST WILL NOT BE MERGED + import React, { memo } from 'react'; import { useGlobalContext, LeftMenu, LeftMenuList } from 'strapi-helper-plugin'; import { Switch, Redirect, Route, useParams } from 'react-router-dom'; @@ -66,21 +71,10 @@ function SettingsPage() {
- - + + {createdRoutes} - +
diff --git a/packages/strapi-admin/admin/src/i18n.js b/packages/strapi-admin/admin/src/i18n.js index fd4df78f17..0471082cb5 100644 --- a/packages/strapi-admin/admin/src/i18n.js +++ b/packages/strapi-admin/admin/src/i18n.js @@ -5,6 +5,11 @@ * */ +// NOTE TO PLUGINS DEVELOPERS: +// If you modify this file you also need to update the documentation accordingly +// Here's the file: strapi/docs/3.0.0-beta.x/admin-panel/customization.md#customize-the-strapi-admin-package +// IF THE DOC IS NOT UPDATED THE PULL REQUEST WILL NOT BE MERGED + import { addLocaleData } from 'react-intl'; import { reduce } from 'lodash'; diff --git a/packages/strapi-admin/admin/src/utils/FieldApi.js b/packages/strapi-admin/admin/src/utils/FieldApi.js index fba06e5bb6..9b81b7c3fe 100644 --- a/packages/strapi-admin/admin/src/utils/FieldApi.js +++ b/packages/strapi-admin/admin/src/utils/FieldApi.js @@ -1,3 +1,9 @@ +// NOTE TO PLUGINS DEVELOPERS: +// If you modify this file you also need to update the documentation accordingly +// Here's the file: strapi/docs/3.0.0-beta.x/plugin-development/frontend-field-api.md +// Here's the file: strapi/docs/3.0.0-beta.x/guides/registering-a-field-in-admin.md +// IF THE DOC IS NOT UPDATED THE PULL REQUEST WILL NOT BE MERGED + import { cloneDeep } from 'lodash'; import invariant from 'invariant'; diff --git a/packages/strapi-plugin-content-manager/admin/src/index.js b/packages/strapi-plugin-content-manager/admin/src/index.js index a9f519938c..f7eb3de797 100644 --- a/packages/strapi-plugin-content-manager/admin/src/index.js +++ b/packages/strapi-plugin-content-manager/admin/src/index.js @@ -1,3 +1,10 @@ +// NOTE TO PLUGINS DEVELOPERS: +// If you modify this file by adding new options to the plugin entry point +// Here's the file: strapi/docs/3.0.0-beta.x/plugin-development/frontend-field-api.md +// Here's the file: strapi/docs/3.0.0-beta.x/guides/registering-a-field-in-admin.md +// Also the strapi-generate-plugins/files/admin/src/index.js needs to be updated +// IF THE DOC IS NOT UPDATED THE PULL REQUEST WILL NOT BE MERGED + import pluginPkg from '../../package.json'; import pluginId from './pluginId'; import pluginLogo from './assets/images/logo.svg'; diff --git a/packages/strapi-plugin-content-type-builder/admin/src/index.js b/packages/strapi-plugin-content-type-builder/admin/src/index.js index e836f0ac9e..5c1efcdccc 100644 --- a/packages/strapi-plugin-content-type-builder/admin/src/index.js +++ b/packages/strapi-plugin-content-type-builder/admin/src/index.js @@ -1,3 +1,10 @@ +// NOTE TO PLUGINS DEVELOPERS: +// If you modify this file by adding new options to the plugin entry point +// Here's the file: strapi/docs/3.0.0-beta.x/plugin-development/frontend-field-api.md +// Here's the file: strapi/docs/3.0.0-beta.x/guides/registering-a-field-in-admin.md +// Also the strapi-generate-plugins/files/admin/src/index.js needs to be updated +// IF THE DOC IS NOT UPDATED THE PULL REQUEST WILL NOT BE MERGED + import pluginPkg from '../../package.json'; import pluginLogo from './assets/images/logo.svg'; import App from './containers/App'; diff --git a/packages/strapi-plugin-documentation/admin/src/index.js b/packages/strapi-plugin-documentation/admin/src/index.js index 7197d3fd33..0963da8d5d 100644 --- a/packages/strapi-plugin-documentation/admin/src/index.js +++ b/packages/strapi-plugin-documentation/admin/src/index.js @@ -1,3 +1,10 @@ +// NOTE TO PLUGINS DEVELOPERS: +// If you modify this file by adding new options to the plugin entry point +// Here's the file: strapi/docs/3.0.0-beta.x/plugin-development/frontend-field-api.md +// Here's the file: strapi/docs/3.0.0-beta.x/guides/registering-a-field-in-admin.md +// Also the strapi-generate-plugins/files/admin/src/index.js needs to be updated +// IF THE DOC IS NOT UPDATED THE PULL REQUEST WILL NOT BE MERGED + import pluginPkg from '../../package.json'; import pluginId from './pluginId'; import pluginLogo from './assets/images/logo.svg'; diff --git a/packages/strapi-plugin-email/admin/src/index.js b/packages/strapi-plugin-email/admin/src/index.js index 9811a06eb0..36701695a1 100644 --- a/packages/strapi-plugin-email/admin/src/index.js +++ b/packages/strapi-plugin-email/admin/src/index.js @@ -1,3 +1,10 @@ +// NOTE TO PLUGINS DEVELOPERS: +// If you modify this file by adding new options to the plugin entry point +// Here's the file: strapi/docs/3.0.0-beta.x/plugin-development/frontend-field-api.md +// Here's the file: strapi/docs/3.0.0-beta.x/guides/registering-a-field-in-admin.md +// Also the strapi-generate-plugins/files/admin/src/index.js needs to be updated +// IF THE DOC IS NOT UPDATED THE PULL REQUEST WILL NOT BE MERGED + import pluginPkg from '../../package.json'; import pluginId from './pluginId'; import pluginLogo from './assets/images/logo.svg'; diff --git a/packages/strapi-plugin-graphql/admin/src/index.js b/packages/strapi-plugin-graphql/admin/src/index.js index 8c0218f787..2cd8f6ce12 100644 --- a/packages/strapi-plugin-graphql/admin/src/index.js +++ b/packages/strapi-plugin-graphql/admin/src/index.js @@ -1,3 +1,10 @@ +// NOTE TO PLUGINS DEVELOPERS: +// If you modify this file by adding new options to the plugin entry point +// Here's the file: strapi/docs/3.0.0-beta.x/plugin-development/frontend-field-api.md +// Here's the file: strapi/docs/3.0.0-beta.x/guides/registering-a-field-in-admin.md +// Also the strapi-generate-plugins/files/admin/src/index.js needs to be updated +// IF THE DOC IS NOT UPDATED THE PULL REQUEST WILL NOT BE MERGED + import pluginPkg from '../../package.json'; import pluginId from './pluginId'; import pluginLogo from './assets/images/logo.svg'; diff --git a/packages/strapi-plugin-upload/admin/src/index.js b/packages/strapi-plugin-upload/admin/src/index.js index 4124de1997..76bd2e3c84 100644 --- a/packages/strapi-plugin-upload/admin/src/index.js +++ b/packages/strapi-plugin-upload/admin/src/index.js @@ -1,3 +1,10 @@ +// NOTE TO PLUGINS DEVELOPERS: +// If you modify this file by adding new options to the plugin entry point +// Here's the file: strapi/docs/3.0.0-beta.x/plugin-development/frontend-field-api.md +// Here's the file: strapi/docs/3.0.0-beta.x/guides/registering-a-field-in-admin.md +// Also the strapi-generate-plugins/files/admin/src/index.js needs to be updated +// IF THE DOC IS NOT UPDATED THE PULL REQUEST WILL NOT BE MERGED + import pluginPkg from '../../package.json'; import pluginLogo from './assets/images/logo.svg'; import App from './containers/App'; diff --git a/packages/strapi-plugin-users-permissions/admin/src/index.js b/packages/strapi-plugin-users-permissions/admin/src/index.js index f51e4b759e..f07c6d472a 100644 --- a/packages/strapi-plugin-users-permissions/admin/src/index.js +++ b/packages/strapi-plugin-users-permissions/admin/src/index.js @@ -1,3 +1,10 @@ +// NOTE TO PLUGINS DEVELOPERS: +// If you modify this file by adding new options to the plugin entry point +// Here's the file: strapi/docs/3.0.0-beta.x/plugin-development/frontend-field-api.md +// Here's the file: strapi/docs/3.0.0-beta.x/guides/registering-a-field-in-admin.md +// Also the strapi-generate-plugins/files/admin/src/index.js needs to be updated +// IF THE DOC IS NOT UPDATED THE PULL REQUEST WILL NOT BE MERGED + import pluginPkg from '../../package.json'; import pluginLogo from './assets/images/logo.svg'; import layout from '../../config/layout';