mirror of
https://github.com/strapi/strapi.git
synced 2025-12-24 21:54:24 +00:00
Merge branch 'develop' into features/single-types
This commit is contained in:
commit
81c5537d7f
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "getstarted",
|
||||
"private": true,
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "A Strapi application.",
|
||||
"scripts": {
|
||||
"develop": "strapi develop",
|
||||
@ -15,21 +15,21 @@
|
||||
"mysql": "^2.17.1",
|
||||
"pg": "^7.10.0",
|
||||
"sqlite3": "^4.0.6",
|
||||
"strapi": "3.0.0-beta.18.5",
|
||||
"strapi-admin": "3.0.0-beta.18.5",
|
||||
"strapi-connector-bookshelf": "3.0.0-beta.18.5",
|
||||
"strapi-connector-mongoose": "3.0.0-beta.18.5",
|
||||
"strapi-middleware-views": "3.0.0-beta.18.5",
|
||||
"strapi-plugin-content-manager": "3.0.0-beta.18.5",
|
||||
"strapi-plugin-content-type-builder": "3.0.0-beta.18.5",
|
||||
"strapi-plugin-documentation": "3.0.0-beta.18.5",
|
||||
"strapi-plugin-email": "3.0.0-beta.18.5",
|
||||
"strapi-plugin-graphql": "3.0.0-beta.18.5",
|
||||
"strapi-plugin-upload": "3.0.0-beta.18.5",
|
||||
"strapi-plugin-users-permissions": "3.0.0-beta.18.5",
|
||||
"strapi-provider-email-mailgun": "3.0.0-beta.18.5",
|
||||
"strapi-provider-upload-aws-s3": "3.0.0-beta.18.5",
|
||||
"strapi-utils": "3.0.0-beta.18.5"
|
||||
"strapi": "3.0.0-beta.18.6",
|
||||
"strapi-admin": "3.0.0-beta.18.6",
|
||||
"strapi-connector-bookshelf": "3.0.0-beta.18.6",
|
||||
"strapi-connector-mongoose": "3.0.0-beta.18.6",
|
||||
"strapi-middleware-views": "3.0.0-beta.18.6",
|
||||
"strapi-plugin-content-manager": "3.0.0-beta.18.6",
|
||||
"strapi-plugin-content-type-builder": "3.0.0-beta.18.6",
|
||||
"strapi-plugin-documentation": "3.0.0-beta.18.6",
|
||||
"strapi-plugin-email": "3.0.0-beta.18.6",
|
||||
"strapi-plugin-graphql": "3.0.0-beta.18.6",
|
||||
"strapi-plugin-upload": "3.0.0-beta.18.6",
|
||||
"strapi-plugin-users-permissions": "3.0.0-beta.18.6",
|
||||
"strapi-provider-email-mailgun": "3.0.0-beta.18.6",
|
||||
"strapi-provider-upload-aws-s3": "3.0.0-beta.18.6",
|
||||
"strapi-utils": "3.0.0-beta.18.6"
|
||||
},
|
||||
"strapi": {
|
||||
"uuid": "getstarted"
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"packages": [
|
||||
"packages/*",
|
||||
"examples/*"
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "create-strapi-app",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Generate a new Strapi application.",
|
||||
"license": "MIT",
|
||||
"homepage": "http://strapi.io",
|
||||
@ -21,7 +21,7 @@
|
||||
],
|
||||
"dependencies": {
|
||||
"commander": "^2.20.0",
|
||||
"strapi-generate-new": "3.0.0-beta.18.5"
|
||||
"strapi-generate-new": "3.0.0-beta.18.6"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"no tests yet\""
|
||||
|
||||
@ -57,16 +57,20 @@ const { dispatch } = store;
|
||||
const MOUNT_NODE =
|
||||
document.getElementById('app') || document.createElement('div');
|
||||
|
||||
Object.keys(plugins).forEach(plugin => {
|
||||
const currentPlugin = plugins[plugin];
|
||||
Object.keys(plugins).forEach(current => {
|
||||
const registerPlugin = plugin => {
|
||||
return plugin;
|
||||
};
|
||||
const currentPluginFn = plugins[current];
|
||||
const plugin = currentPluginFn({ registerPlugin });
|
||||
|
||||
const pluginTradsPrefixed = languages.reduce((acc, lang) => {
|
||||
const currentLocale = currentPlugin.trads[lang];
|
||||
const currentLocale = plugin.trads[lang];
|
||||
|
||||
if (currentLocale) {
|
||||
const localeprefixedWithPluginId = Object.keys(currentLocale).reduce(
|
||||
(acc2, current) => {
|
||||
acc2[`${plugins[plugin].id}.${current}`] = currentLocale[current];
|
||||
acc2[`${plugin.id}.${current}`] = currentLocale[current];
|
||||
|
||||
return acc2;
|
||||
},
|
||||
@ -81,7 +85,7 @@ Object.keys(plugins).forEach(plugin => {
|
||||
|
||||
try {
|
||||
merge(translationMessages, pluginTradsPrefixed);
|
||||
dispatch(pluginLoaded(currentPlugin));
|
||||
dispatch(pluginLoaded(plugin));
|
||||
} catch (err) {
|
||||
console.log({ err });
|
||||
}
|
||||
|
||||
@ -92,8 +92,9 @@ describe('<Admin />', () => {
|
||||
it('should render the routes', () => {
|
||||
const renderedComponent = shallow(<Admin {...props} />);
|
||||
const { renderRoute } = renderedComponent.instance();
|
||||
const Compo = () => <div>compo</div>;
|
||||
|
||||
expect(renderRoute()).not.toBeNull();
|
||||
expect(renderRoute({}, Compo)).not.toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-admin",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Strapi Admin",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@ -80,8 +80,8 @@
|
||||
"reselect": "^3.0.1",
|
||||
"sanitize.css": "^4.1.0",
|
||||
"shelljs": "^0.7.8",
|
||||
"strapi-helper-plugin": "3.0.0-beta.18.5",
|
||||
"strapi-utils": "3.0.0-beta.18.5",
|
||||
"strapi-helper-plugin": "3.0.0-beta.18.6",
|
||||
"strapi-utils": "3.0.0-beta.18.6",
|
||||
"style-loader": "^0.23.1",
|
||||
"styled-components": "^4.2.0",
|
||||
"terser-webpack-plugin": "^1.2.3",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-connector-bookshelf",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Bookshelf hook for the Strapi framework",
|
||||
"homepage": "http://strapi.io",
|
||||
"keywords": [
|
||||
@ -22,7 +22,7 @@
|
||||
"lodash": "^4.17.11",
|
||||
"pluralize": "^7.0.0",
|
||||
"rimraf": "^2.6.3",
|
||||
"strapi-utils": "3.0.0-beta.18.5"
|
||||
"strapi-utils": "3.0.0-beta.18.6"
|
||||
},
|
||||
"strapi": {
|
||||
"dependencies": [
|
||||
|
||||
@ -397,7 +397,7 @@ module.exports = ({ model, modelKey, strapi }) => {
|
||||
await Promise.all(
|
||||
Object.keys(deleteMap).map(componentUID => {
|
||||
return strapi.query(componentUID).delete({
|
||||
[`${model.primaryKey}_in`]: idsToDelete[componentUID],
|
||||
[`${model.primaryKey}_in`]: deleteMap[componentUID],
|
||||
});
|
||||
})
|
||||
);
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-connector-mongoose",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Mongoose hook for the Strapi framework",
|
||||
"homepage": "http://strapi.io",
|
||||
"keywords": [
|
||||
@ -20,7 +20,7 @@
|
||||
"mongoose-float": "^1.0.4",
|
||||
"mongoose-long": "^0.2.1",
|
||||
"pluralize": "^7.0.0",
|
||||
"strapi-utils": "3.0.0-beta.18.5"
|
||||
"strapi-utils": "3.0.0-beta.18.6"
|
||||
},
|
||||
"author": {
|
||||
"email": "hi@strapi.io",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-database",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Strapi's database layer",
|
||||
"homepage": "http://strapi.io",
|
||||
"main": "./lib/index.js",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-generate-api",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Generate an API for a Strapi application.",
|
||||
"homepage": "http://strapi.io",
|
||||
"keywords": [
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-generate-controller",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Generate a controller for a Strapi API.",
|
||||
"homepage": "http://strapi.io",
|
||||
"keywords": [
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-generate-model",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Generate a model for a Strapi API.",
|
||||
"homepage": "http://strapi.io",
|
||||
"keywords": [
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-generate-new",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Generate a new Strapi application.",
|
||||
"homepage": "http://strapi.io",
|
||||
"keywords": [
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-generate-plugin",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Generate an plugin for a Strapi application.",
|
||||
"homepage": "http://strapi.io",
|
||||
"keywords": [
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-generate-policy",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Generate a policy for a Strapi API.",
|
||||
"homepage": "http://strapi.io",
|
||||
"keywords": [
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-generate-service",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Generate a service for a Strapi API.",
|
||||
"homepage": "http://strapi.io",
|
||||
"keywords": [
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-generate",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Master of ceremonies for the Strapi generators.",
|
||||
"homepage": "http://strapi.io",
|
||||
"keywords": [
|
||||
@ -20,7 +20,7 @@
|
||||
"fs-extra": "^8.0.1",
|
||||
"lodash": "^4.17.11",
|
||||
"reportback": "^2.0.2",
|
||||
"strapi-utils": "3.0.0-beta.18.5"
|
||||
"strapi-utils": "3.0.0-beta.18.6"
|
||||
},
|
||||
"author": {
|
||||
"name": "Strapi team",
|
||||
|
||||
@ -6,7 +6,7 @@ const List = styled.ul`
|
||||
margin-bottom: 0;
|
||||
padding-left: 0;
|
||||
max-height: 251px;
|
||||
overflow-y: scroll;
|
||||
overflow-y: auto;
|
||||
li {
|
||||
position: relative;
|
||||
margin-bottom: 2px;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-helper-plugin",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Helper for Strapi plugins development",
|
||||
"files": [
|
||||
"dist"
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-hook-ejs",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "EJS hook for the Strapi framework",
|
||||
"homepage": "http://strapi.io",
|
||||
"keywords": [
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-hook-redis",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Redis hook for the Strapi framework",
|
||||
"homepage": "http://strapi.io",
|
||||
"keywords": [
|
||||
@ -19,7 +19,7 @@
|
||||
"lodash": "^4.17.11",
|
||||
"rimraf": "^2.6.3",
|
||||
"stack-trace": "0.0.10",
|
||||
"strapi-utils": "3.0.0-beta.18.5"
|
||||
"strapi-utils": "3.0.0-beta.18.6"
|
||||
},
|
||||
"author": {
|
||||
"email": "hi@strapi.io",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-middleware-views",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Views middleware to enable server-side rendering for the Strapi framework",
|
||||
"homepage": "http://strapi.io",
|
||||
"keywords": [
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react';
|
||||
|
||||
import pluginPkg from '../../package.json';
|
||||
import pluginId from './pluginId';
|
||||
import App from './containers/Main';
|
||||
@ -7,31 +5,29 @@ import Initializer from './containers/Initializer';
|
||||
import lifecycles from './lifecycles';
|
||||
import trads from './translations';
|
||||
|
||||
const pluginDescription = pluginPkg.strapi.description || pluginPkg.description;
|
||||
export default strapi => {
|
||||
const pluginDescription =
|
||||
pluginPkg.strapi.description || pluginPkg.description;
|
||||
const plugin = {
|
||||
blockerComponent: null,
|
||||
blockerComponentProps: {},
|
||||
description: pluginDescription,
|
||||
icon: pluginPkg.strapi.icon,
|
||||
id: pluginId,
|
||||
initializer: Initializer,
|
||||
injectedComponents: [],
|
||||
isReady: false,
|
||||
layout: null,
|
||||
lifecycles,
|
||||
leftMenuLinks: [],
|
||||
leftMenuSections: [],
|
||||
mainComponent: App,
|
||||
name: pluginPkg.strapi.name,
|
||||
preventComponentRendering: false,
|
||||
suffixUrl: () => '/ctm-configurations/models',
|
||||
suffixUrlToReplaceForLeftMenuHighlight: '/models',
|
||||
trads,
|
||||
};
|
||||
|
||||
function Comp(props) {
|
||||
return <App {...props} />;
|
||||
}
|
||||
|
||||
const plugin = {
|
||||
blockerComponent: null,
|
||||
blockerComponentProps: {},
|
||||
description: pluginDescription,
|
||||
icon: pluginPkg.strapi.icon,
|
||||
id: pluginId,
|
||||
initializer: Initializer,
|
||||
injectedComponents: [],
|
||||
isReady: false,
|
||||
layout: null,
|
||||
lifecycles,
|
||||
leftMenuLinks: [],
|
||||
leftMenuSections: [],
|
||||
mainComponent: Comp,
|
||||
name: pluginPkg.strapi.name,
|
||||
preventComponentRendering: false,
|
||||
suffixUrl: () => '/ctm-configurations/models',
|
||||
suffixUrlToReplaceForLeftMenuHighlight: '/models',
|
||||
trads,
|
||||
return strapi.registerPlugin(plugin);
|
||||
};
|
||||
|
||||
export default plugin;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-plugin-content-manager",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "A powerful UI to easily manage your data.",
|
||||
"strapi": {
|
||||
"name": "Content Manager",
|
||||
@ -29,8 +29,8 @@
|
||||
"redux-immutable": "^4.0.0",
|
||||
"reselect": "^3.0.1",
|
||||
"showdown": "^1.9.0",
|
||||
"strapi-helper-plugin": "3.0.0-beta.18.5",
|
||||
"strapi-utils": "3.0.0-beta.18.5",
|
||||
"strapi-helper-plugin": "3.0.0-beta.18.6",
|
||||
"strapi-utils": "3.0.0-beta.18.6",
|
||||
"styled-components": "^4.2.0",
|
||||
"yup": "^0.27.0"
|
||||
},
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
import React from 'react';
|
||||
import pluginPkg from '../../package.json';
|
||||
import App from './containers/App';
|
||||
import Initializer from './containers/Initializer';
|
||||
@ -8,47 +7,45 @@ import lifecycles from './lifecycles';
|
||||
import trads from './translations';
|
||||
import pluginId from './pluginId';
|
||||
|
||||
const pluginDescription = pluginPkg.strapi.description || pluginPkg.description;
|
||||
|
||||
function Comp(props) {
|
||||
return <App {...props} />;
|
||||
}
|
||||
|
||||
const plugin = {
|
||||
blockerComponent: null,
|
||||
blockerComponentProps: {},
|
||||
description: pluginDescription,
|
||||
icon: pluginPkg.strapi.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',
|
||||
export default strapi => {
|
||||
const pluginDescription =
|
||||
pluginPkg.strapi.description || pluginPkg.description;
|
||||
const plugin = {
|
||||
blockerComponent: null,
|
||||
blockerComponentProps: {},
|
||||
description: pluginDescription,
|
||||
icon: pluginPkg.strapi.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',
|
||||
},
|
||||
icon: 'fa-cog',
|
||||
},
|
||||
},
|
||||
{
|
||||
plugin: 'content-manager.editSettingsView',
|
||||
area: 'left.links',
|
||||
component: Button,
|
||||
key: 'content-type-builder.form',
|
||||
},
|
||||
],
|
||||
layout: null,
|
||||
lifecycles,
|
||||
leftMenuLinks: [],
|
||||
leftMenuSections: [],
|
||||
mainComponent: Comp,
|
||||
name: pluginPkg.strapi.name,
|
||||
preventComponentRendering: false,
|
||||
trads,
|
||||
};
|
||||
{
|
||||
plugin: 'content-manager.editSettingsView',
|
||||
area: 'left.links',
|
||||
component: Button,
|
||||
key: 'content-type-builder.form',
|
||||
},
|
||||
],
|
||||
layout: null,
|
||||
lifecycles,
|
||||
leftMenuLinks: [],
|
||||
leftMenuSections: [],
|
||||
mainComponent: App,
|
||||
name: pluginPkg.strapi.name,
|
||||
preventComponentRendering: false,
|
||||
trads,
|
||||
};
|
||||
|
||||
export default plugin;
|
||||
return strapi.registerPlugin(plugin);
|
||||
};
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-plugin-content-type-builder",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Strapi plugin to create content type (API).",
|
||||
"strapi": {
|
||||
"name": "Content Type Builder",
|
||||
@ -26,9 +26,9 @@
|
||||
"redux": "^4.0.1",
|
||||
"redux-immutable": "^4.0.0",
|
||||
"reselect": "^3.0.1",
|
||||
"strapi-generate": "3.0.0-beta.18.5",
|
||||
"strapi-generate-api": "3.0.0-beta.18.5",
|
||||
"strapi-helper-plugin": "3.0.0-beta.18.5",
|
||||
"strapi-generate": "3.0.0-beta.18.6",
|
||||
"strapi-generate-api": "3.0.0-beta.18.6",
|
||||
"strapi-helper-plugin": "3.0.0-beta.18.6",
|
||||
"yup": "^0.27.0"
|
||||
},
|
||||
"author": {
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
import React from 'react';
|
||||
import pluginPkg from '../../package.json';
|
||||
import pluginId from './pluginId';
|
||||
import App from './containers/App';
|
||||
@ -6,29 +5,27 @@ import Initializer from './containers/Initializer';
|
||||
import lifecycles from './lifecycles';
|
||||
import trads from './translations';
|
||||
|
||||
const pluginDescription = pluginPkg.strapi.description || pluginPkg.description;
|
||||
export default strapi => {
|
||||
const pluginDescription =
|
||||
pluginPkg.strapi.description || pluginPkg.description;
|
||||
const plugin = {
|
||||
blockerComponent: null,
|
||||
blockerComponentProps: {},
|
||||
description: pluginDescription,
|
||||
icon: pluginPkg.strapi.icon,
|
||||
id: pluginId,
|
||||
initializer: Initializer,
|
||||
injectedComponents: [],
|
||||
isReady: false,
|
||||
layout: null,
|
||||
lifecycles,
|
||||
leftMenuLinks: [],
|
||||
leftMenuSections: [],
|
||||
mainComponent: App,
|
||||
name: pluginPkg.strapi.name,
|
||||
preventComponentRendering: false,
|
||||
trads,
|
||||
};
|
||||
|
||||
function Comp(props) {
|
||||
return <App {...props} />;
|
||||
}
|
||||
|
||||
const plugin = {
|
||||
blockerComponent: null,
|
||||
blockerComponentProps: {},
|
||||
description: pluginDescription,
|
||||
icon: pluginPkg.strapi.icon,
|
||||
id: pluginId,
|
||||
initializer: Initializer,
|
||||
injectedComponents: [],
|
||||
isReady: false,
|
||||
layout: null,
|
||||
lifecycles,
|
||||
leftMenuLinks: [],
|
||||
leftMenuSections: [],
|
||||
mainComponent: Comp,
|
||||
name: pluginPkg.strapi.name,
|
||||
preventComponentRendering: false,
|
||||
trads,
|
||||
return strapi.registerPlugin(plugin);
|
||||
};
|
||||
|
||||
export default plugin;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-plugin-documentation",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "This is the description of the plugin.",
|
||||
"strapi": {
|
||||
"name": "Documentation",
|
||||
@ -32,7 +32,7 @@
|
||||
"redux": "^4.0.1",
|
||||
"redux-immutable": "^4.0.0",
|
||||
"reselect": "^4.0.0",
|
||||
"strapi-helper-plugin": "3.0.0-beta.18.5",
|
||||
"strapi-helper-plugin": "3.0.0-beta.18.6",
|
||||
"swagger-ui-dist": "3.24.3"
|
||||
},
|
||||
"author": {
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
import React from 'react';
|
||||
import pluginPkg from '../../package.json';
|
||||
import pluginId from './pluginId';
|
||||
import App from './containers/App';
|
||||
@ -6,28 +5,27 @@ import Initializer from './containers/Initializer';
|
||||
import lifecycles from './lifecycles';
|
||||
import trads from './translations';
|
||||
|
||||
const pluginDescription = pluginPkg.strapi.description || pluginPkg.description;
|
||||
export default strapi => {
|
||||
const pluginDescription =
|
||||
pluginPkg.strapi.description || pluginPkg.description;
|
||||
|
||||
function Comp(props) {
|
||||
return <App {...props} />;
|
||||
}
|
||||
const plugin = {
|
||||
blockerComponent: null,
|
||||
blockerComponentProps: {},
|
||||
description: pluginDescription,
|
||||
icon: pluginPkg.strapi.icon,
|
||||
id: pluginId,
|
||||
initializer: Initializer,
|
||||
injectedComponents: [],
|
||||
layout: null,
|
||||
lifecycles,
|
||||
leftMenuLinks: [],
|
||||
leftMenuSections: [],
|
||||
mainComponent: App,
|
||||
name: pluginPkg.strapi.name,
|
||||
preventComponentRendering: false,
|
||||
trads,
|
||||
};
|
||||
|
||||
const plugin = {
|
||||
blockerComponent: null,
|
||||
blockerComponentProps: {},
|
||||
description: pluginDescription,
|
||||
icon: pluginPkg.strapi.icon,
|
||||
id: pluginId,
|
||||
initializer: Initializer,
|
||||
injectedComponents: [],
|
||||
layout: null,
|
||||
lifecycles,
|
||||
leftMenuLinks: [],
|
||||
leftMenuSections: [],
|
||||
mainComponent: Comp,
|
||||
name: pluginPkg.strapi.name,
|
||||
preventComponentRendering: false,
|
||||
trads,
|
||||
return strapi.registerPlugin(plugin);
|
||||
};
|
||||
|
||||
export default plugin;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-plugin-email",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "This is the description of the plugin.",
|
||||
"strapi": {
|
||||
"name": "Email",
|
||||
@ -12,13 +12,13 @@
|
||||
"test": "echo \"no tests yet\""
|
||||
},
|
||||
"dependencies": {
|
||||
"strapi-provider-email-sendmail": "3.0.0-beta.18.5",
|
||||
"strapi-utils": "3.0.0-beta.18.5"
|
||||
"strapi-provider-email-sendmail": "3.0.0-beta.18.6",
|
||||
"strapi-utils": "3.0.0-beta.18.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"react-copy-to-clipboard": "5.0.1",
|
||||
"rimraf": "^2.6.3",
|
||||
"strapi-helper-plugin": "3.0.0-beta.18.5"
|
||||
"strapi-helper-plugin": "3.0.0-beta.18.6"
|
||||
},
|
||||
"author": {
|
||||
"name": "Strapi team",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-plugin-graphql",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "This is the description of the plugin.",
|
||||
"strapi": {
|
||||
"name": "graphql",
|
||||
@ -23,7 +23,7 @@
|
||||
"graphql-type-long": "^0.1.1",
|
||||
"koa-compose": "^4.1.0",
|
||||
"pluralize": "^7.0.0",
|
||||
"strapi-utils": "3.0.0-beta.18.5"
|
||||
"strapi-utils": "3.0.0-beta.18.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"cross-env": "^5.2.0",
|
||||
|
||||
@ -1,34 +1,30 @@
|
||||
import React from 'react';
|
||||
import pluginPkg from '../../package.json';
|
||||
import App from './containers/App';
|
||||
import Initializer from './containers/Initializer';
|
||||
|
||||
import lifecycles from './lifecycles';
|
||||
import trads from './translations';
|
||||
import pluginId from './pluginId';
|
||||
|
||||
const pluginDescription = pluginPkg.strapi.description || pluginPkg.description;
|
||||
export default strapi => {
|
||||
const pluginDescription =
|
||||
pluginPkg.strapi.description || pluginPkg.description;
|
||||
const plugin = {
|
||||
blockerComponent: null,
|
||||
blockerComponentProps: {},
|
||||
description: pluginDescription,
|
||||
icon: pluginPkg.strapi.icon,
|
||||
id: pluginId,
|
||||
initializer: Initializer,
|
||||
injectedComponents: [],
|
||||
layout: null,
|
||||
lifecycles,
|
||||
leftMenuLinks: [],
|
||||
leftMenuSections: [],
|
||||
mainComponent: App,
|
||||
name: pluginPkg.strapi.name,
|
||||
preventComponentRendering: false,
|
||||
trads,
|
||||
};
|
||||
|
||||
function Comp(props) {
|
||||
return <App {...props} />;
|
||||
}
|
||||
|
||||
const plugin = {
|
||||
blockerComponent: null,
|
||||
blockerComponentProps: {},
|
||||
description: pluginDescription,
|
||||
icon: pluginPkg.strapi.icon,
|
||||
id: pluginId,
|
||||
initializer: Initializer,
|
||||
injectedComponents: [],
|
||||
layout: null,
|
||||
lifecycles,
|
||||
leftMenuLinks: [],
|
||||
leftMenuSections: [],
|
||||
mainComponent: Comp,
|
||||
name: pluginPkg.strapi.name,
|
||||
preventComponentRendering: false,
|
||||
trads,
|
||||
return strapi.registerPlugin(plugin);
|
||||
};
|
||||
|
||||
export default plugin;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-plugin-upload",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "This is the description of the plugin.",
|
||||
"strapi": {
|
||||
"name": "Files Upload",
|
||||
@ -23,9 +23,9 @@
|
||||
"react-router-dom": "^5.0.0",
|
||||
"react-transition-group": "^2.5.0",
|
||||
"reactstrap": "^5.0.0",
|
||||
"strapi-helper-plugin": "3.0.0-beta.18.5",
|
||||
"strapi-provider-upload-local": "3.0.0-beta.18.5",
|
||||
"strapi-utils": "3.0.0-beta.18.5",
|
||||
"strapi-helper-plugin": "3.0.0-beta.18.6",
|
||||
"strapi-provider-upload-local": "3.0.0-beta.18.6",
|
||||
"strapi-utils": "3.0.0-beta.18.6",
|
||||
"stream-to-array": "^2.3.0",
|
||||
"uuid": "^3.2.1"
|
||||
},
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
import React from 'react';
|
||||
import pluginPkg from '../../package.json';
|
||||
import layout from '../../config/layout';
|
||||
import pluginId from './pluginId';
|
||||
@ -7,30 +6,29 @@ import Initializer from './containers/Initializer';
|
||||
import lifecycles from './lifecycles';
|
||||
import trads from './translations';
|
||||
|
||||
const pluginDescription = pluginPkg.strapi.description || pluginPkg.description;
|
||||
export default strapi => {
|
||||
const pluginDescription =
|
||||
pluginPkg.strapi.description || pluginPkg.description;
|
||||
|
||||
function Comp(props) {
|
||||
return <App {...props} />;
|
||||
}
|
||||
const plugin = {
|
||||
blockerComponent: null,
|
||||
blockerComponentProps: {},
|
||||
description: pluginDescription,
|
||||
icon: pluginPkg.strapi.icon,
|
||||
id: pluginId,
|
||||
initializer: Initializer,
|
||||
injectedComponents: [],
|
||||
layout,
|
||||
lifecycles,
|
||||
leftMenuLinks: [],
|
||||
leftMenuSections: [],
|
||||
mainComponent: App,
|
||||
name: pluginPkg.strapi.name,
|
||||
preventComponentRendering: false,
|
||||
suffixUrl: () => '/roles',
|
||||
suffixUrlToReplaceForLeftMenuHighlight: '/roles',
|
||||
trads,
|
||||
};
|
||||
|
||||
const plugin = {
|
||||
blockerComponent: null,
|
||||
blockerComponentProps: {},
|
||||
description: pluginDescription,
|
||||
icon: pluginPkg.strapi.icon,
|
||||
id: pluginId,
|
||||
initializer: Initializer,
|
||||
injectedComponents: [],
|
||||
layout,
|
||||
lifecycles,
|
||||
leftMenuLinks: [],
|
||||
leftMenuSections: [],
|
||||
mainComponent: Comp,
|
||||
name: pluginPkg.strapi.name,
|
||||
preventComponentRendering: false,
|
||||
suffixUrl: () => '/roles',
|
||||
suffixUrlToReplaceForLeftMenuHighlight: '/roles',
|
||||
trads,
|
||||
return strapi.registerPlugin(plugin);
|
||||
};
|
||||
|
||||
export default plugin;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-plugin-users-permissions",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Protect your API with a full-authentication process based on JWT",
|
||||
"strapi": {
|
||||
"name": "Roles & Permissions",
|
||||
@ -32,8 +32,8 @@
|
||||
"reactstrap": "^5.0.0",
|
||||
"redux-saga": "^0.16.0",
|
||||
"request": "^2.83.0",
|
||||
"strapi-helper-plugin": "3.0.0-beta.18.5",
|
||||
"strapi-utils": "3.0.0-beta.18.5",
|
||||
"strapi-helper-plugin": "3.0.0-beta.18.6",
|
||||
"strapi-utils": "3.0.0-beta.18.6",
|
||||
"uuid": "^3.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-provider-email-amazon-ses",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Amazon SES provider for strapi email",
|
||||
"homepage": "http://strapi.io",
|
||||
"keywords": [
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-provider-email-mailgun",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Mailgun provider for strapi email plugin",
|
||||
"homepage": "http://strapi.io",
|
||||
"keywords": [
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-provider-email-sendgrid",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Sendgrid provider for strapi email",
|
||||
"homepage": "http://strapi.io",
|
||||
"keywords": [
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-provider-email-sendmail",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Sendmail provider for strapi email",
|
||||
"homepage": "http://strapi.io",
|
||||
"keywords": [
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-provider-upload-aws-s3",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "AWS S3 provider for strapi upload",
|
||||
"homepage": "http://strapi.io",
|
||||
"keywords": [
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-provider-upload-cloudinary",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Cloudinary provider for strapi upload",
|
||||
"homepage": "http://strapi.io",
|
||||
"keywords": [
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-provider-upload-local",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Local provider for strapi upload",
|
||||
"homepage": "http://strapi.io",
|
||||
"keywords": [
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-provider-upload-rackspace",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Rackspace provider for strapi upload",
|
||||
"main": "./lib",
|
||||
"keywords": [],
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi-utils",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "Shared utilities for the Strapi packages",
|
||||
"homepage": "http://strapi.io",
|
||||
"keywords": [
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strapi",
|
||||
"version": "3.0.0-beta.18.5",
|
||||
"version": "3.0.0-beta.18.6",
|
||||
"description": "An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MongoDB, MySQL, MariaDB, PostgreSQL, SQLite",
|
||||
"homepage": "http://strapi.io",
|
||||
"directories": {
|
||||
@ -50,16 +50,16 @@
|
||||
"resolve-cwd": "^3.0.0",
|
||||
"rimraf": "^2.6.2",
|
||||
"shelljs": "^0.8.3",
|
||||
"strapi-database": "3.0.0-beta.18.5",
|
||||
"strapi-generate": "3.0.0-beta.18.5",
|
||||
"strapi-generate-api": "3.0.0-beta.18.5",
|
||||
"strapi-generate-controller": "3.0.0-beta.18.5",
|
||||
"strapi-generate-model": "3.0.0-beta.18.5",
|
||||
"strapi-generate-new": "3.0.0-beta.18.5",
|
||||
"strapi-generate-plugin": "3.0.0-beta.18.5",
|
||||
"strapi-generate-policy": "3.0.0-beta.18.5",
|
||||
"strapi-generate-service": "3.0.0-beta.18.5",
|
||||
"strapi-utils": "3.0.0-beta.18.5"
|
||||
"strapi-database": "3.0.0-beta.18.6",
|
||||
"strapi-generate": "3.0.0-beta.18.6",
|
||||
"strapi-generate-api": "3.0.0-beta.18.6",
|
||||
"strapi-generate-controller": "3.0.0-beta.18.6",
|
||||
"strapi-generate-model": "3.0.0-beta.18.6",
|
||||
"strapi-generate-new": "3.0.0-beta.18.6",
|
||||
"strapi-generate-plugin": "3.0.0-beta.18.6",
|
||||
"strapi-generate-policy": "3.0.0-beta.18.6",
|
||||
"strapi-generate-service": "3.0.0-beta.18.6",
|
||||
"strapi-utils": "3.0.0-beta.18.6"
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "node lib/utils/success.js"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user