Identify front-end core files

Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
soupette 2020-03-06 13:33:07 +01:00
parent bdc2758613
commit f3bcddcf89
12 changed files with 91 additions and 20 deletions

View File

@ -1,9 +1,16 @@
// /** /**
// * *
// * app.js * app.js
// * *
// * Entry point of the application * 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 */ /* eslint-disable */
@ -61,6 +68,10 @@ Object.keys(plugins).forEach(current => {
return plugin; return plugin;
}; };
const currentPluginFn = plugins[current]; 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({ const plugin = currentPluginFn({
registerField: strapi.fieldApi.registerField, registerField: strapi.fieldApi.registerField,
registerPlugin, registerPlugin,

View File

@ -1,4 +1,10 @@
// DO NOT MODIFY THESE OPTIONS // 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 LOGIN_LOGO = null;
export const SHOW_TUTORIALS = true; export const SHOW_TUTORIALS = true;
export const SETTINGS_BASE_URL = '/settings'; export const SETTINGS_BASE_URL = '/settings';

View File

@ -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 React, { memo } from 'react';
import { useGlobalContext, LeftMenu, LeftMenuList } from 'strapi-helper-plugin'; import { useGlobalContext, LeftMenu, LeftMenuList } from 'strapi-helper-plugin';
import { Switch, Redirect, Route, useParams } from 'react-router-dom'; import { Switch, Redirect, Route, useParams } from 'react-router-dom';
@ -66,21 +71,10 @@ function SettingsPage() {
</div> </div>
<div className="col-md-9"> <div className="col-md-9">
<Switch> <Switch>
<Route <Route exact path={`${settingsBaseURL}/webhooks`} component={ListView} />
exact <Route exact path={`${settingsBaseURL}/webhooks/:id`} component={EditView} />
path={`${settingsBaseURL}/webhooks`}
component={ListView}
/>
<Route
exact
path={`${settingsBaseURL}/webhooks/:id`}
component={EditView}
/>
{createdRoutes} {createdRoutes}
<Route <Route path={`${settingsBaseURL}/:pluginId`} component={SettingDispatcher} />
path={`${settingsBaseURL}/:pluginId`}
component={SettingDispatcher}
/>
</Switch> </Switch>
</div> </div>
</div> </div>

View File

@ -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 { addLocaleData } from 'react-intl';
import { reduce } from 'lodash'; import { reduce } from 'lodash';

View File

@ -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 { cloneDeep } from 'lodash';
import invariant from 'invariant'; import invariant from 'invariant';

View File

@ -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 pluginPkg from '../../package.json';
import pluginId from './pluginId'; import pluginId from './pluginId';
import pluginLogo from './assets/images/logo.svg'; import pluginLogo from './assets/images/logo.svg';

View File

@ -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 pluginPkg from '../../package.json';
import pluginLogo from './assets/images/logo.svg'; import pluginLogo from './assets/images/logo.svg';
import App from './containers/App'; import App from './containers/App';

View File

@ -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 pluginPkg from '../../package.json';
import pluginId from './pluginId'; import pluginId from './pluginId';
import pluginLogo from './assets/images/logo.svg'; import pluginLogo from './assets/images/logo.svg';

View File

@ -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 pluginPkg from '../../package.json';
import pluginId from './pluginId'; import pluginId from './pluginId';
import pluginLogo from './assets/images/logo.svg'; import pluginLogo from './assets/images/logo.svg';

View File

@ -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 pluginPkg from '../../package.json';
import pluginId from './pluginId'; import pluginId from './pluginId';
import pluginLogo from './assets/images/logo.svg'; import pluginLogo from './assets/images/logo.svg';

View File

@ -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 pluginPkg from '../../package.json';
import pluginLogo from './assets/images/logo.svg'; import pluginLogo from './assets/images/logo.svg';
import App from './containers/App'; import App from './containers/App';

View File

@ -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 pluginPkg from '../../package.json';
import pluginLogo from './assets/images/logo.svg'; import pluginLogo from './assets/images/logo.svg';
import layout from '../../config/layout'; import layout from '../../config/layout';