touchstudy-core 0.1.52 → 0.1.53
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/Academies/apiClients/academyService.d.ts +2 -0
- package/dist/containers/Academies/components/AcademyCard.d.ts +9 -0
- package/dist/containers/Academies/configs/types.d.ts +6 -0
- package/dist/containers/Academies/hooks/useAcademyList.d.ts +7 -0
- package/dist/containers/Academies/views/AcademyList.d.ts +12 -0
- package/dist/containers/ExamResult/hooks/useExamResult.d.ts +1 -1
- package/dist/containers/ExamResult/views/ExamResultV2.d.ts +1 -1
- package/dist/containers/Login/hooks/useLogin.d.ts +1 -1
- package/dist/containers/Login/hooks/useLoginWithPassword.d.ts +2 -2
- package/dist/containers/Login/views/LoginWithPassword.d.ts +2 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +236 -61
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +237 -63
- package/dist/index.modern.js.map +1 -1
- package/dist/layouts/Header.d.ts +1 -1
- package/dist/layouts/LayoutContext.d.ts +0 -1
- package/dist/layouts/TheAcademyDropdown.d.ts +1 -1
- package/dist/utils/hooks/useGoogleSignOut.d.ts +0 -1
- package/dist/utils/hooks/useLogin.d.ts +1 -1
- package/dist/utils/hooks/useSwitchAcademy.d.ts +1 -1
- package/dist/utils/pusherTo.d.ts +1 -0
- package/dist/utils/types.d.ts +1 -1
- package/package.json +1 -1
@@ -0,0 +1,9 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import { AcademyResponse } from "../configs/types";
|
3
|
+
interface AcademyCardProps {
|
4
|
+
theme: any;
|
5
|
+
academy: AcademyResponse;
|
6
|
+
onSwitch: (id: number, domain: string) => void;
|
7
|
+
}
|
8
|
+
declare const AcademyCard: React.FC<AcademyCardProps>;
|
9
|
+
export default AcademyCard;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { AcademyResponse } from "../configs/types";
|
2
|
+
import { Role } from "../../../utils/constants";
|
3
|
+
declare const useAcademyList: (history: any, role: Role, homeAcademyUrl: string, homeUrl: string, registerUrl?: string | undefined) => {
|
4
|
+
academyList: AcademyResponse[];
|
5
|
+
handleSwitchAcademy: (id: number, domain: string) => Promise<void>;
|
6
|
+
};
|
7
|
+
export default useAcademyList;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { FC } from "react";
|
2
|
+
import { Role } from "../../../utils/constants";
|
3
|
+
interface Props {
|
4
|
+
role: Role;
|
5
|
+
homeAcademyUrl: string;
|
6
|
+
homeUrl: string;
|
7
|
+
registerUrl?: string;
|
8
|
+
history: any;
|
9
|
+
theme: any;
|
10
|
+
}
|
11
|
+
declare const AcademyList: FC<Props>;
|
12
|
+
export default AcademyList;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { CategoryResponse, EffectSize, ExamResult, LongTimeSpendQuestion, TimelyOrderQuestion } from "../configs/types";
|
3
|
-
declare const useExamResult: (searchParam: string,
|
3
|
+
declare const useExamResult: (searchParam: string, history: any, examSessionId: number | undefined, studentId: number | undefined, code: string | undefined, handleChangeTab: (newValue: number) => void, selectedTab: number) => {
|
4
4
|
examTime: string;
|
5
5
|
series: {
|
6
6
|
name: any;
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { Role } from './../../../utils/constants';
|
2
2
|
declare type Props = {
|
3
|
-
|
3
|
+
history: any;
|
4
4
|
role?: Role;
|
5
5
|
homeAcademyUrl: string;
|
6
6
|
homeUrl: string;
|
7
7
|
registerUrl?: string;
|
8
8
|
};
|
9
|
-
declare const useLogin: ({
|
9
|
+
declare const useLogin: ({ history, role, homeAcademyUrl, homeUrl, registerUrl }: Props) => {
|
10
10
|
handleSubmit: (event: React.FormEvent<HTMLFormElement>) => Promise<void>;
|
11
11
|
handleClearAcademyDomain: () => void;
|
12
12
|
emailError: string;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { Role } from '../../../utils/constants';
|
3
3
|
declare type Props = {
|
4
|
-
|
4
|
+
history: any;
|
5
5
|
role?: Role;
|
6
6
|
homeAcademyUrl: string;
|
7
7
|
homeUrl: string;
|
8
8
|
registerUrl?: string;
|
9
9
|
};
|
10
|
-
export default function SignIn({
|
10
|
+
export default function SignIn({ history, role, homeAcademyUrl, homeUrl, registerUrl }: Props): React.JSX.Element;
|
11
11
|
export {};
|
package/dist/index.d.ts
CHANGED
@@ -63,4 +63,5 @@ import * as timeUtils from "./utils/times";
|
|
63
63
|
import LoginWithPassword from './containers/Login/views/LoginWithPassword';
|
64
64
|
import Header from "./layouts/Header";
|
65
65
|
import { DEFAULT_PAGING_RESPONSE, PagingResponse } from "./utils/types/pagingResponse";
|
66
|
-
|
66
|
+
import AcademyList from "./containers/Academies/views/AcademyList";
|
67
|
+
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, 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, ArticleGroupView, AnswerCountSelector, QuestionCountSelector, ScoreSelector, ArticleCategorySelector, SubjectSelector, useCategorySelect, InputText, Textbook, TextbookDetail, TextbookList, timeUtils, Header, DEFAULT_PAGING_RESPONSE, PagingResponse, AcademyList };
|