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.
@@ -12,6 +12,6 @@ declare const useLearningProgress: (studentId: any) => {
12
12
  handleClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
13
13
  handleClose: () => void;
14
14
  optionLearningProgress: ApexOptions;
15
- chatMonthLearningProgress: any;
15
+ chatMonthLearningProgress: string[];
16
16
  };
17
17
  export default useLearningProgress;
@@ -65,7 +65,7 @@ declare const useOverview: (studentId: number) => {
65
65
  chatMonthOneToOne: string[];
66
66
  chatMonthClassReflection: string[];
67
67
  chatMonthConference: string[];
68
- chatMonthLearningProgress: any;
68
+ chatMonthLearningProgress: string[];
69
69
  questionOneToOne: string[];
70
70
  questionClassReflection: string[];
71
71
  questionConference: string[];
@@ -60,7 +60,7 @@ declare const usePlpPage: () => {
60
60
  chatMonthOneToOne: string[];
61
61
  chatMonthClassReflection: string[];
62
62
  chatMonthConference: string[];
63
- chatMonthLearningProgress: any;
63
+ chatMonthLearningProgress: string[];
64
64
  questionOneToOne: string[];
65
65
  questionClassReflection: string[];
66
66
  questionConference: string[];
package/dist/index.js CHANGED
@@ -12245,7 +12245,7 @@ var ConductIndex = function ConductIndex() {
12245
12245
  });
12246
12246
  var questionBlock2 = listQuestionStudents.filter(function (item) {
12247
12247
  return !!item.isBeforeSession;
12248
- }).slice(7, 13);
12248
+ }).slice(6, 13);
12249
12249
  var questionBlock4 = listQuestionStudents.filter(function (item) {
12250
12250
  return !item.isBeforeSession;
12251
12251
  }).slice(0, 4);
@@ -19396,11 +19396,14 @@ var useLearningProgress = function useLearningProgress(studentId) {
19396
19396
  setAnchorEl = _useState5[1];
19397
19397
 
19398
19398
  var learningProgressData = [];
19399
- var chatMonthLearningProgress = [];
19400
19399
 
19401
- var _useState6 = React.useState({
19400
+ var _useState6 = React.useState([]),
19401
+ chatMonthLearningProgress = _useState6[0],
19402
+ setChartMonthLearningProgress = _useState6[1];
19403
+
19404
+ var _useState7 = React.useState({
19402
19405
  chart: {
19403
- type: 'line',
19406
+ type: "line",
19404
19407
  toolbar: {
19405
19408
  show: false
19406
19409
  },
@@ -19413,8 +19416,8 @@ var useLearningProgress = function useLearningProgress(studentId) {
19413
19416
  enabled: false
19414
19417
  },
19415
19418
  legend: {
19416
- position: 'top',
19417
- horizontalAlign: 'center',
19419
+ position: "top",
19420
+ horizontalAlign: "center",
19418
19421
  width: 3 * widthChartLearningProgress / 5,
19419
19422
  offsetX: 170,
19420
19423
  markers: {
@@ -19425,7 +19428,7 @@ var useLearningProgress = function useLearningProgress(studentId) {
19425
19428
  markers: {
19426
19429
  size: 5
19427
19430
  },
19428
- colors: ['#76E4F7'],
19431
+ colors: ["#76E4F7"],
19429
19432
  stroke: {
19430
19433
  width: 2
19431
19434
  },
@@ -19439,15 +19442,15 @@ var useLearningProgress = function useLearningProgress(studentId) {
19439
19442
  }
19440
19443
  }
19441
19444
  }),
19442
- optionsLearningProgress = _useState6[0],
19443
- setOptions = _useState6[1];
19445
+ optionsLearningProgress = _useState7[0],
19446
+ setOptions = _useState7[1];
19444
19447
 
19445
- var _useState7 = React.useState([{
19446
- name: 'Learning Progress',
19448
+ var _useState8 = React.useState([{
19449
+ name: "Learning Progress",
19447
19450
  data: [0]
19448
19451
  }]),
19449
- seriesLearningProgress = _useState7[0],
19450
- setSeries = _useState7[1];
19452
+ seriesLearningProgress = _useState8[0],
19453
+ setSeries = _useState8[1];
19451
19454
 
19452
19455
  React.useEffect(function () {
19453
19456
  var screenWidthMe = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
@@ -19467,8 +19470,9 @@ var useLearningProgress = function useLearningProgress(studentId) {
19467
19470
  endDate: timeEndConference
19468
19471
  };
19469
19472
  return Promise.resolve(getDataLearningProgressServices(dispatch, studentId, timeSearch)).then(function (res) {
19473
+ var month = [];
19470
19474
  !!res && res.map(function (element) {
19471
- chatMonthLearningProgress.push(element.month);
19475
+ month.push(element.month);
19472
19476
  element.resultQuestion.map(function (data) {
19473
19477
  if (data.avgOfStudentChoice == 0) {
19474
19478
  learningProgressData.push(null);
@@ -19479,9 +19483,10 @@ var useLearningProgress = function useLearningProgress(studentId) {
19479
19483
  }
19480
19484
  });
19481
19485
  });
19486
+ setChartMonthLearningProgress(month);
19482
19487
  setOptions({
19483
19488
  chart: {
19484
- type: 'line',
19489
+ type: "line",
19485
19490
  toolbar: {
19486
19491
  show: false
19487
19492
  },
@@ -19497,8 +19502,8 @@ var useLearningProgress = function useLearningProgress(studentId) {
19497
19502
  enabled: false
19498
19503
  },
19499
19504
  legend: {
19500
- position: 'top',
19501
- horizontalAlign: 'center',
19505
+ position: "top",
19506
+ horizontalAlign: "center",
19502
19507
  width: 4 * widthChartLearningProgress / 5,
19503
19508
  offsetX: 170,
19504
19509
  markers: {
@@ -19529,7 +19534,7 @@ var useLearningProgress = function useLearningProgress(studentId) {
19529
19534
  }
19530
19535
  });
19531
19536
  setSeries([{
19532
- name: 'Learning Progress',
19537
+ name: "Learning Progress",
19533
19538
  data: learningProgressData
19534
19539
  }]);
19535
19540
  });
@@ -45266,6 +45271,8 @@ var usePersonalInterest$1 = function usePersonalInterest(studentId) {
45266
45271
 
45267
45272
  var handleCloseEdit = function handleCloseEdit() {
45268
45273
  setopenModalEdit(false);
45274
+ setFileUploadEdit("");
45275
+ setfileAvatarEdit("");
45269
45276
  };
45270
45277
 
45271
45278
  var handUpload = function handUpload(e) {
@@ -45385,7 +45392,10 @@ var usePersonalInterest$1 = function usePersonalInterest(studentId) {
45385
45392
 
45386
45393
  return Promise.resolve(upDateDataPersonalInterest(dispatch, idEdit, dataUpload)).then(function () {
45387
45394
  setopenModalEdit(false);
45388
- return Promise.resolve(dataGet()).then(function () {});
45395
+ return Promise.resolve(dataGet()).then(function () {
45396
+ setFileUploadEdit("");
45397
+ setfileAvatarEdit("");
45398
+ });
45389
45399
  });
45390
45400
  };
45391
45401