feat(rechallenge): Retool challenge framework (#13666)

* feat(rechallenge): Retool challenge framework

* fix(code-storage): should use setContent not updateContent

* fix(rechallenge): fix context issue and temporal zone of death

* fix(rechallenge): Fix frame sources for user code

* fix(polyvinyl): Set should ignore source and transform should keep track of source

* fix(rechallenge): Missing return statement causing issues
This commit is contained in:
Berkeley Martinez
2017-04-28 18:30:23 -07:00
committed by Quincy Larson
parent da52116860
commit ee8ac7b453
11 changed files with 519 additions and 311 deletions

View File

@@ -3,7 +3,7 @@ import store from 'store';
import { removeCodeUri, getCodeUri } from '../utils/code-uri';
import { ofType } from '../../common/utils/get-actions-of-type';
import { updateContents } from '../../common/utils/polyvinyl';
import { setContent } from '../../common/utils/polyvinyl';
import combineSagas from '../../common/utils/combine-sagas';
import { userSelector } from '../../common/app/redux/selectors';
@@ -51,7 +51,7 @@ function getLegacyCode(legacy) {
}
function legacyToFile(code, files, key) {
return { [key]: updateContents(code, files[key]) };
return { [key]: setContent(code, files[key]) };
}
export function clearCodeSaga(actions, getState) {