Commit Graph

56 Commits

Author SHA1 Message Date
Kristofer Koishigawa
1e9dc8cea5 fix: remove algolia indices and urls from translations (#41043) 2021-02-11 00:11:51 +05:30
Oliver Eyton-Williams
fffc0e51ec chore(client): refactor & organise config (#40875) 2021-02-03 15:22:07 +05:30
Tom
14ca6beb0a fix: naming scheme for messages in translation files (#40642)
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2021-01-31 12:15:38 +05:30
Tom
072a7ce6c6 feat(i18n): translate server messages (#40626) 2021-01-31 12:15:38 +05:30
Tom
3978c6be28 feat: i18n user interface (#40306)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-01-31 12:15:32 +05:30
Erik Krogh Kristensen
11dfe9274f fix catastrophic backtracking when removing HTML comments (#40223)
* fix catastrophic backtracking when removing HTML comments

The regexp `/<!--(.|\s)*?-->/g` can experience catastrophic backtracking while matching a string like `<!--                                           -- >` (notice how it does not end with `-->`).    

[You can see the catastrophic backtracking in action here](https://regex101.com/r/2jvwFi/1/debugger). 

This is because both `.` and `\s` matches the space character, and there are therefore a large number of possible ways for `(.|\s)*` to match a long sequence of spaces.  
The regexp evaluator is greedy, and the problem therefore only exists when the string does not match the regexp. 

The fix is simply to remove the ambiguity such that there is only one possible way for the regexp to match a sequence of white-space.

* Update client/src/utils/curriculum-helpers.js

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

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-11-12 08:20:34 -08:00
Ahmad Abdolsaheb
3106fe804f fix(client): unify client donations methods (#39562)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-10-14 15:53:26 +05:30
Hassaan Pasha
80438cac3e feat(client, learn): add helper functions for common validation operations (#38605)
Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
2020-09-17 19:38:01 +05:30
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
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
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
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
Oliver Eyton-Williams
35751bacf0 chore: remove rollbar from client and .env 2020-03-26 16:51:17 +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
Oliver Eyton-Williams
23b899f50f fix(csrf): remove all csrf bypass 2020-03-17 23:28:23 +05:30
Ahmad Abdolsaheb
6c6eadfbe4 feat(donate): PayPal integration 2020-03-16 18:35:51 +05:30
mrugesh
059e826465 fix: remove all year-end gift implementation (#38030) 2020-01-09 02:37:50 +05:30
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
Mrugesh Mohapatra
663f726c4e fix(donate): allow unauthenticated donations for year-end 2019-12-18 04:21:57 +05:30
Oliver Eyton-Williams
d40be9cbf2 fix: use util.inspect for more reliable logging (#37880)
The tests are probably overkill, but this way we will know if
util.inspect changes dramatically.
2019-12-06 08:37:10 -08:00
Mrugesh Mohapatra
aeec1bb9e6 feat(donate): integrate servicebot 2019-11-19 23:09:53 +05:30
Mrugesh Mohapatra
ef0a801c90 feat(donate): remove unauthenticated routes 2019-11-19 22:28:05 +05:30
Kristofer Koishigawa
77b27d79f6 fix: conditionally load MathJax (#37360)
* fix: Removed MathJax CDN from header and set it up to download whenever a user goes to a Rosetta Code challenge

* Reworked slightly so that MathJax CDN script is only rendered once

* Simplified further

* Resolved conflicts and updated MathJax fallback to work like the one on donate.js

* Escaped backticks in scriptLoaders.js

* refactor: remove reliance on state
2019-10-30 15:46:39 +03:00
Mrugesh Mohapatra
368aa688fa fix(client): call donate api withCredentials 2019-10-20 16:29:56 +05:30
Ahmad Abdolsaheb
78b6fd1adf fix: load stripe conditionally (#37365) 2019-10-17 18:21:01 +05:30
Oliver Eyton-Williams
4896e45eea fix: remove Gatsby proxy (#37364)
Direct ajax calls to the server directly, rather than a proxy to reduce
redirects while still allowing the server to be used in development.
2019-10-17 18:20:02 +05:30
Kristofer Koishigawa
3cd0bf0106 fix: temporarily remove rollbar (#37333)
* fix: Temporarily remove rollbar

* Reverting changes to api-server
2019-10-16 12:20:56 +05:30
Ahmad Abdolsaheb
9ff7bf5801 feat: simplify landing page 2019-09-04 18:23:21 +05:30
Valeriy
469c3f05c2 feat: use static query to get idToNameMap (#36722) 2019-08-30 22:37:28 +05:30
Mrugesh Mohapatra
56d78a1119 fix(server,client): CORS is a real nightmare 2019-08-17 17:01:10 +05:30
Ahmad Abdolsaheb
bc099d4971 fix: add cert claim logic for legacy cert 2019-06-11 16:19:32 +05:30
Ahmad Abdolsaheb
4558caf328 fix: make legacy certification saga call api and update db 2019-06-11 16:19:30 +05:30
Hemakshi Sachdev
05f8c2bd5c feat: added danger-zone-saga.js 2019-02-26 22:57:13 +05:30
Bouncey
c0104faa38 fix(ci): Fix lint errors thrown in CI 2019-02-19 14:30:27 +05:30
Bouncey
ca298e9bde fix: Revert to relative ajax urls 2019-02-16 12:27:23 +05:30
Bouncey
463a83b459 fix: Do not use relative api locations 2019-02-15 14:49:53 +00:00
Mrugesh Mohapatra
f9c4d2426c fix: remove unwanted stuff 2019-01-16 13:48:38 +00:00
Mrugesh Mohapatra
fdc2219f81 feat: remove news from platform 2019-01-16 13:48:38 +00:00
Bouncey
f66e59e20c fix: Use built-ins to format numbers 2018-12-04 17:42:12 +05:30
Bouncey
4a9d22cee0 feat: Comma separate active donations number 2018-12-04 17:42:12 +05:30
Stuart Taylor
d327a5c36b Feat: News in the client app (#34392) 2018-11-29 15:12:15 +03:00
Bouncey
987da19254 feat(profile): Add Profile and components 2018-11-13 05:39:50 +05:30
Bouncey
3da2a3eea9 fix(updates): Fix learn -> server communication 2018-09-30 12:42:40 +01:00
Bouncey
87837f480d feat(certs): Claim Certs 2018-09-25 13:18:17 +01:00
Bouncey
ef0428b396 feat(portfolio): Add portfolio settings 2018-09-21 11:26:30 +01:00
Bouncey
9f4430eced feat(settings): Internet Settings 2018-09-21 11:26:30 +01:00
Bouncey
2de2143457 feat(email-settings): Add email settings 2018-09-21 11:26:30 +01:00
Bouncey
3a98e3cfa3 feat(privacy): Add privacy settings 2018-09-21 11:26:30 +01:00
Bouncey
c7a4b5b50f feat(theme): Add theme updating functionality 2018-09-14 16:22:44 +01:00
Bouncey
a41ef09932 feat(about): Submit new 'about' settings 2018-09-14 16:22:44 +01:00