Commit Graph

10603 Commits

Author SHA1 Message Date
09174c9687 Add invalidate token handler 2017-09-01 17:15:26 -07:00
e006f5c97d Optimize code and streamline flow.
- Optimize code and streamline flow.
- Add return statements for error display.
- Invalidate status vars and TTLs on User Model.
- Build Observable for findOrCreate
2017-09-01 17:15:26 -07:00
f8c818e7e7 Implement passwordless login
* Created a new rest API to create and save a temporary token that
  can be exchanged for a access token.
* Updated the sign in view
* Add email template for sign in links
* Add route to request a access token and login user
* Make the email views conistent
2017-09-01 17:14:43 -07:00
900617613f fix(challenges): Added bug modal to classic ch (#15828)
Closes #15740
2017-09-01 11:16:19 -07:00
885c73abac Merge pull request #15821 from QuincyLarson/feature/add-math-for-programmers-stubs
feat(challenges): Added math challenge stubs
2017-08-31 22:42:08 -07:00
9ad056a7df Merge pull request #15801 from systimotic/fix/revert-regex-css-test
fix(challenges): Revert CSS regex test
2017-08-31 21:11:36 -05:00
bd998042d5 Merge pull request #15804 from systimotic/fix/replace-com-org
refactor: Replace .com with .org
2017-08-31 21:05:50 -05:00
0fa97530bb feat(challenges): Added math challenge stubs 2017-08-30 17:35:35 -07:00
626d243db4 fix(challenges): Revert CSS regex test
Some CSS tests were changed to regex tests while the CSS tests weren't
working on Firefox. Now that the original issue has been fixed, these
changes can be reverted.

Closes #15567
2017-08-30 14:56:09 +02:00
dcfe18d5d5 refactor: Replace .com with .org 2017-08-26 00:07:44 +02:00
cf436f34bc feat(challenges): Add Strict Equality examples challenge (#15784) 2017-08-22 22:56:49 -05:00
db4daeb7c7 Merge pull request #15789 from dhcodes/build/update-react-bootstrap
build(package.json): Update react-bootstrap
2017-08-22 08:52:09 -07:00
704a31682f build(package.json): Update react-bootstrap
change version to 0.31.2
2017-08-22 09:02:09 -05:00
6710a77508 feat(challenges): Updated project euler problem (#15754)
added more assertion and tweaked the task

feat(challenges): Added solution for project euler

Added solution for project euler problem 21
2017-08-21 23:36:34 -05:00
661ecf9dab test(tests): Add tests to Problem: Even Fibonacci Numbers (#15773)
Add more specific tests and edit motivational comment for something more
interesting.
2017-08-21 23:15:54 -05:00
c3b317e2a2 Adjusted links to use the .org domain and HTTPS. (#15783)
This updates the links to use the freecodecamp.org domain name as opposed to the old freecodecamp.com domain name, links also use HTTPS now.
2017-08-21 23:14:59 -05:00
079fbc3eb8 Merge pull request #15775 from dhcodes/fix/firefox-test-iframe
fix(frame): Fix fcc-test-frame on firefox
2017-08-21 23:53:54 +02:00
b5bc822acf Merge pull request #15785 from Manish-Giri/fix/use-single-quotes-jquery-selectors
fix(challenges): Remove double quote requirement in jQuery selectors
2017-08-21 12:20:41 -05:00
6caf034e70 fix(frame): Fix fcc-test-frame on firefox
I used an alternative to display: none; to allow Firefox to properly run
challenge tests

Closes #10749
2017-08-21 09:15:50 -05:00
addb6c4e69 fix(challenges): Remove double quote requirement in jQuery selectors 2017-08-21 04:06:14 -04:00
f373eca1aa Merge pull request #15764 from prateekgoel/fix/ordered-list-test-case
Add tests for having single ul and ol element
2017-08-14 21:37:09 -05:00
751a407ef6 Add tests for having single ol and ul element 2017-08-14 21:41:38 +05:30
19e4c0fccd fix(challenges): Add test to check semicolon (#15756)
forces semicolon at the end of inline style declaration

Closes #10703
2017-08-12 17:33:42 -05:00
7fbce94845 fix: Clarify mutate array with const challenge (#15745)
Instructions for Mutate an Array Declared with const was unclear and
included unnecessary learning materials. This commit aims to clarify the
instructions for what the challenge requires, and also add in missing
challenge tests.

Closes #14832
2017-08-11 15:06:35 -05:00
0a4a50f040 test(seed): Add tests to Project Euler (#15750)
Add more tests. Add parameter to function to enable more specific tests
and enables easier way to verify a valid function. Update problem
description.
2017-08-11 14:57:00 -05:00
3d1ef747e2 edited project euler problem 20 (#15748)
revert(challenges): Change function name, parameters given, and return

Give better naming, avoid infiinite loop
2017-08-11 14:17:25 -05:00
0d70db5d98 Merge pull request #15022 from no-stack-dub-sack/feat/challenge-desc
feat(views): create global challenge-description component
2017-08-08 18:22:10 -07:00
34d512ffeb fix: don't render challange if isBeta (#15741) 2017-08-08 14:44:59 -05:00
9f875e1d11 feat(quiz): initial quiz view which can be used for multiple choice (#15743)
quizes
2017-08-08 14:31:26 -05:00
93148665c6 Merge pull request #15742 from dhcodes/fix/code-styling-on-switch
fix(challenges): Change switch code format for consistency
2017-08-08 10:44:57 -07:00
8c28b3fadf Merge pull request #15744 from usmandap/fix/longest-word-in-string
fix(seed): Function name findLongestWord changed
2017-08-08 08:40:52 -05:00
c5be44be1b fix(challenges): Change switch code format for consistency
Closes #14947
2017-08-07 23:02:44 -05:00
f9e925b03e Merge pull request #15734 from anawebdev/fix/hours-display
Correct misalignment between challenge names and hour estimates
2017-08-05 21:17:14 -05:00
def425a66f fix(seed, challenges, 02-javascript-algorithms-and-data-structures, basic-javascript.json, Golf Code): Adds an array of the names to the Golf Code challe (#15678)
This adds an array of names for the Golf Code challenge and adds a
sentence about the array to the description of the challenge.

Closes #15618
2017-08-05 13:33:16 -05:00
Ana
9adbd5fb56 fix: hours-display 2017-08-05 11:06:03 +03:00
1018ff5a69 Merge pull request #15735 from felixonmars/fix/typo
Fix typos in seed/challenges/06-information-security-and-quality-assurance/information-security-with-helmetjs.json
2017-08-04 15:27:17 -05:00
308304d36c Fix typos in seed/challenges/06-information-security-and-quality-assurance/information-security-with-helmetjs.json 2017-08-05 03:23:45 +08:00
c547c26bba Fix: map should redirect to current challenge (#15723)
* fix(routes): /map redirects to current challenge

* fix(map): Normalize server map building

Localize all server code dealing with the map

* refactor(server): Remove unused services

* feat(Nav): Show Map button when no panes

This gives user the ability to quickly return to their challenge using a
known feature

* fix(server.map): Add caching to nameIdMap

Add caching to nameIdMap on the server

* fix(services.map): Fix map service

Move map building utils to map util. Fix bad import. Normalize challenge
lookup
2017-08-03 22:45:36 -05:00
e20916f9b0 fix(seed): Function name findLongestWord changed
The function name findLongestWord is a little misleading as the
challenge asks to return the length of the word not the word itself.
Name findLongestWordLength is perfect.

BREAKING CHANGE: Function name changed
2017-08-03 11:25:45 +05:00
f92294bbda Merge pull request #15670 from prateekgoel/fix/move-fahrenheit-variable
Move Fahrenheit Variable Below Comment Line
2017-08-01 11:22:23 -05:00
b5f4924e6b Merge pull request #15679 from Manish-Giri/fix/allow-shorthand-hex-values
Allow shorthand Hex values in challenge
2017-08-01 10:09:06 -05:00
a4946902a6 Allow shorthand Hex values in challenge 2017-08-01 01:22:56 -04:00
42bfa2e64d feat(app): new layout (#14707)
* feat(app): Restructure app to be more flexible and redux idiomatic

BREAKING CHANGE: Lots of breaking changes

* refactor(challenges): Redux to started file structure

* fix(app): lint issues due to refactor

* fix(settings): Refactor settings to use folder structure

* refactor(challenges): Move step redux stuff into step folder

* fix(challenges): Remove fetchchallenges actions

* refactor(challenges): Move project redux logic into project view subdirectory

* refactor(app): %s/sagas/epics/g

* refactor(redux): Use new redux-epic with combineEpic and ofType

* refactor(app): Move challenge selector to app level

* fix(app): Move loading challenge info into challenge route

This moves a lot of the logic needed to load challenge info into the challenge app. This decouples
the main app from the challenge route

* refactor(map): Map is now decoupled from challenges

* refactor(challenges): Use selectors everywhere instead of guessing state shape

* refactor(client): refactor client epics to use selectors

* refactor(app): Refactor userSelector to return user object instead of object.user

* refactor(entities): Move entities logic into it's own file

* fix(redux): combineTypes should be combineActions

* fix(app): reducer namespacing and import

* fix(Map): Fix undefined type and update redux-action

* fix(redux): Refactor fetchUser to be more declarative

Use rxjs methods instead of imperative if/else. Also prevent non-actions from being emitted

* fix(redux): toString multi phase action types

* fix(redux): typecast multiphase type, fix typo in reducer

toString multiphase types in fetch challenge epic. Add epic to epics lists. Fix type in fetch
challenge complete handler

* fix(redux): updateCurrentChallengelogic should be centerlized

Move route changes to one location.

* fix(Nav): Prevent event object from hanging around

closeDropDown/openDropDown where handing on to the event object. This was causing issues with react
since event objects are recycled in React.

* fix(Map.Challenge): decouple map selector

* fix(Map): Decouple panel selectors from props

Panel Selectors no longer need to know the shape of a components props. Refactored component
selectors to decouple them entities state shape

* fix(Map.redux): Add select challenge epic and connect map epics

* fix(redux.analytics): Fix meta creator and nav/map events

* fix(redux): Update current challenge ajax

* fix(challenges): ssr fetch challenge should update challenge ui

Was using an epic to update challenge ui on fetch complete, but this was not working on ssr due to
the way ssr disables epics to wait for completion. This commit fixes this by causing the complete to
directly update state in the challenge ui

* fix(challenges): wrong import of types, refactor epic name

* fix(redux): Prevent fetch challenge epic from emitting null to dispatch

* fix(redux): prevent executechallenge from emitting null

* fix(challenges.redux): testsSelector returns just tests

* fix(challenges.redux): Prevent completion challenge from emitting null

* refactor(Challenges.Step): Refactor step challenge to release event object

* fix(redux): wrap reducers in factories
reducers exported from features need to be factories
this helps avoid cyclic requires messing up reducer creation
We end up with exports from files being undefined as node tries
to resolve cyclic dependencies.
This prevents that by wrapping the `handleActions` call so that the ref
to types imported from parent features are closures and can be resolved
by node before we need them.

* fix(Map): createUi not working correctly

map utils should receive just map ui state, createMapUi needs to add title to challenge

* feat(Challenges): Adds Panes and panes backend challenge

* fix: Create child container to wrap children

Create a ChildContainer comp' to wrap all children that represent the view for the current route.
This let's the child route define if they want a full width view or if they want the standard
max-width view.

* feat(Panes): panes now render dividers

* feat(Panes): Get divider to move currectly

* fix(Nav): Add top margin to contained childs

Move margin-bottom from nav to child container as margin top. This let's the jsbin style views fit
snug with navbar

* fix(Panes): Should be contained within their borders

* feat(Panes): Update navbar height of pane on app mount

* feat(Panes): Toggle map on map nav btn click

* fix(gulpfile): Ensure nodemon exits on restart

On process exit, wait for nodemon to shutdown before process.exit

* feat(Panes): Make Panes redux first

* fix(Panes): Fix divider positioning

* fix(Panes): Update divider moved handler

dividerMoved action now uses new panesByName structure

* feat(Panes): Pane nav button will hide panes

* chore(package-lock): Update package lock

* feat(Panes.redux): Recaculate dividers on pane toggle

* fix(Challenges): Update challenge on dashedName change

This fixes backwards navigation not updating the redux state current
challenge

* feat(Panes.redux): Clear panes on unmount

Clearing panes on unmount will clear bin buttons in nav

* refactor(Map): Colocate styles

* feat(Map): New map layout

* fix(Map): No longer has it's own page

* fix: FetchChallenges on appMounted

* feat: Normalize fetchChallenge(s) results

This allows superblocks to be sent with both fetchChallenge and
fetchChallenges so the map is always populated on first load

* feat(Map): Show blocks on first load

* fix(less): Remove old css

* feat(Nav): Reduce nav height

* fix(Nav): Render nav after content

Render nav after content and use css to reverse again on screen. We do
this so the panes can render first and update redux panes state which
will then update the nav ui state before nav has a chance to render

* fix(Panes): Add container

This adds a Panes Container that will allow it to udpate redux state so
Panes Component will have redux state ready to actually render panes

* feat(Challenges.Classic): Add panes

* fix(Challenge.Classic): Editor onchange should not need to know about file

* fix(Panes): Index on panes hide should account for hidden pane

* fix(Challanges.Classic): Fix panes types

* fix(Challenges): Add completion modal to all challenges

Change classic modal to completion modal

* fix(Panes): Dividers live on top of planes

* fix(Challenges): Remove codemirror theme

Remove codemirror theme and remove borders from preview frame

* fix(Challenges.Classic): Remove old component

* feat(Challenges.Step): Add panes to step challenge

* feat(Challenges.Project): Add panes to projects

* fix(Challenges.Projects): Remove row

* fix(Modals): Move modal text color to challenge less

This text color is dependent on the actual header color

* fix(Map): Use Superblock title for ui

* fix(Map): Reduce panel header height

* fix(app): Capitalize Toasts folder

Feature folders should be campitalized

* chore(Map): Remove unused epic file

* fix(Step): Fix tests

* test(Map): Update createMapUi tests input
2017-07-31 22:04:01 -05:00
7a75e25475 Merge pull request #15671 from dhcodes/fix/modal-title-color
fix(styles): Change modal title color
2017-07-31 13:50:14 -07:00
ca32658c70 Changes post review again 2017-08-01 01:31:51 +05:30
56c81c86f1 Changes post review 2017-08-01 01:30:24 +05:30
791b16860d fix(challenges): Change hyperdev link to glitch (#15694)
Closes #15691
2017-07-31 14:33:42 -05:00
8dd2c899ff Merge pull request #15682 from marigerr/fix/anchor-link-to-internal-section-challenge
internal link lesson - remove obsolete name attribute
2017-07-28 10:42:06 -05:00
b96c4d39f5 docs(contributing): Add correct commands for installing and running mo (#15686)
Closes #15648
2017-07-28 19:13:29 +05:30
43bb6272d6 interal link lesson - remove obsolete name attribute 2017-07-28 07:54:12 +02:00