mirror of
https://github.com/strapi/strapi.git
synced 2025-08-05 07:16:02 +00:00
commit
c9cdab31d5
File diff suppressed because one or more lines are too long
@ -44,7 +44,7 @@ import ListPluginsPage from 'containers/ListPluginsPage/Loadable';
|
||||
import Logout from 'components/Logout';
|
||||
import NotFoundPage from 'containers/NotFoundPage/Loadable';
|
||||
import OverlayBlocker from 'components/OverlayBlocker';
|
||||
import PluginPage from 'containers/PluginPage/Loadable';
|
||||
import PluginPage from 'containers/PluginPage';
|
||||
|
||||
// Utils
|
||||
import auth from 'utils/auth';
|
||||
|
@ -51,4 +51,4 @@
|
||||
"npm": ">= 5.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
||||
|
@ -43,4 +43,4 @@
|
||||
"npm": ">= 5.3.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
@ -43,4 +43,4 @@
|
||||
"npm": ">= 5.3.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
@ -43,4 +43,4 @@
|
||||
"npm": ">= 5.3.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
@ -49,4 +49,4 @@
|
||||
"npm": ">= 5.3.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
@ -44,4 +44,4 @@
|
||||
"npm": ">= 5.3.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
@ -43,4 +43,4 @@
|
||||
"npm": ">= 5.3.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
@ -43,4 +43,4 @@
|
||||
"npm": ">= 5.3.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
@ -69,6 +69,7 @@ module.exports = {
|
||||
'reactstrap': path.resolve(rootAdminpath, 'node_modules', 'strapi-helper-plugin', 'node_modules', 'reactstrap'),
|
||||
'react-dnd': path.resolve(rootAdminpath, 'node_modules', 'strapi-helper-plugin', 'node_modules', 'react-dnd'),
|
||||
'react-dnd-hmtl5-backend': path.resolve(rootAdminpath, 'node_modules', 'strapi-helper-plugin', 'node_modules', 'react-dnd-html5-backend'),
|
||||
'styled-components': path.resolve(rootAdminpath, 'node_modules', 'strapi-helper-plugin', 'node_modules', 'styled-components'),
|
||||
},
|
||||
symlinks: false,
|
||||
extensions: [
|
||||
|
@ -238,11 +238,5 @@ module.exports = base({
|
||||
|
||||
devtool: 'cheap-module-source-map',
|
||||
disableExtractTextPlugin: false,
|
||||
externals: {
|
||||
'styled-components': {
|
||||
commonjs: 'styled-components',
|
||||
commonjs2: 'styled-components',
|
||||
amd: 'styled-components',
|
||||
},
|
||||
},
|
||||
externals: {},
|
||||
});
|
||||
|
@ -137,7 +137,7 @@ class InputFile extends React.Component {
|
||||
position={this.state.position}
|
||||
updateFilePosition={this.updateFilePosition}
|
||||
/>
|
||||
<label style={{"margin-bottom": 0, width: '100%'}}>
|
||||
<label style={{ marginBottom: 0, width: '100%' }}>
|
||||
<input
|
||||
className={styles.inputFile}
|
||||
multiple={multiple}
|
||||
|
@ -44,10 +44,10 @@ class InputFileWithErrors extends React.PureComponent {
|
||||
this.updateState({ label: null });
|
||||
}
|
||||
// Check if errors have been updated during validations
|
||||
if (nextProps.didCheckErrors !== this.props.didCheckErrors) {
|
||||
if (prevProps.didCheckErrors !== this.props.didCheckErrors) {
|
||||
// Remove from the state the errors that have already been set
|
||||
const errors = isEmpty(nextProps.errors) ? [] : nextProps.errors;
|
||||
this.setState({ errors });
|
||||
const errors = isEmpty(this.props.errors) ? [] : this.props.errors;
|
||||
this.updateState({ errors });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,13 +5,28 @@
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import styles from './styles.scss';
|
||||
|
||||
const LoadingIndicatorPage = () => {
|
||||
const LoadingIndicatorPage = (props) => {
|
||||
|
||||
if (props.error) {
|
||||
console.log(props.error);
|
||||
return <div>An error occurred</div>;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={styles.loaderPage}><div /></div>
|
||||
);
|
||||
};
|
||||
|
||||
LoadingIndicatorPage.defaultProps = {
|
||||
error: null,
|
||||
};
|
||||
|
||||
LoadingIndicatorPage.propTypes = {
|
||||
error: PropTypes.object,
|
||||
};
|
||||
|
||||
export default LoadingIndicatorPage;
|
||||
|
@ -109,7 +109,7 @@
|
||||
"sass-loader": "^6.0.6",
|
||||
"shelljs": "^0.7.8",
|
||||
"style-loader": "^0.18.2",
|
||||
"styled-components": "^3.2.6",
|
||||
"styled-components": "3.2.6",
|
||||
"url-loader": "^0.5.9",
|
||||
"webpack": "^3.5.5",
|
||||
"webpack-bundle-analyzer": "^2.9.0",
|
||||
|
@ -55,4 +55,4 @@
|
||||
"npm": ">= 5.3.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
@ -43,4 +43,4 @@
|
||||
"npm": ">= 5.3.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
@ -52,4 +52,4 @@
|
||||
"npm": ">= 5.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
||||
|
@ -93,4 +93,4 @@
|
||||
},
|
||||
"preferGlobal": true,
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user