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