Commit Graph

10894 Commits (00cc2ebc2115cb26a9605beeeb74c67bcf864bf9)

Author SHA1 Message Date
Alvin Kristanto 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
Sophanarith Sok 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
Nathaniel Suchy 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
Timo 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
Dylan 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
dhcodes 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
Manish Giri addb6c4e69 fix(challenges): Remove double quote requirement in jQuery selectors 2017-08-21 04:06:14 -04:00
Vicente Plata 86b3724e69 fix(challenges): Provide accessible test description and status
Closes #13013

fix(challenges): Fix undefined initial variable status
2017-08-19 12:46:49 -07:00
Dylan 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
Prateek 751a407ef6 Add tests for having single ol and ul element 2017-08-14 21:41:38 +05:30
Vicente Plata d449c3cdd0 fix(accessibility): Add main and complimentary landmarks
Screen readers and other assistive technologies use it for navigation

Closes #15658
2017-08-12 22:02:01 -07:00
Shubham Sharma 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
Darth Skywalker d5f1687a0e feat(challenge): Added Object.freeze challenge wrt #15746 2017-08-13 00:19:13 +05:30
Eric Leung 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
Sophanarith Sok 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
Alvin Kristanto 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
Berkeley Martinez 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
Marius Espejo 34d512ffeb fix: don't render challange if isBeta (#15741) 2017-08-08 14:44:59 -05: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
Eric Leung 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
Dylan 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
dhcodes c5be44be1b fix(challenges): Change switch code format for consistency
Closes #14947
2017-08-07 23:02:44 -05:00
Dylan 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
Milo Hartsoe 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
Dylan 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
Felix Yan 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
Berkeley Martinez 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
Usman Hussain 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
Dylan 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
Dylan 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
MANISH-GIRI a4946902a6 Allow shorthand Hex values in challenge 2017-08-01 01:22:56 -04:00
Berkeley Martinez 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
Berkeley Martinez 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
Prateek ca32658c70 Changes post review again 2017-08-01 01:31:51 +05:30
Prateek 56c81c86f1 Changes post review 2017-08-01 01:30:24 +05:30
Shubham Sharma 791b16860d fix(challenges): Change hyperdev link to glitch (#15694)
Closes #15691
2017-07-31 14:33:42 -05:00
Dylan 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
Markus Englund b96c4d39f5 docs(contributing): Add correct commands for installing and running mo (#15686)
Closes #15648
2017-07-28 19:13:29 +05:30
marigerr 43bb6272d6 interal link lesson - remove obsolete name attribute 2017-07-28 07:54:12 +02:00
Manish Giri 880f092a3f Edit test to ensure opacity at 50% in keyframes (#14390) 2017-07-25 21:37:24 -04:00
dhcodes bc46368750 fix(styles): Change modal title color
Closes #15588
2017-07-25 09:07:03 -05:00
Dylan b3e0d96b7c Merge pull request #15676 from Manish-Giri/fix/check-function-invocation
Add check for function invocation
2017-07-22 21:10:02 -05:00
MANISH-GIRI b28c4869aa Add check for function invocation 2017-07-22 16:18:30 -04:00
Jonathan Meier 074869d5c2 refactor(seed): Add break; to default statement on switch challeng (#15673)
Closes #15131
2017-07-22 01:30:22 -05:00
Prateek Goel 51d7514992 Move Fahrenheit Variable Below Comment Line
Challenge URL: https://www.freecodecamp.org/challenges/convert-celsius-to-fahrenheit
2017-07-20 16:37:36 +01:00
Berkeley Martinez f61cc28751 Merge pull request #15637 from raisedadead/fix/update-snyk-config
chore(snyk): Update snyk config
2017-07-17 16:34:20 -07:00
Berkeley Martinez de0101328f Merge pull request #15187 from raisedadead/fix/placeholder-project-view
fix(frontend-projects): replace video with image thumbnail
2017-07-17 16:33:41 -07:00
Dylan 59433eefda tweak description on nest many elements ch. (#15597) 2017-07-17 22:21:19 +05:30
Dylan ffa03c9483 Merge pull request #15098 from charlesBak/fix/arrow-function-with-param
Add test to Arrow functions with input parameters
2017-07-16 21:21:27 -05:00