Commit Graph

117 Commits

Author SHA1 Message Date
dependabot[bot]
cce1355efa chore(deps): bump gatsby-plugin-postcss from 2.3.12 to 2.3.13 in /client
Bumps [gatsby-plugin-postcss](https://github.com/gatsbyjs/gatsby/tree/HEAD/packages/gatsby-plugin-postcss) from 2.3.12 to 2.3.13.
- [Release notes](https://github.com/gatsbyjs/gatsby/releases)
- [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-postcss/CHANGELOG.md)
- [Commits](https://github.com/gatsbyjs/gatsby/commits/gatsby-plugin-postcss@2.3.13/packages/gatsby-plugin-postcss)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-11 20:16:31 +00:00
dependabot[bot]
221a822009 chore(deps): bump axios from 0.19.2 to 0.20.0 in /client
Bumps [axios](https://github.com/axios/axios) from 0.19.2 to 0.20.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.19.2...v0.20.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-11 20:12:28 +00:00
dependabot[bot]
20867256fb chore(deps-dev): bump autoprefixer from 9.7.6 to 9.8.6 in /client
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 9.7.6 to 9.8.6.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/postcss/autoprefixer/compare/9.7.6...9.8.6)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-11 19:37:11 +00:00
dependabot[bot]
82b028542f chore(deps): bump prismjs from 1.21.0 to 1.22.0 in /client
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.21.0 to 1.22.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.21.0...v1.22.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-11 19:28:59 +00:00
dependabot[bot]
551f0ca6c7 chore(deps): bump typescript from 3.8.3 to 4.0.3 in /client
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.8.3 to 4.0.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.8.3...v4.0.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-11 17:50:17 +00:00
dependabot[bot]
4f520a2144 chore(deps): bump sanitize-html from 1.27.4 to 2.1.0 in /client
Bumps [sanitize-html](https://github.com/apostrophecms/sanitize-html) from 1.27.4 to 2.1.0.
- [Release notes](https://github.com/apostrophecms/sanitize-html/releases)
- [Changelog](https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apostrophecms/sanitize-html/compare/1.27.4...2.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-10 18:25:34 +00:00
dependabot[bot]
e9bfd68ec7 chore(deps): bump react-helmet from 5.2.1 to 6.1.0 in /client
Bumps [react-helmet](https://github.com/nfl/react-helmet) from 5.2.1 to 6.1.0.
- [Release notes](https://github.com/nfl/react-helmet/releases)
- [Changelog](https://github.com/nfl/react-helmet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nfl/react-helmet/commits/6.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-10 18:22:27 +00:00
dependabot[bot]
c3acbc8692 chore(deps): bump @fortawesome/react-fontawesome in /client
Bumps [@fortawesome/react-fontawesome](https://github.com/FortAwesome/react-fontawesome) from 0.1.9 to 0.1.11.
- [Release notes](https://github.com/FortAwesome/react-fontawesome/releases)
- [Changelog](https://github.com/FortAwesome/react-fontawesome/blob/master/CHANGELOG.md)
- [Commits](https://github.com/FortAwesome/react-fontawesome/compare/0.1.9...0.1.11)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-10 17:18:12 +00:00
Mrugesh Mohapatra
b80f4da09d chore(deps): update packages on client 2020-10-10 21:54:43 +05:30
Ahmad Abdolsaheb
1a66eac990 feat: render nav conditionally 2020-09-24 17:48:29 +05:30
Oliver Eyton-Williams
5528823151 fix(client): add polyfill explicitly
Previously it was only present because of a chain of dependencies
2020-09-24 16:29:55 +05:30
Oliver Eyton-Williams
410ab87c61 fix(client): use new Gatsby --inspect 2020-09-24 16:29:55 +05:30
Mrugesh Mohapatra
806cadfd91 chore:(deps): client - update minor and patch 2020-09-24 16:29:55 +05:30
Oliver Eyton-Williams
3ea251383f fix: use loadable MonacoEditor 2020-09-16 11:54:10 +05:30
Oliver Eyton-Williams
a0f43c93ba chore: update react-monaco-editor 2020-09-16 11:54:03 +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
Mrugesh Mohapatra
adef746299 chore: move search-indexing, supress webpack-cli progress (#39367) 2020-08-09 04:17:10 +05:30
Oliver Eyton-Williams
c285ce5a0c chore: bump loadash and remove gulp (#39276) 2020-07-18 00:34:48 +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
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
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
Mrugesh Mohapatra
e3ee7eef3a chore(client): bump minor & patch versions of deps 2020-05-11 22:53:55 +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
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
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
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
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