touchstudy-core 0.1.65 → 0.1.66
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/Selectors/styles.d.ts +6 -0
- package/dist/containers/ExamResult/components/GradesByTerritory/index.d.ts +3 -1
- package/dist/containers/ExamResult/components/ProtractedProblem/index.d.ts +1 -0
- package/dist/containers/ExamResult/components/Vulnerable/index.d.ts +1 -0
- package/dist/containers/ExamResult/configs/constants.d.ts +1 -0
- package/dist/containers/ExamResult/configs/functions.d.ts +1 -0
- package/dist/containers/ExamResult/configs/types.d.ts +5 -2
- package/dist/containers/ExamResult/hooks/useExamResult.d.ts +2 -0
- package/dist/containers/ExamResult/views/ExamResultV2.d.ts +1 -0
- package/dist/containers/Textbooks/configs/types.d.ts +1 -6
- package/dist/index.css +34 -30
- package/dist/index.d.ts +7 -1
- package/dist/index.js +1110 -331
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1103 -328
- package/dist/index.modern.js.map +1 -1
- package/dist/layouts/Header.d.ts +1 -1
- package/dist/services/examService.d.ts +1 -0
- package/dist/tests/performances/do-exam-session-skip-answer.d.ts +19 -0
- package/dist/tests/performances/do-exam-session.d.ts +5 -3
- package/dist/tests/performances/do-exam-session2.d.ts +19 -0
- package/dist/tests/performances/ramping-vus.d.ts +7 -0
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/enums/examStatus.d.ts +6 -0
- package/dist/utils/enums/index.d.ts +2 -1
- package/dist/utils/enums/orderBy.d.ts +4 -0
- package/dist/utils/helpers.d.ts +10 -0
- package/dist/utils/hooks/useCheckExam.d.ts +5 -0
- package/dist/utils/hooks/useCountDownTimer.d.ts +11 -0
- package/dist/utils/hooks/useLoadMore.d.ts +9 -0
- package/dist/utils/hooks/useSwitchAcademy.d.ts +1 -0
- package/dist/utils/hooks/useVirtualizeList.d.ts +9 -0
- package/dist/utils/times.d.ts +2 -0
- package/package.json +1 -1
@@ -1,11 +1,13 @@
|
|
1
1
|
import { FC } from "react";
|
2
|
-
import { CategoryResponse } from "../../configs/types";
|
2
|
+
import { CategoryResponse, ExamResult } from "../../configs/types";
|
3
3
|
interface Props {
|
4
4
|
keyOpen: string;
|
5
5
|
data: CategoryResponse[];
|
6
6
|
openProblem: string;
|
7
7
|
changeOpen: any;
|
8
8
|
isPrint?: boolean;
|
9
|
+
resultData: ExamResult;
|
10
|
+
isMyStoryStudent?: boolean;
|
9
11
|
}
|
10
12
|
declare const GradesByTerritory: FC<Props>;
|
11
13
|
export default GradesByTerritory;
|
@@ -29,14 +29,17 @@ export declare type Question = {
|
|
29
29
|
topDuration?: number | null;
|
30
30
|
questionOrder: number;
|
31
31
|
};
|
32
|
-
export
|
32
|
+
export interface CategoryResponse {
|
33
33
|
id: number;
|
34
34
|
name: string;
|
35
35
|
totalQuestions: number;
|
36
36
|
totalCorrectQuestions: number;
|
37
37
|
totalAnsweredQuestions: number;
|
38
38
|
percentageAmongStudents: number;
|
39
|
-
}
|
39
|
+
}
|
40
|
+
export interface CategoryFormat extends CategoryResponse {
|
41
|
+
totalSolveTime: number;
|
42
|
+
}
|
40
43
|
export declare type Student = {
|
41
44
|
avatar: string;
|
42
45
|
className: string;
|
@@ -14,6 +14,7 @@ declare const useExamResult: (searchParam: string, history: any, examSessionId:
|
|
14
14
|
enabled: boolean;
|
15
15
|
hideEmptySeries: boolean;
|
16
16
|
};
|
17
|
+
colors: string[];
|
17
18
|
xaxis: {
|
18
19
|
categories: any[];
|
19
20
|
axisBorder: {
|
@@ -117,6 +118,7 @@ declare const useExamResult: (searchParam: string, history: any, examSessionId:
|
|
117
118
|
color: string;
|
118
119
|
};
|
119
120
|
};
|
121
|
+
colors: string[];
|
120
122
|
chart: {
|
121
123
|
type: string;
|
122
124
|
toolbar: {
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { SearchQuery } from "../../../utils/types/index";
|
2
2
|
import { TableHeaderType } from "../../../utils/types/index";
|
3
|
+
import { ExamStatus as ExamStatusNumber } from "../../../utils/enums";
|
3
4
|
export declare enum TextbookSortBy {
|
4
5
|
CreatedAt = "CreatedAt",
|
5
6
|
Title = "Name",
|
@@ -150,9 +151,3 @@ export declare enum ExamStatus {
|
|
150
151
|
InProgress = "InProgress",
|
151
152
|
Completed = "Completed"
|
152
153
|
}
|
153
|
-
export declare enum ExamStatusNumber {
|
154
|
-
Default = 0,
|
155
|
-
Pending = 1,
|
156
|
-
InProgress = 2,
|
157
|
-
Completed = 3
|
158
|
-
}
|
package/dist/index.css
CHANGED
@@ -179,7 +179,6 @@
|
|
179
179
|
max-width: 40px;
|
180
180
|
aspect-ratio: 1;
|
181
181
|
border-radius: 50%;
|
182
|
-
background: #349056;
|
183
182
|
border: 1px solid #DFE3E8; }
|
184
183
|
|
185
184
|
._1JMRU {
|
@@ -423,14 +422,20 @@
|
|
423
422
|
display: flex;
|
424
423
|
justify-content: space-between;
|
425
424
|
padding: 0 27px;
|
426
|
-
border-bottom: 1px solid var(--gray-
|
425
|
+
border-bottom: 1px solid var(--gray-100); }
|
427
426
|
._3xnI5 ._3hx2T {
|
428
427
|
text-align: start; }
|
429
428
|
._3xnI5 ._3hx2T ._3UyhW div span {
|
430
429
|
display: none; }
|
431
430
|
._3xnI5 a._1TGKA {
|
432
|
-
border-
|
433
|
-
|
431
|
+
border-radius: 0;
|
432
|
+
position: relative; }
|
433
|
+
._3xnI5 a._1TGKA::after {
|
434
|
+
content: "";
|
435
|
+
position: absolute;
|
436
|
+
bottom: -1px;
|
437
|
+
width: 100%;
|
438
|
+
border-bottom: 1px solid #3DC674; }
|
434
439
|
._3xnI5 a._1AqMh,
|
435
440
|
._3xnI5 a._1TGKA {
|
436
441
|
color: #349056; }
|
@@ -909,7 +914,8 @@
|
|
909
914
|
border-top: 1px solid #e4e7ec;
|
910
915
|
display: flex;
|
911
916
|
flex-direction: row;
|
912
|
-
justify-content:
|
917
|
+
justify-content: start;
|
918
|
+
background-color: #FBFBF9;
|
913
919
|
gap: 8px; }
|
914
920
|
._eDBpS ._3gEYh span:nth-child(1) {
|
915
921
|
font-family: "Pretendard";
|
@@ -1057,48 +1063,48 @@
|
|
1057
1063
|
font-size: 16px;
|
1058
1064
|
color: #414e62; }
|
1059
1065
|
|
1060
|
-
.
|
1066
|
+
._o1txm {
|
1061
1067
|
font-family: "Pretendard";
|
1062
1068
|
padding: 10.5px 24px;
|
1063
1069
|
font-weight: 700;
|
1064
1070
|
font-size: 16px;
|
1065
1071
|
color: #414e62; }
|
1066
1072
|
|
1067
|
-
.
|
1073
|
+
._bT5nf thead {
|
1068
1074
|
background-color: #f9fafb; }
|
1069
|
-
.
|
1075
|
+
._bT5nf thead th {
|
1070
1076
|
font-family: "Pretendard";
|
1071
1077
|
font-weight: 600;
|
1072
1078
|
font-size: 13px;
|
1073
|
-
color: #
|
1079
|
+
color: #9A9A98;
|
1074
1080
|
padding: 12px 16px; }
|
1075
|
-
.
|
1081
|
+
._bT5nf thead ._3Umg0 {
|
1076
1082
|
border-right: 1px solid #e4e7ec;
|
1077
1083
|
padding: 12px 16px; }
|
1078
1084
|
|
1079
|
-
.
|
1085
|
+
._bT5nf tbody {
|
1080
1086
|
font-family: "Pretendard";
|
1081
1087
|
font-weight: 500;
|
1082
1088
|
font-size: 13px;
|
1083
1089
|
border-bottom: 1px solid #e4e7ec; }
|
1084
|
-
.
|
1090
|
+
._bT5nf tbody td {
|
1085
1091
|
vertical-align: middle; }
|
1086
|
-
.
|
1092
|
+
._bT5nf tbody ._3dRMF {
|
1087
1093
|
padding: 8px 16px;
|
1088
1094
|
border-right: 1px solid #e4e7ec;
|
1089
1095
|
color: #97a1af; }
|
1090
|
-
.
|
1096
|
+
._bT5nf tbody ._2tcBP {
|
1091
1097
|
text-align: center;
|
1092
1098
|
font-family: "Pretendard";
|
1093
1099
|
font-weight: 700;
|
1094
1100
|
font-size: 13px; }
|
1095
|
-
.
|
1101
|
+
._bT5nf tbody ._1AFeb {
|
1096
1102
|
display: flex;
|
1097
1103
|
flex-direction: row;
|
1098
1104
|
justify-content: center;
|
1099
1105
|
align-items: center;
|
1100
1106
|
gap: 10px; }
|
1101
|
-
.
|
1107
|
+
._bT5nf tbody ._1AFeb span {
|
1102
1108
|
font-family: "Pretendard";
|
1103
1109
|
font-weight: 600;
|
1104
1110
|
font-size: 11px;
|
@@ -1188,34 +1194,30 @@
|
|
1188
1194
|
padding: 8px 0px; }
|
1189
1195
|
|
1190
1196
|
._2zmZn {
|
1191
|
-
padding: 8px
|
1192
|
-
display: flex;
|
1193
|
-
align-items: center;
|
1194
|
-
gap: 16px; }
|
1197
|
+
padding: 8px; }
|
1195
1198
|
._2zmZn ._334SY {
|
1196
|
-
|
1197
|
-
|
1198
|
-
border-right: 1px solid #97a1af; }
|
1199
|
+
border-right: 1px solid #97a1af;
|
1200
|
+
padding: 11px 24px 8px 11px; }
|
1199
1201
|
._2zmZn ._334SY div {
|
1200
1202
|
display: flex;
|
1201
1203
|
justify-content: center;
|
1202
1204
|
align-items: center;
|
1203
1205
|
gap: 4px;
|
1204
|
-
min-width: 72px;
|
1205
|
-
padding: 11px 15px 11px 8px; }
|
1206
|
+
min-width: 72px; }
|
1206
1207
|
._2zmZn ._334SY div ._3Lf-U {
|
1207
1208
|
font-family: "Pretendard";
|
1208
1209
|
font-weight: 600;
|
1209
|
-
font-size:
|
1210
|
+
font-size: 12px;
|
1210
1211
|
color: "#414E62"; }
|
1211
1212
|
._2zmZn ._334SY div ._ZpMot {
|
1212
1213
|
font-family: "Pretendard";
|
1213
1214
|
font-weight: 600;
|
1214
1215
|
font-size: 12px;
|
1215
|
-
color:
|
1216
|
+
color: #414E62; }
|
1216
1217
|
._2zmZn ._16P3l {
|
1217
1218
|
display: flex;
|
1218
1219
|
flex-direction: row;
|
1220
|
+
padding-left: 16px;
|
1219
1221
|
gap: 16px; }
|
1220
1222
|
._2zmZn ._16P3l div {
|
1221
1223
|
display: flex;
|
@@ -1244,7 +1246,8 @@
|
|
1244
1246
|
._2zmZn ._16P3l ._3jLGe {
|
1245
1247
|
font-family: "Pretendard";
|
1246
1248
|
font-weight: 600;
|
1247
|
-
font-size: 12px;
|
1249
|
+
font-size: 12px;
|
1250
|
+
color: #18442A; }
|
1248
1251
|
._2zmZn ._16P3l ._VsZ0K {
|
1249
1252
|
font-family: "Pretendard";
|
1250
1253
|
font-weight: 500;
|
@@ -1282,7 +1285,7 @@
|
|
1282
1285
|
width: 100%;
|
1283
1286
|
height: 12px;
|
1284
1287
|
background-color: transparent;
|
1285
|
-
border: 1px solid #
|
1288
|
+
border: 1px solid #89F0B2;
|
1286
1289
|
border-radius: 12px;
|
1287
1290
|
padding: 1px 5px;
|
1288
1291
|
overflow-x: hidden; }
|
@@ -1303,7 +1306,8 @@
|
|
1303
1306
|
font-weight: 600;
|
1304
1307
|
display: flex;
|
1305
1308
|
justify-content: center;
|
1306
|
-
align-items: center;
|
1309
|
+
align-items: center;
|
1310
|
+
margin: 8px 0; }
|
1307
1311
|
|
1308
1312
|
._3j485 {
|
1309
1313
|
height: calc(100vh - 72px); }
|
package/dist/index.d.ts
CHANGED
@@ -66,4 +66,10 @@ import { DEFAULT_PAGING_RESPONSE, PagingResponse } from "./utils/types/pagingRes
|
|
66
66
|
import AcademyList from "./containers/Academies/views/AcademyList";
|
67
67
|
import { getErrorMessage } from "./utils/getErrorMessage";
|
68
68
|
import getAcademyDomain from "./utils/getAcademyDomain";
|
69
|
-
|
69
|
+
import { getOrdinalSuffix } from './utils/helpers';
|
70
|
+
import { Language } from './utils/constants';
|
71
|
+
import useCountDownTimer from "./utils/hooks/useCountDownTimer";
|
72
|
+
import useCheckExam from "./utils/hooks/useCheckExam";
|
73
|
+
import useLoadMore from "./utils/hooks/useLoadMore";
|
74
|
+
import useVirtualizeList from "./utils/hooks/useVirtualizeList";
|
75
|
+
export { diffFromNow, formatTime, utcToLocalTime, setLoading, setReadyRegisterPusher, BASE_URL, SUPER_ADMIN_BASE_URL, ACCESS_TOKEN, Login, store, setAlert, setUser, Loading, NotFound, LayoutContext, api, apiUpload, ConfirmDialog, CommonDialog, CustomPagination, useGoogleSignOut, PUSHER_CONFIG, ExamEvent, EXAM_CHANNEL, EXAM_STUDENT_CHANNEL, setLanguage, i18n, TheLanguageDropdown, TheAcademyDropdown, useTranslation, I18nextProvider, DATE_MIN_VALUE, DATE_TIME_MIN_VALUE, ACADEMY_DOMAIN, minutesToTimeSpan, toISOString, canAccessRoute, CustomSelect, CustomAsyncSelect, CustomSelectOption, LoginWithPassword, getAccessToken, ChatContainer, getOrdinalSuffix, IChatContainerProps, IChatItemProps, IChatHeaderProps, IInputChatProps, ChatItemType, useChatContainer, ConversationResponse, usePusherConversation, ExamResultV2, ToastContainer, toast, Role, useLanguage, useSwitchAcademy, LANGUAGES, CustomCreatable, moment, ExamDetailView, ExamDetailViewProps, Exam, Question, ArticleGroup, getAcademyDomain, useSubjectSelect, useLogin, useAutoAcademyDomain, LoginAccessTokenRequest, LoginRequest, setReFetchUserAcademies, ChatTypes, AcademyHeaders, Types, Enums, CoreHooks, Language, ArticleGroupView, AnswerCountSelector, QuestionCountSelector, ScoreSelector, ArticleCategorySelector, SubjectSelector, useCategorySelect, InputText, Textbook, TextbookDetail, TextbookList, timeUtils, Header, DEFAULT_PAGING_RESPONSE, PagingResponse, AcademyList, getErrorMessage, DefaultErrorMessage, useCountDownTimer, useCheckExam, useLoadMore, useVirtualizeList };
|