Commit Graph

1515 Commits

Author SHA1 Message Date
Berkeley Martinez
a7534dce14 fix(views/signup): Error should be danger 2018-01-02 23:38:01 +05:30
Berkeley Martinez
a1530c041a fix(Auth): Error type in json payload 2018-01-02 23:38:01 +05:30
Berkeley Martinez
558328aa08 feat(boot/auth): Add signup disabled debug info 2018-01-02 23:38:01 +05:30
Berkeley Martinez
296387d67e fix(User): Move login logic into user model 2018-01-02 23:38:01 +05:30
Berkeley Martinez
07f30427cb feat(User/Auth): Use stand alone auth token 2018-01-02 23:38:01 +05:30
Berkeley Martinez
7a922229f4 chore(Loopback): Normalize configs using cli 2018-01-02 23:38:01 +05:30
Berkeley Martinez
bf196d37ff fix(User): Add isSignUp logic
emailVerfied field no longer indicates a new user.
2018-01-02 23:38:01 +05:30
Berkeley Martinez
d5e7bd586d fix(handled-errors): Handled errors should default to 200 2018-01-02 23:38:01 +05:30
Berkeley Martinez
9c5322334b fix(User): Fix typos 2018-01-02 23:38:01 +05:30
Berkeley Martinez
13b7eac16f fix(passport/login): Use middleware instead of bootscript
prototype overwrite doesn't seem have any effect
2018-01-02 23:38:01 +05:30
Berkeley Martinez
894a309723 fix(middlewares/errorhandler): Remove npm module and refactor for fcc use case 2018-01-02 23:38:01 +05:30
Berkeley Martinez
550e1db9a4 fix(boot/auth): Fix typo 2018-01-02 23:38:01 +05:30
Berkeley Martinez
8a66886081 fix(AccessToken): Move extensions to boot script
Loopback does not facilitate built in model extensions in the same way
as user defined models
2018-01-02 23:38:01 +05:30
Berkeley Martinez
750c9f1eab fix(passwordless): Reduce db calls, run in parallel
Adds validations, reduces the number of database calls, separates
concers. reduces logic
2018-01-02 23:38:01 +05:30
Berkeley Martinez
b35501c78e refactor(server/authenticate): Move auth api into own boot script
separate from user account/display methods
2018-01-02 23:38:01 +05:30
Berkeley Martinez
0452a9d1d5 fix(models): Move custom method to loopback model extension 2018-01-02 23:38:01 +05:30
Berkeley Martinez
19c7bb1ac9 chore(packages): Update validator and express-validator 2018-01-02 23:38:01 +05:30
Berkeley Martinez
dc7432c62f fix(server/user): End signin middleware early if signed in 2018-01-02 23:38:01 +05:30
Berkeley Martinez
4d3ee43ca3 Merge pull request #16338 from Bouncey/fix/mapInitialUI
fix(map): Render superBlock titles on initial render
2017-12-28 10:35:14 -08:00
Niko
941e060da5 fix: Homepage responsiveness (#16326) 2017-12-28 00:47:43 -06:00
Stuart Taylor
7d7e559b08 fix(map): Render superBlock titles on initial render 2017-12-27 10:56:30 +00:00
Vladi
869bf1750e fix(visual): Flash notifications now do not overlap with naviga (#16298)
removed negative-30 class used in partial view

Closes #16267
2017-12-23 12:52:21 -06:00
Jonathan Grah
b7e89e698f Merge pull request #16251 from cpheimbach/fix/adds_certificates_to_static_profile_path
feat(profile): Adds certificates to static profile path
2017-12-22 11:47:15 +00:00
mrugesh mohapatra
8f6deff199 fix: Update text for GitHub and Settings (#16253)
This commit adds back changes from the
commit 9142aec8ad

Just updates the labels of some of the buttons
2017-12-21 15:35:21 -06:00
cpheimbach
7823c0dbe2 feat(profile): Adds certificates to static profile path
I added all boolean checks, buttons and routes of the new certificates
to the view. (According to user.json)

Closes #16246
2017-12-21 19:50:41 +00:00
Jonathan Grah
674ce83ab0 feat(cert): Certificates (#16185)
* feat(cert): finished layout and design of legacy certificates

* feat(cert): added new certs

* feat(cert): added logic for new certs

* feat(cert): updated claiming challenges

* feat(cert): fixed various small issues

* feat(cert): completed suggested changes
2017-12-20 19:15:23 -06:00
Stuart Taylor
b4542a5aa3 feat(search): Add react-freecodecamp-search to Nav (#16209) 2017-12-18 10:48:21 -06:00
Mrugesh Mohapatra
94e808b15c fix(show): Move the order of tabs to be consistent 2017-12-16 11:51:54 +05:30
Mrugesh Mohapatra
e3d1e8b16c fix(show): Make the user profile tab consistent 2017-12-16 11:50:23 +05:30
Berkeley Martinez
b1e9a172a2 Feat: anon navbar (#16189)
* chore(React): %s/react-pure-render/React.PureComponent/gc

* fix(Settings): Should redirect to signup when unauthen

* feat(Development): Use SES for mail if defined

* feat(Nav): Show anon navbar when logged in

* fix(server/datasources): Make sure mailhog works if no ses keys are found

LB will use both mail settings if using both local and dev

* fix(Nav): Use text instead of icons

* fix(Nav): Make donate page open in new tab
2017-12-15 15:53:32 -06:00
Onel Harrison
fb98968433 fix(sitemap): Update challenge urls to use new url format (#16164)
Closes #16121
2017-12-11 15:39:33 -06:00
Matteo Giaccone
9eff3cba38 fix(UI): Add container back to layout (#16181)
Add missing container to layout and add top margin in user profile
2017-12-12 01:56:32 +05:30
Quincy Larson
8848673b90 fix: landing icons and verify email template (#16178) 2017-12-11 10:42:50 +05:30
Onel Harrison
3653c3d385 fix(nav): Apply correct classes and style to nav profile (#16170) 2017-12-10 22:53:03 +05:30
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
kennethlumalicay
46383ddaa6 fix(user): new function to compute unique days within hours. 2017-12-04 19:10:33 -05:00
Berkeley Martinez
8b9be0242a Merge pull request #16133 from raisedadead/fix/keyword-in-email-support
fix(auth): Add keyword in email support for passwordless
2017-11-29 15:30:38 -08:00
Berkeley Martinez
fe6177a084 Merge pull request #16130 from raisedadead/fix/mitigate-signin-for-github-auth
fix(github-auth): Add the github auth path to deprecated login
2017-11-29 15:24:13 -08:00
Mrugesh Mohapatra
af43360027 fix(auth): Add keyword in email support for passwordless 2017-11-29 23:11:24 +05:30
scissorsneedfoodtoo
924e7f19d6 fix(server/views/account): Change default text of heatmap legend
The default text of the legend is confusing given the low range of
values used. Cal-heatmap expects higher legend values, such as [10, 20,
30, 40], rather than [1, 2, 3]. This change will hopefully make the
mouseover text for the legend a little less confusing.

BREAKING CHANGE: None

Closes #16124
2017-11-29 20:40:04 +09:00
Mrugesh Mohapatra
b81a04879e fix(github-auth): Add the github auth path to deprecated login
This should let us allow users with github only auth login and update
their emails with us

Closes #16126
2017-11-29 11:45:06 +05:30
Berkeley Martinez
69fa4b3098 Merge pull request #15892 from raisedadead/feat/lb3-upgrade
feat(LoopBack): Upgrade to LoopBack 3
2017-11-27 13:33:01 -08:00
Berkeley Martinez
caaeba03f2 Merge pull request #15985 from raisedadead/fix/update-email-pre-confirm
fix(user): Update email pre-confirm config
2017-11-27 12:40:56 -08:00
Quincy Larson
b48037adc2 fix(landing): Update beta landing page (#16120) 2017-11-27 11:24:49 +05:30
Mrugesh Mohapatra
318d7c0ccc fix(context): remove use of current-context 2017-11-16 11:34:50 +05:30
Mrugesh Mohapatra
4967b2a2be chore(dependencies): Add and update CORS config 2017-11-16 11:34:50 +05:30
Mrugesh Mohapatra
460ce2644a fix: Update to loopback@^3 and add strong-error-hanlder@^1 2017-11-16 11:34:50 +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
Mrugesh Mohapatra
9ccfe4f72c refactor: Update methods to sensible names 2017-10-28 00:24:27 +05:30
Mrugesh Mohapatra
fe059c224e fix(User): Naming convention updates 2017-10-28 00:24:26 +05:30