diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 214ad5ec1d..a64c49f9a3 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -1,3 +1,10 @@
+> ⚠️ We have stopped merging PRs for now to the Strapi core.
+> The reason is that we are developing new architecture for the admin panel and for the plugins.
+> This new architecture will provide stability of the Strapi core as we approach the release of Beta.
+> We appreciate and welcome all your contributions, but until further notice, please do not submit a PR as it will not be merged.
+> Furthermore, you will have to rewrite it based on the new architecture.
+
+
diff --git a/.travis.yml b/.travis.yml
index 739c7ed402..f143d2502e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -32,10 +32,14 @@ install:
jobs:
include:
- stage: test
- name: 'Lint / Snyk / Unit Tests '
+ name: Snyk
+ script: npm run -s test:snyk
+ if: fork = false
+
+ - stage: test
+ name: 'Lint / Unit Tests '
script:
- npm run -s lint
- - npm run -s test:snyk
- npm run -s test:unit
- npm run -s test:front
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 0da4e735c4..6f0a3dbab3 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,5 +1,11 @@
# Contribute to Strapi
+> ⚠️ We have stopped merging PRs for now to the Strapi core.
+> The reason is that we are developing new architecture for the admin panel and for the plugins.
+> This new architecture will provide stability of the Strapi core as we approach the release of Beta.
+> We appreciate and welcome all your contributions, but until further notice, please do not submit a PR as it will not be merged.
+> Furthermore, you will have to rewrite it based on the new architecture.
+
First off, thanks for taking the time to contribute! 🎉👍
The following is a set of guidelines for contributing to Strapi and its packages.
@@ -206,7 +212,7 @@ Then run
# generate the test app
$ node test/createTestApp.js
# run the testApp in the background (️️️⚠️ be carefull to kill the process after the tests have run)
-$ node test/startTestApp.js &
+$ node test/startTestApp.js &
# run cypress
$ node test/cypress
```
diff --git a/README.md b/README.md
index f85e987e3a..6c19519a0b 100644
--- a/README.md
+++ b/README.md
@@ -121,6 +121,12 @@ Be aware that one of the content type builder won't work due to the writing file
## Contributing
+> ⚠️ We have stopped merging PRs for now to the Strapi core.
+> The reason is that we are developing new architecture for the admin panel and for the plugins.
+> This new architecture will provide stability of the Strapi core as we approach the release of Beta.
+> We appreciate and welcome all your contributions, but until further notice, please do not submit a PR as it will not be merged.
+> Furthermore, you will have to rewrite it based on the new architecture.
+
Please read our [Contributing Guide](./CONTRIBUTING.md) before submitting a Pull Request to the project.
## Support
diff --git a/packages/strapi-admin/admin/src/containers/Onboarding/index.js b/packages/strapi-admin/admin/src/containers/Onboarding/index.js
index c6978797cb..905f0a40f6 100644
--- a/packages/strapi-admin/admin/src/containers/Onboarding/index.js
+++ b/packages/strapi-admin/admin/src/containers/Onboarding/index.js
@@ -15,7 +15,14 @@ import injectReducer from 'utils/injectReducer';
import OnboardingVideo from 'components/OnboardingVideo';
-import { getVideos, onClick, removeVideos, setVideoDuration, setVideoEnd, updateVideoStartTime } from './actions';
+import {
+ getVideos,
+ onClick,
+ removeVideos,
+ setVideoDuration,
+ setVideoEnd,
+ updateVideoStartTime,
+} from './actions';
import makeSelectOnboarding from './selectors';
import reducer from './reducer';
import saga from './saga';
@@ -43,17 +50,17 @@ export class Onboarding extends React.Component {
setVideoEnd = () => {
this.setVideoEnd();
- }
-
+ };
+
didPlayVideo = (index, currTime) => {
const eventName = `didPlay${index}GetStartedVideo`;
- this.context.emitEvent(eventName, {timestamp: currTime});
- }
+ this.context.emitEvent(eventName, { timestamp: currTime });
+ };
didStopVideo = (index, currTime) => {
const eventName = `didStop${index}Video`;
- this.context.emitEvent(eventName, {timestamp: currTime});
- }
+ this.context.emitEvent(eventName, { timestamp: currTime });
+ };
handleOpenModal = () => this.setState({ showVideos: true });
@@ -67,10 +74,9 @@ export class Onboarding extends React.Component {
};
updateCurrentTime = (index, current, duration) => {
-
this.props.updateVideoStartTime(index, current);
- const percent = current * 100 / duration;
+ const percent = (current * 100) / duration;
const video = this.props.videos[index];
if (percent >= 80) {
@@ -80,21 +86,35 @@ export class Onboarding extends React.Component {
}
};
- updateEnd = (index) => {
+ updateEnd = index => {
this.props.setVideoEnd(index, true);
};
// eslint-disable-line jsx-handler-names
render() {
const { videos, onClick, setVideoDuration } = this.props;
+ const { showVideos } = this.state;
+
+ const style = showVideos ? {} : { maxWidth: 0 };
return (
-
+
{Math.floor((videos.filter(v => v.end).length)*100/videos.length)}
+ {Math.floor((videos.filter(v => v.end).length * 100) / videos.length)}
+