Commit Graph

231 Commits (3b2be48dea06583b433c6cc3dac53e72112f7c59)

Author SHA1 Message Date
Nicholas Carrigan (he/him) fd11361fc8
fix(client): update navbar for Chinese Simplified and Traditional (#42007)
* fix: navbar bug

Should resolve the current bug on staging with the nav bar.

* fix: update display names

Update the display names for the two Chinese options.

* fix(tools): remove extraneous test

Docs do not indicate that language code needs to be 2 characters.
2021-05-06 01:44:25 +05:30
Nicholas Carrigan e46e80e08f feat(client): add chinese traditional
Add chinese traditional to the all-langs validation and necessary
client build configs.
2021-05-05 21:06:54 +05:30
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
Shaun Hamilton d3f59e6d5d
fix(dev): rename superBlock with v7 to certSlug (#41738)
* fix(dev): rename superBlock with v7 to slug

* improve name slug -> certSlug

* superBlockTitle -> superBlock

* correct teeny, tiny mistake

* fix: correct slug to certSlug in certLocation

* refactor currentCerts

* rename showCert cert -> certSlug and various
2021-04-23 22:29:17 +03:00
Oliver Eyton-Williams 5d46e2830a
feat: add Docker build (#41187)
* feat(docker): build and use client and api images

* feat: always use .env

dotenv fails without throwing if the .env file is missing and never
overwrites variables if they already exist. As such, we can use it in
build pipelines.

* fix: remove quotes from env vars

dotenv normalises quoted and unquoted strings (X=x, X='x' and
X="x") all become the same .env object {X: 'x'}. However, Docker's
env_file does not (the three cases are distinct).  As a result, we
should use unquoted strings for consistency.

* fix: provide custom warning when .env is missing

* feat(docker): include client-config

* fix(docker): remove build packages from api image

* fix(docker): run script from correct dir

* fix(docker): correct permissions and dests

* fix(docker): consolidate run steps

This is standard practice, but did not have a noticable affect on the
image size

* fix(docker): clean the npm cache

Prior to this step the image was 1.11GB uncompressed and we got a modest
saving, 1.09GB after.

* refactor(docker): regexless COPY directives

* feat(docker): use alpine

This shrinks the image down to 259MB

* fix(docker): update build scripts

* fix: correct the server Dockerfile RUNs

* DEBUG: expose mysql port for seeding

* chore: update client Dockerfile's node versions

* fix: remove executable permissions from index.js

It's not a cli, so I don't think it needs to be executable.

* chore: update node and remove stale comments

* feat: use ENTRYPOINT + CMD to allow runtime config

* fix: add CURRICULUM_LOCALE arg

* feat: allow client port configuration

* feat: allow api port to be configured

* refactor: use unique variable names for ports

* fix: add default CLIENT_PORT

* refactor: clean up
2021-04-20 19:29:31 +05:30
Ahmad Abdolsaheb 9d15b43415
feat: isolate production and staging analytics (#41648)
* feat: isolate production analytics

Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2021-03-30 06:45:54 -07:00
Mrugesh Mohapatra 6c91f81b0e chore(deps): upgrade eslint, prettier & related packages 2021-03-11 12:19:42 +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
Ahmad Abdolsaheb 3bf52faeaa
fix: dry certification config (#40927)
* fix: move cert config to config

* fix: move gitHubUserAgent to misc

* feat: rename maps

* feat: relocate oldDataVizId

* fix: correct path for gitHubUserAgent

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-02-22 20:38:38 -08:00
Oliver Eyton-Williams c077ffe4b9
feat(api): decouple api from curriculum (#40703) 2021-02-22 12:23:59 +05:30
Randell Dawson 99d0763550
fix: only download chinese and spanish docs (#41114) 2021-02-14 11:48:20 -08:00
Mrugesh Mohapatra 149cf95310
chore(crowdin): re-arrange crowdin config files (#41046) 2021-02-10 11:06:13 -07:00
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) 58c6c54c67 feat(client): redesigned navigation (#40709)
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
2021-01-31 12:15:40 +05:30
Mrugesh Mohapatra 77c46dba2c fix(i18n): redirect based on Referer header (#40512)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-01-31 12:15:34 +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 24f57ca7c2
fix: ignore .env in pipelines (#40327) 2020-11-27 09:32:50 -06:00
Oliver Eyton-Williams ebb4e0d5cc
fix: default to .env (#40315) 2020-11-25 23:15:59 +05:30
Ahmad Abdolsaheb 00849387c0
feat: remove all donation options on /donate but $5 (#40309) 2020-11-24 21:00:12 -06:00
Ahmad Abdolsaheb ca369b8585
feat: update donation plans on donate page. (#40102)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-11-06 17:00:14 +05:30
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
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
Ahmad Abdolsaheb 1a66eac990 feat: render nav conditionally 2020-09-24 17:48:29 +05:30
Ahmad Abdolsaheb 9b1077acf5 fix: render editor tabs if SHOW_UPCOMING_CHANGES is 'true' (#39513) 2020-09-16 11:54:13 +05:30
Mrugesh Mohapatra c23c4ef8e4
fix: negative sentiment → neutral language (#39522)
The existing terminology carries negative sentiment that can be
interpreted in a racial or sense. Updating the name to have no
potential for such a connection.

Co-authored-by: Justin Rogers <justrog@gmail.com>
2020-09-07 11:04:44 +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
Mrugesh Mohapatra 33de8a03b5
fix: remove all extraneous env vars (#39443) 2020-08-21 03:59:27 +05:30
Twaha Rahman 7155c87e8b
fix: prevent dev tools from accessing state in prod (#38669)
* Fixed Redux dev tool plugin in production problem

* Update client/src/redux/createStore.js

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* Update client/src/redux/createStore.js

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* Update client/src/redux/createStore.js

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* Update client/src/redux/createStore.js

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

* Fixed ESLint error

* Second try to fix linting issue

* Third try to fix lint issues

* Update client/src/redux/createStore.js

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

* Update client/src/redux/createStore.js

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

* fix: use env.json for ENVIRONMENT

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-08-20 01:22:59 +05:30
Ahmad Abdolsaheb 0ee680c3ab
fix: redirect users to success url after /donation completion (#39404) 2020-08-20 01:20:34 +05:30
Ashik Paul 3ed80a4347
Fixed some minor typos (#39228) 2020-07-10 17:53:49 -05:00
winst e5a33523b1
fix: correct Alice Walker quote (#39142) 2020-06-26 20:59:47 +05:30
Quincy Larson b7752f11a7
fix(client): Remove non-motivational quotes and add better congratulatory quotes (#39102) 2020-06-19 18:44:45 +02:00
Ieahleen 24009045ac
fix: removing duplicate quotes, author names, unwanted quotes (#39074) 2020-06-15 20:33:44 +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 11868700ad feat: change default donation amount to 5 dollars 2020-04-24 19:52:03 +05:30
Mrugesh Mohapatra d74d72446d feat: use Stripe checkout on donate page 2020-04-14 12:29:06 +03:00
Mrugesh Mohapatra 946cd0665a feat: add one-time links to PayPal.me 2020-04-14 12:29:06 +03:00
Mrugesh Mohapatra 5f1f5554b2
fix: remove stripe card from donate page (#38534) 2020-04-13 16:28:34 +03:00
Oliver Eyton-Williams 10a6622546 feat(api): enable Sentry reporting 2020-03-26 16:51:16 +05:30
Ahmad Abdolsaheb 4c14e3f396
fix: add a fallback for fullstack cert (#37065)
* fix: add a fallback for fullstack cert completion

* fix: optimize loop over completedChallengs

* fix: try to make more declarative

* fix: move variable to config

* fix: use node exports

Co-authored-by: moT01 <tmondloch01@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-03-26 09:57:15 +01:00
mrugesh 786626f21e
fix(PayPal): update config pickup from env (#38423)
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-03-23 19:33:37 +05:30
Ahmad Abdolsaheb b561599614 fix(donate): re-enable monthly donations and update plans 2020-03-21 01:58:07 +05:30
Mrugesh Mohapatra 08ec29fa1b fix(donate): update plans in config 2020-03-20 11:59:58 +05:30
Ahmad Abdolsaheb cdc8b1e8e5 feat: add reconfigurable paypal button to donate page 2020-03-20 10:05:07 +05:30
Mrugesh Mohapatra a2c7659f2d fix(donate): remove monthly plans from client 2020-03-20 00:33:20 +05:30
Mrugesh Mohapatra 585527d145 feat: add paypal donation to modals and certificates 2020-03-19 23:55:47 +05:30