From fa271e1f38e47e06723dea3b5728b241ee6b3426 Mon Sep 17 00:00:00 2001 From: Rajnish Dargan Date: Tue, 11 Feb 2025 16:07:04 +0530 Subject: [PATCH 1/3] Issue #PS-3599 feat: Changes to Run player using pratham-middleware --- projects/quml-demo-app/src/app/app.component.ts | 2 +- projects/quml-demo-app/src/app/app.constant.ts | 4 ++-- projects/quml-demo-app/src/environments/environment.ts | 2 +- projects/quml-demo-app/src/proxy.conf.json | 6 +++--- web-component-examples/vanilla-js/index.html | 5 ++--- web-component/sunbird-quml-player.js | 10 +++++----- 6 files changed, 14 insertions(+), 15 deletions(-) diff --git a/projects/quml-demo-app/src/app/app.component.ts b/projects/quml-demo-app/src/app/app.component.ts index 7a92e1ab..80c7e4c7 100644 --- a/projects/quml-demo-app/src/app/app.component.ts +++ b/projects/quml-demo-app/src/app/app.component.ts @@ -8,7 +8,7 @@ import { DataService } from './services/data.service'; styleUrls: ['./app.component.css'] }) export class AppComponent implements OnInit { - contentId = 'do_11395276467516211211'; + contentId = 'do_214234702021410816111'; playerConfig: any; constructor(private dataService: DataService) { } diff --git a/projects/quml-demo-app/src/app/app.constant.ts b/projects/quml-demo-app/src/app/app.constant.ts index 441ba32d..5a0fc758 100644 --- a/projects/quml-demo-app/src/app/app.constant.ts +++ b/projects/quml-demo-app/src/app/app.constant.ts @@ -1,6 +1,6 @@ export const ApiEndPoints = { getContent: '/api/content/v1/read/', - getQuestionSetHierarchy: '/learner/questionset/v2/hierarchy/', - questionSetRead: '/api/questionset/v2/read/', + getQuestionSetHierarchy: '/action/questionset/v2/hierarchy/', + questionSetRead: '/action/questionset/v2/read/', questionList: '/api/question/v2/list', } \ No newline at end of file diff --git a/projects/quml-demo-app/src/environments/environment.ts b/projects/quml-demo-app/src/environments/environment.ts index db192a50..8975042c 100644 --- a/projects/quml-demo-app/src/environments/environment.ts +++ b/projects/quml-demo-app/src/environments/environment.ts @@ -4,7 +4,7 @@ export const environment = { production: false, - baseUrl: 'https://dev.sunbirded.org', + baseUrl: 'https://dev-middleware.prathamdigital.org', }; /* diff --git a/projects/quml-demo-app/src/proxy.conf.json b/projects/quml-demo-app/src/proxy.conf.json index 80f86397..eaa0068b 100644 --- a/projects/quml-demo-app/src/proxy.conf.json +++ b/projects/quml-demo-app/src/proxy.conf.json @@ -1,18 +1,18 @@ { "/api/*": { - "target": "https://dev.sunbirded.org", + "target": "https://dev-middleware.prathamdigital.org", "secure": false, "logLevel": "debug", "changeOrigin": true }, "/action/*": { - "target": "https://dev.sunbirded.org", + "target": "https://dev-middleware.prathamdigital.org", "secure": false, "logLevel": "debug", "changeOrigin": true }, "/assets/*": { - "target": "https://dev.sunbirded.org", + "target": "https://dev-middleware.prathamdigital.org", "secure": false, "logLevel": "debug", "changeOrigin": true diff --git a/web-component-examples/vanilla-js/index.html b/web-component-examples/vanilla-js/index.html index 3a46f9bb..a698433b 100644 --- a/web-component-examples/vanilla-js/index.html +++ b/web-component-examples/vanilla-js/index.html @@ -32,11 +32,10 @@