touchstudy-core 0.1.75 → 0.1.77

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.
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { Role } from "../../utils/constants";
3
+ declare type Props = {
4
+ role: Role;
5
+ dataExamSession?: any;
6
+ };
7
+ declare const PrintExamView2: ({ role, dataExamSession }: Props) => React.JSX.Element;
8
+ export default PrintExamView2;
@@ -0,0 +1,16 @@
1
+ export declare type ExamSessionData = {
2
+ examSessionId?: number | string;
3
+ studentId?: number | string;
4
+ code?: string;
5
+ };
6
+ export declare type ExamSessionEventData = {
7
+ message: string;
8
+ examSessionId?: string;
9
+ code?: string;
10
+ };
11
+ export declare enum PrintState {
12
+ Idling = 0,
13
+ Stopped = 1,
14
+ Printing = 2,
15
+ Paused = 3
16
+ }
@@ -11,6 +11,7 @@ interface Props {
11
11
  isPrint?: boolean;
12
12
  }
13
13
  declare const useExamResult: (props: Props) => {
14
+ t: any;
14
15
  isLoading: boolean | undefined;
15
16
  examTime: string;
16
17
  series: {
@@ -1,5 +1,13 @@
1
1
  import { ExamResult } from "../configs/types";
2
- declare const usePrintView: (examSessionId: number, studentId: number, setNotFound?: Function | undefined, resultData?: ExamResult | undefined, isLoading?: boolean | undefined, errorMessage?: string | undefined) => {
2
+ declare const usePrintView: ({ examSessionId, studentId, code, setNotFound, resultData, isLoading, errorMessage }: {
3
+ examSessionId?: number | undefined;
4
+ studentId?: number | undefined;
5
+ code?: string | undefined;
6
+ setNotFound?: Function | undefined;
7
+ resultData?: ExamResult | undefined;
8
+ isLoading?: boolean | undefined;
9
+ errorMessage?: string | undefined;
10
+ }) => {
3
11
  fileName: string;
4
12
  isDone: boolean;
5
13
  handelPrintSuccess: () => void;
package/dist/index.css CHANGED
@@ -952,21 +952,21 @@
952
952
  ._eDBpS ._2K_sx ._3ut64 {
953
953
  color: #6B0861; }
954
954
  ._eDBpS ._2K_sx ._2VtpD {
955
- color: #f34b4b; }
955
+ color: #DB4D4D; }
956
956
  ._eDBpS ._2K_sx ._58lQU {
957
- color: #fddb64; }
957
+ color: #FEAF06; }
958
958
  ._eDBpS ._2K_sx ._1ucMY {
959
- color: #1ee288; }
959
+ color: #3ACB46; }
960
960
  ._eDBpS ._2K_sx ._1qkxy {
961
- color: #414E62; }
961
+ color: #5D5D5B; }
962
962
  ._eDBpS ._2K_sx ._2jIeT {
963
963
  font-weight: 500;
964
964
  font-size: 12px;
965
- color: #1ee288; }
965
+ color: #3ACB46; }
966
966
  ._eDBpS ._2K_sx ._to2v0 {
967
967
  font-weight: 500;
968
968
  font-size: 12px;
969
- color: #f34b4b; }
969
+ color: #DB4D4D; }
970
970
  ._eDBpS ._2K_sx ._1JSte {
971
971
  font-weight: 500;
972
972
  font-size: 12px;
@@ -974,15 +974,15 @@
974
974
  ._eDBpS ._2K_sx ._2_uTU {
975
975
  font-weight: 500;
976
976
  font-size: 12px;
977
- color: #1ee288; }
977
+ color: #3ACB46; }
978
978
  ._eDBpS ._2K_sx ._1DBoA {
979
979
  font-weight: 500;
980
980
  font-size: 12px;
981
- color: #f34b4b; }
981
+ color: #DB4D4D; }
982
982
  ._eDBpS ._2K_sx ._1q3tD {
983
983
  font-weight: 500;
984
984
  font-size: 12px;
985
- color: #fddb64; }
985
+ color: #FEAF06; }
986
986
  ._eDBpS ._2K_sx ._3iItu {
987
987
  font-weight: 500;
988
988
  font-size: 12px;
@@ -1168,7 +1168,7 @@
1168
1168
  font-weight: 500;
1169
1169
  font-size: 12px;
1170
1170
  background-color: #FFF;
1171
- color: #f34b4b; }
1171
+ color: #DB4D4D; }
1172
1172
  ._2dpMR ._1lSOX {
1173
1173
  min-width: 36px;
1174
1174
  min-height: 22px;
@@ -1184,7 +1184,7 @@
1184
1184
  font-weight: 500;
1185
1185
  font-size: 12px;
1186
1186
  background-color: #FFF;
1187
- color: #1ee288; }
1187
+ color: #3ACB46; }
1188
1188
  ._1ONUt ._1lSOX {
1189
1189
  min-width: 36px;
1190
1190
  min-height: 22px;
@@ -1237,7 +1237,7 @@
1237
1237
  font-family: "Pretendard";
1238
1238
  font-weight: 600;
1239
1239
  font-size: 12px;
1240
- color: #f34b4b; }
1240
+ color: #DB4D4D; }
1241
1241
  ._2zmZn ._16P3l ._1fVRi {
1242
1242
  font-family: "Pretendard";
1243
1243
  font-weight: 500;
@@ -1252,7 +1252,7 @@
1252
1252
  font-family: "Pretendard";
1253
1253
  font-weight: 500;
1254
1254
  font-size: 12px;
1255
- color: #f34b4b; }
1255
+ color: #DB4D4D; }
1256
1256
 
1257
1257
  ._QxKMy {
1258
1258
  padding: 8px; }
package/dist/index.d.ts CHANGED
@@ -76,4 +76,5 @@ import { PassCodeCheck, PassCodeCheckProps } from "./containers/PassCodes/views/
76
76
  import LoadingComponent from "./components/Loading/LoadingComponent";
77
77
  import { checkSuperUrl } from "./utils/types/checkSuperUrl";
78
78
  import PrintExamResultView from "./containers/ExamResult/views/PrintExamResultView";
79
- 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, RecentUserAction, 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, getRecentUserActionListApi, 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, createRecentUserActionListApi, 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, useLoadMore, useVirtualizeList, PassCodeCheck, PassCodeCheckProps, LoadingComponent, PrintExamResultView, checkSuperUrl };
79
+ import PrintExamView2 from "./components/Print/PrintExamView2";
80
+ 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, RecentUserAction, PUSHER_CONFIG, ExamEvent, EXAM_CHANNEL, EXAM_STUDENT_CHANNEL, setLanguage, i18n, TheLanguageDropdown, PrintExamView2, TheAcademyDropdown, useTranslation, I18nextProvider, DATE_MIN_VALUE, DATE_TIME_MIN_VALUE, ACADEMY_DOMAIN, minutesToTimeSpan, toISOString, canAccessRoute, CustomSelect, CustomAsyncSelect, CustomSelectOption, LoginWithPassword, getRecentUserActionListApi, 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, createRecentUserActionListApi, 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, useLoadMore, useVirtualizeList, PassCodeCheck, PassCodeCheckProps, LoadingComponent, PrintExamResultView, checkSuperUrl };