@learnpack/learnpack 5.0.162 → 5.0.166
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/README.md +13 -13
- package/lib/commands/serve.d.ts +2 -8
- package/lib/commands/serve.js +13 -2
- package/lib/creatorDist/assets/{index-BG3HTk_l.js → index-4XkqESUr.js} +6221 -6169
- package/lib/creatorDist/index.html +1 -1
- package/lib/utils/api.d.ts +1 -0
- package/lib/utils/api.js +15 -0
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
- package/src/commands/serve.ts +18 -11
- package/src/creator/src/App.tsx +7 -0
- package/src/creator/src/assets/svgs.tsx +2 -2
- package/src/creator/src/components/syllabus/ContentIndex.tsx +34 -32
- package/src/creator/src/components/syllabus/SyllabusEditor.tsx +24 -0
- package/src/creator/src/utils/lib.ts +46 -0
- package/src/creator/src/utils/store.ts +1 -0
- package/src/creatorDist/assets/{index-BG3HTk_l.js → index-4XkqESUr.js} +6221 -6169
- package/src/creatorDist/index.html +1 -1
- package/src/ui/_app/app.css +1 -1
- package/src/ui/_app/app.js +308 -308
- package/src/ui/app.tar.gz +0 -0
- package/src/utils/api.ts +15 -0
package/src/ui/app.tar.gz
CHANGED
Binary file
|
package/src/utils/api.ts
CHANGED
@@ -544,6 +544,20 @@ const updateRigoAssetID = async (
|
|
544
544
|
}
|
545
545
|
}
|
546
546
|
|
547
|
+
const createRigoPackage = async (token: string, slug: string, config: any) => {
|
548
|
+
const url = `${RIGOBOT_HOST}/v1/learnpack/package`
|
549
|
+
const headers = {
|
550
|
+
Authorization: `Token ${token}`,
|
551
|
+
}
|
552
|
+
try {
|
553
|
+
const response = await axios.post(url, { slug, config }, { headers })
|
554
|
+
return response.data
|
555
|
+
} catch (error) {
|
556
|
+
console.error("Failed to create Rigo package:", error)
|
557
|
+
throw error
|
558
|
+
}
|
559
|
+
}
|
560
|
+
|
547
561
|
export default {
|
548
562
|
login,
|
549
563
|
publish,
|
@@ -560,4 +574,5 @@ export default {
|
|
560
574
|
updateAsset,
|
561
575
|
getCategories,
|
562
576
|
updateRigoAssetID,
|
577
|
+
createRigoPackage,
|
563
578
|
}
|