touchstudy-core 0.1.85 → 0.1.87

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.
Files changed (62) hide show
  1. package/dist/components/CkEditor/CkEditor.d.ts +10 -0
  2. package/dist/components/CkEditor/config.d.ts +19 -0
  3. package/dist/components/ErrorHandler.d.ts +6 -0
  4. package/dist/components/LabelRequired.d.ts +8 -0
  5. package/dist/components/Selectors/ClassSelector.d.ts +10 -0
  6. package/dist/components/Selectors/StudentSelector.d.ts +10 -0
  7. package/dist/containers/Classes/apiClients/classService.d.ts +16 -0
  8. package/dist/containers/Classes/apiClients/teacherService.d.ts +2 -0
  9. package/dist/containers/Classes/components/ClassForm.d.ts +4 -0
  10. package/dist/containers/Classes/components/CorrectAnswerSelector.d.ts +7 -0
  11. package/dist/containers/Classes/components/LessonFormBody.d.ts +4 -0
  12. package/dist/containers/Classes/components/LessonFormDialog.d.ts +14 -0
  13. package/dist/containers/Classes/components/LessonList.d.ts +27 -0
  14. package/dist/containers/Classes/components/SelectDialog.d.ts +30 -0
  15. package/dist/containers/Classes/components/StudentList.d.ts +21 -0
  16. package/dist/containers/Classes/components/TeacherList.d.ts +21 -0
  17. package/dist/containers/Classes/components/TeacherSelector.d.ts +11 -0
  18. package/dist/containers/Classes/configs/constants.d.ts +70 -0
  19. package/dist/containers/Classes/configs/interfaces.d.ts +23 -0
  20. package/dist/containers/Classes/configs/types.d.ts +215 -0
  21. package/dist/containers/Classes/hooks/useClassDetail.d.ts +105 -0
  22. package/dist/containers/Classes/hooks/useClassList.d.ts +20 -0
  23. package/dist/containers/Classes/hooks/useLessonClassList.d.ts +20 -0
  24. package/dist/containers/Classes/hooks/useStudentClassList.d.ts +22 -0
  25. package/dist/containers/Classes/hooks/useTab.d.ts +5 -0
  26. package/dist/containers/Classes/hooks/useTeacherClassList.d.ts +22 -0
  27. package/dist/containers/Classes/hooks/useTeacherList.d.ts +6 -0
  28. package/dist/containers/Classes/views/ClassDetail.d.ts +10 -0
  29. package/dist/containers/Classes/views/ClassList.d.ts +10 -0
  30. package/dist/containers/Login/apiClient/index.d.ts +5 -2
  31. package/dist/containers/Login/hooks/useLogin.d.ts +4 -2
  32. package/dist/containers/Notifications/apiClients/notificationService.d.ts +6 -0
  33. package/dist/containers/Notifications/components/NotificationForm.d.ts +4 -0
  34. package/dist/containers/Notifications/components/SelectFilterType.d.ts +13 -0
  35. package/dist/containers/Notifications/components/TypeSelector.d.ts +13 -0
  36. package/dist/containers/Notifications/configs/constants.d.ts +14 -0
  37. package/dist/containers/Notifications/configs/interfaces.d.ts +10 -0
  38. package/dist/containers/Notifications/configs/types.d.ts +60 -0
  39. package/dist/containers/Notifications/hooks/useNotificationDetail.d.ts +23 -0
  40. package/dist/containers/Notifications/hooks/useNotificationList.d.ts +29 -0
  41. package/dist/containers/Notifications/views/NotificationDetail.d.ts +9 -0
  42. package/dist/containers/Notifications/views/NotificationList.d.ts +8 -0
  43. package/dist/containers/Users/apiClient/userService.d.ts +9 -0
  44. package/dist/containers/Users/components/Dialogs/DeleteUserCsvDialog.d.ts +10 -0
  45. package/dist/containers/Users/components/Dialogs/RecentUserActionDialog.d.ts +9 -0
  46. package/dist/containers/Users/components/Dialogs/UserDialog.d.ts +12 -0
  47. package/dist/containers/Users/configs/constants.d.ts +37 -0
  48. package/dist/containers/Users/configs/types.d.ts +11 -0
  49. package/dist/containers/Users/hooks/useExportUsersCsv.d.ts +5 -0
  50. package/dist/containers/Users/hooks/useRecentUserAction.d.ts +10 -0
  51. package/dist/containers/Users/hooks/useUserList.d.ts +40 -0
  52. package/dist/containers/Users/views/UserList.d.ts +7 -0
  53. package/dist/index.js +67 -34
  54. package/dist/index.js.map +1 -1
  55. package/dist/index.modern.js +67 -34
  56. package/dist/index.modern.js.map +1 -1
  57. package/dist/services/classService.d.ts +4 -0
  58. package/dist/services/studentService.d.ts +1 -0
  59. package/dist/utils/enums/userSortColumn.d.ts +11 -0
  60. package/dist/utils/toLocalTime.d.ts +1 -0
  61. package/dist/utils/types/users.d.ts +17 -0
  62. package/package.json +1 -1
@@ -798,11 +798,16 @@ var BlockLogin = function BlockLogin(_ref3) {
798
798
  onSubmit: onSubmit
799
799
  }, function (_ref4) {
800
800
  var errors = _ref4.errors,
801
+ values = _ref4.values,
801
802
  setFieldValue = _ref4.setFieldValue;
803
+ console.log({
804
+ errors: errors,
805
+ values: values
806
+ });
802
807
  useEffect(function () {
803
- if (isEmail) setFieldValue("otp", "");
804
- if (!isOTP && !isEmail) {
808
+ if (isOTP) {
805
809
  setFieldValue("email", "");
810
+ } else {
806
811
  setFieldValue("otp", "");
807
812
  }
808
813
  }, [isOTP, isEmail]);
@@ -838,9 +843,8 @@ var BlockLogin = function BlockLogin(_ref3) {
838
843
  fontSize: "14px",
839
844
  fontWeight: 700,
840
845
  color: blue[700]
841
- }, t("sign_in_with_email"))))), (isEmail || isOTP) && React__default.createElement(Stack, null, React__default.createElement(Stack, {
846
+ }, t("sign_in_with_email"))))), (isEmail || isOTP) && React__default.createElement(Stack, null, !isOTP ? React__default.createElement(Stack, {
842
847
  flexDirection: "column",
843
- display: isOTP ? "none" : "flex",
844
848
  gap: 1
845
849
  }, React__default.createElement(Typography, {
846
850
  fontWeight: 700,
@@ -856,9 +860,8 @@ var BlockLogin = function BlockLogin(_ref3) {
856
860
  fontSize: "10px",
857
861
  lineHeight: "11.93px",
858
862
  color: !(errors !== null && errors !== void 0 && errors.email) ? "#97A1AF" : "#F34B4B"
859
- }, errors === null || errors === void 0 ? void 0 : errors.email)), React__default.createElement(Stack, {
863
+ }, errors === null || errors === void 0 ? void 0 : errors.email)) : React__default.createElement(Stack, {
860
864
  flexDirection: "column",
861
- display: !isOTP ? "none" : "flex",
862
865
  gap: 1
863
866
  }, React__default.createElement(Typography, {
864
867
  fontWeight: 700,
@@ -897,18 +900,10 @@ var BlockLogin = function BlockLogin(_ref3) {
897
900
  color: blue[700]
898
901
  }, t("sign_in_with_google_account"))), React__default.createElement(Stack, {
899
902
  flexDirection: "row",
900
- justifyContent: isOTP ? "space-between" : "end",
903
+ justifyContent: "end",
901
904
  gap: 1,
902
905
  mt: 2
903
- }, isOTP && React__default.createElement(Button, {
904
- variant: "contained",
905
- color: "secondary",
906
- className: "bg-secondary",
907
- onClick: function onClick() {
908
- handleSwitchEmail(true);
909
- handleSwitchOTP(false);
910
- }
911
- }, t("back")), React__default.createElement(Button, {
906
+ }, React__default.createElement(Button, {
912
907
  variant: "contained",
913
908
  color: "primary",
914
909
  type: "submit",
@@ -945,14 +940,10 @@ var signInWithEmailApi = function signInWithEmailApi(_ref2) {
945
940
  var signInWithOTPApi = function signInWithOTPApi(_ref3) {
946
941
  var academyDomain = _ref3.academyDomain,
947
942
  otp = _ref3.otp,
948
- email = _ref3.email,
949
- reCaptcha = _ref3.reCaptcha,
950
943
  role = _ref3.role;
951
944
  return api.post((academyDomain ? SIGN_IN_URL : SIGN_IN_SUPER_ADMIN_URL) + "/otp", {
952
945
  otp: otp,
953
- email: email,
954
- role: role,
955
- reCaptcha: reCaptcha
946
+ role: role
956
947
  });
957
948
  };
958
949
  var signInWithKeyApi = function signInWithKeyApi(_ref4) {
@@ -1039,9 +1030,6 @@ var useLogin$1 = function useLogin(_ref) {
1039
1030
  var handleSubmit = function handleSubmit(values) {
1040
1031
  try {
1041
1032
  var _temp5 = function _temp5() {
1042
- setRefreshReCaptcha(function (b) {
1043
- return !b;
1044
- });
1045
1033
  dispatch(setLoading(false));
1046
1034
  };
1047
1035
  if (!tokenReCaptcha) return Promise.resolve();
@@ -1051,13 +1039,11 @@ var useLogin$1 = function useLogin(_ref) {
1051
1039
  var _temp4 = _catch(function () {
1052
1040
  function _temp3() {
1053
1041
  var _temp = function () {
1054
- if (email && otp) {
1042
+ if (otp) {
1055
1043
  return Promise.resolve(signInWithOTPApi({
1056
1044
  academyDomain: academyDomain,
1057
- email: email,
1058
1045
  otp: otp,
1059
- role: role,
1060
- reCaptcha: tokenReCaptcha
1046
+ role: role
1061
1047
  })).then(function (res) {
1062
1048
  var loginResponse = res === null || res === void 0 ? void 0 : res.data;
1063
1049
  var isFirstLogin = loginResponse.isFirstLogin,
@@ -1074,7 +1060,7 @@ var useLogin$1 = function useLogin(_ref) {
1074
1060
  if (_temp && _temp.then) return _temp.then(function () {});
1075
1061
  }
1076
1062
  var _temp2 = function () {
1077
- if (email && !otp) {
1063
+ if (email) {
1078
1064
  return Promise.resolve(signInWithEmailApi({
1079
1065
  academyDomain: academyDomain,
1080
1066
  email: email,
@@ -1083,6 +1069,9 @@ var useLogin$1 = function useLogin(_ref) {
1083
1069
  toast.success(t("please_check_your_mailbox"));
1084
1070
  handleSwitchOTP(true);
1085
1071
  handleSwitchEmail(false);
1072
+ setRefreshReCaptcha(function (b) {
1073
+ return !b;
1074
+ });
1086
1075
  });
1087
1076
  }
1088
1077
  }();
@@ -2482,6 +2471,7 @@ var trick_problem = "함정 문제";
2482
2471
  var differential_problem = "변별력 문제";
2483
2472
  var difficult_problem = "어려운 문제";
2484
2473
  var general_problem = "일반적인 문제";
2474
+ var super_difficult_problem = "엄청 어려운 문제";
2485
2475
  var fingerprint = "지문";
2486
2476
  var end = "종료";
2487
2477
  var ask_for_feedback = "피드백 요청하기";
@@ -2902,6 +2892,16 @@ var max_is_6 = "최대는 6입니다";
2902
2892
  var must_be_number = "숫자여야 합니다.";
2903
2893
  var sign_in_with_google_account = "구글 계정으로 로그인";
2904
2894
  var academy_role = "아카데미 역할";
2895
+ var academy_management = "아카데미 관리";
2896
+ var manage_users = "사용자 관리";
2897
+ var manage_classes = "수업 관리";
2898
+ var manage_notifications = "알림 관리";
2899
+ var late = "늦은";
2900
+ var total_student = "총 학생 수";
2901
+ var total_teacher = "총 교사 수";
2902
+ var total_exam = "총 시험 수";
2903
+ var total_exam_time = "총 시험 시간";
2904
+ var total_question = "총 질문 수";
2905
2905
  var lang_ko = {
2906
2906
  problem_solving: problem_solving,
2907
2907
  my_story: my_story,
@@ -3266,6 +3266,7 @@ var lang_ko = {
3266
3266
  differential_problem: differential_problem,
3267
3267
  difficult_problem: difficult_problem,
3268
3268
  general_problem: general_problem,
3269
+ super_difficult_problem: super_difficult_problem,
3269
3270
  fingerprint: fingerprint,
3270
3271
  end: end,
3271
3272
  ask_for_feedback: ask_for_feedback,
@@ -3689,7 +3690,17 @@ var lang_ko = {
3689
3690
  max_is_6: max_is_6,
3690
3691
  must_be_number: must_be_number,
3691
3692
  sign_in_with_google_account: sign_in_with_google_account,
3692
- academy_role: academy_role
3693
+ academy_role: academy_role,
3694
+ academy_management: academy_management,
3695
+ manage_users: manage_users,
3696
+ manage_classes: manage_classes,
3697
+ manage_notifications: manage_notifications,
3698
+ late: late,
3699
+ total_student: total_student,
3700
+ total_teacher: total_teacher,
3701
+ total_exam: total_exam,
3702
+ total_exam_time: total_exam_time,
3703
+ total_question: total_question
3693
3704
  };
3694
3705
 
3695
3706
  var problem_solving$1 = "Problem Solving";
@@ -3927,7 +3938,7 @@ var check_attendance$1 = "Check attendance";
3927
3938
  var attendance_check$1 = "Attendance check";
3928
3939
  var class_date$1 = "Class date";
3929
3940
  var class_time$1 = "Class time";
3930
- var attendance$1 = "Attendance List";
3941
+ var attendance$1 = "Attendance";
3931
3942
  var attendance_completed$1 = "Attendance completed";
3932
3943
  var none_attendance$1 = "Non-attendance";
3933
3944
  var academy_list$1 = "Academy list";
@@ -4090,6 +4101,7 @@ var trick_problem$1 = "Trick problem";
4090
4101
  var differential_problem$1 = "Differential problem";
4091
4102
  var difficult_problem$1 = "Difficult problem";
4092
4103
  var general_problem$1 = "General problem";
4104
+ var super_difficult_problem$1 = "Super difficult problem";
4093
4105
  var fingerprint$1 = "Fingerprint";
4094
4106
  var end$1 = "end";
4095
4107
  var ask_for_feedback$1 = "Ask for feedback";
@@ -4487,6 +4499,16 @@ var max_is_6$1 = "Max is 6";
4487
4499
  var must_be_number$1 = "Must be number";
4488
4500
  var sign_in_with_google_account$1 = "Sign in with google account";
4489
4501
  var academy_role$1 = "Academy role";
4502
+ var academy_management$1 = "Academy management";
4503
+ var manage_users$1 = "Manage users";
4504
+ var manage_classes$1 = "Manage classes";
4505
+ var manage_notifications$1 = "Manage notifications";
4506
+ var late$1 = "Late";
4507
+ var total_student$1 = "Total Student";
4508
+ var total_teacher$1 = "Total Teacher";
4509
+ var total_exam$1 = "Total Exam";
4510
+ var total_exam_time$1 = "Total Exam Time";
4511
+ var total_question$1 = "Total Question";
4490
4512
  var lang_en = {
4491
4513
  problem_solving: problem_solving$1,
4492
4514
  my_story: my_story$1,
@@ -4875,6 +4897,7 @@ var lang_en = {
4875
4897
  differential_problem: differential_problem$1,
4876
4898
  difficult_problem: difficult_problem$1,
4877
4899
  general_problem: general_problem$1,
4900
+ super_difficult_problem: super_difficult_problem$1,
4878
4901
  fingerprint: fingerprint$1,
4879
4902
  end: end$1,
4880
4903
  ask_for_feedback: ask_for_feedback$1,
@@ -5275,7 +5298,17 @@ var lang_en = {
5275
5298
  max_is_6: max_is_6$1,
5276
5299
  must_be_number: must_be_number$1,
5277
5300
  sign_in_with_google_account: sign_in_with_google_account$1,
5278
- academy_role: academy_role$1
5301
+ academy_role: academy_role$1,
5302
+ academy_management: academy_management$1,
5303
+ manage_users: manage_users$1,
5304
+ manage_classes: manage_classes$1,
5305
+ manage_notifications: manage_notifications$1,
5306
+ late: late$1,
5307
+ total_student: total_student$1,
5308
+ total_teacher: total_teacher$1,
5309
+ total_exam: total_exam$1,
5310
+ total_exam_time: total_exam_time$1,
5311
+ total_question: total_question$1
5279
5312
  };
5280
5313
 
5281
5314
  i18n.use(initReactI18next).init({
@@ -14204,13 +14237,13 @@ var CompareGrass = function CompareGrass(_ref2) {
14204
14237
  fontSize: "11px"
14205
14238
  },
14206
14239
  className: "" + printStyles["avoid-break-inside"]
14207
- }, t("general_problem")), problem === 4 && React__default.createElement(ChipCustom, {
14240
+ }, t("general_problem")), (problem === 4 || problem === 5) && React__default.createElement(ChipCustom, {
14208
14241
  style: {
14209
14242
  border: "1px solid #FF0000",
14210
14243
  fontSize: "11px"
14211
14244
  },
14212
14245
  className: "" + printStyles["avoid-break-inside"]
14213
- }, t("difficult_problem")));
14246
+ }, t(problem === 4 ? "difficult_problem" : "super_difficult_problem")));
14214
14247
  }))));
14215
14248
  });
14216
14249
  };