touchstudy-core 0.1.87 → 0.1.88
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/containers/Classes/hooks/useClassDetail.d.ts +1 -1
- package/dist/containers/Classes/hooks/useLessonClassList.d.ts +1 -1
- package/dist/containers/Login/apiClient/index.d.ts +2 -5
- package/dist/containers/Login/hooks/useLogin.d.ts +2 -4
- package/dist/index.css +48 -0
- package/dist/index.d.ts +7 -2
- package/dist/index.js +5092 -58
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5082 -55
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/enums/index.d.ts +2 -1
- package/dist/utils/formatTime.d.ts +2 -0
- package/dist/utils/helpers.d.ts +3 -0
- package/dist/utils/hooks/useCountDownTimer.d.ts +0 -1
- package/dist/utils/types/index.d.ts +2 -1
- package/dist/utils/types/searchQuery.d.ts +7 -0
- package/package.json +7 -3
@@ -80,7 +80,7 @@ declare const useClassDetail: (history: any, id?: string | undefined) => {
|
|
80
80
|
classList: import("../configs/types").LessonResponse[];
|
81
81
|
filter: import("../configs/types").LessonQuery;
|
82
82
|
selectedLesson: import("../configs/types").LessonResponse | undefined;
|
83
|
-
openDialog: "Update" | "
|
83
|
+
openDialog: "Update" | "Create" | "Remove" | undefined;
|
84
84
|
t: any;
|
85
85
|
handleOpenCreateOrUpdateDialog: (value?: import("../configs/types").LessonResponse | undefined) => void;
|
86
86
|
handleOpenDeleteClassDialog: (value: import("../configs/types").LessonResponse) => void;
|
@@ -7,7 +7,7 @@ declare const useLessonClassList: (courseId: number) => {
|
|
7
7
|
classList: LessonResponse[];
|
8
8
|
filter: LessonQuery;
|
9
9
|
selectedLesson: LessonResponse | undefined;
|
10
|
-
openDialog: "Update" | "
|
10
|
+
openDialog: "Update" | "Create" | "Remove" | undefined;
|
11
11
|
t: any;
|
12
12
|
handleOpenCreateOrUpdateDialog: (value?: LessonResponse | undefined) => void;
|
13
13
|
handleOpenDeleteClassDialog: (value: LessonResponse) => void;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { SignInOTPRequest } from "../configs/types";
|
1
2
|
export declare const getGoogleClientId: () => Promise<import("axios").AxiosResponse<any, any>>;
|
2
3
|
export declare const signInApi: ({ email, password, role }: {
|
3
4
|
email: string;
|
@@ -9,11 +10,7 @@ export declare const signInWithEmailApi: ({ academyDomain, email, reCaptcha }: {
|
|
9
10
|
email: string;
|
10
11
|
reCaptcha: string;
|
11
12
|
}) => Promise<import("axios").AxiosResponse<any, any>>;
|
12
|
-
export declare const signInWithOTPApi: ({ academyDomain, otp, role }:
|
13
|
-
academyDomain: string;
|
14
|
-
otp: number;
|
15
|
-
role?: string | undefined;
|
16
|
-
}) => Promise<import("axios").AxiosResponse<any, any>>;
|
13
|
+
export declare const signInWithOTPApi: ({ academyDomain, otp, email, reCaptcha, role }: SignInOTPRequest) => Promise<import("axios").AxiosResponse<any, any>>;
|
17
14
|
export declare const signInWithKeyApi: ({ academyDomain, key, role }: {
|
18
15
|
academyDomain: string;
|
19
16
|
key: string;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { Role } from "../../../utils/constants";
|
3
|
+
import { LoginEmailRequest } from "../configs/types";
|
3
4
|
declare type LoginInfo = {
|
4
5
|
email: string;
|
5
6
|
otp: number | string;
|
@@ -26,10 +27,7 @@ declare const useLogin: ({ history, homeAcademyUrl, homeUrl, registerUrl, role }
|
|
26
27
|
isShowPassword: boolean;
|
27
28
|
setIsShowPassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
28
29
|
infoUser: any;
|
29
|
-
handleSubmit: (values:
|
30
|
-
email?: string;
|
31
|
-
otp?: number;
|
32
|
-
}) => Promise<void>;
|
30
|
+
handleSubmit: (values: LoginEmailRequest) => Promise<void>;
|
33
31
|
setInfoUser: import("react").Dispatch<any>;
|
34
32
|
};
|
35
33
|
export default useLogin;
|
package/dist/index.css
CHANGED
@@ -1431,3 +1431,51 @@
|
|
1431
1431
|
|
1432
1432
|
._3rPGh {
|
1433
1433
|
page-break-inside: avoid; }
|
1434
|
+
|
1435
|
+
._2rJkZ {
|
1436
|
+
width: 42px;
|
1437
|
+
height: 42px; }
|
1438
|
+
|
1439
|
+
._1iqE2 {
|
1440
|
+
width: 100%; }
|
1441
|
+
._1iqE2 input {
|
1442
|
+
padding: 10px 12px; }
|
1443
|
+
|
1444
|
+
._20xtc input {
|
1445
|
+
padding: 10px 12px; }
|
1446
|
+
|
1447
|
+
._3L1Oj > div {
|
1448
|
+
margin-bottom: 0 !important; }
|
1449
|
+
|
1450
|
+
._1jXbz {
|
1451
|
+
border-radius: 50%;
|
1452
|
+
width: 36px;
|
1453
|
+
height: 36px;
|
1454
|
+
display: flex;
|
1455
|
+
justify-content: center;
|
1456
|
+
align-items: center;
|
1457
|
+
margin-inline: 0.25rem; }
|
1458
|
+
._1jXbz svg {
|
1459
|
+
width: 0.75rem; }
|
1460
|
+
._at4xP {
|
1461
|
+
stroke: #FFF;
|
1462
|
+
width: 1rem !important; }
|
1463
|
+
|
1464
|
+
._12gv9 {
|
1465
|
+
transform: rotate(180deg); }
|
1466
|
+
|
1467
|
+
._R4bn5 {
|
1468
|
+
border: 1px dashed #DDD;
|
1469
|
+
border-radius: 0.5rem;
|
1470
|
+
height: 200px;
|
1471
|
+
display: flex;
|
1472
|
+
justify-content: center;
|
1473
|
+
align-items: center;
|
1474
|
+
cursor: pointer; }
|
1475
|
+
._R4bn5 input {
|
1476
|
+
width: 100%;
|
1477
|
+
height: 100%; }
|
1478
|
+
|
1479
|
+
._8niRT {
|
1480
|
+
width: 42px;
|
1481
|
+
height: 42px; }
|
package/dist/index.d.ts
CHANGED
@@ -66,7 +66,7 @@ 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
|
-
import { getOrdinalSuffix } from './utils/helpers';
|
69
|
+
import { formatRole, getOrdinalSuffix, getRole } from './utils/helpers';
|
70
70
|
import { Language } from './utils/constants';
|
71
71
|
import useCountDownTimer from "./utils/hooks/useCountDownTimer";
|
72
72
|
import useLoadMore from "./utils/hooks/useLoadMore";
|
@@ -78,4 +78,9 @@ import { checkSuperUrl } from "./utils/types/checkSuperUrl";
|
|
78
78
|
import PrintExamResultView from "./containers/ExamResult/views/PrintExamResultView";
|
79
79
|
import PrintExamView2 from "./components/Print/PrintExamView2";
|
80
80
|
import LoginWithEmail from "./containers/Login/views/LoginWithEmail";
|
81
|
-
|
81
|
+
import ClassList from "./containers/Classes/views/ClassList";
|
82
|
+
import ClassDetail from "./containers/Classes/views/ClassDetail";
|
83
|
+
import UserList from "./containers/Users/views/UserList";
|
84
|
+
import NotificationDetail from "./containers/Notifications/views/NotificationDetail";
|
85
|
+
import NotificationList from "./containers/Notifications/views/NotificationList";
|
86
|
+
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, LoginWithEmail, NotificationList, 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, NotificationDetail, 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, ClassList, ClassDetail, formatRole, getRole, UserList };
|