Commit Graph

63 Commits (b9d08f2fea67a13524e47ba6b939f09dff4356e2)

Author SHA1 Message Date
Ahmad Abdolsaheb b623c340a9
feat(client): add google pay (#43117)
* feat: initial button setup client

* feat: rename walletsButton to .tsx

* chore: typescriptize wallet component

* chore: re-add keys to config, env, etc + check in gatsby-node

* feat: refactor donate form and wallet component

* feat(client): set labels correctly

* chore: add stripe package back to server

* chore: add stripe back to allowed paths

* chore: copy donate.js code from PR #41924

* feat: attempt to make back end work

* feat: make redux work

* feat: clean up

* feat: hokify

* feat: add error handling

* fix: back-end should be working

* fix: type errors

* fix: clean up back-end

* feat:addd styles

* feat: connect the client to the api

* feat: display wallets button everywhere

* test: add stripe key for cypress action

* test: fix for cypress tests

* test: cypress tests again

* test: maybe?

* test: more

* test: more

* test: more

* test

* askdfjasklfj

* fix: tests finally?

* revert: remove space from cypress yaml action

* remove logs

Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-08-08 23:22:25 +03:00
Oliver Eyton-Williams e118dda13a
fix: order imports and remove circular dependencies (#41824)
* fix: remove circular dependency

redux depended on templates/Challenges/redux and vice versa.  This
meant that import order mattered and confusing bugs could arise.

(cherry picked from commit 7d67a4e70922bbb3051f2f9982dcc69e240d43dc)

* feat: require imports to be in alphabetical order

Import order generally does not matter, but there are edge cases
(circular  imports and css imports, for example) where changing order
changes behaviour

(cherry picked from commit b8d1393a91ec6e068caf8e8498a5c95df68c2b2c)

* chore: order imports

* fix: lift up challenge description + title comps

This brings the classic Show closer to the others as they
now all create the description and title components

* fix: remove donation-saga/index circular import

(cherry picked from commit 51a44ca668a700786d2744feffeae4fdba5fd207)

* refactor: extract action-types from settings

(cherry picked from commit 25e26124d691c84a0d0827d41dafb761c686fadd)

* fix: lint errors

* feat: prevent useless renames
2021-08-02 08:39:40 -05:00
Renovate Bot d9cd7687ba chore(deps): update dependency debug to v4.3.2 2021-07-04 07:05:29 +00:00
Ikko Ashimine 87ea2772f8
fix: typo in build-curriculum.js (#42533) 2021-06-16 15:27:23 +00:00
Oliver Eyton-Williams 3875c6e619
fix: use env.json in both client and server (#42359) 2021-06-08 13:12:44 +01:00
renovate[bot] 00e5440882
chore(deps): update dependency dotenv to v10 (#42306)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-04 13:08:21 +02:00
Oliver Eyton-Williams 1c1d86922c
refactor: simplify jest config (#42136)
* refactor: bring api jest tests to root

* refactor: pull client tests to root

* fix: remove ancient curriculum babelrc

* feat: run all jest tests at once

* fix: remove unused babelrcRoot

* chore: remove more jests
2021-05-16 18:08:04 +05:30
Renovate Bot 965fc8240d chore(deps): update dependency dotenv to v9.0.2 2021-05-10 22:13:17 +00:00
Renovate Bot 91a6690634 chore(deps): update dependency dotenv to v9.0.1 2021-05-09 08:23:55 +00:00
Renovate Bot 1586c7b454 chore(deps): update dependency jest to v26.6.3 2021-05-06 23:25:27 +00:00
renovate[bot] 955e6eea9d
chore(deps): update dependency lodash to 4.17.21 [security] (#42032)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-06 20:24:21 +02:00
renovate[bot] 050afb4bb0
chore(deps): update dependency dotenv to v9 (#42018)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-06 21:24:33 +05:30
Renovate Bot 69d47cd5bc chore(deps): update dependency dotenv to v8.6.0 2021-05-06 09:37:16 +00:00
Renovate Bot 06b90baa59 chore(deps): update dependency dotenv to v8.5.1 2021-05-05 11:14:39 +00:00
Ahmad Abdolsaheb 27c8d564e4
fix(client): replace Stripe with PayPal (#41924)
* feat: remove stripe payment option from client

* feat: remove stripe completely

* fix: remove last Stripe remnants

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-05-03 11:45:23 +03:00
renovate[bot] 5eacd3912b
chore(deps): update dependency dotenv to v8 (#41690)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-20 17:21:45 +02:00
renovate[bot] 5dddfc5b7c
chore(deps): update dependency y18n [security] (#41657)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-30 11:13:57 +02:00
renovate[bot] 87684ad630
chore(deps): update dependency debug to v4.3.1 (#41622)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-29 19:04:29 +05:30
renovate[bot] 08114292c3
fix(deps): pin dependencies (#41589)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-27 20:57:57 +05:30
Mrugesh Mohapatra 42365dd172
fix: update package files, lerna config (#41599)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-03-27 07:46:20 -07:00
renovate[bot] 8df5293af3
chore(deps): update dependency node-notifier to 8.0.1 [security] (#41592)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-27 11:18:32 +05:30
renovate[bot] b7bfacc114
chore(deps): update dependency yargs-parser to 5.0.0-security.0 [security] (#41588)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-26 15:57:29 +05:30
Mrugesh Mohapatra 0a53a1d7f0 chore(deps): upgrade lerna to v4 2021-03-11 12:19:42 +05:30
Oliver Eyton-Williams df4c075103 fix(scripts): move to lockfile v2 2021-02-27 03:25:51 +05:30
Mrugesh Mohapatra b5f4754e2a
fix: re-revert the API decoupling (#41263)
* fix(api): decouple api from curriculum

This reverts commit 8f0e441644 and
introduces the implementations from #40703.

* fix(gitpod): add curriculum build to GitPod

This reverts commit 706d70f58d and
introduces implementations from #41234.

* docs: update DevOps manual for api change (#41259)

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-02-25 12:02:35 -08:00
Mrugesh Mohapatra 8f0e441644 revert(api): decouple api from curriculum
This reverts commit c077ffe4b9
via PR #40703
2021-02-25 03:40:09 +05:30
Oliver Eyton-Williams c077ffe4b9
feat(api): decouple api from curriculum (#40703) 2021-02-22 12:23:59 +05:30
Oliver Eyton-Williams fffc0e51ec
chore(client): refactor & organise config (#40875) 2021-02-03 15:22:07 +05:30
Mrugesh Mohapatra 6a09b9bce2 fix(client): refactor dynamic URLs based on lang (#40824) 2021-01-31 12:15:41 +05:30
Mrugesh Mohapatra 0b944ddfde fix(env): update variable validations (#40813) 2021-01-31 12:15:40 +05:30
Nicholas Carrigan (he/him) 59173b346a fix(tools): Validate `curriculum_locale` (#40572)
Adds validation for the `CURRICULUM_LOCALE`
environment variable in the same way the
`CLIENT_LOCALE` value is validated.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-31 12:15:35 +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
Oliver Eyton-Williams ebb4e0d5cc
fix: default to .env (#40315) 2020-11-25 23:15:59 +05:30
Oliver Eyton-Williams 61ba415717
fix: tighten up ensure-env and env.js (#39694) 2020-09-26 00:40:17 +05:30
Oliver Eyton-Williams 4f68cc3126
fix: update env validation and include newest var (#39661) 2020-09-24 20:04:27 +05:30
Oliver Eyton-Williams f6f5603a88 chore: prevent builds when vars are missing 2020-09-04 00:14:24 +05:30
Oliver Eyton-Williams 40acb604d2 fix: remove migration seed and unused import 2020-09-01 11:35:44 +05:30
Oliver Eyton-Williams 1ad5f756e0 fix(api): remove redirects from api
They should be handled either by nginx or by the client. Turned out a
lot of code, including the path migration, existed to support them.
Hence the large number of removals
2020-09-01 11:35:44 +05:30
Mrugesh Mohapatra 33de8a03b5
fix: remove all extraneous env vars (#39443) 2020-08-21 03:59:27 +05:30
Oliver Eyton-Williams 4a1d5e9b05 chore: bump build 2020-08-04 03:50:20 +05:30
Kristofer Koishigawa 77df0e32cd
feat(learn): rename certificates, cert slugs, and cert flags (#39026) 2020-06-15 21:51:30 +05:30
Beau Carnes 256ed00fb9 feat(learn): split InforSec and QA into individual certs (#38347)
Co-authored-by: Mrugesh Mohapatra <me@raisedadead.com>
Co-authored-by: Kris Koishigawa <scissorsneedfoodtoo@gmail.com>
2020-05-27 13:19:12 +05:30
Mrugesh Mohapatra 13b248d464 chore: npm audit fix in all packages 2020-04-07 14:24:34 +05:30
Oliver Eyton-Williams 23b899f50f fix(csrf): remove all csrf bypass 2020-03-17 23:28:23 +05:30
Oliver Eyton-Williams 35578720e5 chore: update build 2020-03-17 11:09:12 +05:30
Josh Soref 004b99bf8f chore: fix typos in spelling (#38100)
* spelling: accidentally

* spelling: announce

* spelling: assembly

* spelling: avoid

* spelling: backend

* spelling: because

* spelling: claimed

* spelling: candidate

* spelling: certification

* spelling: certified

* spelling: challenge

* spelling: circular

* spelling: it isn't

* spelling: coins

* spelling: combination

* spelling: compliant

* spelling: containers

* spelling: concise

* spelling: deprecated

* spelling: development

* spelling: donor

* spelling: error

* spelling: everything

* spelling: exceed

* spelling: exist

* spelling: falsy

* spelling: faulty

* spelling: forward

* spelling: handle

* spelling: indicates

* spelling: initial

* spelling: integers

* spelling: issealed

* spelling: javascript

* spelling: length

* spelling: maximum

* spelling: minimum

* spelling: mutable

* spelling: notifier

* spelling: coordinate

* spelling: passport

* spelling: perform

* spelling: permuter

* spelling: placeholder

* spelling: progressively

* spelling: semantic

* spelling: submission

* spelling: submit

* spelling: translations

* spelling: turquoise

* spelling: visualization

* spelling: without

* spelling: registration

* spelling: representation
2020-02-08 23:59:10 +05:30
dependabot[bot] 6756c06fcd chore(deps): bump handlebars from 4.1.2 to 4.5.3 (#37987)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.5.3.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.1.2...v4.5.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: null <49699333+dependabot[bot]@users.noreply.github.com>
2019-12-27 22:15:58 +05:30
Mrugesh Mohapatra 0f5b9f8764 fix(client): temporary redirect for donation settings 2019-12-10 17:55:57 +01:00
mrugesh 6db5292521
fix: update to forced redirects (#37337) 2019-10-16 17:17:57 +05:30
mrugesh 21df53afd0
fix(redirects): update domain redirects (#37306) 2019-10-15 18:32:35 +05:30