Skip to content

Commit ab20257

Browse files
committed
update
1 parent 126f345 commit ab20257

19 files changed

+297
-156
lines changed

Makefile

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,37 +8,37 @@ refresh_concept_fixtures:
88
gsed -i '1s/^/export default /' mirage/concept-fixtures/*.js
99

1010
refresh_course_fixtures:
11-
hub api repos/codecrafters-io/build-your-own-redis/contents/course-definition.yml \
11+
gh api repos/codecrafters-io/build-your-own-redis/contents/course-definition.yml \
1212
| jq -r .content \
1313
| base64 -d \
1414
| yq -o json eval \
1515
> mirage/course-fixtures/redis.js
1616

17-
hub api repos/codecrafters-io/build-your-own-docker/contents/course-definition.yml \
17+
gh api repos/codecrafters-io/build-your-own-docker/contents/course-definition.yml \
1818
| jq -r .content \
1919
| base64 -d \
2020
| yq -o json eval \
2121
> mirage/course-fixtures/docker.js
2222

23-
hub api repos/codecrafters-io/build-your-own-git/contents/course-definition.yml \
23+
gh api repos/codecrafters-io/build-your-own-git/contents/course-definition.yml \
2424
| jq -r .content \
2525
| base64 -d \
2626
| yq -o json eval \
2727
> mirage/course-fixtures/git.js
2828

29-
hub api repos/codecrafters-io/build-your-own-sqlite/contents/course-definition.yml \
29+
gh api repos/codecrafters-io/build-your-own-sqlite/contents/course-definition.yml \
3030
| jq -r .content \
3131
| base64 -d \
3232
| yq -o json eval \
3333
> mirage/course-fixtures/sqlite.js
3434

35-
hub api repos/codecrafters-io/build-your-own-grep/contents/course-definition.yml \
35+
gh api repos/codecrafters-io/build-your-own-grep/contents/course-definition.yml \
3636
| jq -r .content \
3737
| base64 -d \
3838
| yq -o json eval \
3939
> mirage/course-fixtures/grep.js
4040

41-
hub api repos/codecrafters-io/build-your-own-dummy/contents/course-definition.yml \
41+
gh api repos/codecrafters-io/build-your-own-dummy/contents/course-definition.yml \
4242
| jq -r .content \
4343
| base64 -d \
4444
| yq -o json eval \

app/components/course-page/header/main-section.hbs

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111
<div class="mt-6">
1212
<div class="flex flex-col items-start">
1313
<div class="flex items-center flex-wrap gap-x-3">
14-
<div class="text-lg sm:text-xl md:text-2xl" data-test-step-name>
14+
<div class="text-lg sm:text-xl md:text-2xl">
1515
{{#if (eq @currentStep.type "CourseStageStep")}}
1616
{{! @glint-expect-error not typesafe }}
17-
<span class="font-bold text-gray-700">{{@currentStep.courseStage.name}}</span>
17+
<span class="font-bold text-gray-700" data-test-step-name>{{@currentStep.courseStage.name}}</span>
1818
<span class="font-mono text-base sm:text-lg md:text-xl">
1919
{{! @glint-expect-error not typesafe }}
2020
<span class="text-gray-300">#</span><span class="font-mono text-gray-400 uppercase">{{@currentStep.courseStage.slug}}</span>
2121
</span>
2222
{{else}}
23-
<span class="font-bold text-gray-700">{{@currentStep.title}}</span>
23+
<span class="font-bold text-gray-700" data-test-step-name>{{@currentStep.title}}</span>
2424
{{/if}}
2525
</div>
2626

mirage/course-fixtures/docker.js

+12-12
Large diffs are not rendered by default.

mirage/course-fixtures/dummy.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -52,45 +52,45 @@ export default {
5252
],
5353
"stages": [
5454
{
55-
"slug": "init",
55+
"slug": "yz1",
5656
"name": "The first stage",
5757
"difficulty": "very_easy",
5858
"description_md": "In this stage, we'll do XYZ\n\n**Example:** ABC\n\nYour program will be executed like this:\n\n```bash\n$ echo \"apple\" | ./your_executable.sh -E \"a\"\n```\n\nYou program must ABCD.\n\nHere's a sample table:\n\n| Column 1 Header | Column 2 Header | Column 3 Header |\n| --------------- | --------------- | --------------- |\n| Row 1, Col 1 | Row 1, Col 2 | Row 1, Col 3 |\n| Row 2, Col 1 | Row 2, Col 2 | Row 2, Col 3 |\n| Row 3, Col 1 | Row 3, Col 2 | Row 3, Col 3 |\n\nAnd a new edit that must be synced automatically",
5959
"marketing_md": "In this stage, we'll do XYZ."
6060
},
6161
{
62-
"slug": "second",
62+
"slug": "lr7",
6363
"name": "The second stage",
6464
"difficulty": "very_easy",
6565
"description_md": "In this stage, we'll do XYZ\n\n**Example:** ABC\n\nYour program will be executed like this:\n\n```bash\n$ echo \"apple\" | ./your_executable.sh -E \"a\"\n```\n\nYou program must ABCD.",
6666
"marketing_md": "In this stage, we'll do XYZ."
6767
},
6868
{
69-
"slug": "ext1-stage1",
69+
"slug": "qh7",
7070
"primary_extension_slug": "ext1",
7171
"name": "Start with ext1",
7272
"difficulty": "very_easy",
7373
"description_md": "In this stage, we'll do XYZ\n\n**Example:** ABC\n\nYour program will be executed like this:\n\n```bash\n$ echo \"apple\" | ./your_executable.sh -E \"a\"\n```\n\nYou program must ABCD.",
7474
"marketing_md": "In this stage, we'll do XYZ."
7575
},
7676
{
77-
"slug": "ext1-stage2",
77+
"slug": "wd5",
7878
"primary_extension_slug": "ext1",
7979
"name": "Finish with ext1",
8080
"difficulty": "very_easy",
8181
"description_md": "In this stage, we'll do XYZ\n\n**Example:** ABC\n\nYour program will be executed like this:\n\n```bash\n$ echo \"apple\" | ./your_executable.sh -E \"a\"\n```\n\nYou program must ABCD.",
8282
"marketing_md": "In this stage, we'll do XYZ."
8383
},
8484
{
85-
"slug": "ext2-stage1",
85+
"slug": "ae0",
8686
"primary_extension_slug": "ext2",
8787
"name": "Start with ext2",
8888
"difficulty": "very_easy",
8989
"description_md": "In this stage, we'll do XYZ\n\n**Example:** ABC\n\nYour program will be executed like this:\n\n```bash\n$ echo \"apple\" | ./your_executable.sh -E \"a\"\n```\n\nYou program must ABCD.",
9090
"marketing_md": "In this stage, we'll do XYZ."
9191
},
9292
{
93-
"slug": "ext2-stage2",
93+
"slug": "um4",
9494
"primary_extension_slug": "ext2",
9595
"secondary_extension_slugs": [
9696
"ext1"

mirage/course-fixtures/git.js

+23-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)