mario-teacher-student-client 2.1.85-admin → 2.1.86-admin

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.
@@ -12241,7 +12241,7 @@ var ConductIndex = function ConductIndex() {
12241
12241
  });
12242
12242
  var questionBlock2 = listQuestionStudents.filter(function (item) {
12243
12243
  return !!item.isBeforeSession;
12244
- }).slice(7, 13);
12244
+ }).slice(6, 13);
12245
12245
  var questionBlock4 = listQuestionStudents.filter(function (item) {
12246
12246
  return !item.isBeforeSession;
12247
12247
  }).slice(0, 4);
@@ -19392,11 +19392,14 @@ var useLearningProgress = function useLearningProgress(studentId) {
19392
19392
  setAnchorEl = _useState5[1];
19393
19393
 
19394
19394
  var learningProgressData = [];
19395
- var chatMonthLearningProgress = [];
19396
19395
 
19397
- var _useState6 = useState({
19396
+ var _useState6 = useState([]),
19397
+ chatMonthLearningProgress = _useState6[0],
19398
+ setChartMonthLearningProgress = _useState6[1];
19399
+
19400
+ var _useState7 = useState({
19398
19401
  chart: {
19399
- type: 'line',
19402
+ type: "line",
19400
19403
  toolbar: {
19401
19404
  show: false
19402
19405
  },
@@ -19409,8 +19412,8 @@ var useLearningProgress = function useLearningProgress(studentId) {
19409
19412
  enabled: false
19410
19413
  },
19411
19414
  legend: {
19412
- position: 'top',
19413
- horizontalAlign: 'center',
19415
+ position: "top",
19416
+ horizontalAlign: "center",
19414
19417
  width: 3 * widthChartLearningProgress / 5,
19415
19418
  offsetX: 170,
19416
19419
  markers: {
@@ -19421,7 +19424,7 @@ var useLearningProgress = function useLearningProgress(studentId) {
19421
19424
  markers: {
19422
19425
  size: 5
19423
19426
  },
19424
- colors: ['#76E4F7'],
19427
+ colors: ["#76E4F7"],
19425
19428
  stroke: {
19426
19429
  width: 2
19427
19430
  },
@@ -19435,15 +19438,15 @@ var useLearningProgress = function useLearningProgress(studentId) {
19435
19438
  }
19436
19439
  }
19437
19440
  }),
19438
- optionsLearningProgress = _useState6[0],
19439
- setOptions = _useState6[1];
19441
+ optionsLearningProgress = _useState7[0],
19442
+ setOptions = _useState7[1];
19440
19443
 
19441
- var _useState7 = useState([{
19442
- name: 'Learning Progress',
19444
+ var _useState8 = useState([{
19445
+ name: "Learning Progress",
19443
19446
  data: [0]
19444
19447
  }]),
19445
- seriesLearningProgress = _useState7[0],
19446
- setSeries = _useState7[1];
19448
+ seriesLearningProgress = _useState8[0],
19449
+ setSeries = _useState8[1];
19447
19450
 
19448
19451
  useEffect(function () {
19449
19452
  var screenWidthMe = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
@@ -19463,8 +19466,9 @@ var useLearningProgress = function useLearningProgress(studentId) {
19463
19466
  endDate: timeEndConference
19464
19467
  };
19465
19468
  return Promise.resolve(getDataLearningProgressServices(dispatch, studentId, timeSearch)).then(function (res) {
19469
+ var month = [];
19466
19470
  !!res && res.map(function (element) {
19467
- chatMonthLearningProgress.push(element.month);
19471
+ month.push(element.month);
19468
19472
  element.resultQuestion.map(function (data) {
19469
19473
  if (data.avgOfStudentChoice == 0) {
19470
19474
  learningProgressData.push(null);
@@ -19475,9 +19479,10 @@ var useLearningProgress = function useLearningProgress(studentId) {
19475
19479
  }
19476
19480
  });
19477
19481
  });
19482
+ setChartMonthLearningProgress(month);
19478
19483
  setOptions({
19479
19484
  chart: {
19480
- type: 'line',
19485
+ type: "line",
19481
19486
  toolbar: {
19482
19487
  show: false
19483
19488
  },
@@ -19493,8 +19498,8 @@ var useLearningProgress = function useLearningProgress(studentId) {
19493
19498
  enabled: false
19494
19499
  },
19495
19500
  legend: {
19496
- position: 'top',
19497
- horizontalAlign: 'center',
19501
+ position: "top",
19502
+ horizontalAlign: "center",
19498
19503
  width: 4 * widthChartLearningProgress / 5,
19499
19504
  offsetX: 170,
19500
19505
  markers: {
@@ -19525,7 +19530,7 @@ var useLearningProgress = function useLearningProgress(studentId) {
19525
19530
  }
19526
19531
  });
19527
19532
  setSeries([{
19528
- name: 'Learning Progress',
19533
+ name: "Learning Progress",
19529
19534
  data: learningProgressData
19530
19535
  }]);
19531
19536
  });
@@ -45262,6 +45267,8 @@ var usePersonalInterest$1 = function usePersonalInterest(studentId) {
45262
45267
 
45263
45268
  var handleCloseEdit = function handleCloseEdit() {
45264
45269
  setopenModalEdit(false);
45270
+ setFileUploadEdit("");
45271
+ setfileAvatarEdit("");
45265
45272
  };
45266
45273
 
45267
45274
  var handUpload = function handUpload(e) {
@@ -45381,7 +45388,10 @@ var usePersonalInterest$1 = function usePersonalInterest(studentId) {
45381
45388
 
45382
45389
  return Promise.resolve(upDateDataPersonalInterest(dispatch, idEdit, dataUpload)).then(function () {
45383
45390
  setopenModalEdit(false);
45384
- return Promise.resolve(dataGet()).then(function () {});
45391
+ return Promise.resolve(dataGet()).then(function () {
45392
+ setFileUploadEdit("");
45393
+ setfileAvatarEdit("");
45394
+ });
45385
45395
  });
45386
45396
  };
45387
45397