Skip to content

Commit ad5f726

Browse files
Merge pull request #98 from topcoder-platform/dev
TCA-637 2.1 TCA Maintenance Release - 2022-11-08 -> prod
2 parents ca86ba5 + 0718f6c commit ad5f726

File tree

16,870 files changed

+1953348
-114112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

16,870 files changed

+1953348
-114112
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ client/static/**
33
client/public/**
44
api-server/src/public/**
55
api-server/lib/**
6-
config/i18n/all-langs.js
6+
config/i18n.js
77
config/certification-settings.js
88
web/**

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"import/no-named-as-default": "off",
3737
"import/no-named-as-default-member": "off",
3838
"import/order": "error",
39+
"import/no-cycle": [2, { "maxDepth": 2 }],
3940
"react/prop-types": "off",
4041
"no-only-tests/no-only-tests": "error"
4142
},

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ Checklist:
22

33
<!-- Please follow this checklist and put an x in each of the boxes, like this: [x]. It will ensure that our team takes your pull request seriously. -->
44

5-
- [ ] I have read [freeCodeCamp's contribution guidelines](https://contribute.freecodecamp.org).
6-
- [ ] My pull request has a descriptive title (not a vague title like `Update index.md`)
7-
- [ ] My pull request targets the `main` branch of freeCodeCamp.
8-
- [ ] I have tested these changes either locally on my machine, or GitPod.
5+
- [] I have read [freeCodeCamp's contribution guidelines](https://contribute.freecodecamp.org).
6+
- [] My pull request has a descriptive title (not a vague title like `Update index.md`)
7+
- [] My pull request targets the `main` branch of freeCodeCamp.
8+
- [] I have tested these changes either locally on my machine, or GitPod.
99

1010
<!--If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.-->
1111

.github/workflows/autoclose.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030
language: ['javascript']
3131
steps:
3232
- name: Checkout repository
33-
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
33+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
3434
- name: Setup CodeQL
35-
uses: github/codeql-action/init@83007bbc17d874e3f1654bfaf9367629f7fdcac7 # tag=v1
35+
uses: github/codeql-action/init@2956c096220fb34b6bf430b4ec7dcff2e77c8084 # tag=v1
3636
with:
3737
languages: ${{ matrix.language }}
3838
- name: Perform Analysis
39-
uses: github/codeql-action/analyze@83007bbc17d874e3f1654bfaf9367629f7fdcac7 # tag=v1
39+
uses: github/codeql-action/analyze@2956c096220fb34b6bf430b4ec7dcff2e77c8084 # tag=v1

.github/workflows/codesee-diagram.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919
- name: checkout
2020
id: checkout
21-
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
21+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
2222
with:
2323
repository: ${{ github.event.pull_request.head.repo.full_name }}
2424
ref: ${{ github.event.pull_request.head.ref }}
@@ -30,7 +30,7 @@ jobs:
3030
uses: Codesee-io/codesee-detect-languages-action@latest
3131

3232
- name: Configure JDK 16
33-
uses: actions/setup-java@d854b6da19cdadd9a010605529e522c2393ebd38 # tag=v3
33+
uses: actions/setup-java@de1bb2b0c5634f0fc4438d7aa9944e68f9bf86cc # tag=v3
3434
if: ${{ fromJSON(steps.detect-languages.outputs.languages).java }}
3535
with:
3636
java-version: '16'
@@ -39,13 +39,13 @@ jobs:
3939
# CodeSee Maps Go support uses a static binary so there's no setup step required.
4040

4141
- name: Configure Node.js 16
42-
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
42+
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
4343
if: ${{ fromJSON(steps.detect-languages.outputs.languages).javascript }}
4444
with:
4545
node-version: '16'
4646

4747
- name: Configure Python 3.x
48-
uses: actions/setup-python@b55428b1882923874294fa556849718a1d7f2ca5 # tag=v4
48+
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # tag=v4
4949
if: ${{ fromJSON(steps.detect-languages.outputs.languages).python }}
5050
with:
5151
python-version: '3.x'

.github/workflows/crowdin-download.client-ui.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
steps:
2020
- name: Checkout Source Files
21-
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
21+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
2222
with:
2323
token: ${{ secrets.CROWDIN_CAMPERBOT_PAT }}
2424

@@ -238,6 +238,38 @@ jobs:
238238
# Uncomment below to debug
239239
# dryrun_action: true
240240

241+
##### Download Arabic #####
242+
- name: Crowdin Download Arabic Translations
243+
uses: crowdin/github-action@master
244+
# options: https://github.com/crowdin/github-action/blob/master/action.yml
245+
with:
246+
# uploads
247+
upload_sources: false
248+
upload_translations: false
249+
auto_approve_imported: false
250+
import_eq_suggestions: false
251+
# downloads
252+
download_translations: true
253+
download_language: ar
254+
skip_untranslated_files: false
255+
export_only_approved: true
256+
push_translations: false
257+
# pull-request
258+
create_pull_request: false
259+
# global options
260+
config: './crowdin-config.yml'
261+
base_url: ${{ secrets.CROWDIN_BASE_URL_FCC }}
262+
# Uncomment below to debug
263+
# dryrun_action: true
264+
265+
###### Format JSON #####
266+
# Crowdin gives the files read-only permissions, so we first have to allow
267+
# writes.
268+
- name: Format JSON
269+
run: |
270+
sudo chown -R $(whoami): client/i18n/locales
271+
npx --yes prettier --write client/i18n/locales/**/*.json
272+
241273
# Create Commit
242274
- name: Commit Changes
243275
uses: freecodecamp/crowdin-action@main

.github/workflows/crowdin-download.curriculum.yml

Lines changed: 74 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@ jobs:
1515
i18n-download-curriculum-translations:
1616
name: Curriculum
1717
runs-on: ubuntu-20.04
18+
strategy:
19+
matrix:
20+
node-version: [16.x]
21+
fail-fast: true
1822

1923
steps:
2024
- name: Checkout Source Files
21-
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
25+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
2226
with:
2327
token: ${{ secrets.CROWDIN_CAMPERBOT_PAT }}
2428

@@ -42,7 +46,8 @@ jobs:
4246
# downloads
4347
download_translations: true
4448
download_language: zh-CN
45-
skip_untranslated_files: true
49+
skip_untranslated_strings: false
50+
skip_untranslated_files: false
4651
export_only_approved: true
4752

4853
push_translations: false
@@ -78,7 +83,8 @@ jobs:
7883
# downloads
7984
download_translations: true
8085
download_language: es-EM
81-
skip_untranslated_files: true
86+
skip_untranslated_strings: false
87+
skip_untranslated_files: false
8288
export_only_approved: true
8389

8490
push_translations: false
@@ -107,7 +113,8 @@ jobs:
107113
# downloads
108114
download_translations: true
109115
download_language: it
110-
skip_untranslated_files: true
116+
skip_untranslated_strings: false
117+
skip_untranslated_files: false
111118
export_only_approved: true
112119

113120
push_translations: false
@@ -136,7 +143,8 @@ jobs:
136143
# downloads
137144
download_translations: true
138145
download_language: pt-BR
139-
skip_untranslated_files: true
146+
skip_untranslated_strings: false
147+
skip_untranslated_files: false
140148
export_only_approved: true
141149

142150
push_translations: false
@@ -165,7 +173,8 @@ jobs:
165173
# downloads
166174
download_translations: true
167175
download_language: uk
168-
skip_untranslated_files: true
176+
skip_untranslated_strings: false
177+
skip_untranslated_files: false
169178
export_only_approved: true
170179

171180
push_translations: false
@@ -194,7 +203,8 @@ jobs:
194203
# downloads
195204
download_translations: true
196205
download_language: ja
197-
skip_untranslated_files: true
206+
skip_untranslated_strings: false
207+
skip_untranslated_files: false
198208
export_only_approved: true
199209

200210
push_translations: false
@@ -223,7 +233,8 @@ jobs:
223233
# downloads
224234
download_translations: true
225235
download_language: de
226-
skip_untranslated_files: true
236+
skip_untranslated_strings: false
237+
skip_untranslated_files: false
227238
export_only_approved: true
228239

229240
push_translations: false
@@ -238,6 +249,60 @@ jobs:
238249
# Uncomment below to debug
239250
# dryrun_action: true
240251

252+
##### Download Arabic #####
253+
- name: Crowdin Download Arabic Translations
254+
uses: crowdin/github-action@master
255+
# options: https://github.com/crowdin/github-action/blob/master/action.yml
256+
with:
257+
# uploads
258+
upload_sources: false
259+
upload_translations: false
260+
auto_approve_imported: false
261+
import_eq_suggestions: false
262+
# downloads
263+
download_translations: true
264+
download_language: ar
265+
skip_untranslated_strings: false
266+
skip_untranslated_files: false
267+
export_only_approved: true
268+
push_translations: false
269+
# pull-request
270+
create_pull_request: false
271+
# global options
272+
config: './crowdin-config.yml'
273+
base_url: ${{ secrets.CROWDIN_BASE_URL_FCC }}
274+
# Uncomment below to debug
275+
# dryrun_action: true
276+
277+
# Validate the Download #
278+
# All languages should go ABOVE this. #
279+
280+
- name: Use Node.js ${{ matrix.node-version }}
281+
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
282+
with:
283+
node-version: ${{ matrix.node-version }}
284+
cache: 'npm'
285+
286+
- name: Set Environment variables
287+
run: |
288+
cp sample.env .env
289+
echo 'SHOW_NEW_CURRICULUM=true' >> .env
290+
cat .env
291+
292+
- name: Build Source Files
293+
run: |
294+
echo npm version $(npm -v)
295+
npm ci
296+
npm run create:config
297+
npm run build:curriculum
298+
npm run build:server
299+
300+
- name: Lint and Format Files
301+
run: |
302+
npm run format:curriculum
303+
304+
# We do not need to run tests because they are run after the PR is created.
305+
241306
# Create Commit
242307
- name: Commit Changes
243308
uses: freecodecamp/crowdin-action@main
@@ -248,9 +313,7 @@ jobs:
248313
GH_BRANCH: 'i18n-sync-curriculum'
249314
GH_MESSAGE: 'chore(i18n,learn): processed translations'
250315

251-
# Generate PR #
252-
# All languages should go ABOVE this. #
253-
316+
# Create PR
254317
- name: Create PR
255318
uses: freecodecamp/crowdin-action@main
256319
env:

.github/workflows/crowdin-download.docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
steps:
2020
- name: Checkout Source Files
21-
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
21+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
2222
with:
2323
token: ${{ secrets.CROWDIN_CAMPERBOT_PAT }}
2424

.github/workflows/crowdin-upload.client-ui.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
steps:
2020
- name: Checkout Source Files
21-
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
21+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
2222

2323
- name: Generate Crowdin Config
2424
uses: freecodecamp/crowdin-action@main

.github/workflows/crowdin-upload.curriculum.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
steps:
2020
- name: Checkout Source Files
21-
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
21+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
2222

2323
- name: Generate Crowdin Config
2424
uses: freecodecamp/crowdin-action@main

.github/workflows/crowdin-upload.docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
steps:
2020
- name: Checkout Source Files
21-
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
21+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
2222

2323
- name: Generate Crowdin Config
2424
uses: freecodecamp/crowdin-action@main

0 commit comments

Comments
 (0)