chore: import upstream snapshot with attribution
i18n - Build Validation / Validate i18n Builds (24) (push) Has been cancelled
CI - Node.js / Lint (24) (push) Has been cancelled
CI - Node.js / Build (24) (push) Has been cancelled
CI - Node.js / Test (24) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (24) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 24) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 24) (push) Has been cancelled
CD - Docker - GHCR Images / Build and Push Images (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 11:55:53 +08:00
commit dde272c4b8
19405 changed files with 2730632 additions and 0 deletions
@@ -0,0 +1,12 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`process-frontmatter plugin > should have an output to match the snapshot 1`] = `
{
"challengeType": 0,
"forumTopicId": 18276,
"id": "bd7123c8c441eddfaeb5bdef",
"isHidden": false,
"title": "Say Hello to HTML Elements",
"videoUrl": "https://scrimba.com/p/pVMPUv/cE8Gpt2",
}
`;
@@ -0,0 +1,13 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`add-before-hook plugin > should have an output to match the snapshot 1`] = `
{
"hooks": {
"beforeAll": "// before all code
function foo() {
return 'bar';
}
foo();",
},
}
`;
@@ -0,0 +1,52 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`add-quizzes plugin > should match the quizzes snapshot 1`] = `
{
"quizzes": [
{
"questions": [
{
"answer": "<p>Quiz 1, question 1, answer</p>",
"distractors": [
"<p>Quiz 1, question 1, distractor 1</p>",
"<p>Quiz 1, question 1, distractor 2</p>",
"<p>Quiz 1, question 1, distractor 3</p>",
],
"text": "<p>Quiz 1, question 1</p>",
},
{
"answer": "<p>Quiz 1, question 2, answer</p>",
"distractors": [
"<p>Quiz 1, question 2, distractor 1</p>",
"<p>Quiz 1, question 2, distractor 2</p>",
"<p>Quiz 1, question 2, distractor 3</p>",
],
"text": "<p>Quiz 1, question 2</p>",
},
],
},
{
"questions": [
{
"answer": "<p>Quiz 2, question 1, answer</p>",
"distractors": [
"<p>Quiz 2, question 1, distractor 1</p>",
"<p>Quiz 2, question 1, distractor 2</p>",
"<p>Quiz 2, question 1, distractor 3</p>",
],
"text": "<p>Quiz 2, question 1</p>",
},
{
"answer": "<p>Quiz 2, question 2, answer</p>",
"distractors": [
"<p>Quiz 2, question 2, distractor 1</p>",
"<p>Quiz 2, question 2, distractor 2</p>",
"<p>Quiz 2, question 2, distractor 3</p>",
],
"text": "<p>Quiz 2, question 2</p>",
},
],
},
],
}
`;
@@ -0,0 +1,45 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`add-seed plugin > should have an output to match the snapshot 1`] = `
{
"challengeFiles": [
{
"contents": "<html>
<body>
</body>
</html>",
"editableRegionBoundaries": [],
"ext": "html",
"id": "",
"name": "index",
},
{
"contents": "body {
background: green;
}",
"editableRegionBoundaries": [],
"ext": "css",
"id": "",
"name": "styles",
},
{
"contents": "var x = 'y';",
"editableRegionBoundaries": [],
"ext": "js",
"id": "",
"name": "script",
},
{
"contents": "{
"compilerOptions": {
"target": "ES2020"
}
}",
"editableRegionBoundaries": [],
"ext": "json",
"id": "",
"name": "tsconfig",
},
],
}
`;
@@ -0,0 +1,33 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`add solution plugin > should have an output to match the snapshot 1`] = `
{
"solutions": [
[
{
"contents": "<html>
<body>
</body>
</html>",
"ext": "html",
"id": "html-key",
"name": "index",
},
{
"contents": "body {
background: white;
}",
"ext": "css",
"id": "",
"name": "styles",
},
{
"contents": "var x = 'y';",
"ext": "js",
"id": "",
"name": "script",
},
],
],
}
`;
@@ -0,0 +1,23 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`add-tests plugin > should have an output to match the snapshot 1`] = `
{
"tests": [
{
"testString": "// test code",
"text": "<p>First hint</p>",
},
{
"testString": "// more test code",
"text": "<p>Second hint with <code>code</code></p>",
},
{
"testString": "// more test code
if(let x of xs) {
console.log(x);
}",
"text": "<p>Third <em>hint</em> with <code>code</code> and <code>inline code</code></p>",
},
],
}
`;
@@ -0,0 +1,16 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`add-text > should have an output to match the snapshot 1`] = `
{
"description": "<section id="description">
<p>Paragraph 1</p>
<pre><code class="language-html">code example
</code></pre>
</section>",
"instructions": "<section id="instructions">
<p>Paragraph 0</p>
<pre><code class="language-html">code example 0
</code></pre>
</section>",
}
`;
@@ -0,0 +1,32 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`add-video-question plugin > should match the video snapshot 1`] = `
{
"questions": [
{
"answers": [
{
"answer": "<p>Some inline <code>code</code></p>",
"audioId": null,
"feedback": "<p>That is not correct.</p>",
},
{
"answer": "<p>Some <em>italics</em></p>
<p>A second answer paragraph.</p>",
"audioId": null,
"feedback": null,
},
{
"answer": "<p><code> code in </code> code tags</p>",
"audioId": null,
"feedback": null,
},
],
"solution": 3,
"text": "<p>Question line 1</p>
<pre><code class="language-js"> var x = 'y';
</code></pre>",
},
],
}
`;
@@ -0,0 +1,543 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`replace-imports > should have an output to match the snapshot 1`] = `
{
"children": [
{
"children": [
{
"position": {
"end": {
"column": 18,
"line": 3,
"offset": 67,
},
"start": {
"column": 3,
"line": 3,
"offset": 52,
},
},
"type": "text",
"value": "--description--",
},
],
"depth": 1,
"position": {
"end": {
"column": 18,
"line": 3,
"offset": 67,
},
"start": {
"column": 1,
"line": 3,
"offset": 50,
},
},
"type": "heading",
},
{
"children": [
{
"position": {
"end": {
"column": 12,
"line": 5,
"offset": 80,
},
"start": {
"column": 1,
"line": 5,
"offset": 69,
},
},
"type": "text",
"value": "Paragraph 1",
},
],
"position": {
"end": {
"column": 12,
"line": 5,
"offset": 80,
},
"start": {
"column": 1,
"line": 5,
"offset": 69,
},
},
"type": "paragraph",
},
{
"lang": "html",
"meta": null,
"position": {
"end": {
"column": 4,
"line": 9,
"offset": 106,
},
"start": {
"column": 1,
"line": 7,
"offset": 82,
},
},
"type": "code",
"value": "code example",
},
{
"children": [
{
"position": {
"end": {
"column": 19,
"line": 11,
"offset": 126,
},
"start": {
"column": 3,
"line": 11,
"offset": 110,
},
},
"type": "text",
"value": "--instructions--",
},
],
"depth": 1,
"position": {
"end": {
"column": 19,
"line": 11,
"offset": 126,
},
"start": {
"column": 1,
"line": 11,
"offset": 108,
},
},
"type": "heading",
},
{
"children": [
{
"position": {
"end": {
"column": 12,
"line": 13,
"offset": 139,
},
"start": {
"column": 1,
"line": 13,
"offset": 128,
},
},
"type": "text",
"value": "Paragraph 0",
},
],
"position": {
"end": {
"column": 12,
"line": 13,
"offset": 139,
},
"start": {
"column": 1,
"line": 13,
"offset": 128,
},
},
"type": "paragraph",
},
{
"lang": "html",
"meta": null,
"position": {
"end": {
"column": 4,
"line": 17,
"offset": 167,
},
"start": {
"column": 1,
"line": 15,
"offset": 141,
},
},
"type": "code",
"value": "code example 0",
},
{
"children": [
{
"position": {
"end": {
"column": 12,
"line": 19,
"offset": 180,
},
"start": {
"column": 3,
"line": 19,
"offset": 171,
},
},
"type": "text",
"value": "--hints--",
},
],
"depth": 1,
"position": {
"end": {
"column": 12,
"line": 19,
"offset": 180,
},
"start": {
"column": 1,
"line": 19,
"offset": 169,
},
},
"type": "heading",
},
{
"children": [
{
"position": {
"end": {
"column": 11,
"line": 21,
"offset": 192,
},
"start": {
"column": 1,
"line": 21,
"offset": 182,
},
},
"type": "text",
"value": "First hint",
},
],
"position": {
"end": {
"column": 11,
"line": 21,
"offset": 192,
},
"start": {
"column": 1,
"line": 21,
"offset": 182,
},
},
"type": "paragraph",
},
{
"lang": "js",
"meta": null,
"position": {
"end": {
"column": 4,
"line": 25,
"offset": 216,
},
"start": {
"column": 1,
"line": 23,
"offset": 194,
},
},
"type": "code",
"value": "// test code",
},
{
"children": [
{
"position": {
"end": {
"column": 18,
"line": 27,
"offset": 235,
},
"start": {
"column": 1,
"line": 27,
"offset": 218,
},
},
"type": "text",
"value": "Second hint with ",
},
{
"position": {
"end": {
"column": 24,
"line": 27,
"offset": 241,
},
"start": {
"column": 18,
"line": 27,
"offset": 235,
},
},
"type": "html",
"value": "<code>",
},
{
"position": {
"end": {
"column": 28,
"line": 27,
"offset": 245,
},
"start": {
"column": 24,
"line": 27,
"offset": 241,
},
},
"type": "text",
"value": "code",
},
{
"position": {
"end": {
"column": 35,
"line": 27,
"offset": 252,
},
"start": {
"column": 28,
"line": 27,
"offset": 245,
},
},
"type": "html",
"value": "</code>",
},
],
"position": {
"end": {
"column": 35,
"line": 27,
"offset": 252,
},
"start": {
"column": 1,
"line": 27,
"offset": 218,
},
},
"type": "paragraph",
},
{
"lang": "js",
"meta": null,
"position": {
"end": {
"column": 4,
"line": 31,
"offset": 281,
},
"start": {
"column": 1,
"line": 29,
"offset": 254,
},
},
"type": "code",
"value": "// more test code",
},
{
"children": [
{
"position": {
"end": {
"column": 11,
"line": 34,
"offset": 294,
},
"start": {
"column": 3,
"line": 34,
"offset": 286,
},
},
"type": "text",
"value": "--seed--",
},
],
"depth": 1,
"position": {
"end": {
"column": 11,
"line": 34,
"offset": 294,
},
"start": {
"column": 1,
"line": 34,
"offset": 284,
},
},
"type": "heading",
},
{
"children": [
{
"position": {
"end": {
"column": 21,
"line": 36,
"offset": 316,
},
"start": {
"column": 4,
"line": 36,
"offset": 299,
},
},
"type": "text",
"value": "--seed-contents--",
},
],
"depth": 2,
"position": {
"end": {
"column": 21,
"line": 36,
"offset": 316,
},
"start": {
"column": 1,
"line": 36,
"offset": 296,
},
},
"type": "heading",
},
{
"lang": "html",
"meta": null,
"position": {
"end": {
"column": 4,
"line": 43,
"offset": 363,
},
"start": {
"column": 1,
"line": 38,
"offset": 318,
},
},
"type": "code",
"value": "<html>
<body>
</body>
</html>",
},
{
"lang": "css",
"meta": null,
"position": {
"end": {
"column": 4,
"line": 49,
"offset": 405,
},
"start": {
"column": 1,
"line": 45,
"offset": 365,
},
},
"type": "code",
"value": "body {
background: green;
}",
},
{
"attributes": {
"id": "custom-name",
},
"children": [],
"name": "id",
"position": {
"end": {
"column": 19,
"line": 51,
"offset": 425,
},
"start": {
"column": 1,
"line": 51,
"offset": 407,
},
},
"type": "leafDirective",
},
{
"lang": "js",
"meta": null,
"position": {
"end": {
"column": 4,
"line": 55,
"offset": 449,
},
"start": {
"column": 1,
"line": 53,
"offset": 427,
},
},
"type": "code",
"value": "var x = 'y';",
},
{
"lang": "js",
"meta": null,
"position": {
"end": {
"column": 4,
"line": 6,
"offset": 125,
},
"start": {
"column": 1,
"line": 1,
"offset": 0,
},
},
"type": "code",
"value": "for (let index = 0; index < array.length; index++) {
const element = array[index];
// imported from script.md
}",
},
],
"position": {
"end": {
"column": 1,
"line": 58,
"offset": 477,
},
"start": {
"column": 1,
"line": 1,
"offset": 0,
},
},
"type": "root",
}
`;