touchstudy-core 0.1.43 → 0.1.45
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/Selects/partials/index.d.ts +4 -0
- package/dist/components/Selects/styles.d.ts +6 -0
- package/dist/components/Selects/theme/styles.d.ts +6 -0
- package/dist/containers/ExamResult/hooks/useExamResult.d.ts +1 -1
- package/dist/containers/Login/views/Login.d.ts +1 -1
- package/dist/index.css +4 -2
- package/dist/index.js +336 -136
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +336 -136
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1515,6 +1515,7 @@ var confirmation = "확인";
|
|
1515
1515
|
var student_name = "학생이름";
|
1516
1516
|
var full_pool_time = "전체풀이시간";
|
1517
1517
|
var number_question = "{{number}}번";
|
1518
|
+
var number_answer = "{{number}}번";
|
1518
1519
|
var answer_rate = "정답률";
|
1519
1520
|
var seconds = "초";
|
1520
1521
|
var search_placeholder = "시험 이름으로 검색하기";
|
@@ -1529,6 +1530,7 @@ var information_by_question = "문항별 정보";
|
|
1529
1530
|
var no_data = "데이터 없음";
|
1530
1531
|
var internet_connection_was_lost = "인터넷 연결이 끊어졌습니다";
|
1531
1532
|
var problem = "문제";
|
1533
|
+
var problems = "문제";
|
1532
1534
|
var problem_solving_time = "문제풀이 시간";
|
1533
1535
|
var minutes = "분";
|
1534
1536
|
var correct_rate = "정확한 비율";
|
@@ -1791,6 +1793,34 @@ var textbook_management = "교과서 관리";
|
|
1791
1793
|
var my_question = "내 질문";
|
1792
1794
|
var update_class = "수업 업데이트";
|
1793
1795
|
var create_class = "수업 만들기";
|
1796
|
+
var problem_number = "문제 번호";
|
1797
|
+
var answer = "정답";
|
1798
|
+
var correct = "정답";
|
1799
|
+
var solve_time = "풀이 시간";
|
1800
|
+
var comparison_of_top_rankings = "상위권 비교";
|
1801
|
+
var total_correct_rate = "전체 정답률";
|
1802
|
+
var incorrect = "오답";
|
1803
|
+
var no_solution = "풀이 없음";
|
1804
|
+
var no_time = "시간 없음";
|
1805
|
+
var my_solving_time = "나의 풀이 시간";
|
1806
|
+
var top_solution_time = "최상위권 풀이시간";
|
1807
|
+
var average_solve_time = "평균 풀이 시간";
|
1808
|
+
var my_solution = "내 풀이";
|
1809
|
+
var most_solutions = "가장 많은 풀이";
|
1810
|
+
var problem_classification = "문제 분류";
|
1811
|
+
var my_wrong_answer = "나의 오답";
|
1812
|
+
var incorrect_problem_among_the_starred_problems = "별표 친 문제 중 틀린 문제";
|
1813
|
+
var correct_problem_among_the_starred_problems = "별표 친 문제 중 맞춘 문제";
|
1814
|
+
var tricky_problems = "까다로웠던 문제";
|
1815
|
+
var issues_vulnerable = "내가 취약한 문제";
|
1816
|
+
var grades_by_area = "영역별 성적";
|
1817
|
+
var problems_that_took_a_long_time = "시간이 오래 걸린 문제";
|
1818
|
+
var my_time = "나의 시간";
|
1819
|
+
var top_time = "상위권 시간";
|
1820
|
+
var fingerprint = "지문";
|
1821
|
+
var end = "종료";
|
1822
|
+
var ask_for_feedback = "피드백 요청하기";
|
1823
|
+
var quit = "종료하기";
|
1794
1824
|
var lang_ko = {
|
1795
1825
|
problem_solving: problem_solving,
|
1796
1826
|
my_story: my_story,
|
@@ -1841,6 +1871,7 @@ var lang_ko = {
|
|
1841
1871
|
student_name: student_name,
|
1842
1872
|
full_pool_time: full_pool_time,
|
1843
1873
|
number_question: number_question,
|
1874
|
+
number_answer: number_answer,
|
1844
1875
|
answer_rate: answer_rate,
|
1845
1876
|
seconds: seconds,
|
1846
1877
|
search_placeholder: search_placeholder,
|
@@ -1855,6 +1886,7 @@ var lang_ko = {
|
|
1855
1886
|
no_data: no_data,
|
1856
1887
|
internet_connection_was_lost: internet_connection_was_lost,
|
1857
1888
|
problem: problem,
|
1889
|
+
problems: problems,
|
1858
1890
|
problem_solving_time: problem_solving_time,
|
1859
1891
|
minutes: minutes,
|
1860
1892
|
correct_rate: correct_rate,
|
@@ -2103,7 +2135,35 @@ var lang_ko = {
|
|
2103
2135
|
textbook_management: textbook_management,
|
2104
2136
|
my_question: my_question,
|
2105
2137
|
update_class: update_class,
|
2106
|
-
create_class: create_class
|
2138
|
+
create_class: create_class,
|
2139
|
+
problem_number: problem_number,
|
2140
|
+
answer: answer,
|
2141
|
+
correct: correct,
|
2142
|
+
solve_time: solve_time,
|
2143
|
+
comparison_of_top_rankings: comparison_of_top_rankings,
|
2144
|
+
total_correct_rate: total_correct_rate,
|
2145
|
+
incorrect: incorrect,
|
2146
|
+
no_solution: no_solution,
|
2147
|
+
no_time: no_time,
|
2148
|
+
my_solving_time: my_solving_time,
|
2149
|
+
top_solution_time: top_solution_time,
|
2150
|
+
average_solve_time: average_solve_time,
|
2151
|
+
my_solution: my_solution,
|
2152
|
+
most_solutions: most_solutions,
|
2153
|
+
problem_classification: problem_classification,
|
2154
|
+
my_wrong_answer: my_wrong_answer,
|
2155
|
+
incorrect_problem_among_the_starred_problems: incorrect_problem_among_the_starred_problems,
|
2156
|
+
correct_problem_among_the_starred_problems: correct_problem_among_the_starred_problems,
|
2157
|
+
tricky_problems: tricky_problems,
|
2158
|
+
issues_vulnerable: issues_vulnerable,
|
2159
|
+
grades_by_area: grades_by_area,
|
2160
|
+
problems_that_took_a_long_time: problems_that_took_a_long_time,
|
2161
|
+
my_time: my_time,
|
2162
|
+
top_time: top_time,
|
2163
|
+
fingerprint: fingerprint,
|
2164
|
+
end: end,
|
2165
|
+
ask_for_feedback: ask_for_feedback,
|
2166
|
+
quit: quit
|
2107
2167
|
};
|
2108
2168
|
|
2109
2169
|
var problem_solving$1 = "Problem Solving";
|
@@ -2154,6 +2214,7 @@ var confirmation$1 = "Confirmation";
|
|
2154
2214
|
var student_name$1 = "Student name";
|
2155
2215
|
var full_pool_time$1 = "Full pool time";
|
2156
2216
|
var number_question$1 = "No.{{number}}";
|
2217
|
+
var number_answer$1 = "No.{{number}}";
|
2157
2218
|
var answer_rate$1 = "Answer rate";
|
2158
2219
|
var seconds$1 = "s";
|
2159
2220
|
var search_placeholder$1 = "Search by exam name";
|
@@ -2167,7 +2228,8 @@ var correct_answer_for_each_student$1 = "Correct answer for each student";
|
|
2167
2228
|
var information_by_question$1 = "Information by question";
|
2168
2229
|
var no_data$1 = "No data";
|
2169
2230
|
var internet_connection_was_lost$1 = "Internet connection was lost";
|
2170
|
-
var problem$1 = "Problem
|
2231
|
+
var problem$1 = "Problem";
|
2232
|
+
var problems$1 = "Problems";
|
2171
2233
|
var problem_solving_time$1 = "Problem solving time";
|
2172
2234
|
var minutes$1 = "m";
|
2173
2235
|
var correct_rate$1 = "Correct rate";
|
@@ -2189,7 +2251,7 @@ var difficult = "Difficult";
|
|
2189
2251
|
var article = "Article";
|
2190
2252
|
var correct_answer = "Correct answer";
|
2191
2253
|
var mark = "Mark";
|
2192
|
-
var answer = "Answer";
|
2254
|
+
var answer$1 = "Answer";
|
2193
2255
|
var add_new_row = "Add new row";
|
2194
2256
|
var question_text_required = "Question text is required";
|
2195
2257
|
var create_question_success = "Question is created successfully";
|
@@ -2464,6 +2526,38 @@ var new_test$1 = "New Test";
|
|
2464
2526
|
var manage_saved_tests$1 = "Manage saved tests";
|
2465
2527
|
var textbook_management$1 = "Textbook Management";
|
2466
2528
|
var my_question$1 = "My Question";
|
2529
|
+
var problem_number$1 = "Problem number";
|
2530
|
+
var solve_time$1 = "Solve time";
|
2531
|
+
var comparison_of_top_rankings$1 = "Comparison of top rankings";
|
2532
|
+
var total_correct_rate$1 = "Total correct rate";
|
2533
|
+
var incorrect$1 = "Incorrect";
|
2534
|
+
var correct$1 = "Correct";
|
2535
|
+
var no_solution$1 = "No solution";
|
2536
|
+
var no_time$1 = "No time";
|
2537
|
+
var my_solving_time$1 = "My solving time";
|
2538
|
+
var top_solution_time$1 = "Top solving time";
|
2539
|
+
var average_solve_time$1 = "Average solve time";
|
2540
|
+
var my_solution$1 = "My solution";
|
2541
|
+
var most_solutions$1 = "Most solutions";
|
2542
|
+
var problem_classification$1 = "Problem classification";
|
2543
|
+
var my_wrong_answer$1 = "My wrong answer";
|
2544
|
+
var incorrect_problem_among_the_starred_problems$1 = "Incorrect problem among the starred problems";
|
2545
|
+
var correct_problem_among_the_starred_problems$1 = "Correct problem among the starred problems";
|
2546
|
+
var tricky_problems$1 = "Tricky problems";
|
2547
|
+
var issues_vulnerable$1 = "Issues I'm Vulnerable to";
|
2548
|
+
var grades_by_area$1 = "Grades by area";
|
2549
|
+
var problems_that_took_a_long_time$1 = "Problems that took a long time";
|
2550
|
+
var my_time$1 = "My time";
|
2551
|
+
var top_time$1 = "Top time";
|
2552
|
+
var easy_problem = "Easy problem";
|
2553
|
+
var trick_problem = "Trick problem";
|
2554
|
+
var differential_problem = "Differential problem";
|
2555
|
+
var difficult_problem = "Difficult problem";
|
2556
|
+
var general_problem = "General problem";
|
2557
|
+
var fingerprint$1 = "Fingerprint";
|
2558
|
+
var end$1 = "end";
|
2559
|
+
var ask_for_feedback$1 = "Ask for feedback";
|
2560
|
+
var quit$1 = "Quit";
|
2467
2561
|
var lang_en = {
|
2468
2562
|
problem_solving: problem_solving$1,
|
2469
2563
|
my_story: my_story$1,
|
@@ -2515,6 +2609,7 @@ var lang_en = {
|
|
2515
2609
|
student_name: student_name$1,
|
2516
2610
|
full_pool_time: full_pool_time$1,
|
2517
2611
|
number_question: number_question$1,
|
2612
|
+
number_answer: number_answer$1,
|
2518
2613
|
answer_rate: answer_rate$1,
|
2519
2614
|
seconds: seconds$1,
|
2520
2615
|
search_placeholder: search_placeholder$1,
|
@@ -2529,6 +2624,7 @@ var lang_en = {
|
|
2529
2624
|
no_data: no_data$1,
|
2530
2625
|
internet_connection_was_lost: internet_connection_was_lost$1,
|
2531
2626
|
problem: problem$1,
|
2627
|
+
problems: problems$1,
|
2532
2628
|
problem_solving_time: problem_solving_time$1,
|
2533
2629
|
minutes: minutes$1,
|
2534
2630
|
correct_rate: correct_rate$1,
|
@@ -2551,7 +2647,7 @@ var lang_en = {
|
|
2551
2647
|
article: article,
|
2552
2648
|
correct_answer: correct_answer,
|
2553
2649
|
mark: mark,
|
2554
|
-
answer: answer,
|
2650
|
+
answer: answer$1,
|
2555
2651
|
add_new_row: add_new_row,
|
2556
2652
|
question_text_required: question_text_required,
|
2557
2653
|
create_question_success: create_question_success,
|
@@ -2673,7 +2769,7 @@ var lang_en = {
|
|
2673
2769
|
credentials_invalid: credentials_invalid$1,
|
2674
2770
|
role_is_invalid: role_is_invalid$1,
|
2675
2771
|
today: today$1,
|
2676
|
-
"q&a": "
|
2772
|
+
"q&a": "Q&A",
|
2677
2773
|
user_is_disabled: user_is_disabled$1,
|
2678
2774
|
cover_image: cover_image$1,
|
2679
2775
|
notification: notification$1,
|
@@ -2811,7 +2907,39 @@ var lang_en = {
|
|
2811
2907
|
new_test: new_test$1,
|
2812
2908
|
manage_saved_tests: manage_saved_tests$1,
|
2813
2909
|
textbook_management: textbook_management$1,
|
2814
|
-
my_question: my_question$1
|
2910
|
+
my_question: my_question$1,
|
2911
|
+
problem_number: problem_number$1,
|
2912
|
+
solve_time: solve_time$1,
|
2913
|
+
comparison_of_top_rankings: comparison_of_top_rankings$1,
|
2914
|
+
total_correct_rate: total_correct_rate$1,
|
2915
|
+
incorrect: incorrect$1,
|
2916
|
+
correct: correct$1,
|
2917
|
+
no_solution: no_solution$1,
|
2918
|
+
no_time: no_time$1,
|
2919
|
+
my_solving_time: my_solving_time$1,
|
2920
|
+
top_solution_time: top_solution_time$1,
|
2921
|
+
average_solve_time: average_solve_time$1,
|
2922
|
+
my_solution: my_solution$1,
|
2923
|
+
most_solutions: most_solutions$1,
|
2924
|
+
problem_classification: problem_classification$1,
|
2925
|
+
my_wrong_answer: my_wrong_answer$1,
|
2926
|
+
incorrect_problem_among_the_starred_problems: incorrect_problem_among_the_starred_problems$1,
|
2927
|
+
correct_problem_among_the_starred_problems: correct_problem_among_the_starred_problems$1,
|
2928
|
+
tricky_problems: tricky_problems$1,
|
2929
|
+
issues_vulnerable: issues_vulnerable$1,
|
2930
|
+
grades_by_area: grades_by_area$1,
|
2931
|
+
problems_that_took_a_long_time: problems_that_took_a_long_time$1,
|
2932
|
+
my_time: my_time$1,
|
2933
|
+
top_time: top_time$1,
|
2934
|
+
easy_problem: easy_problem,
|
2935
|
+
trick_problem: trick_problem,
|
2936
|
+
differential_problem: differential_problem,
|
2937
|
+
difficult_problem: difficult_problem,
|
2938
|
+
general_problem: general_problem,
|
2939
|
+
fingerprint: fingerprint$1,
|
2940
|
+
end: end$1,
|
2941
|
+
ask_for_feedback: ask_for_feedback$1,
|
2942
|
+
quit: quit$1
|
2815
2943
|
};
|
2816
2944
|
|
2817
2945
|
i18n.use(reactI18next.initReactI18next).init({
|
@@ -3224,27 +3352,20 @@ var canAccess = function canAccess(userRoles, componentRoles) {
|
|
3224
3352
|
return true;
|
3225
3353
|
};
|
3226
3354
|
|
3227
|
-
var _excluded$1 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
|
3228
|
-
var DropdownIndicator = function DropdownIndicator(props) {
|
3229
|
-
return React__default.createElement(Select.components.DropdownIndicator, Object.assign({}, props), React__default.createElement(fa.FaCaretDown, {
|
3230
|
-
color: styles.darker
|
3231
|
-
}));
|
3232
|
-
};
|
3233
|
-
var CustomOption = function CustomOption(props) {
|
3234
|
-
return React__default.createElement(Select.components.Option, Object.assign({}, props), React__default.createElement("div", {
|
3235
|
-
style: {
|
3236
|
-
fontSize: "14px",
|
3237
|
-
fontWeight: 500
|
3238
|
-
}
|
3239
|
-
}, props.data.label));
|
3240
|
-
};
|
3241
3355
|
var customStyles = {
|
3242
|
-
control: function control(baseStyles) {
|
3356
|
+
control: function control(baseStyles, state) {
|
3243
3357
|
return _extends({}, baseStyles, {
|
3244
3358
|
fontSize: "14px",
|
3245
3359
|
fontWeight: 700,
|
3246
3360
|
color: styles.darker,
|
3247
|
-
borderColor: styles.less_dark
|
3361
|
+
borderColor: state.isFocused || state.hasValue ? styles.dark : styles.less_dark,
|
3362
|
+
boxShadow: state.isFocused ? "0 0 0 1px " + styles.dark + "4D" : baseStyles.boxShadow,
|
3363
|
+
"&:active": {
|
3364
|
+
borderColor: state.isFocused || state.hasValue ? styles.dark : styles.less_dark
|
3365
|
+
},
|
3366
|
+
"&:hover": {
|
3367
|
+
borderColor: state.isFocused || state.hasValue ? styles.dark : styles.less_dark
|
3368
|
+
}
|
3248
3369
|
});
|
3249
3370
|
},
|
3250
3371
|
input: function input(baseStyles, _) {
|
@@ -3260,8 +3381,32 @@ var customStyles = {
|
|
3260
3381
|
fontWeight: 700,
|
3261
3382
|
color: styles.darker
|
3262
3383
|
});
|
3384
|
+
},
|
3385
|
+
option: function option(baseStyles, state) {
|
3386
|
+
return _extends({}, baseStyles, {
|
3387
|
+
backgroundColor: state.isSelected ? styles.dark : state.isFocused ? styles.light : 'white',
|
3388
|
+
"&:active": {
|
3389
|
+
backgroundColor: state.isSelected ? styles.dark : state.isFocused ? styles.less_dark : baseStyles.backgroundColor
|
3390
|
+
}
|
3391
|
+
});
|
3263
3392
|
}
|
3264
3393
|
};
|
3394
|
+
|
3395
|
+
var DropdownIndicator = function DropdownIndicator(props) {
|
3396
|
+
return React__default.createElement(Select.components.DropdownIndicator, Object.assign({}, props), React__default.createElement(fa.FaCaretDown, {
|
3397
|
+
color: styles.darker
|
3398
|
+
}));
|
3399
|
+
};
|
3400
|
+
var CustomOption = function CustomOption(props) {
|
3401
|
+
return React__default.createElement(Select.components.Option, Object.assign({}, props), React__default.createElement("div", {
|
3402
|
+
style: {
|
3403
|
+
fontSize: "14px",
|
3404
|
+
fontWeight: 500
|
3405
|
+
}
|
3406
|
+
}, props.data.label));
|
3407
|
+
};
|
3408
|
+
|
3409
|
+
var _excluded$1 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
|
3265
3410
|
var CustomSelect = function CustomSelect(_ref) {
|
3266
3411
|
var isDefault = _ref.isDefault,
|
3267
3412
|
options = _ref.options,
|
@@ -7151,43 +7296,6 @@ var getSubjectListApi$1 = function getSubjectListApi(textSearch) {
|
|
7151
7296
|
};
|
7152
7297
|
|
7153
7298
|
var _excluded$3 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
|
7154
|
-
var DropdownIndicator$1 = function DropdownIndicator(props) {
|
7155
|
-
return React__default.createElement(Select.components.DropdownIndicator, Object.assign({}, props), React__default.createElement(fa.FaCaretDown, {
|
7156
|
-
color: styles.darker
|
7157
|
-
}));
|
7158
|
-
};
|
7159
|
-
var CustomOption$1 = function CustomOption(props) {
|
7160
|
-
return React__default.createElement(Select.components.Option, Object.assign({}, props), React__default.createElement("div", {
|
7161
|
-
style: {
|
7162
|
-
fontSize: "14px",
|
7163
|
-
fontWeight: 500
|
7164
|
-
}
|
7165
|
-
}, props.data.label));
|
7166
|
-
};
|
7167
|
-
var customStyles$1 = {
|
7168
|
-
control: function control(baseStyles, state) {
|
7169
|
-
return _extends({}, baseStyles, {
|
7170
|
-
fontSize: "14px",
|
7171
|
-
fontWeight: 700,
|
7172
|
-
color: styles.darker,
|
7173
|
-
borderColor: state.isFocused || state.hasValue ? styles.less_dark : '#97A1AF'
|
7174
|
-
});
|
7175
|
-
},
|
7176
|
-
input: function input(baseStyles, _) {
|
7177
|
-
return _extends({}, baseStyles, {
|
7178
|
-
fontSize: "14px",
|
7179
|
-
fontWeight: 700,
|
7180
|
-
color: styles.darker
|
7181
|
-
});
|
7182
|
-
},
|
7183
|
-
singleValue: function singleValue(baseStyles) {
|
7184
|
-
return _extends({}, baseStyles, {
|
7185
|
-
fontSize: "14px",
|
7186
|
-
fontWeight: 700,
|
7187
|
-
color: styles.darker
|
7188
|
-
});
|
7189
|
-
}
|
7190
|
-
};
|
7191
7299
|
var CustomSelectOption = function CustomSelectOption(_ref) {
|
7192
7300
|
var defaultValue = _ref.defaultValue,
|
7193
7301
|
options = _ref.options,
|
@@ -7212,10 +7320,10 @@ var CustomSelectOption = function CustomSelectOption(_ref) {
|
|
7212
7320
|
IndicatorSeparator: function IndicatorSeparator() {
|
7213
7321
|
return null;
|
7214
7322
|
},
|
7215
|
-
DropdownIndicator: DropdownIndicator
|
7216
|
-
Option: CustomOption
|
7323
|
+
DropdownIndicator: DropdownIndicator,
|
7324
|
+
Option: CustomOption
|
7217
7325
|
},
|
7218
|
-
styles: customStyles
|
7326
|
+
styles: customStyles,
|
7219
7327
|
placeholder: t("select_placeholder")
|
7220
7328
|
}, rest));
|
7221
7329
|
};
|
@@ -8400,7 +8508,15 @@ var CustomCreatable = function CustomCreatable(_ref) {
|
|
8400
8508
|
options: options,
|
8401
8509
|
value: initialValues,
|
8402
8510
|
menuPlacement: scrollBottom ? "top" : "auto",
|
8403
|
-
isMulti: isMulti
|
8511
|
+
isMulti: isMulti,
|
8512
|
+
components: {
|
8513
|
+
IndicatorSeparator: function IndicatorSeparator() {
|
8514
|
+
return null;
|
8515
|
+
},
|
8516
|
+
DropdownIndicator: DropdownIndicator,
|
8517
|
+
Option: CustomOption
|
8518
|
+
},
|
8519
|
+
styles: customStyles
|
8404
8520
|
}, rest));
|
8405
8521
|
};
|
8406
8522
|
|
@@ -8426,7 +8542,15 @@ var CustomAsyncSelect = function CustomAsyncSelect(_ref) {
|
|
8426
8542
|
value: !isDefault ? initialValues : undefined,
|
8427
8543
|
defaultValue: isDefault ? initialValues : undefined,
|
8428
8544
|
menuPlacement: scrollBottom ? "top" : "auto",
|
8429
|
-
isMulti: isMulti
|
8545
|
+
isMulti: isMulti,
|
8546
|
+
components: {
|
8547
|
+
IndicatorSeparator: function IndicatorSeparator() {
|
8548
|
+
return null;
|
8549
|
+
},
|
8550
|
+
DropdownIndicator: DropdownIndicator,
|
8551
|
+
Option: CustomOption
|
8552
|
+
},
|
8553
|
+
styles: customStyles
|
8430
8554
|
}, rest));
|
8431
8555
|
};
|
8432
8556
|
|
@@ -9256,8 +9380,8 @@ var defaultSeries = function defaultSeries(t) {
|
|
9256
9380
|
}];
|
9257
9381
|
};
|
9258
9382
|
|
9259
|
-
var useExamResult = function useExamResult(searchParam, navigate, examSessionId, studentId, code, handleChangeTab) {
|
9260
|
-
var
|
9383
|
+
var useExamResult = function useExamResult(searchParam, navigate, examSessionId, studentId, code, handleChangeTab, selectedTab) {
|
9384
|
+
var _allSeries$dataChartI;
|
9261
9385
|
if (examSessionId === void 0) {
|
9262
9386
|
examSessionId = 0;
|
9263
9387
|
}
|
@@ -9313,6 +9437,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9313
9437
|
return Promise.resolve(Promise.all([getResults(examCode), getResultsLongTimeSpend(examCode), getResultsEffectSize(examCode), getResultsTimeOrderQuestion(examCode), getResultsCategories(examCode)])).then(function (result) {
|
9314
9438
|
var _result$0$data, _result$1$data, _result$2$data, _result$3$data, _result$4$data;
|
9315
9439
|
handleChangeTab(0);
|
9440
|
+
setDataChartIndex(0);
|
9316
9441
|
setResultData((_result$0$data = result[0].data) === null || _result$0$data === void 0 ? void 0 : _result$0$data.data);
|
9317
9442
|
setLongTimeSpend((_result$1$data = result[1].data) === null || _result$1$data === void 0 ? void 0 : _result$1$data.data);
|
9318
9443
|
setEffectSize((_result$2$data = result[2].data) === null || _result$2$data === void 0 ? void 0 : _result$2$data.data);
|
@@ -9349,6 +9474,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9349
9474
|
return Promise.resolve(Promise.all([getResultsTeacher(examSessionId, studentId), getResultsLongTimeSpendTeacher(examSessionId, studentId), getResultsEffectSizeTeacher(examSessionId, studentId), getResultsTimeOrderQuestionTeacher(examSessionId, studentId), getResultsCategoriesTeacher(examSessionId, studentId)])).then(function (result) {
|
9350
9475
|
var _result$0$data2, _result$1$data2, _result$2$data2, _result$3$data2, _result$4$data2;
|
9351
9476
|
handleChangeTab(0);
|
9477
|
+
setDataChartIndex(0);
|
9352
9478
|
setResultData((_result$0$data2 = result[0].data) === null || _result$0$data2 === void 0 ? void 0 : _result$0$data2.data);
|
9353
9479
|
setLongTimeSpend((_result$1$data2 = result[1].data) === null || _result$1$data2 === void 0 ? void 0 : _result$1$data2.data);
|
9354
9480
|
setEffectSize((_result$2$data2 = result[2].data) === null || _result$2$data2 === void 0 ? void 0 : _result$2$data2.data);
|
@@ -9424,15 +9550,16 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9424
9550
|
}, [JSON.stringify(resultData === null || resultData === void 0 ? void 0 : resultData.questions), language]);
|
9425
9551
|
var allChartOptions = React.useMemo(function () {
|
9426
9552
|
return timelyOrderQuestions.map(function (timelyOrderQuestion) {
|
9553
|
+
var _questions$length;
|
9554
|
+
var questions = timelyOrderQuestion.questions || null;
|
9555
|
+
var questionLength = (_questions$length = questions === null || questions === void 0 ? void 0 : questions.length) != null ? _questions$length : 0;
|
9427
9556
|
return _extends({}, DEFAULT_LINE_CHART_OPTIONS, {
|
9428
9557
|
tooltip: _extends({}, DEFAULT_LINE_CHART_OPTIONS.tooltip, {
|
9429
9558
|
y: {
|
9430
9559
|
formatter: function formatter(val, _ref) {
|
9431
9560
|
var dataPointIndex = _ref.dataPointIndex;
|
9432
9561
|
if (dataPointIndex > 0) {
|
9433
|
-
var _questions
|
9434
|
-
var questions = timelyOrderQuestion.questions || null;
|
9435
|
-
var questionLength = (_questions$length = questions === null || questions === void 0 ? void 0 : questions.length) != null ? _questions$length : 0;
|
9562
|
+
var _questions;
|
9436
9563
|
return val != null ? t("problem_number_question", {
|
9437
9564
|
number: questions !== null ? (((_questions = questions[questionLength - val]) === null || _questions === void 0 ? void 0 : _questions.questionOrder) || 0) + 1 : val
|
9438
9565
|
}) : t("no_data");
|
@@ -9443,19 +9570,17 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9443
9570
|
}),
|
9444
9571
|
xaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.xaxis, {
|
9445
9572
|
categories: ["."].concat(Array.from({
|
9446
|
-
length:
|
9573
|
+
length: questionLength
|
9447
9574
|
}, function (_, i) {
|
9448
9575
|
return ORDER_NUMBERS[i + 1] ? t(ORDER_NUMBERS[i + 1]) : toNumberOrder(i + 1);
|
9449
9576
|
}), ["."])
|
9450
9577
|
}),
|
9451
9578
|
yaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.yaxis, {
|
9452
|
-
tickAmount:
|
9453
|
-
max:
|
9579
|
+
tickAmount: questions.length + 1,
|
9580
|
+
max: questions.length + 1,
|
9454
9581
|
labels: _extends({}, DEFAULT_LINE_CHART_OPTIONS.yaxis.labels, {
|
9455
9582
|
formatter: function formatter(val) {
|
9456
|
-
var
|
9457
|
-
var questions = timelyOrderQuestion.questions || null;
|
9458
|
-
var questionLength = (_questions$length2 = questions === null || questions === void 0 ? void 0 : questions.length) != null ? _questions$length2 : 0;
|
9583
|
+
var _questions2;
|
9459
9584
|
return val != null ? t("problem_number_question", {
|
9460
9585
|
number: questions !== null ? (((_questions2 = questions[questionLength - val]) === null || _questions2 === void 0 ? void 0 : _questions2.questionOrder) || 0) + 1 : val
|
9461
9586
|
}) : t("no_data");
|
@@ -9503,7 +9628,46 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9503
9628
|
}];
|
9504
9629
|
});
|
9505
9630
|
}, [JSON.stringify(timelyOrderQuestions), language]);
|
9506
|
-
var chartOptions = (
|
9631
|
+
var chartOptions = React.useMemo(function () {
|
9632
|
+
var _timelyOrderQuestions, _questions$length2;
|
9633
|
+
var questions = ((_timelyOrderQuestions = timelyOrderQuestions[dataChartIndex]) === null || _timelyOrderQuestions === void 0 ? void 0 : _timelyOrderQuestions.questions) || null;
|
9634
|
+
var questionLength = (_questions$length2 = questions === null || questions === void 0 ? void 0 : questions.length) != null ? _questions$length2 : 0;
|
9635
|
+
return _extends({}, DEFAULT_LINE_CHART_OPTIONS, {
|
9636
|
+
tooltip: _extends({}, DEFAULT_LINE_CHART_OPTIONS.tooltip, {
|
9637
|
+
y: {
|
9638
|
+
formatter: function formatter(val, _ref2) {
|
9639
|
+
var dataPointIndex = _ref2.dataPointIndex;
|
9640
|
+
if (dataPointIndex > 0) {
|
9641
|
+
var _questions3;
|
9642
|
+
return val != null ? t("problem_number_question", {
|
9643
|
+
number: questions !== null ? (((_questions3 = questions[questionLength - val]) === null || _questions3 === void 0 ? void 0 : _questions3.questionOrder) || 0) + 1 : val
|
9644
|
+
}) : t("no_data");
|
9645
|
+
}
|
9646
|
+
return null;
|
9647
|
+
}
|
9648
|
+
}
|
9649
|
+
}),
|
9650
|
+
xaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.xaxis, {
|
9651
|
+
categories: ["."].concat(Array.from({
|
9652
|
+
length: questionLength
|
9653
|
+
}, function (_, i) {
|
9654
|
+
return ORDER_NUMBERS[i + 1] ? t(ORDER_NUMBERS[i + 1]) : toNumberOrder(i + 1);
|
9655
|
+
}), ["."])
|
9656
|
+
}),
|
9657
|
+
yaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.yaxis, {
|
9658
|
+
tickAmount: questionLength + 1,
|
9659
|
+
max: questionLength + 1,
|
9660
|
+
labels: _extends({}, DEFAULT_LINE_CHART_OPTIONS.yaxis.labels, {
|
9661
|
+
formatter: function formatter(val) {
|
9662
|
+
var _questions4;
|
9663
|
+
return val != null ? t("problem_number_question", {
|
9664
|
+
number: questions !== null ? (((_questions4 = questions[questionLength - val]) === null || _questions4 === void 0 ? void 0 : _questions4.questionOrder) || 0) + 1 : val
|
9665
|
+
}) : t("no_data");
|
9666
|
+
}
|
9667
|
+
})
|
9668
|
+
})
|
9669
|
+
});
|
9670
|
+
}, [JSON.stringify(allChartOptions), dataChartIndex, language]);
|
9507
9671
|
var series = (_allSeries$dataChartI = allSeries[dataChartIndex]) != null ? _allSeries$dataChartI : defaultSeries(t);
|
9508
9672
|
var handleExportPdf = function handleExportPdf() {
|
9509
9673
|
try {
|
@@ -9682,6 +9846,9 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9682
9846
|
return Promise.reject(e);
|
9683
9847
|
}
|
9684
9848
|
};
|
9849
|
+
React.useEffect(function () {
|
9850
|
+
setDataChartIndex(0);
|
9851
|
+
}, [selectedTab]);
|
9685
9852
|
var examTime = React.useMemo(function () {
|
9686
9853
|
return utcToLocalTime(resultData === null || resultData === void 0 ? void 0 : resultData.startTime, "HH:mm") + " ~ " + utcToLocalTime(resultData === null || resultData === void 0 ? void 0 : resultData.finishTime, "HH:mm");
|
9687
9854
|
}, [resultData === null || resultData === void 0 ? void 0 : resultData.startTime, resultData === null || resultData === void 0 ? void 0 : resultData.finishTime]);
|
@@ -10821,7 +10988,7 @@ Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==t
|
|
10821
10988
|
|
10822
10989
|
var ReactApexChart = unwrapExports(reactApexcharts_min);
|
10823
10990
|
|
10824
|
-
var styles$4 = {"titleBox":"_1dveO","title":"_mxRxf","point":"_2fD-F","buttonGroup":"_2DGl3","btnFeedback":"_xGW1x","btnTerminate":"_3mLu2","myanswer":"_eDBpS","titleMyAnswer1":"_2fMq3","titleMyAnswer2":"_3gEYh","contentMyAnswer":"_2K_sx","myAnswerItem":"_2qiLh","time":"_6TCOK","timeCol":"_hmseC","answer-response":"_3GfJt","answer-response-0":"_3ut64","answer-response-1":"_2VtpD","answer-response-2":"_58lQU","answer-response-3":"_1ucMY","answer-response-4":"_1qkxy","answerCorrect":"_2jIeT","answerIncorrect":"_to2v0","answerNograss":"_1JSte","answerEasy":"_2_uTU","answerDiscrimination":"_1DBoA","answerTrap":"_1q3tD","answerNoTime":"_3iItu","questionOrder":"_1fNkS","myTimeLabel":"_1Z_F3","myPoolTime":"_4KwG0","topTimeLabel":"_245H-","topTime":"_3tZqw","meanTimeLabel":"_PlPLY","meanTime":"_12a7R","compareChart":"_3MW16","prevChart":"_1fNkb","chart":"_3K4oY","nextChart":"_3YKBp","titleChart":"_13BVP","compareGrass":"_1_fJu","titleCompareGrass":"_o1txm","tableCompareGrass":"_bT5nf","thcolumn1":"_3Umg0","tdcolumn1":"_3dRMF","tdcolumn3":"_2tcBP","classification":"_1AFeb","wrapperProblem":"_oTqG7","titleProblem":"_35eIx","titleProblemClose":"_3t4HO","titleTrickyProblem":"_1-oxK","wrongQuestions":"_2dpMR","question":"_1lSOX","assignedQuestions":"_1ONUt","wrapperContent":"_nPoR0","content":"_2zmZn","contentColumn1":"_334SY","span1":"_3Lf-U","span2":"_ZpMot","contentColumn2":"_16P3l","duration":"_1kT28","topDuration":"_1fVRi","overallCorrectRate":"_3jLGe","answer":"_VsZ0K","contentVulnerable":"_QxKMy","wrappContentProblem":"_nnqpW","contentProblem":"_3Z1nV","labelProblem":"_36Xpx","name":"_3ZJQW","percent":"_2J3MK","slider":"_1MPdO","track":"_3CV_y","noData":"__g-ff","loading":"_3j485","table-responsive":"_2O6RX","form-label":"_1RYOQ","form-control":"_3VRVT","form-label-dialog":"_3oCSh","btn-cancel":"_3USKq","btn-register":"_3y_iD","pdfBtnBox":"_3xZHo","pdfBtn":"_1DtWq","form-select":"_1a_vw"};
|
10991
|
+
var styles$4 = {"lighter":"#F0FFF6","light":"#C8F8DB","less_dark":"#3DC674","dark":"#349056","darker":"#18442A","gray_100":"#F9FAFB","gray_300":"#DFE3E8","gray_500":"#9A9A98","gray_700":"#5D5D5B","gray_900":"#363634","titleBox":"_1dveO","title":"_mxRxf","point":"_2fD-F","buttonGroup":"_2DGl3","btnFeedback":"_xGW1x","btnTerminate":"_3mLu2","myanswer":"_eDBpS","titleMyAnswer1":"_2fMq3","titleMyAnswer2":"_3gEYh","contentMyAnswer":"_2K_sx","myAnswerItem":"_2qiLh","time":"_6TCOK","timeCol":"_hmseC","answer-response":"_3GfJt","answer-response-0":"_3ut64","answer-response-1":"_2VtpD","answer-response-2":"_58lQU","answer-response-3":"_1ucMY","answer-response-4":"_1qkxy","answerCorrect":"_2jIeT","answerIncorrect":"_to2v0","answerNograss":"_1JSte","answerEasy":"_2_uTU","answerDiscrimination":"_1DBoA","answerTrap":"_1q3tD","answerNoTime":"_3iItu","questionOrder":"_1fNkS","myTimeLabel":"_1Z_F3","myPoolTime":"_4KwG0","topTimeLabel":"_245H-","topTime":"_3tZqw","meanTimeLabel":"_PlPLY","meanTime":"_12a7R","compareChart":"_3MW16","prevChart":"_1fNkb","chart":"_3K4oY","nextChart":"_3YKBp","titleChart":"_13BVP","compareGrass":"_1_fJu","titleCompareGrass":"_o1txm","tableCompareGrass":"_bT5nf","thcolumn1":"_3Umg0","tdcolumn1":"_3dRMF","tdcolumn3":"_2tcBP","classification":"_1AFeb","wrapperProblem":"_oTqG7","titleProblem":"_35eIx","titleProblemClose":"_3t4HO","titleTrickyProblem":"_1-oxK","wrongQuestions":"_2dpMR","question":"_1lSOX","assignedQuestions":"_1ONUt","wrapperContent":"_nPoR0","content":"_2zmZn","contentColumn1":"_334SY","span1":"_3Lf-U","span2":"_ZpMot","contentColumn2":"_16P3l","duration":"_1kT28","topDuration":"_1fVRi","overallCorrectRate":"_3jLGe","answer":"_VsZ0K","contentVulnerable":"_QxKMy","wrappContentProblem":"_nnqpW","contentProblem":"_3Z1nV","labelProblem":"_36Xpx","name":"_3ZJQW","percent":"_2J3MK","slider":"_1MPdO","track":"_3CV_y","noData":"__g-ff","loading":"_3j485","table-responsive":"_2O6RX","form-label":"_1RYOQ","form-control":"_3VRVT","form-label-dialog":"_3oCSh","btn-cancel":"_3USKq","btn-register":"_3y_iD","pdfBtnBox":"_3xZHo","pdfBtn":"_1DtWq","form-select":"_1a_vw"};
|
10825
10992
|
|
10826
10993
|
var iconStarQuestion = function iconStarQuestion(_ref) {
|
10827
10994
|
var _ref$width = _ref.width,
|
@@ -11231,7 +11398,9 @@ function MyAnswer(_ref) {
|
|
11231
11398
|
}
|
11232
11399
|
}, question.isStar ? React__default.createElement(iconStarQuestion, null) : React__default.createElement(iconNoStarQuestion, null), React__default.createElement("span", {
|
11233
11400
|
className: styles$4["questionOrder"]
|
11234
|
-
},
|
11401
|
+
}, t("number_question", {
|
11402
|
+
number: question.questionOrder + 1
|
11403
|
+
}))), React__default.createElement("div", {
|
11235
11404
|
className: styles["custom-col-2"],
|
11236
11405
|
style: {
|
11237
11406
|
display: "flex",
|
@@ -11240,11 +11409,11 @@ function MyAnswer(_ref) {
|
|
11240
11409
|
}
|
11241
11410
|
}, question.isCorrect && question.selectedAnswers !== "" && React__default.createElement(React.Fragment, null, React__default.createElement(iconCorrectAnswer, null), React__default.createElement("span", {
|
11242
11411
|
className: styles$4["answerCorrect"]
|
11243
|
-
}, "
|
11412
|
+
}, t("correct"))), !question.isCorrect && question.selectedAnswers !== "" && React__default.createElement(React.Fragment, null, React__default.createElement(iconCorrectAnswer$1, null), React__default.createElement("span", {
|
11244
11413
|
className: styles$4["answerIncorrect"]
|
11245
|
-
}, "
|
11414
|
+
}, t("incorrect"))), question.selectedAnswers === "" && React__default.createElement(React.Fragment, null, React__default.createElement(iconNoGrass, null), React__default.createElement("span", {
|
11246
11415
|
className: styles$4["answerNograss"]
|
11247
|
-
}, "
|
11416
|
+
}, t("no_solution")))), React__default.createElement("div", {
|
11248
11417
|
className: styles["custom-col-2"],
|
11249
11418
|
style: {
|
11250
11419
|
display: "flex",
|
@@ -11260,7 +11429,7 @@ function MyAnswer(_ref) {
|
|
11260
11429
|
margin: 0
|
11261
11430
|
},
|
11262
11431
|
className: styles$4["answerNoTime"]
|
11263
|
-
}, "
|
11432
|
+
}, t("no_time"))), React__default.createElement("div", {
|
11264
11433
|
className: styles["custom-col-2"],
|
11265
11434
|
style: {
|
11266
11435
|
display: "flex",
|
@@ -11293,7 +11462,7 @@ function MyAnswer(_ref) {
|
|
11293
11462
|
margin: 0
|
11294
11463
|
},
|
11295
11464
|
className: styles$4["answerNoTime"]
|
11296
|
-
}, "
|
11465
|
+
}, t("no_time"))), isStudent && React__default.createElement("div", {
|
11297
11466
|
className: styles["custom-col-2"],
|
11298
11467
|
style: {
|
11299
11468
|
display: "flex",
|
@@ -11343,7 +11512,7 @@ function MyAnswer(_ref) {
|
|
11343
11512
|
fontWeight: 600,
|
11344
11513
|
color: "#97A1AF"
|
11345
11514
|
}
|
11346
|
-
}, "
|
11515
|
+
}, t("problem_number"))), React__default.createElement("div", {
|
11347
11516
|
className: styles["custom-col-2"],
|
11348
11517
|
style: {
|
11349
11518
|
display: "flex",
|
@@ -11355,7 +11524,7 @@ function MyAnswer(_ref) {
|
|
11355
11524
|
fontWeight: 600,
|
11356
11525
|
color: "#97A1AF"
|
11357
11526
|
}
|
11358
|
-
}, "
|
11527
|
+
}, t("answer"))), React__default.createElement("div", {
|
11359
11528
|
className: styles["custom-col-2"],
|
11360
11529
|
style: {
|
11361
11530
|
display: "flex",
|
@@ -11367,7 +11536,7 @@ function MyAnswer(_ref) {
|
|
11367
11536
|
fontWeight: 600,
|
11368
11537
|
color: "#97A1AF"
|
11369
11538
|
}
|
11370
|
-
}, "
|
11539
|
+
}, t("solve_time"))), React__default.createElement("div", {
|
11371
11540
|
className: styles["custom-col-2"],
|
11372
11541
|
style: {
|
11373
11542
|
display: "flex",
|
@@ -11380,7 +11549,7 @@ function MyAnswer(_ref) {
|
|
11380
11549
|
fontWeight: 600,
|
11381
11550
|
color: "#97A1AF"
|
11382
11551
|
}
|
11383
|
-
}, "
|
11552
|
+
}, t("comparison_of_top_rankings"))), React__default.createElement("div", {
|
11384
11553
|
className: styles["custom-col-2"],
|
11385
11554
|
style: {
|
11386
11555
|
display: "flex",
|
@@ -11393,14 +11562,14 @@ function MyAnswer(_ref) {
|
|
11393
11562
|
fontWeight: 600,
|
11394
11563
|
color: "#97A1AF"
|
11395
11564
|
}
|
11396
|
-
}, "
|
11565
|
+
}, t("total_correct_rate")))), React__default.createElement("div", {
|
11397
11566
|
className: styles$4["titleMyAnswer2"]
|
11398
11567
|
}, React__default.createElement(material.Typography, {
|
11399
11568
|
sx: {
|
11400
11569
|
color: "#97A1AF",
|
11401
11570
|
fontSize: "12px"
|
11402
11571
|
}
|
11403
|
-
}, "
|
11572
|
+
}, t("_category")), React__default.createElement(material.Typography, {
|
11404
11573
|
sx: {
|
11405
11574
|
color: "#414E62",
|
11406
11575
|
fontSize: "12px",
|
@@ -11464,6 +11633,8 @@ var iconBtnNextChart = function iconBtnNextChart(_ref) {
|
|
11464
11633
|
var CompareGrass = function CompareGrass(_ref) {
|
11465
11634
|
var effectSize = _ref.effectSize,
|
11466
11635
|
isPrint = _ref.isPrint;
|
11636
|
+
var _useTranslation = reactI18next.useTranslation(),
|
11637
|
+
t = _useTranslation.t;
|
11467
11638
|
var renderTableBody = function renderTableBody(effectSize) {
|
11468
11639
|
return effectSize.map(function (item, index) {
|
11469
11640
|
return React__default.createElement("tr", {
|
@@ -11474,22 +11645,28 @@ var CompareGrass = function CompareGrass(_ref) {
|
|
11474
11645
|
} : {}
|
11475
11646
|
}, React__default.createElement("td", {
|
11476
11647
|
className: styles$4["tdcolumn1"]
|
11477
|
-
}, "
|
11648
|
+
}, t("problem"), " ", item.questionOrder + 1), React__default.createElement("td", {
|
11478
11649
|
style: {
|
11479
11650
|
textAlign: "center",
|
11480
11651
|
color: "#202B37"
|
11481
11652
|
}
|
11482
|
-
},
|
11653
|
+
}, t("number_question", {
|
11654
|
+
number: item.correctAnswers
|
11655
|
+
})), React__default.createElement("td", {
|
11483
11656
|
className: styles$4["tdcolumn3"],
|
11484
11657
|
style: {
|
11485
11658
|
color: item.isCorrect ? "#1EE288" : "#F34B4B"
|
11486
11659
|
}
|
11487
|
-
}, item.selectedAnswers ?
|
11660
|
+
}, item.selectedAnswers ? t("number_question", {
|
11661
|
+
number: item.selectedAnswers
|
11662
|
+
}) : ""), React__default.createElement("td", {
|
11488
11663
|
style: {
|
11489
11664
|
textAlign: "center",
|
11490
11665
|
color: "#414E62"
|
11491
11666
|
}
|
11492
|
-
}, item.mostSelectedAnswers ?
|
11667
|
+
}, item.mostSelectedAnswers ? t("number_question", {
|
11668
|
+
number: item.mostSelectedAnswers
|
11669
|
+
}) : ""), React__default.createElement("td", null, React__default.createElement("div", {
|
11493
11670
|
className: styles$4["classification"]
|
11494
11671
|
}, item.problemCategories.map(function (problem, index) {
|
11495
11672
|
return React__default.createElement("div", {
|
@@ -11498,23 +11675,23 @@ var CompareGrass = function CompareGrass(_ref) {
|
|
11498
11675
|
style: {
|
11499
11676
|
border: "1px solid #1EE288"
|
11500
11677
|
}
|
11501
|
-
}, "
|
11678
|
+
}, t("easy_problem")), problem === 3 && React__default.createElement("span", {
|
11502
11679
|
style: {
|
11503
11680
|
border: "1px solid #FDDB64"
|
11504
11681
|
}
|
11505
|
-
}, "
|
11682
|
+
}, t("trick_problem")), problem === 2 && React__default.createElement("span", {
|
11506
11683
|
style: {
|
11507
11684
|
border: "1px solid #F34B4B"
|
11508
11685
|
}
|
11509
|
-
}, "
|
11686
|
+
}, t("differential_problem")), problem === 0 && React__default.createElement("span", {
|
11510
11687
|
style: {
|
11511
11688
|
border: "1px solid #DDDDDD"
|
11512
11689
|
}
|
11513
|
-
}, "
|
11690
|
+
}, t("general_problem")), problem === 4 && React__default.createElement("span", {
|
11514
11691
|
style: {
|
11515
11692
|
border: "1px solid #FF0000"
|
11516
11693
|
}
|
11517
|
-
}, "
|
11694
|
+
}, t("Difficult_problem")));
|
11518
11695
|
}))));
|
11519
11696
|
});
|
11520
11697
|
};
|
@@ -11544,23 +11721,23 @@ var CompareGrass = function CompareGrass(_ref) {
|
|
11544
11721
|
className: isPrint ? PrintHeaderClassName : ""
|
11545
11722
|
}, React__default.createElement("tr", null, React__default.createElement("th", {
|
11546
11723
|
className: styles$4["thcolumn1"]
|
11547
|
-
}, "
|
11724
|
+
}, t("problem_number")), React__default.createElement("th", {
|
11548
11725
|
style: {
|
11549
11726
|
textAlign: "center"
|
11550
11727
|
}
|
11551
|
-
}, "
|
11728
|
+
}, t("answer")), React__default.createElement("th", {
|
11552
11729
|
style: {
|
11553
11730
|
textAlign: "center"
|
11554
11731
|
}
|
11555
|
-
}, "
|
11732
|
+
}, t("my_solution")), React__default.createElement("th", {
|
11556
11733
|
style: {
|
11557
11734
|
textAlign: "center"
|
11558
11735
|
}
|
11559
|
-
}, "
|
11736
|
+
}, t("most_solutions")), React__default.createElement("th", {
|
11560
11737
|
style: {
|
11561
11738
|
textAlign: "center"
|
11562
11739
|
}
|
11563
|
-
}, "
|
11740
|
+
}, t("problem_classification")))), isPrint ? renderPrintTableBody(effectSize) : React__default.createElement("tbody", null, renderTableBody(effectSize))))));
|
11564
11741
|
};
|
11565
11742
|
|
11566
11743
|
var iconUpArrow = function iconUpArrow(_ref) {
|
@@ -11656,6 +11833,8 @@ var TrickyProblem = function TrickyProblem(_ref) {
|
|
11656
11833
|
openProblem = _ref.openProblem,
|
11657
11834
|
changeOpen = _ref.changeOpen,
|
11658
11835
|
isPrint = _ref.isPrint;
|
11836
|
+
var _useTranslation = reactI18next.useTranslation(),
|
11837
|
+
t = _useTranslation.t;
|
11659
11838
|
var isOpen = openProblem === keyOpen;
|
11660
11839
|
var inCorrectQuestions = data.questions.filter(function (i) {
|
11661
11840
|
return i.isStar && !i.isCorrect;
|
@@ -11666,56 +11845,64 @@ var TrickyProblem = function TrickyProblem(_ref) {
|
|
11666
11845
|
var renderProblems = function renderProblems() {
|
11667
11846
|
return React__default.createElement(React.Fragment, null, React__default.createElement("div", {
|
11668
11847
|
className: styles$4["titleTrickyProblem"]
|
11669
|
-
}, React__default.createElement(iconX, null), React__default.createElement("span", null, "
|
11848
|
+
}, React__default.createElement(iconX, null), React__default.createElement("span", null, t("incorrect_problem_among_the_starred_problems"))), React__default.createElement("div", {
|
11670
11849
|
className: styles$4["wrongQuestions"]
|
11671
11850
|
}, !!inCorrectQuestions.length && inCorrectQuestions.map(function (question) {
|
11672
11851
|
return React__default.createElement("span", {
|
11673
11852
|
key: question.id,
|
11674
11853
|
className: styles$4["question"]
|
11675
|
-
},
|
11854
|
+
}, t("number_question", {
|
11855
|
+
number: question.questionOrder + 1
|
11856
|
+
}));
|
11676
11857
|
}), !data.questions.length && React__default.createElement("div", {
|
11677
11858
|
className: styles$4["noData"]
|
11678
|
-
}, "
|
11859
|
+
}, t("no_data"))), React__default.createElement("div", {
|
11679
11860
|
className: styles$4["titleTrickyProblem"]
|
11680
|
-
}, React__default.createElement(iconAssignedQuestions, null), React__default.createElement("span", null, "
|
11861
|
+
}, React__default.createElement(iconAssignedQuestions, null), React__default.createElement("span", null, t("correct_problem_among_the_starred_problems"))), React__default.createElement("div", {
|
11681
11862
|
className: styles$4["assignedQuestions"]
|
11682
11863
|
}, !!correctQuestions.length && correctQuestions.map(function (question) {
|
11683
11864
|
return React__default.createElement("div", {
|
11684
11865
|
key: question.id,
|
11685
11866
|
className: styles$4["question"]
|
11686
|
-
},
|
11867
|
+
}, t("number_question", {
|
11868
|
+
number: question.questionOrder + 1
|
11869
|
+
}));
|
11687
11870
|
}), !data.questions.length && React__default.createElement("div", {
|
11688
11871
|
className: styles$4["noData"]
|
11689
|
-
}, "
|
11872
|
+
}, t("no_data"))));
|
11690
11873
|
};
|
11691
11874
|
var renderPrintProblems = function renderPrintProblems() {
|
11692
11875
|
return React__default.createElement(React.Fragment, null, React__default.createElement("div", {
|
11693
11876
|
className: PrintContentClassName
|
11694
11877
|
}, React__default.createElement("div", {
|
11695
11878
|
className: styles$4["titleTrickyProblem"]
|
11696
|
-
}, React__default.createElement(iconX, null), React__default.createElement("span", null, "
|
11879
|
+
}, React__default.createElement(iconX, null), React__default.createElement("span", null, t("incorrect_problem_among_the_starred_problems"))), React__default.createElement("div", {
|
11697
11880
|
className: styles$4["wrongQuestions"]
|
11698
11881
|
}, !!inCorrectQuestions.length && inCorrectQuestions.map(function (question) {
|
11699
11882
|
return React__default.createElement("span", {
|
11700
11883
|
key: question.id,
|
11701
11884
|
className: styles$4["question"]
|
11702
|
-
},
|
11885
|
+
}, t("number_question", {
|
11886
|
+
number: question.questionOrder + 1
|
11887
|
+
}));
|
11703
11888
|
}), !data.questions.length && React__default.createElement("div", {
|
11704
11889
|
className: styles$4["noData"]
|
11705
|
-
}, "
|
11890
|
+
}, t("no_data")))), React__default.createElement("div", {
|
11706
11891
|
className: PrintContentClassName
|
11707
11892
|
}, React__default.createElement("div", {
|
11708
11893
|
className: styles$4["titleTrickyProblem"]
|
11709
|
-
}, React__default.createElement(iconAssignedQuestions, null), React__default.createElement("span", null, "
|
11894
|
+
}, React__default.createElement(iconAssignedQuestions, null), React__default.createElement("span", null, t("correct_problem_among_the_starred_problems"))), React__default.createElement("div", {
|
11710
11895
|
className: styles$4["assignedQuestions"]
|
11711
11896
|
}, !!correctQuestions.length && correctQuestions.map(function (question) {
|
11712
11897
|
return React__default.createElement("div", {
|
11713
11898
|
key: question.id,
|
11714
11899
|
className: styles$4["question"]
|
11715
|
-
},
|
11900
|
+
}, t("number_question", {
|
11901
|
+
number: question.questionOrder + 1
|
11902
|
+
}));
|
11716
11903
|
}), !data.questions.length && React__default.createElement("div", {
|
11717
11904
|
className: styles$4["noData"]
|
11718
|
-
}, "
|
11905
|
+
}, t("no_data")))));
|
11719
11906
|
};
|
11720
11907
|
return React__default.createElement("div", {
|
11721
11908
|
className: styles$4["wrapperProblem"] + " " + (isPrint ? PrintContainerClassName : "")
|
@@ -11730,7 +11917,7 @@ var TrickyProblem = function TrickyProblem(_ref) {
|
|
11730
11917
|
fontSize: "14px",
|
11731
11918
|
fontWeight: 700
|
11732
11919
|
}
|
11733
|
-
}, "
|
11920
|
+
}, t("tricky_problems")), isOpen ? React__default.createElement(iconUpArrow, null) : React__default.createElement(iconDownArrow, null)), isOpen && React__default.createElement(React.Fragment, null, isPrint ? renderPrintProblems() : renderProblems()));
|
11734
11921
|
};
|
11735
11922
|
|
11736
11923
|
var ProtractedProblem = function ProtractedProblem(_ref) {
|
@@ -11751,15 +11938,17 @@ var ProtractedProblem = function ProtractedProblem(_ref) {
|
|
11751
11938
|
className: styles$4["contentColumn1"]
|
11752
11939
|
}, React__default.createElement("div", null, React__default.createElement("span", {
|
11753
11940
|
className: styles$4["span1"]
|
11754
|
-
}, "
|
11941
|
+
}, t("problem")), React__default.createElement("span", {
|
11755
11942
|
className: styles$4["span2"]
|
11756
|
-
},
|
11943
|
+
}, t("number_question", {
|
11944
|
+
number: item.questionOrder + 1
|
11945
|
+
})))), React__default.createElement("div", {
|
11757
11946
|
className: styles$4["contentColumn2"]
|
11758
11947
|
}, React__default.createElement("div", null, React__default.createElement("span", {
|
11759
11948
|
className: styles$4["span1"]
|
11760
|
-
}, "
|
11949
|
+
}, t("my_time")), React__default.createElement("span", {
|
11761
11950
|
className: styles$4["span2"]
|
11762
|
-
}, "
|
11951
|
+
}, t("top_time"))), React__default.createElement("div", null, React__default.createElement("span", {
|
11763
11952
|
className: styles$4["duration"]
|
11764
11953
|
}, formatTimeSecond(item.duration, t)), React__default.createElement("span", {
|
11765
11954
|
className: styles$4["topDuration"]
|
@@ -11788,11 +11977,11 @@ var ProtractedProblem = function ProtractedProblem(_ref) {
|
|
11788
11977
|
fontSize: "14px",
|
11789
11978
|
fontWeight: 700
|
11790
11979
|
}
|
11791
|
-
}, "
|
11980
|
+
}, t("problems_that_took_a_long_time")), isOpen ? React__default.createElement(iconUpArrow, null) : React__default.createElement(iconDownArrow, null)), isOpen && React__default.createElement(React.Fragment, null, React__default.createElement("div", {
|
11792
11981
|
className: styles$4["wrapperContent"]
|
11793
11982
|
}, data.length ? isPrint ? renderPrintQuestions() : renderQuestions(data) : React__default.createElement("div", {
|
11794
11983
|
className: styles$4["noData"] + " " + (isPrint ? PrintContentClassName : "")
|
11795
|
-
}, "
|
11984
|
+
}, t("no_data")))));
|
11796
11985
|
};
|
11797
11986
|
|
11798
11987
|
var Vulnerable = function Vulnerable(_ref) {
|
@@ -11801,6 +11990,8 @@ var Vulnerable = function Vulnerable(_ref) {
|
|
11801
11990
|
openProblem = _ref.openProblem,
|
11802
11991
|
changeOpen = _ref.changeOpen,
|
11803
11992
|
isPrint = _ref.isPrint;
|
11993
|
+
var _useTranslation = reactI18next.useTranslation(),
|
11994
|
+
t = _useTranslation.t;
|
11804
11995
|
var isOpen = openProblem === keyOpen;
|
11805
11996
|
var incorrectQuestions = data.questions.filter(function (i) {
|
11806
11997
|
return i.selectedAnswers !== "" && i.isCorrect === false;
|
@@ -11816,19 +12007,25 @@ var Vulnerable = function Vulnerable(_ref) {
|
|
11816
12007
|
className: styles$4["contentColumn1"]
|
11817
12008
|
}, React__default.createElement("div", null, React__default.createElement("span", {
|
11818
12009
|
className: styles$4["span1"]
|
11819
|
-
}, "
|
12010
|
+
}, t("problem_number")), React__default.createElement("span", {
|
11820
12011
|
className: styles$4["span2"]
|
11821
|
-
},
|
12012
|
+
}, t("number_question", {
|
12013
|
+
number: question.questionOrder + 1
|
12014
|
+
})))), React__default.createElement("div", {
|
11822
12015
|
className: styles$4["contentColumn2"]
|
11823
12016
|
}, React__default.createElement("div", null, React__default.createElement("span", {
|
11824
12017
|
className: styles$4["span1"]
|
11825
|
-
}, "
|
12018
|
+
}, t("total_correct_rate")), React__default.createElement("span", {
|
11826
12019
|
className: styles$4["span2"]
|
11827
|
-
}, "
|
12020
|
+
}, t("my_wrong_answer"))), React__default.createElement("div", null, React__default.createElement("span", {
|
11828
12021
|
className: styles$4["overallCorrectRate"]
|
11829
12022
|
}, question.overallCorrectRate.toFixed(2), "%"), React__default.createElement("span", {
|
11830
12023
|
className: styles$4["answer"]
|
11831
|
-
},
|
12024
|
+
}, t("number_question", {
|
12025
|
+
number: question.selectedAnswers
|
12026
|
+
}), " (", t("answer"), " ", t("number_question", {
|
12027
|
+
number: question.correctAnswers
|
12028
|
+
}), ")"))));
|
11832
12029
|
});
|
11833
12030
|
};
|
11834
12031
|
var renderPrintQuestions = function renderPrintQuestions(questions) {
|
@@ -11843,21 +12040,21 @@ var Vulnerable = function Vulnerable(_ref) {
|
|
11843
12040
|
return React__default.createElement("div", {
|
11844
12041
|
className: styles$4["wrapperProblem"] + " " + PrintContainerClassName
|
11845
12042
|
}, React__default.createElement("div", {
|
11846
|
-
className: (!
|
12043
|
+
className: (!isOpen ? styles$4["titleProblemClose"] : styles$4["titleProblem"]) + " " + (isPrint ? PrintHeaderClassName : ""),
|
11847
12044
|
onClick: function onClick() {
|
11848
12045
|
return changeOpen(isOpen ? "" : keyOpen);
|
11849
12046
|
}
|
11850
12047
|
}, React__default.createElement(material.Typography, {
|
11851
12048
|
sx: {
|
11852
|
-
color: !
|
12049
|
+
color: !isOpen ? "#97A1AF" : "#414E62",
|
11853
12050
|
fontSize: "14px",
|
11854
12051
|
fontWeight: 700
|
11855
12052
|
}
|
11856
|
-
}, "
|
12053
|
+
}, t("issues_vulnerable")), isOpen ? React__default.createElement(iconUpArrow, null) : React__default.createElement(iconDownArrow, null)), isOpen && React__default.createElement(React.Fragment, null, React__default.createElement("div", {
|
11857
12054
|
className: styles$4["wrapperContent"]
|
11858
12055
|
}, isPrint ? renderPrintQuestions(incorrectQuestions) : renderQuestions(incorrectQuestions), !incorrectQuestions.length && React__default.createElement("div", {
|
11859
12056
|
className: styles$4["noData"] + " " + (isPrint ? PrintContentClassName : "")
|
11860
|
-
}, "
|
12057
|
+
}, t("no_data")))));
|
11861
12058
|
};
|
11862
12059
|
|
11863
12060
|
var GradesByTerritory = function GradesByTerritory(_ref) {
|
@@ -11866,6 +12063,8 @@ var GradesByTerritory = function GradesByTerritory(_ref) {
|
|
11866
12063
|
openProblem = _ref.openProblem,
|
11867
12064
|
changeOpen = _ref.changeOpen,
|
11868
12065
|
isPrint = _ref.isPrint;
|
12066
|
+
var _useTranslation = reactI18next.useTranslation(),
|
12067
|
+
t = _useTranslation.t;
|
11869
12068
|
var isOpen = openProblem === keyOpen;
|
11870
12069
|
var renderCategories = function renderCategories(data) {
|
11871
12070
|
return data.map(function (item) {
|
@@ -11881,7 +12080,7 @@ var GradesByTerritory = function GradesByTerritory(_ref) {
|
|
11881
12080
|
className: styles$4["name"]
|
11882
12081
|
}, item.name), React__default.createElement("div", {
|
11883
12082
|
className: styles$4["percent"]
|
11884
|
-
}, React__default.createElement("span", null, item.percentageAmongStudents.toFixed(2), "%"), React__default.createElement("span", null, item.totalCorrectQuestions, "/", item.totalQuestions, "
|
12083
|
+
}, React__default.createElement("span", null, item.percentageAmongStudents.toFixed(2), "%"), React__default.createElement("span", null, item.totalCorrectQuestions, "/", item.totalQuestions, t("problems")))), React__default.createElement("div", {
|
11885
12084
|
className: styles$4["slider"]
|
11886
12085
|
}, React__default.createElement("div", null, React__default.createElement("span", {
|
11887
12086
|
className: styles$4["track"],
|
@@ -11911,11 +12110,11 @@ var GradesByTerritory = function GradesByTerritory(_ref) {
|
|
11911
12110
|
fontSize: "14px",
|
11912
12111
|
fontWeight: 700
|
11913
12112
|
}
|
11914
|
-
}, "
|
12113
|
+
}, t("grades_by_area")), isOpen ? React__default.createElement(iconUpArrow, null) : React__default.createElement(iconDownArrow, null)), isOpen && React__default.createElement("div", {
|
11915
12114
|
className: styles$4["wrappContentProblem"]
|
11916
12115
|
}, isPrint ? renderPrintCategories() : renderCategories(data), isOpen && !data.length && React__default.createElement("div", {
|
11917
12116
|
className: styles$4["noData"] + " " + (isPrint ? PrintContentClassName : "")
|
11918
|
-
}, "
|
12117
|
+
}, t("no_data"))));
|
11919
12118
|
};
|
11920
12119
|
|
11921
12120
|
var useCreateQuestionDialog$1 = function useCreateQuestionDialog() {
|
@@ -12124,7 +12323,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12124
12323
|
var _useTab = useTab(),
|
12125
12324
|
selected = _useTab.selected,
|
12126
12325
|
handleChangeTab = _useTab.handleChangeTab;
|
12127
|
-
var _useExamResult = useExamResult(searchParams, onNavigate, examSessionId, studentId, code, handleChangeTab),
|
12326
|
+
var _useExamResult = useExamResult(searchParams, onNavigate, examSessionId, studentId, code, handleChangeTab, selected),
|
12128
12327
|
examTime = _useExamResult.examTime,
|
12129
12328
|
series = _useExamResult.series,
|
12130
12329
|
allSeries = _useExamResult.allSeries,
|
@@ -12301,7 +12500,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12301
12500
|
onClick: function onClick() {
|
12302
12501
|
return handleChangeTab(value);
|
12303
12502
|
}
|
12304
|
-
}, label);
|
12503
|
+
}, t(label));
|
12305
12504
|
})), isTabletUp && React__default.createElement(material.Stack, {
|
12306
12505
|
padding: '12px 24px',
|
12307
12506
|
alignItems: "end",
|
@@ -12679,6 +12878,7 @@ var Header = function Header(_ref) {
|
|
12679
12878
|
className: "fw-bold me-2 text-nowrap",
|
12680
12879
|
sx: {
|
12681
12880
|
minWidth: "60px",
|
12881
|
+
maxWidth: "120px",
|
12682
12882
|
overflow: "hidden",
|
12683
12883
|
textOverflow: "ellipsis"
|
12684
12884
|
}
|