Commit Graph

572 Commits (efaa3b497bffc0cb30dc58cfd975ed2f93001fd1)

Author SHA1 Message Date
Nicholas Carrigan (he/him) dd2ff1683c
feat: add curriculum feature flag (#44441) 2021-12-09 12:31:03 -06:00
Renovate Bot bee4a47eb6 chore(deps): update dependency rollup to v2.61.0 2021-12-09 13:44:06 +00:00
Renovate Bot 5f9202bcc8 chore(deps): update storybook monorepo to v6.4.9 2021-12-09 09:24:22 +00:00
Renovate Bot e18ccef2f2 chore(deps): update dependency @testing-library/jest-dom to v5.16.1 2021-12-06 15:54:20 +00:00
Renovate Bot cc06ce1c72 chore(deps): update storybook monorepo to v6.4.8 2021-12-06 09:46:38 +00:00
Renovate Bot 2455c66d1f chore(deps): update dependency prettier to v2.5.1 2021-12-04 18:24:02 +00:00
Renovate Bot a9dcce08d1 chore(deps): update dependency @testing-library/jest-dom to v5.16.0 2021-12-04 05:03:50 +00:00
Renovate Bot e0f9c70a99 chore(deps): update storybook monorepo to v6.4.7 2021-12-04 02:47:03 +00:00
Oliver Eyton-Williams f613a1e5fd
fix: index.css/js to styles/script (#44356)
* fix: replace index with script/styles as needed

* fix: remove redundant fileKey

It's overwritten by createPoly, so the parser does not need to create it

* fix: curriculum test suite

* Update client/src/templates/Challenges/classic/MultifileEditor.js

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-12-03 12:32:29 -08:00
Oliver Eyton-Williams 0cbb499e9c
chore: remove contributor tools (#44368)
They're being stored in freeCodeCamp/tools now
2021-12-03 20:40:03 +05:30
Renovate Bot e262301ac8 chore(deps): update storybook monorepo to v6.4.5 2021-12-03 11:37:04 +00:00
renovate[bot] 47aef5155b
chore(deps): pin dependencies (#44358)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-02 20:48:15 +05:30
Oliver Eyton-Williams 46b5f02e80 fix: storybook workspace issues 2021-12-02 19:57:47 +05:30
Oliver Eyton-Williams bb0e7317c8 fix: only use parts of gfm parser 2021-12-02 19:57:47 +05:30
Oliver Eyton-Williams 01b354f0d1 refactor: mollify TypeScript 2021-12-02 19:57:47 +05:30
Oliver Eyton-Williams 7d0760c98f chore: remove unused @types from ui-components 2021-12-02 19:57:47 +05:30
Oliver Eyton-Williams 6e4dddd9ee chore: update ui-components to use root types 2021-12-02 19:57:47 +05:30
Oliver Eyton-Williams 03309bea9e chore: remove old package-locks 2021-12-02 19:57:47 +05:30
Renovate Bot 406263e5ff chore(deps): update storybook monorepo to v6.4.4 2021-12-02 08:24:54 +00:00
Oliver Eyton-Williams efba2e777d
chore: simplify eslint configuration (#44347)
* chore: extend import/recommended

* chore: use recommended lint rules

* refactor: apply lint rules

* chore: drop used config
2021-12-02 00:01:12 +00:00
Renovate Bot 76bbbc32e8 chore(deps): update storybook monorepo to v6.4.3 2021-12-01 12:12:50 +00:00
Renovate Bot 29b795c0b6 chore(deps): update dependency rollup to v2.60.2 2021-12-01 01:18:05 +00:00
Vinay 5b61c8a56f
refactor(client): ts-migration of i18n/validate-keys.js (#44292)
* refactor - file extenstion change to .ts

* fix - imports syntax

* fix - migration complete

* fix - lint:prettier warn

* refactor - validate-keys in tools/scripts/lint/

* refactor - validate-keys.ts moved to tools/scripts/lint and added in tsconfig.json

* refactor - tsconfig.json file for tools

* fix - lint:ts script update and validate-keys.js added to .eslintignore

* fix - lint:prettier and ts compilation

* fix - ts compilation

* refactor - changes in .gitignore and validate-keys script
2021-11-30 08:37:00 -08:00
renovate[bot] 5ad279d5f7
fix(deps): update dependency @types/node to v16.11.11 (#44322)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-30 18:13:56 +05:30
Renovate Bot 1edb879988 chore(deps): update storybook monorepo to v6.4.1 2021-11-30 08:20:07 +00:00
Renovate Bot e8be711b6f chore(deps): update dependency postcss to v8.4.4 2021-11-27 16:58:25 +00:00
Maciek Sitkowski 58701d511b
feat(tools): add Alert component (#43835)
* feat(alert): initialize component

* feat(alert): add children prop

* feat(alert): add className prop

* feat(alert): add variant prop

* feat(alert): add close button and handle onDismiss click

* feat(alert): place all alert related css in alert.css

* feat: define state color variables and use them instead of bootstrap ones

* chore: remove unused classes

* feat: replace base alert styles with tailwind classes

* feat: extract close button to separate component

* chore: remove unused css

* test: add close button tests

* refactor: use more tailwind-like approach for adding colors to theme

* refactor: use more expressive prop name for close button label

* refactor: use semantic color names

* feat: add stories with/without close button

* chore: add missing variants
2021-11-27 12:28:40 +03:00
Renovate Bot 32dbf3d57c chore(deps): update dependency postcss to v8.4.3 2021-11-26 22:52:51 +00:00
Renovate Bot a3f3243fad chore(deps): update storybook monorepo to v6.4.0 2021-11-26 20:24:21 +00:00
Renovate Bot e93172b366 chore(deps): update dependency prettier to v2.5.0 2021-11-25 17:51:10 +00:00
Maciek Sitkowski 63f6d9d3f2
feat(storybook): add theme toggle (#44234) 2021-11-25 16:32:52 +03:00
Shaun Hamilton 98fc7fba0e
fix(config): build all-langs.js before server (#44274)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-11-25 11:01:50 +00:00
Renovate Bot e4f48d1363 fix(deps): update dependency @types/react to v17.0.37 2021-11-25 03:48:52 +00:00
Renovate Bot de0ef96a27 chore(deps): update dependency postcss to v8.4.1 2021-11-25 01:18:59 +00:00
Renovate Bot e8dc7a754b chore(deps): update dependency postcss to v8.4.0 2021-11-24 21:56:37 +00:00
Renovate Bot 340f423c36 fix(deps): update dependency @types/node to v16.11.10 2021-11-24 08:56:56 +00:00
Renovate Bot ec831779b0 chore(deps): update dependency @testing-library/jest-dom to v5.15.1 2021-11-23 16:01:10 +00:00
Renovate Bot 9827283b7b chore(deps): update dependency rollup-plugin-postcss to v4.0.2 2021-11-22 20:35:15 +00:00
Renovate Bot 891a385c56 chore(deps): update dependency rollup to v2.60.1 2021-11-22 11:15:44 +00:00
renovate[bot] 248945b3bf
fix(deps): update dependency @types/react to v17.0.36 (#44235)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-22 13:43:22 +05:30
renovate[bot] 7e3f4aff81
chore(deps): update dependency @types/jest to v27.0.3 (#44225)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-21 14:11:51 +05:30
renovate[bot] 947f7d0e18
chore(deps): update dependency inquirer to v8.2.0 (#44223)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-21 13:07:15 +05:30
renovate[bot] 5f35cc8685
fix(deps): update dependency @types/node to v16.11.9 (#44207)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-20 23:03:32 +05:30
renovate[bot] 2381c6a569
chore(deps): pin dependency @types/jest to v27.0.2 (#44215)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-20 16:05:07 +05:30
renovate[bot] 933cf6684f
chore(deps): pin dependencies (#44224)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-20 00:52:38 +05:30
renovate[bot] db4bdf4478
fix(deps): update dependency @types/react to v17.0.35 (#44168)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-19 23:53:58 +05:30
Shaun Hamilton d75e43a1e7
chore: use constants for superblocks (#43886)
* chore: use constants for superblocks

* add prettier ts dec to challenge-helper-scripts

* config/ to ts. broken

* typescripterise tools/ and config/

* create global tsconfig, remove alternate configs

* delete temp ts->js, add to gitignore

* fix gitignore

* re-import SuperBlocks in super-block-intro.tsx

* remove renamed files added again

* fix config

* remove accidental files

* remove snap

* delete built files

* adjust eslintrc for enums

* add node types to root

* ignore build files in lint and prettier

* fix tools/ in tsconfig

* ignore annoying ts warnings

* prettierise Map/index.tsx

* fix enum to match lint rule

* rejig Map to render RWD superblock

* 'pretty minor' - implicitly tsc within root

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

* fix client/package.json for Gitpod

* broken: migrate @types to root

* fix: use typeRoots to prevent duplication

* fix show.tsx, try typeroots in root

* silly fix for duplicate node_modules types

* remove typeRoots from root

* fix: tsconfig or not tsconfig, that is the...

* fix: ...question: Whether 'tis nobler in the mind

to suffer the slings and arrows of outrageous configs...

* fix: Or to take Arms against a Sea of lint errors
And by opposing end them

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-11-19 19:49:40 +05:30
renovate[bot] d944fa0c8e
fix(deps): update dependency typescript to v4.5.2 (#44197)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-19 09:57:03 +05:30
renovate[bot] 54cea8af21
chore(deps): update babel monorepo to v7.16.4 (#44190)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-18 10:44:13 +05:30
renovate[bot] 8c94a26fbe
chore(deps): pin dependencies (#44191)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-17 19:32:50 +05:30
renovate[bot] 6d21f143c3
fix(deps): update dependency @types/node to v16.11.7 (#44167)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-15 20:18:53 +05:30
renovate[bot] 9dc35e4397
chore(deps): pin dependency @types/node to 16.11.7 (#44173)
* chore(deps): pin dependency @types/node to 16.11.7

* chore: install @types/node in tools

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-11-15 15:26:55 +05:30
renovate[bot] 355341908b
chore(deps): update dependency rollup to v2.60.0 (#44165)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-12 13:17:38 +05:30
renovate[bot] fb6995cefc
chore(deps): update dependency @testing-library/dom to v8.11.1 (#44116)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-11 12:10:31 +05:30
renovate[bot] f64537599e
chore(deps): update dependency webpack to v5.63.0 (#44131)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-11 10:28:52 +05:30
Ahmad Abdolsaheb 7f769cdaf8
Add Patreon client key validation (#44155) 2021-11-10 08:21:50 -08:00
renovate[bot] 6feeaa289b
fix(deps): update dependency @types/react-dom to v17.0.11 (#44107)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-10 20:17:39 +05:30
Mrugesh Mohapatra 0b79725a9e
chore(deps): apply npm audit fix on all packages (#44108)
chore(deps): apply npm audit fix on all packages
2021-11-03 16:26:50 +05:30
Mrugesh Mohapatra 466f39794b chore: update all lockfiles to v2 2021-11-03 15:06:19 +05:30
Mrugesh Mohapatra 6fef483946 chore: update all packages to node v16 & npm v8 2021-11-03 15:06:19 +05:30
Micah Silverman 2b5c1ed712
chore(deps): updated versions to address vulnerabilities (#44075) 2021-11-02 15:55:05 +05:30
Renovate Bot c42dc1b350 chore(deps): update dependency rollup to v2.59.0 2021-11-01 11:04:30 +00:00
Renovate Bot 48b31e1d6d fix(deps): update dependency node-fetch to v2.6.6 2021-10-31 19:04:50 +00:00
Renovate Bot 9419bdfed4 chore(deps): update babel monorepo to v7.16.0 2021-10-30 05:41:50 +00:00
Renovate Bot 0a85af9abc chore(deps): update dependency tailwindcss to v2.2.19 2021-10-29 21:14:40 +00:00
renovate[bot] 5ffdaf7606
chore(deps): update dependency autoprefixer to v10.4.0 (#44045)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-28 22:25:01 +05:30
Mrugesh Mohapatra b4c68c039b
chore(deps): run npm audit fix on all packages (#44002) 2021-10-26 19:11:53 +05:30
renovate[bot] f586d7083d
fix(deps): update dependency @types/node to v16.11.6 (#44008)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-26 10:34:37 +05:30
Renovate Bot 62a48deae9 fix(deps): update dependency @types/react to v17.0.33 2021-10-26 01:47:16 +00:00
Renovate Bot e4e22e9f57 chore(deps): update dependency rollup to v2.58.3 2021-10-25 21:43:46 +00:00
Renovate Bot a4ba10a7bc chore(deps): update dependency rollup to v2.58.1 2021-10-25 08:42:09 +00:00
Renovate Bot fa8b2693ad fix(deps): update dependency @types/react to v17.0.32 2021-10-24 13:58:11 +00:00
Renovate Bot b4d68a9c64 chore(deps): update dependency ts-node to v10.4.0 2021-10-23 00:48:07 +00:00
Renovate Bot 558440de9d chore(deps): update dependency ts-node to v10.3.1 2021-10-21 22:02:35 +00:00
Renovate Bot 874afd0d06 chore(deps): update dependency postcss to v8.3.11 2021-10-21 20:44:57 +00:00
Nicholas Carrigan (he/him) b36cdbafd1
chore: rename "part" to "step" (#43934)
* chore: rename part to step

* chore: update metas

* chore: more renaming

* chore: update tooling

* chore: update frontmatter

* chore(tools): title testing
2021-10-21 18:07:52 +01:00
Renovate Bot a6c707ee98 fix(deps): update dependency @types/react to v17.0.31 2021-10-21 09:44:13 +00:00
Renovate Bot 2da421e2bc chore(deps): update dependency babel-loader to v8.2.3 2021-10-21 04:10:04 +00:00
Renovate Bot 5be3f83299 chore(deps): update dependency postcss to v8.3.10 2021-10-20 22:45:51 +00:00
Renovate Bot 13e4d265dc chore(deps): update dependency mongodb to v3.7.3 2021-10-20 20:17:06 +00:00
Renovate Bot 686804f60c fix(deps): update dependency @types/react-dom to v17.0.10 2021-10-20 11:04:42 +00:00
Renovate Bot 182e07a4da chore(deps): update dependency @rollup/plugin-node-resolve to v13.0.6 2021-10-19 17:38:46 +00:00
Renovate Bot 774454c6d1 fix(deps): update dependency @types/react to v17.0.30 2021-10-15 20:19:29 +00:00
Renovate Bot e61bc3ba5d chore(deps): update storybook monorepo to v6.3.12 2021-10-15 12:12:17 +00:00
Renovate Bot d4a49a1c1c chore(deps): update dependency tailwindcss to v2.2.17 2021-10-13 20:42:44 +00:00
Oliver Eyton-Williams 22afdd1aad
fix: stop modal appearing in steps (#43728)
* fix: stop showing completion modal on steps

* feat: submit steps with ctrl+enter

* fix: handle ctrl+enter when not focussing editor

* fix: reset tests when user types

* refactor: pass showCompletionModal as an option

Otherwise we have to write executeChallenge(true) which does not mean
what you might reasonably expect.

* fix: always executeChallenge when not on step

* fix: update frontend project show

* fix: handle missing payload

* refactor: isProjectStep -> hasEditableRegion

* refactor: more renaming

* fix: make meta.json control multifile editor use

* fix: update the challengeSchema correctly

* Update client/src/templates/Challenges/classic/editor.tsx

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* fix: remove logging

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-10-13 14:47:59 +03:00
Renovate Bot 588493b705 fix(deps): update dependency typescript to v4.4.4 2021-10-13 00:10:30 +00:00
Renovate Bot 7a9e762ba1 fix(deps): update dependency @types/react to v17.0.29 2021-10-12 22:09:26 +00:00
Renovate Bot 96fad4087d chore(deps): update storybook monorepo to v6.3.11 2021-10-12 18:21:07 +00:00
Renovate Bot 6ac5605fa6 fix(deps): update dependency @types/react to v17.0.28 2021-10-12 12:13:53 +00:00
Renovate Bot ba585768eb chore(deps): update dependency ts-node to v10.3.0 2021-10-11 21:43:32 +00:00
Ahmad Abdolsaheb f56a5617ac
feat: add tailwind theme support (#43616)
* feat: add tailwind theme support

* feat: simplify config
2021-10-11 10:38:44 +03:00
Nicholas Carrigan (he/him) d7abed9456
fix: index.md generation (#43763) 2021-10-07 18:21:55 +02:00
Renovate Bot c9bec74729 chore(deps): update storybook monorepo to v6.3.10 2021-10-07 02:56:10 +00:00
Renovate Bot 536eef3be9 chore(deps): update babel monorepo to v7.15.8 2021-10-06 23:33:34 +00:00
Niraj Nandish 7824f13f5f
feat: auto clean client cache when SHOW_UPCOMING_CHANGES value changes (#43747)
* feat: auto clean client cache on env var change

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2021-10-06 21:07:08 +05:30
Oliver Eyton-Williams c8d7f0a782
feat(tools): remove eslint-plugin-prettier for prettier (#42438)
* feat: remove eslint-plugin-prettier for prettier

This removes the annoying lint warnings when all that needs to change is
formatting

* fix: use .js lint-staged config to ignore properly

* fix: lint everything if a lot of files are changed

It's faster than making lots of individual linter calls

* chore: apply prettier

* fix: ignore code in curriculum-file-structure
2021-10-06 21:02:21 +05:30
Renovate Bot bed3a1413a chore(deps): update dependency mongodb to v3.7.2 2021-10-05 23:49:22 +00:00
Renovate Bot 926da84521 chore(deps): update dependency postcss to v8.3.9 2021-10-05 02:17:44 +00:00
Renovate Bot 4bfbb5e208 chore(deps): update dependency autoprefixer to v10.3.7 2021-10-04 23:04:45 +00:00