Commit Graph

30705 Commits (0ce5d63f908eeec8d575385988fd4b635f893f46)

Author SHA1 Message Date
Ilenia e279d9a64d
fix(curriculum): more typos for rwd (#45932)
* wrong word in step 12 cat cafe menu project

* wrong word step 27 cafe menu
2022-05-13 05:37:49 +02:00
Ilenia a1df6056b0
chore(i18n): new italian footer (#45934)
* new articles footer

* fixed order of titles
2022-05-13 00:54:15 +05:30
Tom 832e504ced
fix: user object on account reset (#45929) 2022-05-12 18:27:11 +01:00
camperbot 6bc383f60f
chore(i18n,learn): processed translations (#45928) 2022-05-12 18:20:24 +02:00
Hassaan Pasha fadd2b1d13
fix: code duplication in tests for create-language-redirect (#45925) 2022-05-12 20:13:40 +05:30
camperbot b0733cfedc
chore(i18n,client): processed translations (#45927) 2022-05-12 20:11:26 +05:30
Shaun Hamilton 9e066cc47e
chore(docs): add courses-vscode-extension flight manual (#45926) 2022-05-12 15:45:05 +02:00
Ilenia d2d95dcfc3
fix(curriculum): more fixes for rwd beta (#45913)
* wrong word in step 58 cat-photo-app

* typo in step 63 cat photo app

* typo in cat photo app step 65

* extra word in step 64 cat photo app

* typos step 62 cat photo app

* The p elements weren't respectable
2022-05-12 13:10:35 +01:00
Tom 898d6eafa3
fix: cert project links going to english (#45923)
* fix: cert project links going to english
2022-05-12 13:29:10 +05:30
Abdelmalek Ennani d1fe6b3eaf
fix(client): remove unexpected duplicate "height" (#45911)
I deleted an Unexpected duplicate "height" property
2022-05-12 11:13:21 +05:30
sidemt f63fc2a6e8
fix(curriculum): correct challenge title (#45918) 2022-05-11 16:26:09 -07:00
Shaun Hamilton 2717581b2f
fix(api): add needsModeration flag to user document root (#45921)
* fix(api): add needsModeration flag to user document root

* fix prettiers complaints

* Update api-server/src/common/models/user.json

Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
2022-05-11 15:30:51 -05:00
Muhammed Mustafa 8da87f4d58
fix(client): duplicates and zero length units (#45909)
Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com>
2022-05-11 11:20:39 -07:00
camperbot 5aa1ab8b0a
chore(i18n,docs): processed translations (#45914) 2022-05-11 09:24:05 -07:00
camperbot de14a17e43
chore(i18n,learn): processed translations (#45916) 2022-05-11 09:23:27 -07:00
camperbot f3189a8705
chore(i18n,client): processed translations (#45915) 2022-05-11 21:14:14 +05:30
Ilenia 516db42de8
fix(curriculum): varius fixes for responsive web design beta files (#45900)
* fixing selectors in tech-doc project

* removed extra word

* adding missing word

* fixed typo

* fixed typo

* added missing periods

* Update build-a-survey-form.md

* Update build-a-technical-documentation-page.md

* missing periods in tribute page project

* typos in tribute page

* Update 5ef9b03c81a63668521804d5.md

* missing backticks

* missing word in step 42 cat photo app
2022-05-11 12:13:37 +02:00
Tom da1f0cc357
fix: use new RWD cert projects for all i18n's (#45906) 2022-05-11 11:08:21 +02:00
ned-park 6fded30b51
fix(client): remove unneeded explicit padding-bottom (#45910) 2022-05-11 10:47:14 +05:30
Ahmad Abdolsaheb 9e61fe17fb
feat: add may 22 footer (#45901) 2022-05-10 11:23:07 -07:00
camperbot 0338db3315
chore(i18n,docs): processed translations (#45903) 2022-05-10 10:57:50 -07:00
camperbot 750e9fce08
chore(i18n,client): processed translations (#45904) 2022-05-10 10:57:07 -07:00
camperbot a13bca06d4
chore(i18n,learn): processed translations (#45905) 2022-05-10 10:56:44 -07:00
Naomi Carrigan 23b4be71d7
feat: release RWD from beta (#45865)
* feat: release RWD from beta

* feat: replace beta banner with legacy banner

* feat: update project links

* fix: cypress tests

* fix: map selector

* chore: legacy verbiage

* chore: remove isBeta flag

* fix: go back url verbiage

* feat: separate order for i18n

* fix: curriculum utils test

* fix: cypress

* tests: use data-cy for robustness

Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-05-10 11:44:23 -05:00
Benjamin Rio 1457c362c1
fix(client): remove duplicate css properties (#45902) 2022-05-10 10:03:53 -05:00
Naveen 2d05f98430
feat(.github): add dependency review action (#45879)
* chore(deps): Included dependency review

> Dependency Review GitHub Action in your repository to enforce dependency reviews on your pull requests.
> The action scans for vulnerable versions of dependencies introduced by package version changes in pull requests,
> and warns you about the associated security vulnerabilities.
> This gives you better visibility of what's changing in a pull request,
> and helps prevent vulnerabilities being added to your repository.

https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement

* Update .github/workflows/dependency-review.yml

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

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2022-05-10 15:31:02 +01:00
Ilenia 60f87c348d
fix(curriculum): missing backtick in product landing page project tests (#45899) 2022-05-10 17:33:44 +07:00
Ilenia 2bebb92189
fix(curriculum): missing word and backticks 2022-05-10 12:11:31 +02:00
camperbot 668c7225fc
chore(i18n,learn): processed translations (#45893) 2022-05-09 22:11:48 -03:00
camperbot 4fbb3460e2
chore(i18n,docs): processed translations (#45892) 2022-05-09 22:10:53 -03:00
Oliver Eyton-Williams cf4b9a1557
feat: client overhaul proof of concept (#45844)
* chore: initial setup of web package

This is *not* a workspace, yet, because it would be nice to use the
latest React, but /client can't migrate (yet).

Having two React versions creates issues in workspaces since /.bin/next
gets hoisted to root... and finds the root React version :(

* feat: add config for next

* fix: use jsx-runtime for web linting

* chore: init curriculum-server with json-server

* chore: integrate curriculum-server with TS/eslint

* feat: add patch script

json-server doesn't like keys with '/'s in so, for now I'm just patching
them out.

This lets us keep a strong separation between this WIP and the rest of
the code.

* fix: use port 8000 to avoid conflicts

* feat: crude ISR demo using challenge pages

* feat: extend ISR demo to use params

* feat: return props for specific superblocks

* chore: re-organise folders

* refactor: put data fetching in a single module

* refactor: challenge page slightly

* feat: add link to test ISR

You can see that, if you run next dev, the linked page gets regenerated
whenever you navigate to it.  However, if you run next build that is no
longer the case and the page has to be reloaded for the user to see the
latest version.

The implication is that we'll need another method (Web worker, probably)
to detect if the page needs to be updated.

* feat: render static paths for rwd

* feat: add monaco Editor

* feat: send less data via props

Rather than sending superblocks, this now sends blocks. Next step, just
the challenge!

* fix: only send individual challenge's data

* feat: send /learn/stuff/<id> to the challenge page

* fix: redirect to path with trailing id

* fix: handle all possible path prefixes

* feat: add superblocks with trailing ids

* chore: rename block -> blockOrId

* chore: remove logs

* fix: return notFound if page id is missing

* chore: add a note about increasing TS strictness

* feat: serverside redirects

This should be a touch more performant, but mostly it separates the
concerns.

Since the server already has the responsibility of choosing what pages
to render, redirects fit naturally with its concerns.

* refactor: clean up param validation

* feat: create list of blocks in superblock

* feat: add challenge links to map

* feat: link to full path, not just id

* refactor: ensure props match getStaticProps

By specifying the props for GetStaticProps we ensure that it returns the
expected data and use InferGetStaticPropsType to get the type out again
for use in the component

* feat: improve and document dev experience

* refactor: separate routing from rendering

* refactor: extract routing logic into functions

* refactor: naming consistency

* refactor: move data wrangling into get-curriculum

* refactor: align blockOrId and id

* chore: remove the server from workspaces

* chore: remove the lock

* docs: paths

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>

* chore: install before linting

* fix: create env.json before installing new client

* chore: ignore generated json file

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2022-05-09 11:30:15 -05:00
Huyen Nguyen fa59d4a107
chore(ui-components): simplify color tokens (#45848)
* chore: rename color tokens

* chore: clean up hover tokens

* docs: add a note on colors usage
2022-05-09 16:28:25 +03:00
Bruce B c25634c05e
fix(a11y): beta RWD course toggle button accessibility (#45544)
* fix: beta RWD course toggle button accessibility

* refactor: passing props to icons

* simplify prop name and give it a default value

* remove console log

* fix: added translations

* refactor: announce percentage of course completed to screen readers

* fix: variable name typo

* fix: add a clear separation between course title and status
2022-05-09 16:27:50 +03:00
Tahseen Islam 7ab15bd4ce
fix(client): remove duplicate css properties (#45889) 2022-05-09 08:57:45 +02:00
Brandon Barricklow 60cb648734
fix(client): remove duplicate css properties (#45891) 2022-05-09 08:55:23 +02:00
Naveen f2580f58a6
chore: set permissions for GitHub actions (#45876)
* chore: Set permissions for GitHub actions

 Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>

* Update .github/workflows/codeql-analysis.yml

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

* Update .github/workflows/labeler.yaml

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

* Update .github/workflows/node.js-tests-upcoming.yml

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

* Update .github/workflows/node.js-tests.yml

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

* Update .github/workflows/codeql-analysis.yml

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

* Update .github/workflows/labeler.yaml

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

* Update .github/workflows/labeler.yaml

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

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2022-05-08 15:17:44 +05:30
Renovate Bot 9586372bd8 fix(deps): update dependency @actions/core to v1.8.0 2022-05-08 06:00:10 +00:00
Renovate Bot 77dea01d90 chore(deps): update dependency rollup to v2.72.1 2022-05-08 03:17:10 +00:00
Renovate Bot cdc5d16139 chore(deps): update dependency @types/jest to v27.5.0 2022-05-08 00:33:24 +00:00
Renovate Bot e2e723dcca chore(deps): update dependency @rollup/plugin-node-resolve to v13.3.0 2022-05-07 22:55:32 +00:00
Renovate Bot 80fd6d8c7e chore(deps): update codesee to v0.253.0 2022-05-07 20:32:40 +00:00
Renovate Bot 8f35a6bc10 fix(deps): update dependency react-instantsearch-dom to v6.24.2 2022-05-07 18:06:21 +00:00
Renovate Bot d6191a5aee fix(deps): update dependency react-i18next to v11.16.9 2022-05-07 15:29:19 +00:00
Renovate Bot eeb93e85cc fix(deps): update dependency nanoid to v3.3.4 2022-05-07 12:11:17 +00:00
Ahmad Abdolsaheb e3bc038457
feat(donation): set donor cookie (#45808) 2022-05-07 14:53:01 +09:00
Renovate Bot 9a0b00090a chore(deps): update dependency autoprefixer to v10.4.7 2022-05-07 04:55:23 +00:00
Renovate Bot c131c4597c chore(deps): update dependency @types/react to v17.0.45 2022-05-07 02:13:37 +00:00
camperbot 965a902a2b
chore(i18n,learn): processed translations (#45864) 2022-05-06 14:19:43 -03:00
camperbot 707f1a753c
chore(i18n,docs): processed translations (#45863) 2022-05-06 07:42:25 -07:00
Ahmad Abdolsaheb 0ef633c373
feat: a/b test lock icon button (#45868) 2022-05-06 15:06:48 +02:00