Commit Graph

36 Commits

Author SHA1 Message Date
Jason Kao
00cb394f08 feat(challenges): Added warning feedback for non-front-facing glitch url (#16709) 2018-02-15 01:03:19 +00:00
Berkeley Martinez
2e410330f1 Feat(Challenges): no js preview (#16149)
* fix(files): Decouple files from challenges

* feat(server/react): Remove action logger

use redux remote devtools instead!

* feat(Challenges): Disable js on edit, enable on execute

* feat(Challenge/Preview): Show message when js is disabled

* refactor(frameEpic): Reduce code by using lodash

* feat(frameEpic): Disable js in preview by state

* feat(frameEpic): Colocate epic in Challenges/redux

* refactor(ExecuteChallengeEpic): CoLocated with Challenges

* refactor(executeChallengesEpic): Separate tests from main logic

* feat(Challenge/Preview): Update main on edit

* feat(frameEpuc): Replace frame on edit/execute

This allows for sandbox to work properly

* fix(Challenges/Utils): Require utisl

* revert(frameEpic): Hoist function to mount code in frame

* fix(frameEpic): Ensure new frame is given classname

* feat(executeChallenge): Update main on code unlocked

* fix(frameEpic): Filter out empty test message

* fix(Challenge/Preview): Remove unnessary quote in classname

* feat(codeStorageEpic): Separate localstorage from solutions loading

* fix(fetchUser): Merge user actions into one

prefer many effects from one action over one action to one effect

* fix(themes): Centralize theme utils and defs

* fix(entities.user): Fix user reducer namespacing

* feat(frame): Refactor frameEpic to util

* feat(Challenges.redux): Should not attempt to update main from storage

* fix(loadPreviousChallengeEpic): Refactor for RFR

* fix(Challenges.Modern): Show preview plane
2017-12-07 18:13:19 -06:00
Quincy Larson
52c99823b8 feat(UI): Add new congratulations messages and remove confus (#16110) 2017-11-26 01:18:58 +05:30
Berkeley Martinez
dbecdc5618 feat: prep for modern challenges (#15781)
* feat(seed): Add modern challenge

* chore(react): Use prop-types package

* feat: Initial refactor to redux-first-router

BREAKING CHANGE: Everything is different!

* feat: First rendering

* feat(routes): Challenges view render but failing

* fix(Challenges): Remove contain HOC

* fix(RFR): Add params selector

* fix(RFR): :en should be :lang

* fix: Update berks utils for redux

* fix(Map): Challenge link to arg

* fix(Map): Add trailing slash to map page

* fix(RFR): Use FCC Link

Use fcc Link to get around issue of lang being undefined

* fix(Router): Link to is required

* fix(app): Rely on RFR state for app lang

* chore(RFR): Remove unused RFR Link

* fix(RFR): Hydrate initial challenge using RFR and RO

* fix: Casing issue

* fix(RFR): Undefined links

* fix(RFR): Use onRoute<name> convention for route types

* feat(server/react): Add helpful redux logging/throwing

* fix(server/react): Strip out nonjson from state

This prevents thunks in routesMap from breaking serialization

* fix(RFR/Link): Should accept any renderable

* fix(RFR): Get redirects working

* fix(RFR): Redirects and not found's

* fix(Map): Move challenge onClick handler

* fix(Map): Allow Router.link to handle clicks after onClick

* fix(routes): Remove react-router-redux

* feat(Router): Add lang to all route actions by default

* fix(entities): Only fetch challenge if not already loaded

* fix(Files): Move files to own feature

* chore(Challenges): Remove vestigial hints logic

* fix(RFR): Update challenges on route challenges

* fix(code-storage): Should use events instead of commands

* fix(Map): ClickOnMap should not hold on to event

* chore(lint): Use eslint-config-freecodecamp

Closes #15938

* feat(Panes): Update panes on route instead of render

* fix(Panes): Store panesmap and update on fetchchallenges

* fix(Panes): Normalize panesmaps

* fix(Panes): Remove filter from createpanemap

* fix(Panes): Middleware on location meta object

* feat(Panes): Filter preview on nonhtml challenges

* build(babel): Add lodash babel plugin

* chore(lint): Lint js files

* fix(server/user-stats): Remove use of lodash chain

this interferes with babel-plugin-lodash

* feat(dev): Add remote redux devtools for ssr

* fix(Panes): Dispatch mount action

this is needed to trigger window/divider epics

* fix(Panes): Getpane to use new panesmap format

* fix(Panes): Always update panes after state

this lets the panes logic be affected by changes in state
2017-11-09 19:10:30 -06:00
Marc Rendl Ignacio
ed68463738 fix: remove random compliment without gender-neutral alternative 2017-10-21 08:18:58 +08:00
Cody Seibert
9f875e1d11 feat(quiz): initial quiz view which can be used for multiple choice (#15743)
quizes
2017-08-08 14:31:26 -05:00
Berkeley Martinez
ee8ac7b453 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
2017-04-28 20:30:23 -05:00
quentin
de707c185e indexOf() instead of includes() 2017-02-20 15:42:50 -05:00
Berkeley Martinez
f1d936198e feat(challenges): add backend challenge infrastructure (#11058)
* Feat: Initial backend view

* Feat: Refactor frame runner

* Feat: backend challenge submit runs tests

* Feat: Backend challenge request

* Feat: Whitelist hyperdev in csp

* Fix: Use app tests instead of challenge tests

* Feat: Allow hyperdev subdomains

* Fix(csp): allow hypderdev.space subdomains

* feat(challenge): submit backend

* feat: Add timeout to test runner (5 sec)

* chore(seed): Add more to test backend

* fix(csp): s/hyperdev/gomix/g

* fix(app): fix code mirror skeleton filepath

* fix(app): remove Gitter saga import

* fix(app): codemirrorskeleton does not need it's own folder
fix(app): cmk needs to work with Null types

* fix: No longer restart the browser when challenges change

* fix(app): Update jquery for challenges

* fix(seed): Remove to promise jquery call

* fix(lint): Undo merge error
undefined is no allowed

* fix(app): linting errors due to bad merge

* fix(seed): Remove old seed file
2017-01-26 23:07:22 -06:00
dhcodes
d45dd23adf update blockNameify preformattedBlocks for beta 2017-01-19 21:16:48 -06:00
Stuart Taylor
0ac02647e2 Add blockName to titles 2016-12-13 21:30:36 +00:00
Berkeley Martinez
675438b075 fix(jsx): prevent bootstrap from injecting props to react primitive 2016-10-28 00:32:13 +01:00
Berkeley Martinez
5fb2802e32 Chore(challenges): separate code storage sagas 2016-08-18 09:44:40 -07:00
Mrugesh Mohapatra
5668c4c248 Merge pull request #10064 from BerkeleyTrue/fix/actual-current-route
feature(challenges): load current challenge on first visit
2016-08-06 17:11:07 +05:30
Berkeley Martinez
3d05eee0ea Fix(routing): add protections against malformed data 2016-08-05 14:49:23 -07:00
BKinahan
c2f7743462 remove hodor from quotes again - just let him rest 2016-08-04 21:15:10 +00:00
Berkeley Martinez
9a2dfca0fc Feature(settings): complete settings page logic 2016-07-28 23:40:01 -07:00
Berkeley Martinez
95aab958aa Feature(langauge): Make client history language aware
Remove need for language aware links
2016-07-28 23:40:01 -07:00
Berkeley Martinez
d9e9af0a0f Feature(mousetrap): Add mousetrap features to redux 2016-07-28 23:40:01 -07:00
Berkeley Martinez
078560c3ba Add language routing 2016-07-28 23:40:01 -07:00
Berkeley Martinez
c8b0a6cf74 Submit projects 2016-07-28 23:39:17 -07:00
Berkeley Martinez
dc36396369 Add view logic for all projects 2016-07-28 23:39:17 -07:00
Berkeley Martinez
988ab1d0e3 Add extensible views to challenges 2016-07-28 23:39:17 -07:00
Berkeley Martinez
fd22c30c9f Add random compliment on challenge completion 2016-07-28 23:39:17 -07:00
Berkeley Martinez
e173463cdb Fix window height adjustment during dev 2016-07-28 23:39:17 -07:00
Berkeley Martinez
a0f6ecfca2 Add initial dynamic challenge rendering 2016-07-28 23:39:17 -07:00
Berkeley Martinez
b6f9cfdf71 Move to redux-epic 2016-07-28 23:39:17 -07:00
Berkeley Martinez
d511be3332 Add new rx saga 2016-07-28 23:39:17 -07:00
Berkeley Martinez
09ea99e561 Add react challenge view with editor 2016-07-28 23:39:17 -07:00
Berkeley Martinez
4ef15109cd Add createTypes function 2016-03-03 18:56:18 -08:00
Berkeley Martinez
74592e72b4 Update eslint, fix lint issues 2016-03-03 17:53:33 -08:00
Berkeley Martinez
a173ddf375 Fix bad boolean in professor-x 2016-03-03 17:53:33 -08:00
Berkeley Martinez
5ee802999e Fix jobs display and priming 2016-03-03 17:53:33 -08:00
Berkeley Martinez
6bff10ea9c Jobs page initially renders 2016-03-03 17:53:33 -08:00
Berkeley Martinez
00187628a4 Video's and video challenge renders 2016-03-03 17:53:33 -08:00
Berkeley Martinez
8ef3fdb6a0 Initial move to redux 2016-03-03 17:53:33 -08:00