@learnpack/learnpack 5.0.319 → 5.0.320
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commands/serve.js +17 -17
- package/lib/creatorDist/assets/{index-XZDcEWl9.js → index-BhqDgBS9.js} +588 -585
- package/lib/creatorDist/index.html +1 -1
- package/package.json +1 -1
- package/src/commands/serve.ts +3462 -3461
- package/src/creator/src/components/syllabus/SyllabusEditor.tsx +20 -9
- package/src/creatorDist/assets/{index-XZDcEWl9.js → index-BhqDgBS9.js} +588 -585
- package/src/creatorDist/index.html +1 -1
- package/src/ui/_app/app.css +1 -1
- package/src/ui/_app/app.js +2264 -2273
- package/src/ui/app.tar.gz +0 -0
package/lib/commands/serve.js
CHANGED
|
@@ -90,18 +90,18 @@ async function fetchComponentsYml() {
|
|
|
90
90
|
axios_1.default.get("https://raw.githubusercontent.com/learnpack/ide/refs/heads/master/docs/assessment_components.yml"),
|
|
91
91
|
axios_1.default.get("https://raw.githubusercontent.com/learnpack/ide/refs/heads/master/docs/explanatory_components.yml"),
|
|
92
92
|
]);
|
|
93
|
-
const combinedContent = `
|
|
94
|
-
# ASSESSMENT COMPONENTS
|
|
95
|
-
These components are designed for evaluation and knowledge assessment:
|
|
96
|
-
|
|
97
|
-
${assessmentResponse.data}
|
|
98
|
-
|
|
99
|
-
---
|
|
100
|
-
|
|
101
|
-
# EXPLANATORY COMPONENTS
|
|
102
|
-
These components are designed for explanation and learning support:
|
|
103
|
-
|
|
104
|
-
${explanatoryResponse.data}
|
|
93
|
+
const combinedContent = `
|
|
94
|
+
# ASSESSMENT COMPONENTS
|
|
95
|
+
These components are designed for evaluation and knowledge assessment:
|
|
96
|
+
|
|
97
|
+
${assessmentResponse.data}
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
# EXPLANATORY COMPONENTS
|
|
102
|
+
These components are designed for explanation and learning support:
|
|
103
|
+
|
|
104
|
+
${explanatoryResponse.data}
|
|
105
105
|
`;
|
|
106
106
|
return combinedContent;
|
|
107
107
|
}
|
|
@@ -135,10 +135,10 @@ const createInitialSidebar = async (slugs, initialLanguage = "en") => {
|
|
|
135
135
|
return sidebar;
|
|
136
136
|
};
|
|
137
137
|
const uploadInitialReadme = async (bucket, exSlug, targetDir, packageContext) => {
|
|
138
|
-
const isGeneratingText = `
|
|
139
|
-
\`\`\`loader slug="${exSlug}"
|
|
140
|
-
:rigo
|
|
141
|
-
\`\`\`
|
|
138
|
+
const isGeneratingText = `
|
|
139
|
+
\`\`\`loader slug="${exSlug}"
|
|
140
|
+
:rigo
|
|
141
|
+
\`\`\`
|
|
142
142
|
`;
|
|
143
143
|
const readmeFilename = `README${(0, creatorUtilities_1.getReadmeExtension)(packageContext.language || "en")}`;
|
|
144
144
|
await uploadFileToBucket(bucket, isGeneratingText, `${targetDir}/${readmeFilename}`);
|
|
@@ -148,7 +148,7 @@ const cleanFormState = (formState) => {
|
|
|
148
148
|
return rest;
|
|
149
149
|
};
|
|
150
150
|
const cleanFormStateForSyllabus = (formState) => {
|
|
151
|
-
return Object.assign(Object.assign({}, formState), { description: formState.description, technologies: formState.technologies, purposse: undefined, duration: undefined, hasContentIndex: undefined, variables: undefined, currentStep: undefined, language: undefined, isCompleted: undefined });
|
|
151
|
+
return Object.assign(Object.assign({}, formState), { description: formState.description, technologies: formState.technologies, contentIndex: formState.contentIndex, purposse: undefined, duration: undefined, hasContentIndex: undefined, variables: undefined, currentStep: undefined, language: undefined, isCompleted: undefined });
|
|
152
152
|
};
|
|
153
153
|
const createMultiLangAsset = async (bucket, rigoToken, bcToken, courseSlug, courseJson, deployUrl) => {
|
|
154
154
|
const availableLangs = Object.keys(courseJson.title);
|