Commit Graph

26426 Commits (e4a9b2988cd4d1a92b3e50733a7de257f39ada6a)

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 b25089d7c8 fix: relax challenge validation for multiple seeds 2020-09-16 11:54:02 +05:30
Oliver Eyton-Williams 5fe16ada3d fix: parse certificates separately (#39182) 2020-09-16 11:54:02 +05:30
Oliver Eyton-Williams 0e1dca5924 feat(client): parse test 'text' as markdown (#39176) 2020-09-16 11:54:02 +05:30
Oliver Eyton-Williams f77005cc43 fix: accept numbers for boundaries (#39181) 2020-09-16 11:54:02 +05:30
Randell Dawson 8478e021bf feat (learn): Remove editable regions from seed code before displaying user's code (#39153)
* feat: pull editable region from markdown

* test: update seed tests to reflect new schema

* feat(curriculum): validate multi-file solutions

* test: add editableRegionBoundaries to schema

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-09-16 11:54:02 +05:30
Oliver Eyton-Williams fd7a8c0d5e feat: allow next challenge's seed to be a solution (#39145)
* feat: allow next challenge's seed to be a solution
2020-09-16 11:54:01 +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
Tom dae411d408 fix: failing test (#38253) 2020-09-16 11:54:00 +05:30
lmilliken 9ba1f1f6d0 feat: tests for calorie counter
split up calorie counter lesson
2020-09-16 11:54:00 +05:30
Kris Koishigawa b99d78858b fix: basic js rpg spacing and tests
Replaced tabs with spaces so spacing is consistent in the monaco editor. Also adjust some tests to account for the new loop protection.
2020-09-16 11:54:00 +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
Kristofer Koishigawa 869b4f479e fix(client): modified test suite to not throw errors (#37894)
modified challenge test suite so it does not throw an error if two steps for the project based curriculum have the same title
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
Bjorn van de Peut 1770ea07a6
docs: add guidelines for responding to posts about health (#39566)
* Added new section

Added new section: Dealing with (mental) health inquires. This was done on request from Quincy.

* Update docs/flight-manuals/moderator-handbook.md

Co-authored-by: Nicholas Carrigan <nhcarrigan@gmail.com>

Co-authored-by: Nicholas Carrigan <nhcarrigan@gmail.com>
2020-09-16 11:49:08 +05:30
Randell Dawson 876d9f3994
fix(learn): Consolidated comments for Coding Interview Prep challenges - part 2 of 2 (#39576)
* fix: consolidate comments for use with the translation dictionary

* fix: added blank line between comments

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>

* fix: removed unneeded comment

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2020-09-16 01:01:21 +05:30
Randell Dawson 8788ad946b
fix: remove Good luck! comment from challenge seed code (#39575) 2020-09-15 22:27:40 +05:30
Randell Dawson a2f4c8d0e1
fix: consolidated comments for use with translation dictionary (#39578) 2020-09-15 22:23:25 +05:30
Randell Dawson 104f359902
consolidated comments for use in translation dictionary (#39577) 2020-09-15 12:37:50 -04:00
Kristofer Koishigawa c11bf0d02e
fix(curriculum): restrictive test for use map to dynamically render challenge (#39581) 2020-09-15 08:23:48 -07:00
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
Tom d765fa704b
fix(learn): size your images challenge (#39570)
* fix: size your images challenge

* fix: remove console log
2020-09-14 14:09:01 +01:00
Twaha Rahman 40a190318b
fix(tests): run e2e tests on Chrome and Firefox (#39568)
* Add scripts for Cypress to run on other browsers

* Run Cypress on different browsers in workflow

* Install Brave and run it in Cypress

* Run Cypress on only CHrome and FIrefox

* Revert Cypress plugin
2020-09-14 12:37:00 +05:30
Aleksa S. Stevic 5cb609dc5c
Changed "statement" to "expression" (#39564)
The ternary operator doesn't allow statements, just expressions.
2020-09-12 10:37:59 +02:00
Tom ae6cf5b724
fix: update instructions to be consistent (#39557)
* fix: update instructions to be consistent

* fix: change to use code tags instead of backticks
2020-09-11 19:03:18 -04:00
Randell Dawson c345bc9886
fix: removed scrimba video links that do not reflect current challenge (#39559) 2020-09-11 11:17:50 -05:00
Lasse Jørgensen 2743ac2e84
fix(challenge): update variable names, assign empty array, update solution code, remove "use strict" (#39525)
* fix(challenge): update variable names, assign empty array, update solution code, remove "use strict"

* fix(challenge): update solution code

* fix:(challenge) update instructions and variable name

* fix:(challenge) update instructions
2020-09-09 19:58:27 -05:00
Siddharth Pathak 5418307936
fix(learn): add whitespace check to else-if test (#39555) 2020-09-09 20:30:33 +01:00
Randell Dawson 0f5832b562
fix: project 25 + 5 (#39526) 2020-09-09 13:28:12 +05:30
Tom b79a332984
fix: remove scrimba link for inaccurate video (#39545) 2020-09-08 13:09:53 -07:00
Oliver Eyton-Williams c55e1a7464 refactor: remove redundan '&& cd ../' from scripts 2020-09-09 01:00:43 +05:30
Oliver Eyton-Williams 4e018802e1 docs: add verbose output script to contribute docs 2020-09-09 01:00:43 +05:30
Oliver Eyton-Williams bd22836d18 fix: add verbose output script to root 2020-09-09 01:00:43 +05:30
Oliver Eyton-Williams 189b9081ca feat: add script reporting more errors 2020-09-09 01:00:43 +05:30
Oliver Eyton-Williams e9bd88d245 fix: make all unhandled errors fail tests 2020-09-09 01:00:43 +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