Commit Graph

90 Commits (0ffc657d5fa045300fe2493053f541285507c773)

Author SHA1 Message Date
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
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
Ahmad Abdolsaheb 6c6eadfbe4 feat(donate): PayPal integration 2020-03-16 18:35:51 +05:30
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 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 e5abfa15ad Revert "fix: stop user code after 100ms of execution" (#37965)
This reverts commit 01b37f664f.
2019-12-21 11:09:32 +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
mrugesh 1b61bceee7
feat(client): completion modal progress bar (#37836)
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2019-11-26 22:14:44 +05:30
Ahmad Abdolsaheb 1d73575a59
Revert "feat(client): completion modal progress bar (#37775)" (#37835)
This reverts commit a8928739dd.
2019-11-26 18:30:08 +03:00
Tom a8928739dd feat(client): completion modal progress bar (#37775)
* feat: add progress bar to completion modal

* feat: add stuff

* feat: finalize-layout-and-make-responsive

* feat: add feature to all challenge templates

* git test

* fix: remove challenge title + enlarge top message

* fix: move graphql query to completion modal

* fix: remove some previous additions

* fix: optimize functions

* fix: removed isRequired flag

* feat: add animation

* feat: add interval to state + clear on unmount

* fix: change around interval function

* feat: make bar fill non-linearly

* Update client/src/templates/Challenges/components/CompletionModal.js

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

* Update client/src/templates/Challenges/components/CompletionModal.js

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

* Update client/src/templates/Challenges/components/CompletionModal.js

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

* Update client/src/templates/Challenges/redux/index.js

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

* Update client/src/templates/Challenges/redux/index.js

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

* Update client/src/templates/Challenges/redux/index.js

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

* Update client/src/templates/Challenges/redux/index.js

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

* Update client/src/templates/Challenges/components/CompletionModalBody.js

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

* Update client/src/templates/Challenges/components/CompletionModalBody.js

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

* Update client/src/templates/Challenges/components/CompletionModalBody.js

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

* fix: remove bracket

* fix: tweak animation + change to pure component

* fix: remove comment

* Update client/src/templates/Challenges/components/CompletionModalBody.js

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

* Update client/src/templates/Challenges/components/CompletionModalBody.js

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

* fix: remove animateProgress

* feat: add tests for progress bar

* feat: add working tests

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

* fix: add formatting

* fix: use content selectors where possible

* fix: make progress bar show 0 for unauthed users
2019-11-26 18:15:59 +03:00
Abdelrahman Ashraf 94532f98db refactor(tests): enzyme => react-testing-library (#37712)
* refactor: 💡 rewrite enzyme tests in react-testing-library

* fix: 🐛 remove enzyme imports from frame-runner.js

* chore: 🤖 install and add enzyme imports to frame-runner.js back
2019-11-08 16:50:25 +05:30
lasjorg 4a478b550f chore: update monaco-editor, react-monaco-editor (#37445) 2019-10-22 01:09:21 +05:30
Ahmad Abdolsaheb 78b6fd1adf fix: load stripe conditionally (#37365) 2019-10-17 18:21:01 +05:30
Mrugesh Mohapatra 1eb41c33b3 chore: update client deps 2019-10-17 18:20:33 +05:30
Ahmad Abdolsaheb 09eebd8598 fix: save the fonts locally 2019-10-16 19:29:48 +09:00
Ahmad Abdolsaheb e6d55fd086 feat: add fonts locally 2019-10-14 20:31:58 +09:00
mrugesh cc3c9a8fa2
chore: update meta, caching and headers (#37159) 2019-10-09 14:23:41 -07:00
Ahmad Abdolsaheb 6ed3426128 fix: remove scrolling (#37098) 2019-10-08 02:00:08 -07:00
Oliver Eyton-Williams 1130a1c0df
chore: update to beta of react-instantsearch-dom (#36843)
* chore: update to beta of react-instantsearch-dom

* feat: use .env variables for search keys
2019-10-04 18:03:20 +02:00
Ahmad Abdolsaheb 203ca92a20 feat: improve landing page (#36826)
* feat/ add smooth scroll from landing to map

* feat: scroll to currentChallengeId if it exist

* fix: update tests

* refactor: migrate from componentWillMount

* fix: update Map and Block's tests and mocks


Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2019-10-04 08:32:35 -07:00
Oliver Eyton-Williams cd3ef998a6 fix: rollback react-hotkeys and remove buttons 2019-09-24 22:22:14 +05:30
Oliver Eyton-Williams c91393d737 feat: use local HotKeys and allow editor escape
GlobalHotKeys were abandoned, because they were capturing events that
had called stopPropagation.  This meant that something needed to be in
focus, hence passing a ref of the HotKey DOM element to the Editor.

react-hotkeys has been updated to 2.0.0-pre9, because 2.0.0 captured
ctrl keypresses when asked for ctrl+enter

Currently only classic challenges can be executed by hotkey, but all
allow hotkey navigation
2019-09-24 22:22:14 +05:30
Oliver Eyton-Williams a19ceeffe2 feat: add navigation hotkeys 2019-09-24 22:22:14 +05:30
Valeriy 4ef44a4621 chore(client): update monaco-editor 2019-09-04 18:56:06 +05:30
Valeriy d85425fd1b feat(client): use React Final Form instead of Redux Form (#36742) 2019-09-04 18:18:58 +05:30
Ahmad Abdolsaheb 31e3d9b27e feat: commandline chic 2019-08-20 13:37:11 +05:30
mrugesh 5f97782eb0
fix: add identicon natively (#36633) 2019-08-19 19:17:53 +05:30
Mrugesh Mohapatra a00f9c5810 fix: update client dependencies 2019-08-18 15:43:25 +05:30
Valeriy S 052769e69f chore(client): update gatsby 2019-08-17 18:35:21 +05:30
mrugesh 91ad464020
Revert "feat: add bootcamp cost calc guide (#35278)" (#36614)
This reverts commit 869f5edfc5.
2019-08-17 16:31:29 +05:30
Ron Sogueco 869f5edfc5 feat: add bootcamp cost calc guide (#35278)
* feat: add bootcamp cost calc guide

* feat: use ReactJS portals

* feat: fix eslint errors

* feat: update with change requests

* feat: update package-lock.json
2019-08-16 23:57:36 -05:00
Mrugesh Mohapatra ae80f96ec3 fix(client): remove service workers 2019-08-14 19:23:27 +05:30
Mrugesh Mohapatra 8980528009 chore(client): update dependencies except gatsby 2019-07-22 17:10:54 +05:30
Mrugesh Mohapatra c112fe6a20 chore(client): update all dependencies to latest 2019-06-21 19:56:20 +05:30
Mrugesh Mohapatra c5fd478d9a fix(deploy): misc. re-arrange scripts and organize 2019-06-21 00:53:05 +05:30
Mrugesh Mohapatra 9c324f103f chore: update client dependencies 2019-06-16 23:33:51 +05:30
Mrugesh Mohapatra 91adc43bcd fix(tools): rearrange scripts and graceful exit 2019-06-16 00:23:41 +05:30
dependabot[bot] 9e82ae87b6 chore: bump jquery from 3.3.1 to 3.4.0 in /client
Bumps [jquery](https://github.com/jquery/jquery) from 3.3.1 to 3.4.0.
- [Release notes](https://github.com/jquery/jquery/releases)
- [Commits](https://github.com/jquery/jquery/compare/3.3.1...3.4.0)

Signed-off-by: dependabot[bot] <support@github.com>
2019-06-12 23:00:21 +05:30
ValeraS 08403ca561 chore(client): update redux-saga 2019-06-12 02:49:29 +05:30
ValeraS ec1b51debb chore(client): update gatsby 2019-06-12 02:49:28 +05:30
ValeraS 01ddc7c9a2 chore(client): update react-testing-library 2019-06-12 02:49:28 +05:30
Tom 397ff21390 fix(client): add tooltip for calendar-heatmap (#36008) 2019-06-11 16:43:46 +03:00
kozlovvski d6a6504f74 chore(tools): updated jest in packages
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2019-06-11 19:06:57 +05:30
Oliver Eyton-Williams 60dd7ca703 fix: Change test output formatting from code to html (#35857) 2019-06-09 05:28:10 +05:30
Hemakshi Sachdev b1956a7ba1 fix: flash modals stack up and are not visible until scrolled to top (#35808)
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2019-06-09 05:25:54 +05:30
Valeriy 3552fd392a fix: make search working 2019-06-08 03:16:28 +05:30
Valeriy 4f1fdfdd14 chore(tools): update docker setup to use npm ci 2019-05-02 01:01:00 -07:00
Valeriy fbf5439248 chore: update packages 2019-05-02 01:01:00 -07:00
Mrugesh Mohapatra cbaea46504 fix: rollback gatsby-remark-prismjs & more updates 2019-05-02 01:01:00 -07:00