Skip to content

Commit 52ca2b9

Browse files
alexchraisedadead
authored andcommitted
feat(seed): reformat seed/challenges JSON via repack script
1 parent 14c9ed8 commit 52ca2b9

38 files changed

+2459
-2100
lines changed

challenges/01-responsive-web-design/applied-visual-design.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2752,4 +2752,4 @@
27522752
"translations": {}
27532753
}
27542754
]
2755-
}
2755+
}

challenges/01-responsive-web-design/basic-html-and-html5.json

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@
3737
"<hr>",
3838
"To pass the test on this challenge, change your <code>h1</code> element's text to say \"Hello World\"."
3939
],
40-
"challengeSeed": ["<h1>Hello</h1>"],
40+
"challengeSeed": [
41+
"<h1>Hello</h1>"
42+
],
4143
"tests": [
4244
{
43-
"text":
44-
"Your <code>h1</code> element should have the text \"Hello World\".",
45-
"testString":
46-
"assert.isTrue((/hello(\\s)+world/gi).test($('h1').text()), 'Your <code>h1</code> element should have the text \"Hello World\".');"
45+
"text": "Your <code>h1</code> element should have the text \"Hello World\".",
46+
"testString": "assert.isTrue((/hello(\\s)+world/gi).test($('h1').text()), 'Your <code>h1</code> element should have the text \"Hello World\".');"
4747
}
4848
],
4949
"type": "waypoint",
@@ -130,7 +130,9 @@
130130
"<hr>",
131131
"Add an <code>h2</code> tag that says \"CatPhotoApp\" to create a second HTML <code>element</code> below your \"Hello World\" <code>h1</code> element."
132132
],
133-
"challengeSeed": ["<h1>Hello World</h1>"],
133+
"challengeSeed": [
134+
"<h1>Hello World</h1>"
135+
],
134136
"tests": [
135137
"assert(($(\"h2\").length > 0), 'message: Create an <code>h2</code> element.');",
136138
"assert(code.match(/<\\/h2>/g) && code.match(/<\\/h2>/g).length === code.match(/<h2>/g).length, 'message: Make sure your <code>h2</code> element has a closing tag.');",
@@ -195,7 +197,10 @@
195197
"<hr>",
196198
"Create a <code>p</code> element below your <code>h2</code> element, and give it the text \"Hello Paragraph\"."
197199
],
198-
"challengeSeed": ["<h1>Hello World</h1>", "<h2>CatPhotoApp</h2>"],
200+
"challengeSeed": [
201+
"<h1>Hello World</h1>",
202+
"<h2>CatPhotoApp</h2>"
203+
],
199204
"tests": [
200205
"assert(($(\"p\").length > 0), 'message: Create a <code>p</code> element.');",
201206
"assert.isTrue((/hello(\\s)+paragraph/gi).test($(\"p\").text()), 'message: Your <code>p</code> element should have the text \"Hello Paragraph\".');",
@@ -639,8 +644,7 @@
639644
]
640645
}
641646
},
642-
"guideUrl":
643-
"https://guide.freecodecamp.org/certificates/add-images-to-your-website"
647+
"guideUrl": "https://guide.freecodecamp.org/certificates/add-images-to-your-website"
644648
},
645649
{
646650
"id": "bad87fee1348bd9aedf08816",
@@ -766,8 +770,7 @@
766770
"challengeType": 0,
767771
"translations": {
768772
"pt-br": {
769-
"title":
770-
"Crie links para seções internas de uma página com elementos âncora",
773+
"title": "Crie links para seções internas de uma página com elementos âncora",
771774
"description": [
772775
"Além de criar links externos, elementos âncora também podem ser usados para criar links internos, que são links que pulam para diferentes seções dentro de uma mesma página.",
773776
"O formato é parecido com um link externo, só que, ao invés de uma URL no atributo <code>href</code>, você usa o símbolo <code>#</code> e uma palavra para descrever a seção para a qual você quer pular.",
@@ -941,12 +944,12 @@
941944
]
942945
]
943946
}
944-
}
945-
},
946-
{
947-
"id": "58d9cc820ce2197370032a13",
948-
"title": "Become a Supporter",
949-
"description": [
947+
}
948+
},
949+
{
950+
"id": "58d9cc820ce2197370032a13",
951+
"title": "Become a Supporter",
952+
"description": [
950953
[
951954
"",
952955
"",
@@ -1449,8 +1452,7 @@
14491452
]
14501453
}
14511454
},
1452-
"guideUrl":
1453-
"https://guide.freecodecamp.org/certificates/add-placeholder-text-to-a-text-field"
1455+
"guideUrl": "https://guide.freecodecamp.org/certificates/add-placeholder-text-to-a-text-field"
14541456
},
14551457
{
14561458
"id": "bad87fee1348bd9aede08830",
@@ -1618,8 +1620,7 @@
16181620
]
16191621
}
16201622
},
1621-
"guideUrl":
1622-
"https://guide.freecodecamp.org/certificates/add-a-submit-button-to-a-form"
1623+
"guideUrl": "https://guide.freecodecamp.org/certificates/add-a-submit-button-to-a-form"
16231624
},
16241625
{
16251626
"id": "bad87fee1348bd9aedc08830",
@@ -1696,8 +1697,7 @@
16961697
]
16971698
},
16981699
"ru": {
1699-
"title":
1700-
"Используйте HTML5, чтобы сделать заполнение поля обязательным",
1700+
"title": "Используйте HTML5, чтобы сделать заполнение поля обязательным",
17011701
"description": [
17021702
"Вы можете требовать заполнения определённых полей формы, таким образом пользователь не сможет отправить данные формы до их заполнения.",
17031703
"Например, если бы вы хотели сделать заполнение текстового поля обязательным, вы могли бы добавить слово <code>required</code> внутрь вашего элемента <code>input</code>: <code>&#60;input type=\"text\" required&#62;</code>",
@@ -1976,8 +1976,7 @@
19761976
]
19771977
},
19781978
"es": {
1979-
"title":
1980-
"Marca botones de radio y casillas de verificación por omisión",
1979+
"title": "Marca botones de radio y casillas de verificación por omisión",
19811980
"description": [
19821981
"Puedes marcar por omisión una casilla de verificación o un botón de radio usando el atributo <code>checked</code>.",
19831982
"Para ello, sólo tienes que añadir la palabra \"checked\" en el interior de un elemento <code>input</code>. Por ejemplo:",
@@ -1987,8 +1986,7 @@
19871986
]
19881987
},
19891988
"pt-br": {
1990-
"title":
1991-
"Faça botões de opção e caixas de seleção estarem marcados por padrão",
1989+
"title": "Faça botões de opção e caixas de seleção estarem marcados por padrão",
19921990
"description": [
19931991
"Você pode fazer uma caixa de seleção ou botão de opção estar marcado por padrão usando o atributo <code>checked</code>.",
19941992
"Para fazer isso, apenas insira a palavra \"checked\" em um elemento <code>input</code>. Por exemplo:",
@@ -2120,7 +2118,7 @@
21202118
"<hr>",
21212119
"Add a <code>DOCTYPE</code> tag for HTML5 to the top of the blank HTML document in the code editor. Under it, add opening and closing <code>html</code> tags, which wrap around an <code>h1</code> element. The heading can include any text."
21222120
],
2123-
"challengeSeed": ["", "", ""],
2121+
"challengeSeed": [],
21242122
"tests": [
21252123
"assert(code.match(/<!DOCTYPE\\s+?html\\s*?>/gi), 'message: Your code should include a <code>&lt;!DOCTYPE html&gt;</code> tag.');",
21262124
"assert($('html').length == 1, 'message: There should be one <code>html</code> element.');",
@@ -2191,4 +2189,4 @@
21912189
}
21922190
}
21932191
]
2194-
}
2192+
}

challenges/01-responsive-web-design/css-flexbox.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,4 +1161,4 @@
11611161
"translations": {}
11621162
}
11631163
]
1164-
}
1164+
}

0 commit comments

Comments
 (0)