Commit Graph

2533 Commits

Author SHA1 Message Date
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