Skip to content

Commit

Permalink
Merge pull request #2 from pavankumar0408/exam-validation
Browse files Browse the repository at this point in the history
Add library issue fixed
  • Loading branch information
santhosh-tarento authored Sep 12, 2023
2 parents 58a7f3a + 57a24ef commit b3de545
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 11 deletions.
12 changes: 6 additions & 6 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,20 @@
},
{
"glob": "**/*",
"input": "node_modules/@project-sunbird/sunbird-quml-player-web-component/assets/",
"input": "node_modules/compass-quml-player-web-component/assets/",
"output": "/assets/"
}
],
"styles": [
"node_modules/@project-sunbird/sunbird-quml-player-web-component/styles.css",
"node_modules/compass-quml-player-web-component/styles.css",
"node_modules/@project-sunbird/sb-styles/assets/_styles.scss",
"src/styles.scss",
"src/assets/lib/semantic/semantic.min.css",
"src/assets/styles/styles.scss",
"node_modules/font-awesome/css/font-awesome.css"
],
"scripts": [
"node_modules/@project-sunbird/sunbird-quml-player-web-component/sunbird-quml-player.js",
"node_modules/compass-quml-player-web-component/sunbird-quml-player.js",
"src/assets/libs/iziToast/iziToast.min.js",
"node_modules/jquery.fancytree/dist/jquery.fancytree-all-deps.min.js",
"src/assets/lib/dimmer.min.js",
Expand Down Expand Up @@ -222,20 +222,20 @@
},
{
"glob": "**/*",
"input": "node_modules/@project-sunbird/sunbird-quml-player-web-component/assets/",
"input": "node_modules/compass-quml-player-web-component/assets/",
"output": "/assets/"
}
],
"styles": [
"node_modules/@project-sunbird/sunbird-quml-player-web-component/styles.css",
"node_modules/compass-quml-player-web-component/styles.css",
"projects/questionset-editor-library-wc/src/styles.scss",
"node_modules/@project-sunbird/sb-styles/assets/_styles.scss",
"src/assets/lib/semantic/semantic.min.css",
"src/assets/styles/styles.scss",
"node_modules/font-awesome/css/font-awesome.css"
],
"scripts": [
"node_modules/@project-sunbird/sunbird-quml-player-web-component/sunbird-quml-player.js",
"node_modules/compass-quml-player-web-component/sunbird-quml-player.js",
"src/assets/libs/iziToast/iziToast.min.js",
"node_modules/jquery.fancytree/dist/jquery.fancytree-all-deps.min.js",
"src/assets/lib/dimmer.min.js",
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@
"@project-sunbird/client-services": "5.0.0",
"@project-sunbird/common-form-elements-full": "^6.0.3",
"@project-sunbird/sb-styles": "0.0.9",
"@project-sunbird/sunbird-quml-player-web-component": "file:../../Sunbird-inQuiry-player/player/project-sunbird-sunbird-quml-player-web-component-2.1.0-beta.0.tgz",
"@project-sunbird/sunbird-resource-library": "file:../../Sunbird-inQuiry-resource-library/sunbird-resource-library/project-sunbird-sunbird-resource-library-6.1.0-beta.0.tgz",
"@project-sunbird/sunbird-quml-player-web-component": "^2.1.0-beta.0",
"@project-sunbird/sunbird-resource-library": "^6.1.0-beta.1",
"@project-sunbird/telemetry-sdk": "0.0.29",
"@types/jquery": "^3.5.5",
"alphanum-sort": "^1.0.2",
"async": "^3.2.4",
"compass-quml-player-web-component": "^0.0.2",
"compass-resource-library": "^0.0.1",
"concat": "^1.0.3",
"core-js": "^2.5.4",
"export-to-csv": "^0.2.1",
Expand All @@ -47,7 +49,7 @@
"gulp": "^4.0.2",
"gulp-svgmin": "^3.0.0",
"jquery": "^3.5.1",
"jquery.fancytree": "^2.37.0",
"jquery.fancytree": "^2.38.3",
"karma-mocha-reporter": "^2.2.5",
"lodash-es": "^4.17.21",
"mathjax-full": "^3.1.2",
Expand Down
2 changes: 1 addition & 1 deletion projects/questionset-editor-library/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "compass-collection-editor",
"version": "0.0.1",
"version": "0.0.4",
"dependencies": {
"tslib": "^2.0.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ export class EditorComponent implements OnInit, OnDestroy, AfterViewInit {
editorConfig: this.editorConfig,
searchFormConfig: this.questionlibraryInput.searchFormConfig
};
this.questionlibraryInput.collection.eval = this.treeService.getEval();
this.pageId = 'question_library';
console.log(this.questionlibraryInput);
}).catch(((error: string) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ import { SliderComponent } from './components/slider/slider.component';
import { TranslationsComponent } from './components/translations/translations.component';
import { PublishChecklistComponent } from './components/publish-checklist/publish-checklist.component';
import { RelationalMetadataComponent } from './components/relational-metadata/relational-metadata.component';
import { ResourceLibraryModule } from '@project-sunbird/sunbird-resource-library';
// import { ResourceLibraryModule } from '@project-sunbird/sunbird-resource-library';
import { ResourceLibraryModule } from 'compass-resource-library';
import { AppLoaderComponent } from './components/app-loader/app-loader.component';
import { AssignPageNumberComponent } from './components/assign-page-number/assign-page-number.component';
import { PlainTreeComponent } from './components/plain-tree/plain-tree.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
"server":{"mode":"server"},
"client":{"mode":"client"},
"editorModeCheck":"server",
"serverSearch": "{\"mode\":\"server\"}",
"clientSearch": "{\"mode\":\"client\"}",
"questionSet": {
"maxQuestionsLimit": "500"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,11 @@ export class TreeService {
$(this.treeNativeElement).fancytree('getRootNode').getFirstChild().data.eval = evalMode;
}

getEval() {
return $(this.treeNativeElement).fancytree('getRootNode').getFirstChild().data?.eval == this.configService.editorConfig.server ||
$(this.treeNativeElement).fancytree('getRootNode').getFirstChild().data.metadata?.eval.mode == this.configService.editorConfig.server.mode ? this.configService.editorConfig.serverSearch : this.configService.editorConfig.clientSearch
}

overrideEvaluable(nodeId){
const firstNode = this.getFirstChild()
if(this.getFirstChild().data.metadata.mode) {
Expand Down

0 comments on commit b3de545

Please sign in to comment.