touchstudy-core 0.1.65 → 0.1.67
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 +1134 -342
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1127 -339
- package/dist/index.modern.js.map +1 -1
- package/dist/layouts/Header.d.ts +1 -1
- package/dist/redux/academies/action.d.ts +2 -0
- package/dist/redux/academies/reducer.d.ts +5 -0
- package/dist/rootReducer.d.ts +6 -0
- 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 +2 -1
- package/dist/utils/hooks/useVirtualizeList.d.ts +9 -0
- package/dist/utils/times.d.ts +2 -0
- package/package.json +1 -1
package/dist/layouts/Header.d.ts
CHANGED
@@ -3,11 +3,11 @@ import { TabType } from "../utils/types/tab";
|
|
3
3
|
import { Role } from "../utils/constants";
|
4
4
|
interface Props {
|
5
5
|
role: Role;
|
6
|
-
onSignOut: () => void;
|
7
6
|
academyListRoute: any;
|
8
7
|
homeRoute: any;
|
9
8
|
headerTabs: TabType[];
|
10
9
|
history: any;
|
10
|
+
onSignOut: () => void;
|
11
11
|
}
|
12
12
|
declare const Header: FC<Props>;
|
13
13
|
export default Header;
|
package/dist/rootReducer.d.ts
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
declare const rootReducer: import("redux").Reducer<{
|
2
2
|
common: any;
|
3
|
+
academies: {
|
4
|
+
items: import("./utils/types/academy").AcademyResponse[];
|
5
|
+
};
|
3
6
|
}, import("redux").UnknownAction, Partial<{
|
4
7
|
common: any;
|
8
|
+
academies: {
|
9
|
+
items: import("./utils/types/academy").AcademyResponse[];
|
10
|
+
} | undefined;
|
5
11
|
}>>;
|
6
12
|
export default rootReducer;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const getCheckStatusExam: (examCode: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export function setup(): {
|
2
|
+
id: number;
|
3
|
+
code: string;
|
4
|
+
teacherAuthorizeHeaders: {
|
5
|
+
Authorization: string;
|
6
|
+
} & {
|
7
|
+
"Academy-Headers": string;
|
8
|
+
"Content-Type": string;
|
9
|
+
"Accept-Language": string;
|
10
|
+
};
|
11
|
+
}[];
|
12
|
+
export default function _default(data: any): void;
|
13
|
+
export namespace options {
|
14
|
+
export { MAX_DEMO_STUDENTS as vus };
|
15
|
+
export { MAX_DEMO_STUDENTS as iterations };
|
16
|
+
}
|
17
|
+
declare const AcademyHeaders: "Academy-Headers";
|
18
|
+
declare const MAX_DEMO_STUDENTS: 96;
|
19
|
+
export {};
|
@@ -1,4 +1,5 @@
|
|
1
1
|
export function setup(): {
|
2
|
+
id: number;
|
2
3
|
code: string;
|
3
4
|
teacherAuthorizeHeaders: {
|
4
5
|
Authorization: string;
|
@@ -7,12 +8,13 @@ export function setup(): {
|
|
7
8
|
"Content-Type": string;
|
8
9
|
"Accept-Language": string;
|
9
10
|
};
|
10
|
-
};
|
11
|
+
}[];
|
11
12
|
export function teardown(data: any): void;
|
12
13
|
export default function _default(data: any): void;
|
13
14
|
export namespace options {
|
14
|
-
export
|
15
|
-
export
|
15
|
+
export { MAX_DEMO_STUDENTS as vus };
|
16
|
+
export { MAX_DEMO_STUDENTS as iterations };
|
16
17
|
}
|
17
18
|
declare const AcademyHeaders: "Academy-Headers";
|
19
|
+
declare const MAX_DEMO_STUDENTS: 300;
|
18
20
|
export {};
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export function setup(): {
|
2
|
+
id: number;
|
3
|
+
code: string;
|
4
|
+
teacherAuthorizeHeaders: {
|
5
|
+
Authorization: string;
|
6
|
+
} & {
|
7
|
+
"Academy-Headers": string;
|
8
|
+
"Content-Type": string;
|
9
|
+
"Accept-Language": string;
|
10
|
+
};
|
11
|
+
}[];
|
12
|
+
export default function _default(data: any): void;
|
13
|
+
export namespace options {
|
14
|
+
export { MAX_DEMO_STUDENTS as vus };
|
15
|
+
export { MAX_DEMO_STUDENTS as iterations };
|
16
|
+
}
|
17
|
+
declare const AcademyHeaders: "Academy-Headers";
|
18
|
+
declare const MAX_DEMO_STUDENTS: 1;
|
19
|
+
export {};
|
@@ -31,5 +31,6 @@ export declare enum Language {
|
|
31
31
|
en = "en"
|
32
32
|
}
|
33
33
|
export declare const PrintHeaderClassName = "print-header";
|
34
|
+
export declare const PrintTitleClassName = "print-title";
|
34
35
|
export declare const PrintContentClassName = "print-content";
|
35
36
|
export declare const PrintContainerClassName = "print-container";
|
package/dist/utils/helpers.d.ts
CHANGED
@@ -5,5 +5,15 @@ export declare type FormatDataMyAnswer = {
|
|
5
5
|
questions: Question[];
|
6
6
|
};
|
7
7
|
export declare const ellipsisText: (text: string, maxLength: number) => string;
|
8
|
+
export declare const getOrdinalSuffix: (number: number, lang: string) => string;
|
8
9
|
export declare const formatDataMyAnswer: (inputData: ExamResult, categories: CategoryResponse[]) => FormatDataMyAnswer[];
|
10
|
+
export declare const totalSolveTimeCategories: (inputData: ExamResult, categories: CategoryResponse[]) => {
|
11
|
+
totalSolveTime: any;
|
12
|
+
id: number;
|
13
|
+
name: string;
|
14
|
+
totalQuestions: number;
|
15
|
+
totalCorrectQuestions: number;
|
16
|
+
totalAnsweredQuestions: number;
|
17
|
+
percentageAmongStudents: number;
|
18
|
+
}[];
|
9
19
|
export declare const formatTimeSecond: (duration: number, t: any) => string;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { ExamStatus } from "../enums/examStatus";
|
2
|
+
interface Props {
|
3
|
+
startTime?: string;
|
4
|
+
code?: string;
|
5
|
+
status?: ExamStatus;
|
6
|
+
duration?: string;
|
7
|
+
fetchedCount?: number;
|
8
|
+
onFinish: () => void;
|
9
|
+
}
|
10
|
+
declare const useCountDownTimer: (props: Props) => number | undefined;
|
11
|
+
export default useCountDownTimer;
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import { AcademyResponse } from "../types/academy";
|
2
2
|
import { Role } from "../constants";
|
3
|
-
declare const useSwitchAcademy: (role: Role | undefined, history: any, homeAcademyUrl: string, homeUrl: string) => {
|
3
|
+
declare const useSwitchAcademy: (role: Role | undefined, history: any, homeAcademyUrl: string, homeUrl: string, canFetchAcademies?: boolean) => {
|
4
4
|
selectedAcademy: AcademyResponse | undefined;
|
5
5
|
dropdownOpen: boolean;
|
6
6
|
academyList: AcademyResponse[];
|
7
7
|
toggleDropdown: () => void;
|
8
8
|
handleSwitchAcademy: (selectedAcademy?: AcademyResponse | undefined, isLoading?: boolean) => Promise<void>;
|
9
|
+
handleLogOutAcademy: (selectedAcademy: AcademyResponse, callback: any) => Promise<void>;
|
9
10
|
};
|
10
11
|
export default useSwitchAcademy;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare const useVirtualizeList: (totalItems: number, rowHeight: number, offsetRow?: number, minRows?: number | undefined) => {
|
3
|
+
startIndex: number;
|
4
|
+
endIndex: number;
|
5
|
+
containerRef: import("react").RefObject<HTMLDivElement>;
|
6
|
+
handleChangeStartIndex: (index: number) => void;
|
7
|
+
handleChangeEndIndex: (index: number) => void;
|
8
|
+
};
|
9
|
+
export default useVirtualizeList;
|
package/dist/utils/times.d.ts
CHANGED
@@ -2,3 +2,5 @@ import moment from "moment";
|
|
2
2
|
export declare const getLocalDayOfWeek: (utcDateTime: string, dayOfWeek: number) => number;
|
3
3
|
export declare const getUtcDayOfWeek: (localDateTime: moment.Moment, dayOfWeek: number) => number;
|
4
4
|
export declare const timeSpanToLocalMoment: (time: string, date?: string | undefined) => moment.Moment | null;
|
5
|
+
export declare const convertHHMMSStoSeconds: (time: string) => number;
|
6
|
+
export declare const getRemainTime: (startTime: string, duration: string) => number | null;
|