Commit Graph

2285 Commits (96386b1aa2651039a50e557a44d2e3dcf4ad103a)

Author SHA1 Message Date
Oliver Eyton-Williams 88de5bc602 refactor: sort-files -> common utils 2020-09-16 11:54:05 +05:30
Oliver Eyton-Williams a959d462e9 fix(client): update editor when code is reset 2020-09-16 11:54:05 +05:30
Oliver Eyton-Williams 10d2559fee feat(client): handle jsx in multi-file editor 2020-09-16 11:54:04 +05:30
Oliver Eyton-Williams 1a985f95f5 feat: initialise editor with 'first' file
Since sort-files exists, the challengeFiles have an order. The editor
now displays the first file on mount.
2020-09-16 11:54:04 +05:30
Oliver Eyton-Williams f82886148c feat: add simple challengeFile sorter 2020-09-16 11:54:04 +05:30
Oliver Eyton-Williams b0f18cacc7 fix: prevent unnecessary re-renders
The editor should handle its own rendering.  By including a key that
changes as the users changes tabs forces the editor to re-render.  This
gets triggered as the user types, resetting the cursor to the start of
the editor.

Now the key only changes if the theme changes.
2020-09-16 11:54:04 +05:30
Oliver Eyton-Williams 4de5c5fde3 fix: concat sources so that 'code' has them all 2020-09-16 11:54:03 +05:30
Oliver Eyton-Williams dea30c1397 feat: simple prototype for dynamic tabs
While this works for html challenges, it should dynamically generate the
tabs in a predetermined order from the available files.
2020-09-16 11:54:03 +05:30
Oliver Eyton-Williams 631c2671b6 feat: support multiple editor tabs
Generates models to handle multiple groups of code (html, js or css) and
tracks the editor state as user moves between tabs. The current model
is connected to the redux store via a key associated with the file in
the editor.
2020-09-16 11:54:03 +05:30
Oliver Eyton-Williams a0f43c93ba chore: update react-monaco-editor 2020-09-16 11:54:03 +05:30
moT01 7bd6e77b0f feat: add multi file capabillity 2020-09-16 11:54:03 +05:30
Oliver Eyton-Williams 0e1dca5924 feat(client): parse test 'text' as markdown (#39176) 2020-09-16 11:54:02 +05:30
Kris Koishigawa 4f1be63055 feat(learn): sync master and next-curriculum branches 2020-09-16 11:54:01 +05:30
Kristofer Koishigawa c648a595df fix: intermediate js calorie counter challengeType (#38270) 2020-09-16 11:54:01 +05:30
Tom 977701937b Feat: add d3 dashboard project to next curriculum (#38028)
* feat: add d3 dashboard project to next curriculum
2020-09-16 11:54:01 +05:30
lmilliken 39b0afd5f0 feat: tests for calorie counter 2020-09-16 11:54:00 +05:30
Kristofer Koishigawa d3d5147c1f fix: renamed files and titles in the frontmatter for consitency (#37792) 2020-09-16 11:53:59 +05:30
SomeDer 2fbafda167 feat: functional programming spreadsheet (#36873)
* Add meta.json for spreadsheet

* Add spreadsheet files

* Close code tags for tests in 2 files

* Add solution section

* Add index file

* Add javascript-spreadsheet to stringifier

* Move index to step

* Rename steps in meta.json

* Rename step numbers in files

* Add index file to proper location

* Remove inappropriate files from spreadsheet dir

* Fix typo in first step

* Fix test sections

* Rename files to correct step

* Fix broken tests

* Add newline between sections

* Change challengeType from 1 to 0

* Add missng ) in step-079.md

* test -> tests in step-079

* Simplify test in step-103

* Fix step-137 test

* Remove last step

* Added solutions and adjusted some tests

* Fix some challenges

* Remove wrong spaces

* Fix more tests

* Add missing semicolon

* Fix more tests

* Fix type: lastttwo

* Fix all remaining tests
2020-09-16 11:53:59 +05:30
Tom 89e18e3a81 feat: add challenges for skyline project (#36854) 2020-09-16 11:53:59 +05:30
Kristofer Koishigawa 529f2596d9 feat: JS RPG game tests (#37678)
* feat: Add JavaScript RPG Game for testing
2020-09-16 11:53:58 +05:30
Sky020 dea4e51371 fix(client): remove unused formHelper functions 2020-09-15 17:07:54 +03:00
Sky020 c4240cdf2f fix: allow form label and name to differ
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-09-15 17:07:54 +03:00
Randell Dawson 0f5832b562
fix: project 25 + 5 (#39526) 2020-09-09 13:28:12 +05:30
Kristofer Koishigawa 0ccb140f71
fix: up and down hotkeys in search bar (#39529)
This fix prevents whitespace from breaking the up and down hotkeys in the search bar.
2020-09-08 23:43:45 +05:30
Oliver Eyton-Williams 9e3441fe1d
fix(client): solutionLink -> solution (#39544)
This sends the api the 'solution' it expects, not 'solutionLink'.
2020-09-08 23:16:24 +05:30
Lasse Jørgensen f3a82fe2f1
fix: Add information about local development for RWD projects (#38670)
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2020-09-04 20:26:26 +05:30
Shaun Hamilton f247090895
fix: add backend placeholder to solution form (#39494) 2020-09-04 19:14:26 +05:30
Oliver Eyton-Williams bd68b70f3d
Feat: hide blocks not challenges (#39504)
* fix: remove isHidden flag from frontmatter

* fix: add isUpcomingChange

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

* feat: hide blocks not challenges

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-09-03 15:07:40 -07:00
Oliver Eyton-Williams c772382d59 fix: remove remnants of servicebot
None of the code was still in use.
2020-09-04 00:14:24 +05:30
Ahmad Abdolsaheb ce777e43d2
fix: align completion modal buttons (#39509) 2020-09-02 10:38:14 +02:00
swyx 705cba67bc
fix: typo "alumini" (#39502)
fix typo "alumini"
2020-09-01 18:49:00 +05:30
Oliver Eyton-Williams 4a45b5ac1c fix: redirect /challenges/* to /learn/* 2020-09-01 11:35:44 +05:30
Ahmad Abdolsaheb 434cf15ad3
fix: update meta (#39500) 2020-08-31 20:41:13 -05:00
imgbot[bot] 52cfe54e94
chore: [ImgBot] Optimize images (#39460)
Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2020-08-26 16:25:21 +05:30
Oliver Eyton-Williams 46e3d75c76
fix(client): select only required props (Login) (#39461) 2020-08-25 22:59:39 +05:30
Ahmad Abdolsaheb d9dad10f43
feat(client): shinny new landing page 🎉 (#39400)
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-08-24 23:36:40 +05:30
Oliver Eyton-Williams 8c70ea6b62
fix(client): format cert date in user's timezone (#39440) 2020-08-20 16:46:10 +05:30
Ahmad Abdolsaheb c8acd13b31
fix: minor style changes (#39439) 2020-08-20 15:12:11 +05:30
Ahmad Abdolsaheb b1be0425a5
fix(client): add navigate proptype (#39434) 2020-08-20 03:04:40 +05:30
Oliver Eyton-Williams eb75f8c8cc
fix(client): ensure presetEnv is loaded (#39431)
Prior to this, if a user first loaded a React challenge and then
navigated to a JS challenge, they would see
TypeError: Cannot read property 'presets' of undefined
in the console and be unable to run tests or evaluate code until they
reloaded the page.
2020-08-19 13:30:46 -07:00
Twaha Rahman 7155c87e8b
fix: prevent dev tools from accessing state in prod (#38669)
* Fixed Redux dev tool plugin in production problem

* Update client/src/redux/createStore.js

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* Update client/src/redux/createStore.js

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* Update client/src/redux/createStore.js

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* Update client/src/redux/createStore.js

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* Fixed ESLint error

* Second try to fix linting issue

* Third try to fix lint issues

* Update client/src/redux/createStore.js

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* Update client/src/redux/createStore.js

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* fix: use env.json for ENVIRONMENT

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-08-20 01:22:59 +05:30
Ahmad Abdolsaheb 0ee680c3ab
fix: redirect users to success url after /donation completion (#39404) 2020-08-20 01:20:34 +05:30
Oliver Eyton-Williams 8350c517cc
fix: revert explicit Gatsby schema (#39426)
The Gatsby schema was breaking the React challenges (for some reason)
this is a quick hotfix while I figure out what's going on.
2020-08-17 18:09:19 -07:00
Kristofer Koishigawa 6b3c61c737
feat: update backend project links (#39314)
* feat: update backend project links

Replace solution and remix Glitch links with equivalent Repl.it links in backend projects/challenges and intro pages.

* fix: link and Repl.it casing

* fix: update mention of glitch in testing challenge

* Apply suggestions from code review

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-08-17 14:38:16 -07:00
Oliver Eyton-Williams 45e4a770a2 fix: robust Certifications/Additional learning split 2020-08-16 04:45:19 +05:30
Oliver Eyton-Williams 64c969a908 fix: add explicit schema for hidden challenges 2020-08-16 04:45:19 +05:30
Ahmad Abdolsaheb b1da66b80d
feat: add intro text to email sign up page (#39409)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2020-08-16 02:31:18 +05:30
Oliver Eyton-Williams 8baab3895d test: reuse redux store in single test 2020-08-15 14:37:23 +05:30
Oliver Eyton-Williams 456173f677 fix: use Login over custom button 2020-08-15 14:37:23 +05:30
Oliver Eyton-Williams a7d595f349 fix: replace hardgoto with api links 2020-08-15 14:37:23 +05:30
Oliver Eyton-Williams 5409e1e62e
fix: use forumLocation everywhere (#39405)
* fix: use forumLocation everywhere
2020-08-14 12:56:14 +03:00
Mrugesh Mohapatra 42686db303
feat: update learn intro (#39393)
* feat: update learn into

* fix: make text more readable

* fix: adjust global font smoothing

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-08-13 12:33:03 +02:00
Oliver Eyton-Williams 688a3dcc7b
fix: improve challenge logs (#39395) 2020-08-11 20:02:18 +05:30
Mrugesh Mohapatra adef746299
chore: move search-indexing, supress webpack-cli progress (#39367) 2020-08-09 04:17:10 +05:30
Ahmad Abdolsaheb ebcb34f3d9
feat: add monitization meta (#39368) 2020-08-05 14:02:23 +05:30
Ahmad Abdolsaheb f91cf1ae2d feat: style email-sign-up page 2020-08-05 14:01:47 +05:30
Oliver Eyton-Williams 3dbe69707f fix: redirect to email sign up on first login 2020-08-05 14:01:47 +05:30
Manish Giri 08d4811df3
feat(client, api): Add Camper Join Date to Profile (#38408) 2020-08-04 13:08:13 +05:30
Oliver Eyton-Williams bc2f659e40 chore: bump client 2020-08-04 03:50:20 +05:30
Ahmad Abdolsaheb e32022a198 feat: add june 2020 footer 2020-07-28 00:27:51 +09:00
David Sykes 17d9b43747
fic: certification links now open in a new tab (#39180) 2020-07-27 18:15:40 +05:30
Shraddha b1a0c4fa59
fix: center donation modal text (#39307) 2020-07-27 11:32:32 +02:00
Oliver Eyton-Williams 25be0f379e
fix: remove unwanted log (#39312) 2020-07-24 05:08:37 -07:00
Ruchi Kushwaha 0c0611229e
Fix/delayofflinewarning (#39291)
* delay offline warning

* Delayed the offline warning

* delayed offline warning

* revert unwanted changes

* correct spacing

* correct spacing second time

* use let instead of var
2020-07-22 05:26:27 -07:00
Kris Koishigawa f21248edae fix: update donor email address and fix spacing 2020-07-22 12:37:31 +09:00
Oliver Eyton-Williams de55527693
fix: prevent preview-tests race condition (#39286) 2020-07-20 08:33:56 -07:00
Oliver Eyton-Williams c285ce5a0c
chore: bump loadash and remove gulp (#39276) 2020-07-18 00:34:48 +05:30
Oliver Eyton-Williams 7269894a86
refactor: test output -> arrays (#39178) 2020-07-18 00:33:23 +05:30
Oliver Eyton-Williams bb019b2b0f
fix: responsive videos (#39171) 2020-07-18 00:33:10 +05:30
Oliver Eyton-Williams 22e24dfb54
fix(client): improve accuracy of offline warning (#39249)
The old message made it sound like there was a problem with the server,
even though no attempt was being made to contact it.
2020-07-14 15:56:47 +05:30
Tom cf190b59e6
Fix/make mongodb instructions accurate (#39214)
* fix: make mongodb instructions accurate
2020-07-14 19:00:23 +09:00
Mosh Feu aab60d299d
docs: Update "Responsive Web Design" Github link (#39134)
Current link leads to a 404 page in the old "learn" repository
2020-07-09 21:14:30 +05:30
Oliver Eyton-Williams e7346baa34
feat(client): show line numbers on video questions (#39207) 2020-07-08 20:00:42 +05:30
Tom 7ed1d52001
fix(client): hide youtube suggestions (#39164) 2020-07-02 20:36:54 +05:30
Mrugesh Mohapatra 426732f7b5
revert(client): /s/react-youtube/plyr-react/g (#39162)
This reverts commit df6a4f649d.
We found mulitple issues with the integration and will rework on this.
2020-07-02 19:46:10 +05:30
Huyen Nguyen ab75df7cb1
fix(learn): capitalization and grammar errors (#39151) 2020-07-02 17:20:43 +05:30
Jovani 97f5229033
fix(learn): Organized the Certifications on Settings to match the main page (#39146)
* Organized the Certifications on Settings to match the main page

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-07-02 13:48:08 +02:00
Nicholas Carrigan 1e0e54446f
chore: replace forum links (#39139) 2020-06-30 14:21:26 +05:30
Oliver Eyton-Williams 34c26c4950
chore: update forum links in NavLinks (#39141) 2020-06-30 14:16:05 +05:30
Nicholas Carrigan 25cabc0a18
fix(learn): change forum link in help modal (#39143)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2020-06-30 14:15:42 +05:30
Mrugesh Mohapatra df6a4f649d
feat(client): /s/react-youtube/plyr-react/g (#39137)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-06-29 17:37:24 +05:30
Ahmad Abdolsaheb 9fe222680c
fix: set radio button selection to null (#39120) 2020-06-23 20:09:06 +02:00
Mrugesh Mohapatra 0116afd18b
chore: remove unused quotes files (#39107) 2020-06-22 09:18:27 +02:00
Oliver Eyton-Williams 80223e5e39
fix: style for video answers (#39090)
Vertically centers the radio buttons.
Fixes answer backgrounds.
Corrects answer padding on night mode.
2020-06-18 13:47:13 +05:30
Oliver Eyton-Williams 9954c3d0bc
feat: add python syntax highlighting (#39079)
To err on the side of caution, this explicitly includes all languages
that were implicitly included before using the Babel plugin.
2020-06-17 20:33:08 +05:30
Kristofer Koishigawa 6e5988da4e
fix(learn): versioning for new certificate slugs (#39087) 2020-06-17 20:30:31 +05:30
Kristofer Koishigawa 77df0e32cd
feat(learn): rename certificates, cert slugs, and cert flags (#39026) 2020-06-15 21:51:30 +05:30
rdm100 885538d9e1
fix: updated and consolidated quotes (#39069)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-06-15 18:42:27 +05:30
Oliver Eyton-Williams daed7ad5dd
fix(client): ensure dom ready before testing (#39073)
jQuery challenges can fail seemingly at random. These changes should
prevent the race condition between a user's $( document ).ready() and
test evalution.
2020-06-15 18:41:34 +05:30
Mrugesh Mohapatra bcf9942263
feat(donate): allow mutiple donations with warning (#39066) 2020-06-13 17:32:29 +05:30
Oliver Eyton-Williams b4926052f4
chore: refactor and simplify testing (#39050) 2020-06-13 14:57:15 +05:30
Ieahleen db9c38539b
chore(client): removing a forgotten console.log (#39055) 2020-06-12 23:58:53 +05:30
Oliver Eyton-Williams 6b8c2e74b6
fix(client): sync Redux store and DB (#39034) 2020-06-10 12:24:19 +05:30
Kris Koishigawa 89d5c891e3 feat(learn): add full stack certificate md and handle errors
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-06-06 14:45:12 +05:30
Mrugesh Mohapatra a02ff7b08e
fix(certs): add year to certs introduced in 2020 (#38912) 2020-06-04 13:13:07 +05:30
Tom 31614fa9a6
fix(client): remove auto redirect on report user page (#38974) 2020-06-01 23:03:53 +05:30
Kristofer Koishigawa 959608e85e
fix(client): public profile qa and infosec certification links (#38948) 2020-06-01 19:53:59 +05:30
Tom a4ee5ea09a
fix(client): background-color in code blocks of questions (#38968) 2020-06-01 18:38:08 +05:30
matbub 4af28cf12c
fix(client): update report user verbiage and link (#38954) 2020-06-01 18:37:24 +05:30
Oliver Eyton-Williams a9acf11209
refactor(client): simply landing query (#38935) 2020-05-28 20:56:48 +05:30
Oliver Eyton-Williams fcef62d5de
refactor(learn): use graphQL filter for Map (#38913) 2020-05-28 20:56:19 +05:30
Oliver Eyton-Williams d233cb35a3
fix(client): ensure validation works during watch (#38936) 2020-05-28 20:54:29 +05:30
Kristofer Koishigawa 18d2dca05b
fix(client): landing page superblocks (#38914) 2020-05-28 14:20:51 +05:30
Tom 7fd92c5fe6
fix: make videos bigger + add styles (#38924) 2020-05-28 12:55:25 +05:30
Tom e040d64e4e
fix(client): add margin to certs (#38921) 2020-05-28 12:40:07 +05:30
Tom db08ab2965 fix: backend projects not submitting (#38900)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-05-27 13:19:16 +05:30
Tom 911ba72106 fix: allow ctrl+enter to submit video lessons (#38898)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-05-27 13:19:16 +05:30
Mrugesh Mohapatra 9879d6e72b fix(learn): update project views for python 2020-05-27 13:19:15 +05:30
Oliver Eyton-Williams de0bec88a3 feat: process video question md into html (#38667)
* feat: process video question md into html

* test: mdToHTML

* fix: use dedicated prism component
2020-05-27 13:19:14 +05:30
Beau Carnes 3a653438fc Feat: add python security video course (#38683) 2020-05-27 13:19:14 +05:30
Tom ef79ddd0de feat: add loader on video challenges (#38633) 2020-05-27 13:19:13 +05:30
Mrugesh Mohapatra 286ba7689b fix(client): nicer error message and layout update 2020-05-27 13:19:13 +05:30
Tom 184a07d20d fix: infosec show cert button not rendering (#38620) 2020-05-27 13:19:13 +05:30
Tom 2e37cb8da5 fix: rename tensorflow lessons (#38617) 2020-05-27 13:19:13 +05:30
Beau Carnes 256ed00fb9 feat(learn): split InforSec and QA into individual certs (#38347)
Co-authored-by: Mrugesh Mohapatra <me@raisedadead.com>
Co-authored-by: Kris Koishigawa <scissorsneedfoodtoo@gmail.com>
2020-05-27 13:19:12 +05:30
Tom c75d212831 fix: misaligned titles (#38613) 2020-05-27 13:19:12 +05:30
Tom 379f6f89ca fix(learn): tests for python video lessons (#38600)
* fix: improve tests for video challenges

* fix: remove unused challenges + get rid of no description warning

* fix: remove non-existent challenges from meta
2020-05-27 13:19:11 +05:30
Beau Carnes 03c9e47be9 feat: Add more video challenges (#38598)
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2020-05-27 13:19:10 +05:30
Beau Carnes cb88dcf1e6 add tensorflow course without questions (#38525) 2020-05-27 13:19:10 +05:30
Tom 63fe67e53f feat: add video lessons to db on submit + update UI (#38591)
* feat: add video lessons to db on submit + update UI

* feat: delete CompletionVideoModal

* feat: clean up component + add comments

* feat: remove comment

* feat: remove log

* feat: remove log

* fix: update buttons + fix some testing

* fix: remove unused selector
2020-05-27 13:19:10 +05:30
Beau Carnes e776529ed0 feat(learn): add python video challenges (#38424) 2020-05-27 13:19:09 +05:30
mrugesh 22afc2a0ca feat(learn): python certification projects (#38216)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>
Co-authored-by: Beau Carnes <beaucarnes@gmail.com>
2020-05-27 13:19:08 +05:30
Lasse Jørgensen 9e01ead291
fix(editor): Add quickSuggestions false to editor options (#38899) 2020-05-26 19:10:45 +05:30
Oliver Eyton-Williams 48532d6ccb fix: hide isHidden challenges from hotkey nav 2020-05-25 16:25:19 +05:30
Oliver Eyton-Williams 68aef571ee feat: hide isHidden challenges 2020-05-25 16:25:19 +05:30
Oliver Eyton-Williams 5bc3e15e3a fix(client): DRY out challenge sourcing
Also handles file changes the same way as the original sourcing.
2020-05-25 16:25:19 +05:30
Twaha Rahman d01ce3bbc1
fix(learn): remove cta and add current challenge button (#38807) 2020-05-21 18:09:48 +05:30
Luis H. Ball Jr 2db668b6ad
feat: show extensions warning in css learning module index (#38806) 2020-05-19 14:05:33 +05:30
Mrugesh Mohapatra 421bbdefbe
fix(client): add footer on learn home (#38830) 2020-05-19 12:50:15 +05:30
Rostyslav Ugryniuk 88b263fef8
fix(client): prevent PayPal script loads in development (#38785) 2020-05-12 18:04:24 +05:30
Mrugesh Mohapatra e3ee7eef3a chore(client): bump minor & patch versions of deps 2020-05-11 22:53:55 +05:30
Vincent Endrahadi 9a25ba2633
fix(learn): improve landing page (#38695) 2020-05-11 18:56:12 +05:30
Mrugesh Mohapatra 161c0c20a2
fix: 404 page styles (#38775) 2020-05-10 12:23:22 -05:00
Oliver Eyton-Williams 5e56a9a938
Feat(curriculum): scss not sass (#38764) 2020-05-09 20:01:18 +05:30
Hassaan Pasha 7126bacf34
fix (learn): add title to challenge meta for backend challenges (#38745) 2020-05-07 21:56:58 +05:30
Shaun Hamilton 21ca4e3f67
fix(client): add relevant placeholder to link submission (#38411) 2020-05-07 21:49:06 +05:30
Kristofer Koishigawa 75e926810f
fix: search bar width (#38693) 2020-04-30 17:40:34 +05:30
Kristofer Koishigawa 54c93aabbb
fix: bump number of tutorials to 6,000+ (#38694) 2020-04-30 17:39:41 +05:30
Mattia Penna f5eeda68d1
Added missing word in quote (#38665)
Fixed quote of alicia Walker, the word "way" was missing.
2020-04-28 10:49:46 +02:00
Esteban Borai c5ba18e978
fix(client): wrap editor in span with "notranslate" (#38389)
* Update Editor.js

* Fix linting issue

* Working on Preview with .notranslate

* Add "notranslate" for Preview component
2020-04-26 09:22:41 -05:00
Mrugesh Mohapatra d866766223 fix(client): update logic for non-signedin users 2020-04-25 00:00:43 +05:30
Ahmad Abdolsaheb a45df11de1
fix: capture one time and subscriptions separately (#38630) 2020-04-24 22:27:19 +05:30
Oliver Eyton-Williams 54c6190361 feat: add GitHub action for e2e testing 2020-04-23 01:42:24 +05:30
Bouncey 7eb6351530 feat: add cypress for e2e tests 2020-04-23 01:42:24 +05:30
Ashraf Nazar e4e16f054e
fix(client): disable unnecessary features in Monaco editor (#38551) 2020-04-23 00:48:59 +05:30
Ahmad Abdolsaheb 7db718141b
feat: add paypal script loader for one time and subscription (#38553)
* fix: add one-time payment sdk script loader

* fix: remove paypal credit
2020-04-21 00:46:34 +05:30
Kristofer Koishigawa 2e90ba4754
fix: change wording for donate buttons (#38549) 2020-04-14 18:48:42 +05:30
Ahmad Abdolsaheb 6517f88b6c
fix: add logos for payment buttons (#38548)
* fix: add assets
* fix: add accepted-cards and style donation assets
2020-04-14 18:22:20 +05:30
Mrugesh Mohapatra d74d72446d feat: use Stripe checkout on donate page 2020-04-14 12:29:06 +03:00
Mrugesh Mohapatra 946cd0665a feat: add one-time links to PayPal.me 2020-04-14 12:29:06 +03:00
Ahmad Abdolsaheb 1519e70165
fix: remove paypal credit button (#38537) 2020-04-13 23:16:24 +05:30
Mrugesh Mohapatra 5f1f5554b2
fix: remove stripe card from donate page (#38534) 2020-04-13 16:28:34 +03:00
Mrugesh Mohapatra 00c475f663
chore: update meta and description (#38419) 2020-04-02 17:26:21 +05:30
Oliver Eyton-Williams d4838f65d8 test: update HeatMap snap 2020-04-01 22:40:40 +05:30
Oliver Eyton-Williams 8300a669a3 chore: roll react-tooltip back to 4.1.0
Later versions use random classnames, breaking snapshots.
2020-04-01 22:40:40 +05:30
Oliver Eyton-Williams db4b94f5ad refactor: refer directly to editor when possible 2020-04-01 22:40:40 +05:30
Oliver Eyton-Williams 457dbe13be fix: use updated monaco api 2020-04-01 22:40:40 +05:30
Oliver Eyton-Williams b1296a4521 chore: update deps and install peers 2020-04-01 22:40:40 +05:30
Tom 0ffc657d5f
feat: paginate heatmap + calculate streaks on client (#38318)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-03-31 23:34:54 +03:00
Ashraf Nazar 7e29462168
fix(Editor): change tab size to 2 spaces instead of 4 (#38475) 2020-03-31 16:20:46 +05:30
Ahmad Abdolsaheb 562f28e8b9
fix: update supporter badge logic (#38461)
* fix: update supporter badge logic

* fix: update snapshot
2020-03-28 12:34:48 +05:30
Ahmad Abdolsaheb b7e9795466
fix: make modal donation text dynamic (#38462) 2020-03-28 12:34:09 +05:30
Oliver Eyton-Williams ffcf8294f1
fix: fetch CSRF cookie and set headers lazily (#38452)
* fix: fetch csrf cookie and set headers lazily

* fix: check cookie each call to keep it up to date

Previously the cookie was checked once and never updated until the
client was reloaded.  Stale or absent cookies would generate incorrect
tokens or no tokens, respectively, causing CSRF errors.
2020-03-27 16:41:33 +05:30
Ahmad Abdolsaheb 8aa68be560
feat: border on avatar and badge for donating campers (#38434) 2020-03-27 14:21:35 +05:30
Ashraf Nazar 28d363e65a
fix(client): adjust CTA button width depending on viewport (#38432) 2020-03-26 23:10:59 +05:30
Ashraf Nazar 66cbabda22
fix(search): add borders for list items (#38425)
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-03-26 22:35:34 +05:30
Oliver Eyton-Williams 35751bacf0 chore: remove rollbar from client and .env 2020-03-26 16:51:17 +05:30
Hassaan Pasha 2b1e02daf3
fix (client): show correct paypal donation duration on donate page (#38444) 2020-03-26 10:51:05 +03:00
Ahmad Abdolsaheb af46e851df fix: make donation plan dynamic 2020-03-26 16:34:37 +09:00
Oliver Eyton-Williams 58bd0b5ce4
chore(tools): add jsx-a11y Eslint plugin (#38438)
* chore(tools): add a11y eslint plugin

* fix: use Gatsby's a11y eslint rules

* fix(search): remove unnecessary mouse listeners
2020-03-26 10:25:47 +05:30
Jacob Robinson 49efb02528
fix(client):remove hyperlink from flash message (#38429)
* fix(client):remove hyperlink from flash message

* Use full URL

Co-Authored-By: mrugesh <1884376+raisedadead@users.noreply.github.com>

Co-authored-by: mrugesh <1884376+raisedadead@users.noreply.github.com>
2020-03-24 17:31:48 +01:00
mrugesh 786626f21e
fix(PayPal): update config pickup from env (#38423)
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-03-23 19:33:37 +05:30
Tobias Helsing 2ff5e83195
Add full width hover to map (#38412)
Co-authored-by: Tobias <tobias.helsing@futurice.com>
2020-03-22 19:15:46 +03:00
Ashraf Nazar 88e1952478 fix: ESLint warnings in logs 2020-03-21 03:09:38 +05:30
Ahmad Abdolsaheb b561599614 fix(donate): re-enable monthly donations and update plans 2020-03-21 01:58:07 +05:30
Oliver Eyton-Williams a7c70ddcd8
fix: remove debugModal (#38405) 2020-03-20 21:24:06 +05:30
Mrugesh Mohapatra 8866ed74c2 fix(donate): remove call to verification when not signed in 2020-03-20 13:17:39 +05:30
Ahmad Abdolsaheb cdc8b1e8e5 feat: add reconfigurable paypal button to donate page 2020-03-20 10:05:07 +05:30
Mrugesh Mohapatra 170e3dbf4f fix(donate): remove isSigned in check temporarily 2020-03-19 23:55:47 +05:30
Mrugesh Mohapatra 585527d145 feat: add paypal donation to modals and certificates 2020-03-19 23:55:47 +05:30
Mrugesh Mohapatra c30f0dbf0d fix(client): fixup PayPal intergration 2020-03-19 17:18:53 +05:30
Mrugesh Mohapatra 9d72ccf048 chore(client): remove PayPal integration
This commit removes the changes introduced via #38239 to unblock deployment to production
2020-03-18 00:18:23 +05:30
Oliver Eyton-Williams 23b899f50f fix(csrf): remove all csrf bypass 2020-03-17 23:28:23 +05:30
Oliver Eyton-Williams 10eaf8ed13 chore: update client 2020-03-17 11:09:12 +05:30
Jacob Robinson 00347ff8bf
feat(client): add space for flash message (#38327) 2020-03-17 11:07:42 +05:30
Ahmad Abdolsaheb c21af106bb feat: update open graph and twitter meta 2020-03-17 00:32:56 +05:30
Mrugesh Mohapatra f9277b4fec fix(env): make PayPal env config dynamic 2020-03-16 18:35:52 +05:30
Ahmad Abdolsaheb 6c6eadfbe4 feat(donate): PayPal integration 2020-03-16 18:35:51 +05:30
Jacob Robinson 694e52f742
feat: Code saveing to localStorage on Cmd/Ctrl + S (#38324)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: mrugesh <1884376+raisedadead@users.noreply.github.com>
2020-03-13 18:50:14 +05:30
Hassaan Pasha 5294936667
fix(learn): prevent indexing learn pages on search engines (#38260)
Co-authored-by: mrugesh <1884376+raisedadead@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-03-03 20:57:53 +05:30
Ahmad Abdolsaheb 2c3de17c74
fix: open universal nav links on the same tab (#38273) 2020-02-27 00:39:56 +05:30
Ezekiel Oladejo 402ccb36f1
Fix typographical errors in introductory texts (#38276)
* Fix typographical errors in introductory texts
2020-02-26 18:32:21 +01:00
Oliver Eyton-Williams 5b80595fbf
fix: remove useless logging (#38246) 2020-02-21 15:08:53 +05:30
Oliver Eyton-Williams 7cdf01276d fix: ensure Babel options exist when used
Also renamed 'config' to 'options' to be consistent with the calling
function.
2020-02-20 19:52:23 +05:30
Oliver Eyton-Williams ebc6197c54 fix: assume scripts inside HTML are js, not jsx 2020-02-20 19:52:23 +05:30
Oliver Eyton-Williams d87c16e65e fix: only load preset when needed 2020-02-20 19:52:23 +05:30
Oliver Eyton-Williams 21833ab508 fix: load all Babel libs dynamically 2020-02-20 19:52:23 +05:30
Oliver Eyton-Williams 3fff454872
fix(client): localise calendar to user's current timezone (#38217)
* fix: localise Heatmap to user's timezone

Rather than using ISO formatted date strings, this uses Date objects
for simplicity and to ensure that the heatmap is correct for the
timezone it is viewed in. It should also match the timeline which is
also localised to the viewing computer's timezone.

* test: update snapshot
2020-02-15 00:29:41 +05:30
Oliver Eyton-Williams cc79999a31
fix: force timezone to be UTC for tests (#38215)
react-calendar-heatmap's output depends on the timezone, which means
that snapshots can fail if the timezone changes.  This sets the timezone
as UTC during client tests to avoid that problem.
2020-02-14 21:24:29 +05:30
Ashraf Nazar 4999288912
fix: Use markdown syntax instead of HTML on exercises (#38196) 2020-02-11 23:26:09 +05:30
Ahmad Abdolsaheb 99a30d4b65
fix: remove donation message for unauthorized users (#38188)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-02-10 18:34:49 +05:30
Manish Giri 3e5963b2a7 fix(client): disable intellisense in editor (#37813) 2020-02-09 00:26:47 +05:30
Josh Soref 004b99bf8f chore: fix typos in spelling (#38100)
* spelling: accidentally

* spelling: announce

* spelling: assembly

* spelling: avoid

* spelling: backend

* spelling: because

* spelling: claimed

* spelling: candidate

* spelling: certification

* spelling: certified

* spelling: challenge

* spelling: circular

* spelling: it isn't

* spelling: coins

* spelling: combination

* spelling: compliant

* spelling: containers

* spelling: concise

* spelling: deprecated

* spelling: development

* spelling: donor

* spelling: error

* spelling: everything

* spelling: exceed

* spelling: exist

* spelling: falsy

* spelling: faulty

* spelling: forward

* spelling: handle

* spelling: indicates

* spelling: initial

* spelling: integers

* spelling: issealed

* spelling: javascript

* spelling: length

* spelling: maximum

* spelling: minimum

* spelling: mutable

* spelling: notifier

* spelling: coordinate

* spelling: passport

* spelling: perform

* spelling: permuter

* spelling: placeholder

* spelling: progressively

* spelling: semantic

* spelling: submission

* spelling: submit

* spelling: translations

* spelling: turquoise

* spelling: visualization

* spelling: without

* spelling: registration

* spelling: representation
2020-02-08 23:59:10 +05:30
Mika Laaksonen f4fbe1d97c
fix(client): Header and buttons text made smaller (#38110)
* Front page header and login buttons text made smaller

* Increased headers size a little to all be over 1rem
2020-02-08 18:28:25 +05:30
Kristofer Koishigawa 4ef445c543
feat: add styles for markdown tables and convert some HTML tables to markdown (#38126) 2020-02-07 09:47:35 +01:00
Tom a9c173b35b
fix: remove useless last sentence on intros (#38176) 2020-02-06 17:22:15 +01:00
Oliver Eyton-Williams c76978bdfe
fix: prevent duplication of Monaco webpack plugin (#38131)
It seems that adding it during the 'build-html' stage meant it was
creating new, unminified, versions of the scripts and overwriting the
existing, minified, ones.
2020-02-06 14:24:00 +03:00
kundan kumar fcddfc90b2
fix: Update html tags to fix misalignment (#38160) 2020-02-05 11:18:51 +05:30
vanya829 9a863898f3
fix: remove html tags to fix misalignment (#38159)
* fix: remove html tags to fix misalignment

* Update client/src/pages/learn/apis-and-microservices/managing-packages-with-npm/index.md

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2020-02-04 11:31:48 -06:00
Tom 25a46f613b
fix: add line break to align with the rest of the intros (#38161) 2020-02-04 11:27:58 -06:00
Ahmad Abdolsaheb 24eb2c4310
fix: add donation ga and tests (#38003)
* fix: add donation ga

* feat: add ga-saga tests
2020-02-04 11:13:56 +05:30
Oliver Eyton-Williams 992ee98cc1 fix: make no-hits result seem non-interactive 2020-02-04 10:56:34 +05:30
Oliver Eyton-Williams 00e0f574df refactor: move no hits case into own component 2020-02-04 10:56:34 +05:30
Tom 964328dbae
fix(client): accuracy issue with heatmap (#38137)
* fix/accuracy-issue-with-heatmap

* fix: typo

* feat: add test and simplify logic

* test: mock Date.now and update snapshot

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-02-04 10:37:04 +05:30
Oliver Eyton-Williams c6eb40ceef
feat: remove protection from interview prep (#38136)
The interview prep section includes many challenges that require long
running calculations which can be mistaken for infinite loops. This
removes the loop protection from those challenges, while the tests are
being evaluated.

It keeps the protection for the preview, since it is easy to create
broken code while working on a challenge and that should not crash the
site.
2020-02-04 10:33:56 +05:30
vanya829 d626e898ee
fix(curriculum): stop tests running after navigating away (#38146) 2020-02-03 18:52:49 +05:30
Ahmad Abdolsaheb 92ffe117f1 fix: add space to blockDonationText (#38075) 2020-01-21 09:49:25 +01:00
Ashraf Nazar e7ccaeff13 Fix/landing page vs learn page (#38085)
* fix: Use template literals for welcome conditional on /learn page

* fix: Make sign in button on /learn page same width as landing page
2020-01-20 09:50:07 +01:00
Kristofer Koishigawa d29bfcd1e9 fix: adjust styles and search behavior when there are no hits (#38073)
fix search bar to show "No tutorials found" and not redirect to search page without hits. 
change styles to match news.
2020-01-20 10:47:06 +03:00
Oliver Eyton-Williams fd72bd40f9 fix: change test-evaluator hash to refresh cache 2020-01-14 00:29:39 +09:00
Oliver Eyton-Williams bb5a9e8153 fix(security): treat messages as text, not HTML (#38062) 2020-01-13 12:56:29 +03:00
Kristofer Koishigawa 978bae6716 fix: news search redirects and loading indicator (#38048)
Disable loading indicator and redirect to full news search page url so NGINX no longer redirects to ../news/news/search?query=...
2020-01-13 04:22:27 +05:30
Ahmad Abdolsaheb b64048fe13 fix: hide stripe form when isDonating (#38034) 2020-01-09 18:57:04 +05:30
mrugesh 059e826465
fix: remove all year-end gift implementation (#38030) 2020-01-09 02:37:50 +05:30
Ahmad Abdolsaheb 14c1c429e2
fix: remove inappropriate quotes (#38019) 2020-01-07 14:42:05 +03:00
Kristofer Koishigawa 849e78d72e feat: enable MathJax for Project Euler challenges (#38017)
* feat: enable MathJax for Project Euler challenges

Enables MathJax to render mathematical formulae for some Project Euler problems

* refactor: DRY out script insertion

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-01-07 14:14:12 +03:00
Oliver Eyton-Williams e2b357bb56 fix: flush logs straight after evaluation (#38011)
If test evaluation takes too long the worker can timeout and any logs
will be lost.  Flushing the logs before test evaluation avoids this.
2020-01-04 10:38:05 +05:30
Oliver Eyton-Williams f5feff386a fix: stop user code after 500ms of execution
Code like `var xs = []; while(true){ xs.push(1) }` can quickly run the
browser out of memory causing it to crash.  These changes stop user loops
from running indefinitely so that common mistakes will no longer cause
the browser to crash.

Also, the user is informed if a long running loop is detected (js and
jsx challenges) during preview or testing.  Before this there was no
protection for js challenges and no information was given to the
user if they had created such a loop.

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>
Co-Authored-By: mrugesh <1884376+raisedadead@users.noreply.github.com>
Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
2020-01-03 11:41:52 +05:30
Oliver Eyton-Williams 1a56f4d5f4 fix(client): show certs on timeline (#37947)
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2020-01-03 11:32:31 +05:30
mrugesh 8e605d8b85
Revert "feat(client): unify GA and add to donation" (#38001)
This reverts commit 78df306707.
2020-01-01 12:04:50 +05:30
Ahmad Abdolsaheb 78df306707 feat(client): unify GA and add to donation (#37984) 2019-12-31 23:29:32 +05:30
Ahmad Abdolsaheb 1d855b75b4 fix: add paypal image and donate form verification (#37978)
Co-Authored-By: mrugesh <1884376+raisedadead@users.noreply.github.com>
2019-12-30 21:10:46 +05:30
dependabot[bot] 6756c06fcd chore(deps): bump handlebars from 4.1.2 to 4.5.3 (#37987)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.5.3.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.1.2...v4.5.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: null <49699333+dependabot[bot]@users.noreply.github.com>
2019-12-27 22:15:58 +05:30
Parth Parth 075bfb38ff fix: styles for certs until redirect fixed (#37885)
* remove extra styling
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2019-12-25 22:29:57 +03:00
Ahmad Abdolsaheb d08a87bcd6 feat: add payment option image to donation forms (#37938) 2019-12-23 18:01:10 +05:30
Oliver Eyton-Williams e5abfa15ad Revert "fix: stop user code after 100ms of execution" (#37965)
This reverts commit 01b37f664f.
2019-12-21 11:09:32 +05:30
mrugesh 885c8edeb7
fix(donate): update copy of the support text (#37964) 2019-12-20 22:48:57 +05:30
Tom a8a7eeb10d fix: make github url optional for backend projects (#37936) 2019-12-20 19:30:33 +05:30
Oliver Eyton-Williams 01b37f664f fix: stop user code after 100ms of execution (#37841)
Co-authored-by: mrugesh <1884376+raisedadead@users.noreply.github.com>
Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2019-12-20 19:28:17 +05:30
Ahmad Abdolsaheb 2e3a5d4b1f fix: adjust default theme for StripeCardForm 2019-12-20 19:10:42 +05:30
Mrugesh Mohapatra e4590fed5c fix(donate): implement donate page 2019-12-20 19:10:42 +05:30
Oliver Eyton-Williams 6ef9345f92 fix: add close modal to keyboard navigation 2019-12-18 21:04:55 +05:30
Ahmad Abdolsaheb 1289d35435
fix: show default theme for donation related pages (#37956)
* fix: show default theme for donation related pages

* feat: add default theme to stripForm
2019-12-18 17:40:48 +03:00
Mrugesh Mohapatra 8db0f89634 fix(donate): remove isDontating check from year-end 2019-12-18 12:59:18 +03:00
Mrugesh Mohapatra 663f726c4e fix(donate): allow unauthenticated donations for year-end 2019-12-18 04:21:57 +05:30
Ahmad Abdolsaheb fc25c281e4 fix: adjust cert logo and grid 2019-12-18 03:08:58 +05:30
moT01 81de7dfaf7 fix: make nav logo link to /learn 2019-12-18 03:07:46 +05:30
Ahmad Abdolsaheb 1cead2f086 feat(donate): add year end gift page 2019-12-18 02:48:03 +05:30
Parth Parth 9ad5a95197 fix: re-order and update sign in CTA styles on completion modal (#37884) 2019-12-16 17:10:55 +05:30
Tom 2dfd850de8 Fix: bad link on donate page (#37935)
* fix: donate page link

* fix: remove unneeded curly brackets
2019-12-14 22:19:38 +05:30