Commit Graph

308 Commits (390bc824afb2e9bba14ba943c9082befdb211199)

Author SHA1 Message Date
renovate[bot] 21dd80c47a
chore(deps): update dependency prettier to v2.3.0 (#42074)
* chore(deps): update dependency prettier to v2.3.0

* chore: apply formating per prettier

* fix: correctly disable import/no-unresolved

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Mrugesh Mohapatra <hi@mrugesh.dev>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-05-10 08:48:49 -07:00
Renovate Bot 91a6690634 chore(deps): update dependency dotenv to v9.0.1 2021-05-09 08:23:55 +00:00
Mrugesh Mohapatra 81d8d3f294
fix(npm-audit): improve audit and fix run-scripts (#42050)
* fix(npm-audit): improve audit and fix run-scripts

* fix: include --no-bail

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-05-07 23:48:11 +05:30
renovate[bot] 94788e2719
chore(deps): update dependency unist-util-select to v3.0.4 (#42043)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-07 19:16:23 +05:30
Renovate Bot 70e22e5bb9 fix(deps): update dependency readdirp to v3.6.0 2021-05-07 04:58:13 +00:00
Renovate Bot cb931d7f48 chore(deps): update dependency lodash to v4.17.21 2021-05-07 01:29:45 +00:00
Renovate Bot 1586c7b454 chore(deps): update dependency jest to v26.6.3 2021-05-06 23:25:27 +00:00
renovate[bot] 94a515db08
fix(deps): update dependency fs-extra to v10 (#42021)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-06 13:56:27 -07: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
Mrugesh Mohapatra 29b388025b
fix(deps): pin dependency @wojtekmaj/enzyme-adapter-react-17 to 0.6.1 (#42009)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-05 13:49:59 -07:00
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
renovate[bot] 4ace78e0f7
chore(deps): pin dependencies (#42002)
chore(deps): pin dependencies
2021-05-05 20:52:14 +05:30
Oliver Eyton-Williams e5908ef281 chore(deps): bson-objectid 2021-05-05 18:12:50 +05:30
Renovate Bot 06b90baa59 chore(deps): update dependency dotenv to v8.5.1 2021-05-05 11:14:39 +00:00
renovate[bot] 3e9bc73d67 chore(deps): update dependency jest to v26 (#41699)
* chore(deps): update dependency jest to v26

* chore: add missing package, invariant

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-05-05 12:24:11 +05:30
Renovate Bot 8bdc99c11f fix(deps): update dependency hast-util-to-html to v7.1.3 2021-05-03 12:28:11 +00:00
Renovate Bot d434a8bde5 fix(deps): update dependency gray-matter to v4.0.3 2021-05-03 10:35:09 +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
Oliver Eyton-Williams 17a7a84b48
fix(tools): update helper scripts (#41923) 2021-04-27 11:29:49 -07:00
renovate[bot] 9c86ed508c
fix(deps): update dependency micromark-extension-gfm-table to v0.4.3 (#41883)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-22 12:28:47 +05:30
renovate[bot] 283ed2d6ca
fix(deps): update dependency micromark-extension-gfm-strikethrough to v0.6.5 (#41661)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-21 18:54:56 +05:30
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 5b4cb91a2a fix(deps): update dependency unist-util-remove to v2.1.0 2021-04-15 02:23:06 +00:00
Renovate Bot 46b46ad1a9 fix(deps): update dependency @actions/core to v1.2.7 2021-04-14 04:04:12 +00:00
Renovate Bot 193a5539dc chore(deps): update dependency mongodb to v3.6.6 2021-04-13 19:30:10 +00:00
renovate[bot] f8f89149c4
fix(deps): update dependency mdast-util-gfm to v0.1.2 (#41660)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 18:15:06 +05:30
Renovate Bot 2eaa5d6457 fix(deps): update dependency unist-util-remove to v2.0.1 2021-03-31 20:17:24 +00:00
Randell Dawson 5bb773fcec
fix(tools): Update createStepFile function in new curriculum helper script (#41693)
* feat: add parseMDSync to parser

* fix: update createStepFile function

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-03-31 18:19:46 +03:00
Renovate Bot 613fbf81ee fix(deps): update dependency unist-util-is to v4.1.0 2021-03-31 13:22:23 +00:00
Renovate Bot 30026f47c6 fix(deps): update dependency unist-util-find-all-after to v3.0.2 2021-03-31 11:58:03 +00:00
Renovate Bot 611b3b2a42 fix(deps): update dependency unist-util-find to v1.0.2 2021-03-31 07:22:21 +00:00
Renovate Bot 0f95411850 fix(deps): update dependency readdirp to v3.6.0 2021-03-31 02:43:28 +00:00
Renovate Bot ae9395648f fix(deps): update dependency js-yaml to v3.14.1 2021-03-30 21:39:20 +00: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] fcf86af5b2
fix(deps): update dependency hast-util-to-html to v7.1.2 (#41647)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-29 18:14:19 +05:30
Renovate Bot 3a1dd37586 chore(deps): update dependency cross-env to v7.0.3 2021-03-28 19:04:32 +00:00
renovate[bot] 3b79eb47be
fix(deps): update dependency @octokit/rest to v18.5.2 (#41638)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-28 19:39:46 +05:30
renovate[bot] ab618c6f80
fix(deps): update dependency react-scripts to v2.1.8 (#41596)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-28 18:37:01 +05:30
renovate[bot] fd4cac780a
chore(deps): update dependency mongodb to v3.6.5 (#41630)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-28 13:58:37 +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
Nicholas Carrigan (he/him) b2a339027f
feat(tools): add team reviewers (#41603) 2021-03-26 18:19:06 +01:00
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
Oliver Eyton-Williams 0d3158d4f4
fix(tests): add validation of comment translations (#41537) 2021-03-20 11:59:13 +05:30
Mrugesh Mohapatra e5763e9bb4
chore: remove extraneous files from contributor tools (#41488) 2021-03-16 12:32:50 -07:00
Oliver Eyton-Williams cbdf317aae
fix: suppress warning for seedless challenges (#41507)
Both challengeType 11 and challengeType 3 have no seeds, so there's no
need to warn about a lack of seed.

The warning has been updated to better reflect the problem (lack of
seed, not lack of comments)
2021-03-16 09:22:39 -06:00
Randell Dawson 50369edd12
feat(tools): Add a PR labeler action to the repo (#41458) 2021-03-13 22:14:19 +05:30
Mrugesh Mohapatra 6c91f81b0e chore(deps): upgrade eslint, prettier & related packages 2021-03-11 12:19:42 +05:30
Mrugesh Mohapatra 0a53a1d7f0 chore(deps): upgrade lerna to v4 2021-03-11 12:19:42 +05:30
Randell Dawson 75dc001aea
feat(tools): Add Crowdin PR creator action (#41383)
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2021-03-09 22:27:40 +05:30
Randell Dawson 48981bf997
feat(tools): Script to delete all translations of a language on Crowdin (#41380) 2021-03-07 10:15:51 +05:30
Oliver Eyton-Williams 3a5f272606
fix: prevent parser throwing when err is null (#41278) 2021-02-27 12:54:38 +05:30
Oliver Eyton-Williams d87d8f3dff fix(helpers): move to lockfile v2 2021-02-27 03:25:51 +05:30
Oliver Eyton-Williams df4c075103 fix(scripts): move to lockfile v2 2021-02-27 03:25:51 +05:30
Oliver Eyton-Williams 40d2796275 fix(parser): 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
Randell Dawson 59a4cde9ed
feat(tool): Script to mark translated strings on Crowdin as "Done" (#41241) 2021-02-24 12:15:02 +05:30
Oliver Eyton-Williams 156f47b000
fix: only log errors when challenges update (#41214)
* fix: only log errors when challenges update

* refactor: handle error first

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2021-02-22 15:12:36 +05:30
Oliver Eyton-Williams c077ffe4b9
feat(api): decouple api from curriculum (#40703) 2021-02-22 12:23:59 +05:30
Oliver Eyton-Williams 04c2f4e620
fix: parse ::directives correctly (#41186) 2021-02-22 09:14:12 +05:30
Randell Dawson e8cfefd1bb
fix(tools): update default branch name to main (#41178) 2021-02-18 12:41:50 -08:00
Tawfik Yasser 5769d78b2b
fix : contributor's chat room link (#40931) 2021-02-06 15:06:16 +05:30
Oliver Eyton-Williams 48a210aeab chore: update parser description 2021-02-03 22:26:36 +05:30
Oliver Eyton-Williams 2fac5852ea chore: regenerate package-lock for parser 2021-02-03 22:26:36 +05:30
Oliver Eyton-Williams 184c1f5b9d chore: remove old validation scripts 2021-02-03 22:26:36 +05:30
Oliver Eyton-Williams 0f4e7b07f4 chore: remove old formatter 2021-02-03 22:26:36 +05:30
Oliver Eyton-Williams 73c06a5d71 refactor: tidy up translation-parser 2021-02-03 22:26:36 +05:30
Oliver Eyton-Williams 9ff3a29a72 refactor: remove remains of old parser 2021-02-03 22:26:36 +05:30
Oliver Eyton-Williams fffc0e51ec
chore(client): refactor & organise config (#40875) 2021-02-03 15:22:07 +05:30
Oliver Eyton-Williams 7ef29e62a8
fix(tools): upgrade warning to throw (#40880) 2021-02-03 15:13:32 +05:30
Randell Dawson f5f2df187b
fix(tools): Use endsWith instead of regex (#40888) 2021-02-03 13:30:56 +05:30
Randell Dawson 7a0d885813
fix(tools): Modiify removeDeletedFiles function to find all files instead of just markdown (#40887)
* fix: corrected file deletion function

* fix(tools): include dict

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

* fix(tools): concat is non-mutating oops

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-02-02 20:42:23 -08:00
Randell Dawson 2f207c3827
fix(tools): Integrate certificate and comment dictionaries into the Curriculum project on Crowdin (#40872)
* fix: integrate certificate and dictionary files to Crowdin

* fix: correct linting issue

* fix: improved the isReserveredHeading function
2021-02-02 19:50:04 -08:00
Oliver Eyton-Williams a3a678b7af chore: remove old parser 2021-02-02 09:51:02 +05:30
Oliver Eyton-Williams e3511f2930 chore: rename challenge-md-parser 2021-02-02 09:51:02 +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
Tom 0e96d2604e
fix: delete existing users before seeding db (#40423) 2021-01-30 11:13:52 +05:30
Ikko Ashimine 660f17a1f3
fix: typo in get-file-visitor.js (#40713)
preceeding -> preceding
2021-01-19 14:09:58 +09:00
Randell Dawson f37dd6ff84
fix(tools) Improve efficiency of the Hide Non-translated Strings GitHub action (#40721)
* fix: changed update strings logic

* fix: pull all strings instead of strings by file

* fix: changed console.log message
2021-01-18 12:20:29 -06:00
Oliver Eyton-Williams ee1e8abd87
feat(curriculum): restore seed + solution to Chinese (#40683)
* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-12 19:31:00 -07:00
Randell Dawson 0095583028
feat: Crowdin integration scripts/actions (#40657) 2021-01-12 23:50:54 +05:30
Ikko Ashimine fbae6d0159
fix(tools): message typo in insert-spaces.js (#40614)
alway -> always
2021-01-05 12:00:34 +05:30
Ikko Ashimine 1e994407ca
fix(tools): message typo fix (#40537)
occured -> occurred
2020-12-28 15:50:21 +09:00
Oliver Eyton-Williams eb8359c281
feat: add script to annotate challenges for translation (#40366)
* feat: add script to annotate challenges for translation

* fix: readdirp-walk -> readdirp

* fix: remove notranslate for frontmatter

* fix: don't output seed/solution

* feat: convert to function

Also puts in some missing 'async's to make it clearer what returns
promises.

* refactor: use meaningful names

* refactor: remove comments

* chore: update dependencies

* chore: move dir

* fix(crowdin): annotate individual answers
2020-12-23 12:04:56 -07:00
Nicholas Carrigan (he/him) 994598900a
fix(dashboard): Use CDN for favicon (#40522)
* fix: Use CDN for favicon

Replaces the local favicon (which was not
rendering correctly on production) with the
version served by the CDN. Also adds our other
meta tags used for PWAs and OpenGraph Protocol.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

* fix: remove local manifest

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>
2020-12-22 17:07:21 -07:00
Nicholas Carrigan (he/him) 0ff001eaed
docs: One remaining chat link (#40519)
Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>
2020-12-22 11:56:53 -07:00
Randell Dawson c8f6d15688
feat(tool): Add ability to view all open PRs for repos other than freeCodeCamp in the Dashboard app (#40453)
* feat: show open boilerplate prs on dashboard

fix:  rest of boilerplate server changes

fix: more

fix: other

* fix: update lib functions

* fix: retrofitted one-off scripts

* feat: added rateLimit for requests

* fix: reduce time

* fix: put limiter inside each route

* fix: make client show when rated limited

* fix: removed unused probot from app

* fix: renamed folders

* fix: consolidate config.js and constants.js

* chore: update octokit to latest version

* fix: remove invalid file

* fix: refactored update-db.js

* feat: add fcc logo

* fix: logo url

* fix: remove Home link

* fix: change link colors

* fix: added rate limiter to landing page

* fix: ran npm install in client to create package-lock.json

* fix: correct typo in doc

Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>

* fix: Replace favicon, Gitter => Discord

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

* fix: add extra linting guidance to package.json

* Ignore contributor app

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

* fix: revert linting rules for client

* fix: add skip_preflight_check=true for tests

Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Kris Koishigawa <scissorsneedfoodtoo@gmail.com>
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2020-12-22 13:43:36 +09:00
Oliver Eyton-Williams 22fbc62f88
chore: format curriculum (#37912) 2020-12-15 21:22:02 +05:30
Shaun Hamilton c75b28faf2
feat(tools): add fully certified development user (#40181)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-12-03 21:15:45 +05:30
Oliver Eyton-Williams 0bd52f8bd1
Feat: add new Markdown parser (#39800)
and change all the challenges to new `md` format.
2020-11-27 10:02:05 -08:00
Oliver Eyton-Williams 25429b9f3f
fix: update linter for new challenge format (#40317)
Also uses yaml for better vscode integration
2020-11-26 17:42:57 +05:30
Oliver Eyton-Williams ebb4e0d5cc
fix: default to .env (#40315) 2020-11-25 23:15:59 +05:30