mirror of
https://github.com/strapi/strapi.git
synced 2025-10-15 01:52:45 +00:00
Update strapi-generate-plugin
This commit is contained in:
parent
e109984181
commit
d77456e78c
@ -10,7 +10,7 @@ import PropTypes from 'prop-types';
|
|||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { createStructuredSelector } from 'reselect';
|
import { createStructuredSelector } from 'reselect';
|
||||||
import { Switch, Route } from 'react-router-dom';
|
import { Switch, Route } from 'react-router-dom';
|
||||||
import { compose } from 'redux';
|
import { bindActionCreators, compose } from 'redux';
|
||||||
|
|
||||||
import HomePage from 'containers/HomePage';
|
import HomePage from 'containers/HomePage';
|
||||||
|
|
||||||
@ -28,14 +28,19 @@ class App extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
App.propTypes = {
|
App.contextTypes = {
|
||||||
match: PropTypes.object,
|
plugins: PropTypes.object,
|
||||||
|
router: PropTypes.object.isRequired,
|
||||||
|
updatePlugin: PropTypes.func,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
App.propTypes = {};
|
||||||
|
|
||||||
export function mapDispatchToProps(dispatch) {
|
export function mapDispatchToProps(dispatch) {
|
||||||
return {
|
return bindActionCreators(
|
||||||
|
{},
|
||||||
dispatch,
|
dispatch,
|
||||||
};
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const mapStateToProps = createStructuredSelector({});
|
const mapStateToProps = createStructuredSelector({});
|
||||||
|
@ -68,10 +68,9 @@ HomePage.propTypes = {
|
|||||||
data: PropTypes.oneOfType([
|
data: PropTypes.oneOfType([
|
||||||
PropTypes.bool,
|
PropTypes.bool,
|
||||||
PropTypes.object,
|
PropTypes.object,
|
||||||
]),
|
]).isRequired,
|
||||||
exposedComponents: PropTypes.object,
|
loadData: PropTypes.func.isRequired,
|
||||||
loadData: PropTypes.func,
|
loading: PropTypes.bool.isRequired,
|
||||||
loading: PropTypes.bool,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
function mapDispatchToProps(dispatch) {
|
function mapDispatchToProps(dispatch) {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { takeLatest } from 'redux-saga';
|
|
||||||
import { LOCATION_CHANGE } from 'react-router-redux';
|
import { LOCATION_CHANGE } from 'react-router-redux';
|
||||||
import { put, fork, take, cancel } from 'redux-saga/effects';
|
import { takeLatest, put, fork, take, cancel } from 'redux-saga/effects';
|
||||||
|
|
||||||
import { loadedData } from './actions';
|
import { loadedData } from './actions';
|
||||||
import { LOAD_DATA } from './constants';
|
import { LOAD_DATA } from './constants';
|
||||||
|
@ -43,7 +43,7 @@ module.exports = scope => {
|
|||||||
},
|
},
|
||||||
'dependencies': {},
|
'dependencies': {},
|
||||||
'devDependencies': {
|
'devDependencies': {
|
||||||
'strapi-helper-plugin': '3.0.0-alpha.4.8'
|
'strapi-helper-plugin': '3.0.0-alpha.6.3'
|
||||||
},
|
},
|
||||||
'author': {
|
'author': {
|
||||||
'name': scope.author || 'A Strapi developer',
|
'name': scope.author || 'A Strapi developer',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user