Skip to content

Commit

Permalink
Merge pull request #156 from rajnishdargan/release-1.1.0
Browse files Browse the repository at this point in the history
Issue #PS-2840 feat: Changes to support multi-framework capabilites in Course Editor
  • Loading branch information
itsvick authored Dec 24, 2024
2 parents 4d7bc6e + 4c7c91b commit e6e4d11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/CollectionEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const CollectionEditor: React.FC = () => {

script.id = "collection-editor-js";
script.src =
"https://cdn.jsdelivr.net/npm/@project-sunbird/sunbird-collection-editor-web-component@latest/sunbird-collection-editor.js";
"https://cdn.jsdelivr.net/npm/@tekdi/sunbird-collection-editor-web-component@6.1.0-beta.0/sunbird-collection-editor.js";
script.async = true;
script.onload = () => setAssetsLoaded(true);
document.body.appendChild(script);
Expand All @@ -177,7 +177,7 @@ const CollectionEditor: React.FC = () => {
link.id = "collection-editor-css";
link.rel = "stylesheet";
link.href =
"https://cdn.jsdelivr.net/npm/@project-sunbird/sunbird-collection-editor-web-component@latest/styles.css";
"https://cdn.jsdelivr.net/npm/@tekdi/sunbird-collection-editor-web-component@6.1.0-beta.0/styles.css";
document.head.appendChild(link);
}

Expand Down
4 changes: 3 additions & 1 deletion src/services/ContentService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
CHANNEL_ID,
TENANT_ID,
FRAMEWORK_ID,
CONTENT_FRAMEWORK_ID
} from "@/utils/app.config";
import { v4 as uuidv4 } from "uuid";
import { PrimaryCategoryValue, Role } from "@/utils/app.constant";
Expand Down Expand Up @@ -244,7 +245,8 @@ export const createCourse = async (userId: any) => {
resourceType: "Course",
primaryCategory: "Course",
contentType: "Course",
framework: FRAMEWORK_ID,
framework: CONTENT_FRAMEWORK_ID,
targetFWIds: [FRAMEWORK_ID]
},
},
};
Expand Down

0 comments on commit e6e4d11

Please sign in to comment.