touchstudy-core 0.1.143 → 0.1.144
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/README.md +46 -46
- package/dist/add-ts-nocheck.js +33 -0
- package/dist/components/CkEditor/CkEditor.d.ts +2 -11
- package/dist/containers/PreparedTextbook/hooks/useExamDetailView.d.ts +1 -3
- package/dist/index.css +9 -9
- package/dist/index.js +19 -31
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +19 -31
- package/dist/index.modern.js.map +1 -1
- package/package.json +102 -102
- package/dist/StudyTouch_Character_v1_Question~jLFvuYmI.png +0 -0
- package/dist/components/Chats/ChatHeader.d.ts +0 -25
- package/dist/components/Chats/ChatItem.d.ts +0 -31
- package/dist/components/Chats/ChatLeftItem.d.ts +0 -4
- package/dist/components/Chats/ChatList.d.ts +0 -14
- package/dist/components/Chats/ChatRightItem.d.ts +0 -4
- package/dist/components/Chats/InputChat.d.ts +0 -16
- package/dist/components/Chats/components/CustomTooltip.d.ts +0 -2
- package/dist/components/ErrorHandler.d.ts +0 -6
- package/dist/components/LabelRequired.d.ts +0 -8
- package/dist/components/Selectors/InActiveAcademySelector.d.ts +0 -16
- package/dist/containers/Academies/hooks/usePassCodeDialog.d.ts +0 -10
- package/dist/containers/ExamResult/components/MyAnswer/components/CreateNewQuestion.d.ts +0 -15
- package/dist/containers/Exams/configs/types.d.ts +0 -22
- package/dist/containers/PreparedTextbook/apiClients/academyService.d.ts +0 -1
- package/dist/containers/Users/components/Dialogs/DeleteUserCsvDialog.d.ts +0 -10
- package/dist/containers/Users/components/Dialogs/RecentUserActionDialog.d.ts +0 -9
- package/dist/containers/Users/components/Dialogs/UserDialog.d.ts +0 -12
- package/dist/tests/performances/do-exam-session-list-student.d.ts +0 -19
- package/dist/tests/performances/do-exam-session-request-answer-one-time.d.ts +0 -19
- package/dist/tests/performances/do-exam-session-skip-answer.d.ts +0 -19
- package/dist/tests/performances/do-exam-session2.d.ts +0 -19
- package/dist/utils/canAccessRoute.d.ts +0 -2
- package/dist/utils/diffFromNow.d.ts +0 -3
- package/dist/utils/encodeParams.d.ts +0 -2
- package/dist/utils/formatTime.d.ts +0 -4
- package/dist/utils/getAcademyDomain.d.ts +0 -2
- package/dist/utils/getAccessToken.d.ts +0 -2
- package/dist/utils/getErrorMessage.d.ts +0 -1
- package/dist/utils/getLanguage.d.ts +0 -2
- package/dist/utils/getLearningSpace.d.ts +0 -2
- package/dist/utils/getRedirectUrl.d.ts +0 -2
- package/dist/utils/helpers.d.ts +0 -22
- package/dist/utils/isLocalHost.d.ts +0 -2
- package/dist/utils/minutesToTimeSpan.d.ts +0 -2
- package/dist/utils/pusherTo.d.ts +0 -1
- package/dist/utils/times.d.ts +0 -6
- package/dist/utils/toISOString.d.ts +0 -2
- package/dist/utils/toLocalTime.d.ts +0 -1
- package/dist/utils/types/checkSuperUrl.d.ts +0 -1
- package/dist/utils/types.d.ts +0 -9
- package/dist/utils/utcToLocalTime.d.ts +0 -2
package/package.json
CHANGED
@@ -1,102 +1,102 @@
|
|
1
|
-
{
|
2
|
-
"name": "touchstudy-core",
|
3
|
-
"version": "0.1.
|
4
|
-
"description": "Contains core components && functions for TouchStudy project",
|
5
|
-
"author": "brss",
|
6
|
-
"license": "MIT",
|
7
|
-
"repository": "brss/touchstudy-core",
|
8
|
-
"main": "dist/index.js",
|
9
|
-
"module": "dist/index.modern.js",
|
10
|
-
"source": "src/index.tsx",
|
11
|
-
"engines": {
|
12
|
-
"node": ">=10"
|
13
|
-
},
|
14
|
-
"dependencies": {
|
15
|
-
"@hookform/resolvers": "^3.3.3",
|
16
|
-
"@leecheuk/react-google-login": "^5.4.1",
|
17
|
-
"@mui/material": "^5.14.12",
|
18
|
-
"@mui/x-date-pickers": "^6.19.6",
|
19
|
-
"@reduxjs/toolkit": "^2.0.1",
|
20
|
-
"@tinymce/tinymce-react": "^6.0.0",
|
21
|
-
"@wiris/mathtype-tinymce6": "^8.12.0",
|
22
|
-
"axios": "^1.6.2",
|
23
|
-
"better-react-mathjax": "^2.1.0",
|
24
|
-
"formik": "^2.4.5",
|
25
|
-
"gapi-script": "^1.2.0",
|
26
|
-
"html2pdf.js": "^0.10.2",
|
27
|
-
"i18next": "^23.7.16",
|
28
|
-
"link": "^2.1.0",
|
29
|
-
"lodash": "^4.17.21",
|
30
|
-
"moment": "^2.29.4",
|
31
|
-
"node-sass": "^7.0.3",
|
32
|
-
"pusher-js": "^8.4.0-rc2",
|
33
|
-
"react-google-recaptcha-v3": "^1.10.1",
|
34
|
-
"react-hook-form": "^7.49.2",
|
35
|
-
"react-i18next": "^14.0.0",
|
36
|
-
"react-icons": "^4.12.0",
|
37
|
-
"react-select": "^5.8.0",
|
38
|
-
"react-slick": "^0.29.0",
|
39
|
-
"react-toastify": "^9.1.3",
|
40
|
-
"react-virtualized": "^9.22.6",
|
41
|
-
"tinymce": "^7.7.0",
|
42
|
-
"yup": "^1.3.3"
|
43
|
-
},
|
44
|
-
"peerDependencies": {
|
45
|
-
"react": "^18.2.0",
|
46
|
-
"react-dom": "^18.2.0",
|
47
|
-
"react-redux": "^9.0.4"
|
48
|
-
},
|
49
|
-
"scripts": {
|
50
|
-
"build": "microbundle-crl --no-compress --format modern,cjs",
|
51
|
-
"start": "microbundle-crl watch --no-compress --format modern,cjs",
|
52
|
-
"prepare": "run-s build",
|
53
|
-
"test": "run-s test:unit test:lint test:build",
|
54
|
-
"test:build": "run-s build",
|
55
|
-
"test:lint": "eslint .",
|
56
|
-
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
|
57
|
-
"test:watch": "react-scripts test --env=jsdom"
|
58
|
-
},
|
59
|
-
"files": [
|
60
|
-
"dist"
|
61
|
-
],
|
62
|
-
"devDependencies": {
|
63
|
-
"@babel/plugin-proposal-unicode-property-regex": "^7.18.6",
|
64
|
-
"@testing-library/jest-dom": "^5.17.0",
|
65
|
-
"@testing-library/react": "^13.4.0",
|
66
|
-
"@testing-library/user-event": "^13.5.0",
|
67
|
-
"@types/file-saver": "2.0.7",
|
68
|
-
"@types/jest": "^27.5.2",
|
69
|
-
"@types/lodash": "^4.17.16",
|
70
|
-
"@types/node": "^16.18.68",
|
71
|
-
"@types/react": "^18.2.45",
|
72
|
-
"@types/react-dom": "^18.2.18",
|
73
|
-
"@types/react-redux": "^7.1.33",
|
74
|
-
"@types/react-slick": "^0.23.13",
|
75
|
-
"@types/react-virtualized": "^9.22.0",
|
76
|
-
"@types/redux-logger": "^3.0.12",
|
77
|
-
"@types/resize-observer-browser": "^0.1.11",
|
78
|
-
"@types/yup": "^0.32.0",
|
79
|
-
"apexcharts": "3.15.5",
|
80
|
-
"babel-eslint": "^10.0.3",
|
81
|
-
"cross-env": "^7.0.3",
|
82
|
-
"eslint": "^8.56.0",
|
83
|
-
"eslint-config-prettier": "^9.1.0",
|
84
|
-
"eslint-config-standard": "^17.1.0",
|
85
|
-
"eslint-config-standard-react": "^13.0.0",
|
86
|
-
"eslint-plugin-import": "^2.29.1",
|
87
|
-
"eslint-plugin-node": "^11.1.0",
|
88
|
-
"eslint-plugin-prettier": "^5.1.2",
|
89
|
-
"eslint-plugin-promise": "^6.1.1",
|
90
|
-
"eslint-plugin-react": "^7.33.2",
|
91
|
-
"eslint-plugin-standard": "^5.0.0",
|
92
|
-
"file-saver": "^2.0.5",
|
93
|
-
"gh-pages": "^6.1.1",
|
94
|
-
"microbundle-crl": "^0.13.11",
|
95
|
-
"npm-run-all": "^4.1.5",
|
96
|
-
"prettier": "^3.1.1",
|
97
|
-
"react-apexcharts": "1.3.6",
|
98
|
-
"react-scripts": "5.0.1",
|
99
|
-
"redux-logger": "^3.0.6",
|
100
|
-
"typescript": "^4.9.5"
|
101
|
-
}
|
102
|
-
}
|
1
|
+
{
|
2
|
+
"name": "touchstudy-core",
|
3
|
+
"version": "0.1.144",
|
4
|
+
"description": "Contains core components && functions for TouchStudy project",
|
5
|
+
"author": "brss",
|
6
|
+
"license": "MIT",
|
7
|
+
"repository": "brss/touchstudy-core",
|
8
|
+
"main": "dist/index.js",
|
9
|
+
"module": "dist/index.modern.js",
|
10
|
+
"source": "src/index.tsx",
|
11
|
+
"engines": {
|
12
|
+
"node": ">=10"
|
13
|
+
},
|
14
|
+
"dependencies": {
|
15
|
+
"@hookform/resolvers": "^3.3.3",
|
16
|
+
"@leecheuk/react-google-login": "^5.4.1",
|
17
|
+
"@mui/material": "^5.14.12",
|
18
|
+
"@mui/x-date-pickers": "^6.19.6",
|
19
|
+
"@reduxjs/toolkit": "^2.0.1",
|
20
|
+
"@tinymce/tinymce-react": "^6.0.0",
|
21
|
+
"@wiris/mathtype-tinymce6": "^8.12.0",
|
22
|
+
"axios": "^1.6.2",
|
23
|
+
"better-react-mathjax": "^2.1.0",
|
24
|
+
"formik": "^2.4.5",
|
25
|
+
"gapi-script": "^1.2.0",
|
26
|
+
"html2pdf.js": "^0.10.2",
|
27
|
+
"i18next": "^23.7.16",
|
28
|
+
"link": "^2.1.0",
|
29
|
+
"lodash": "^4.17.21",
|
30
|
+
"moment": "^2.29.4",
|
31
|
+
"node-sass": "^7.0.3",
|
32
|
+
"pusher-js": "^8.4.0-rc2",
|
33
|
+
"react-google-recaptcha-v3": "^1.10.1",
|
34
|
+
"react-hook-form": "^7.49.2",
|
35
|
+
"react-i18next": "^14.0.0",
|
36
|
+
"react-icons": "^4.12.0",
|
37
|
+
"react-select": "^5.8.0",
|
38
|
+
"react-slick": "^0.29.0",
|
39
|
+
"react-toastify": "^9.1.3",
|
40
|
+
"react-virtualized": "^9.22.6",
|
41
|
+
"tinymce": "^7.7.0",
|
42
|
+
"yup": "^1.3.3"
|
43
|
+
},
|
44
|
+
"peerDependencies": {
|
45
|
+
"react": "^18.2.0",
|
46
|
+
"react-dom": "^18.2.0",
|
47
|
+
"react-redux": "^9.0.4"
|
48
|
+
},
|
49
|
+
"scripts": {
|
50
|
+
"build": "microbundle-crl --no-compress --format modern,cjs",
|
51
|
+
"start": "microbundle-crl watch --no-compress --format modern,cjs",
|
52
|
+
"prepare": "run-s build",
|
53
|
+
"test": "run-s test:unit test:lint test:build",
|
54
|
+
"test:build": "run-s build",
|
55
|
+
"test:lint": "eslint .",
|
56
|
+
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
|
57
|
+
"test:watch": "react-scripts test --env=jsdom"
|
58
|
+
},
|
59
|
+
"files": [
|
60
|
+
"dist"
|
61
|
+
],
|
62
|
+
"devDependencies": {
|
63
|
+
"@babel/plugin-proposal-unicode-property-regex": "^7.18.6",
|
64
|
+
"@testing-library/jest-dom": "^5.17.0",
|
65
|
+
"@testing-library/react": "^13.4.0",
|
66
|
+
"@testing-library/user-event": "^13.5.0",
|
67
|
+
"@types/file-saver": "2.0.7",
|
68
|
+
"@types/jest": "^27.5.2",
|
69
|
+
"@types/lodash": "^4.17.16",
|
70
|
+
"@types/node": "^16.18.68",
|
71
|
+
"@types/react": "^18.2.45",
|
72
|
+
"@types/react-dom": "^18.2.18",
|
73
|
+
"@types/react-redux": "^7.1.33",
|
74
|
+
"@types/react-slick": "^0.23.13",
|
75
|
+
"@types/react-virtualized": "^9.22.0",
|
76
|
+
"@types/redux-logger": "^3.0.12",
|
77
|
+
"@types/resize-observer-browser": "^0.1.11",
|
78
|
+
"@types/yup": "^0.32.0",
|
79
|
+
"apexcharts": "3.15.5",
|
80
|
+
"babel-eslint": "^10.0.3",
|
81
|
+
"cross-env": "^7.0.3",
|
82
|
+
"eslint": "^8.56.0",
|
83
|
+
"eslint-config-prettier": "^9.1.0",
|
84
|
+
"eslint-config-standard": "^17.1.0",
|
85
|
+
"eslint-config-standard-react": "^13.0.0",
|
86
|
+
"eslint-plugin-import": "^2.29.1",
|
87
|
+
"eslint-plugin-node": "^11.1.0",
|
88
|
+
"eslint-plugin-prettier": "^5.1.2",
|
89
|
+
"eslint-plugin-promise": "^6.1.1",
|
90
|
+
"eslint-plugin-react": "^7.33.2",
|
91
|
+
"eslint-plugin-standard": "^5.0.0",
|
92
|
+
"file-saver": "^2.0.5",
|
93
|
+
"gh-pages": "^6.1.1",
|
94
|
+
"microbundle-crl": "^0.13.11",
|
95
|
+
"npm-run-all": "^4.1.5",
|
96
|
+
"prettier": "^3.1.1",
|
97
|
+
"react-apexcharts": "1.3.6",
|
98
|
+
"react-scripts": "5.0.1",
|
99
|
+
"redux-logger": "^3.0.6",
|
100
|
+
"typescript": "^4.9.5"
|
101
|
+
}
|
102
|
+
}
|
Binary file
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
export interface IExamOption {
|
3
|
-
id: number;
|
4
|
-
code: string;
|
5
|
-
title: string;
|
6
|
-
createdAt: string;
|
7
|
-
startTime: string;
|
8
|
-
}
|
9
|
-
export interface IChatHeaderProps {
|
10
|
-
fullName?: string;
|
11
|
-
examTitle?: string;
|
12
|
-
createdAt?: string;
|
13
|
-
durationExam?: string;
|
14
|
-
score?: number | null;
|
15
|
-
totalScore?: number | null;
|
16
|
-
courseId?: number | null;
|
17
|
-
category?: string | null;
|
18
|
-
questionOrder?: number;
|
19
|
-
conversationId?: number;
|
20
|
-
isCompleted?: boolean;
|
21
|
-
teacherName?: string;
|
22
|
-
roles?: Array<string>;
|
23
|
-
}
|
24
|
-
declare const ChatHeader: FC<IChatHeaderProps>;
|
25
|
-
export default ChatHeader;
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
import { StudentsConversationResponse } from "./configs/types";
|
3
|
-
export interface IChatItemProps {
|
4
|
-
id?: number;
|
5
|
-
isMe?: boolean;
|
6
|
-
avatar?: string;
|
7
|
-
content?: string;
|
8
|
-
createdAt: string;
|
9
|
-
sender?: StudentsConversationResponse;
|
10
|
-
isRead: boolean;
|
11
|
-
contentType?: number;
|
12
|
-
conversationId?: number;
|
13
|
-
}
|
14
|
-
export interface IChatItemWithActionProps extends IChatItemProps {
|
15
|
-
onReTrySendMessage?: () => void;
|
16
|
-
handleUpdateMessage: (conversationId: number, id: number, message: string, callback: any) => void;
|
17
|
-
handleDeleteMessage: (conversationId: number, id: number, callback: any) => void;
|
18
|
-
showTimestamp?: boolean;
|
19
|
-
showName?: boolean;
|
20
|
-
isStudent?: boolean;
|
21
|
-
toggleImageDialog?: () => void;
|
22
|
-
toggleConfirmDialog?: () => void;
|
23
|
-
toggleUpdateDialog?: () => void;
|
24
|
-
}
|
25
|
-
export declare enum ChatItemType {
|
26
|
-
Default = 0,
|
27
|
-
Exam = 1,
|
28
|
-
Class = 2
|
29
|
-
}
|
30
|
-
declare const ChatItem: FC<IChatItemWithActionProps>;
|
31
|
-
export default ChatItem;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import React, { FC } from "react";
|
2
|
-
import { IChatItemProps } from "./ChatItem";
|
3
|
-
export interface IChatListProps {
|
4
|
-
messages?: IChatItemProps[];
|
5
|
-
onReTrySendMessage?: () => void;
|
6
|
-
roles: Array<String>;
|
7
|
-
handleUpdateMessage: (conversationId: number, id: number, message: string, callback: any) => Promise<void>;
|
8
|
-
handleDeleteMessage: (conversationId: number, id: number, callback: any) => Promise<void>;
|
9
|
-
}
|
10
|
-
interface Props extends IChatListProps {
|
11
|
-
listItemRef: React.RefObject<HTMLUListElement>;
|
12
|
-
}
|
13
|
-
declare const ChatList: FC<Props>;
|
14
|
-
export default ChatList;
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import React, { FC } from "react";
|
2
|
-
import { MessageRequest } from "./configs/types";
|
3
|
-
export interface IInputChatProps {
|
4
|
-
text: string;
|
5
|
-
onSubmit: () => void;
|
6
|
-
onChangeInput: (text: string) => void;
|
7
|
-
isCompleted?: boolean;
|
8
|
-
handleUploadImage: (file: File) => void;
|
9
|
-
selectedFile?: MessageRequest | null;
|
10
|
-
handleDeleteSelectedImage: () => void;
|
11
|
-
}
|
12
|
-
interface Props extends IInputChatProps {
|
13
|
-
inputRef: React.RefObject<HTMLInputElement>;
|
14
|
-
}
|
15
|
-
declare const InputChat: FC<Props>;
|
16
|
-
export default InputChat;
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
import { Role } from "../../utils/constants";
|
3
|
-
interface Props {
|
4
|
-
value?: any;
|
5
|
-
onChange: any;
|
6
|
-
externalAcademyIds?: number[];
|
7
|
-
title?: string;
|
8
|
-
isMulti?: boolean;
|
9
|
-
minimumTextSearchLength?: number;
|
10
|
-
isDisabled?: boolean;
|
11
|
-
defaultValueAtFirst?: boolean;
|
12
|
-
placeholder?: string;
|
13
|
-
role: Role;
|
14
|
-
}
|
15
|
-
declare const InActiveAcademySelector: FC<Props>;
|
16
|
-
export default InActiveAcademySelector;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
declare const usePassCodeDialog: () => {
|
2
|
-
isStudent: any;
|
3
|
-
isOpenDialog: boolean;
|
4
|
-
handleOpenDialog: () => void;
|
5
|
-
handleCloseDialog: () => void;
|
6
|
-
handleSubmit: () => Promise<void>;
|
7
|
-
textCodeValue: string;
|
8
|
-
handleChangeText: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
9
|
-
};
|
10
|
-
export default usePassCodeDialog;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
declare type Props = {
|
3
|
-
openCreateQuestionDialog: boolean;
|
4
|
-
toggleCreateQuestion: () => void;
|
5
|
-
handleCreateQuestion: any;
|
6
|
-
questionOrderSelected?: number;
|
7
|
-
examSessionId?: number;
|
8
|
-
textbookSessionId?: number;
|
9
|
-
questionOptions: {
|
10
|
-
label: string;
|
11
|
-
value: number;
|
12
|
-
}[];
|
13
|
-
};
|
14
|
-
export default function CreateNewQuestionDialog({ handleCreateQuestion, openCreateQuestionDialog, toggleCreateQuestion, examSessionId, textbookSessionId, questionOrderSelected, questionOptions }: Props): React.JSX.Element;
|
15
|
-
export {};
|
@@ -1,22 +0,0 @@
|
|
1
|
-
export declare type Question = {
|
2
|
-
id?: number;
|
3
|
-
numberOfAnswers: number;
|
4
|
-
correctAnswers: number[];
|
5
|
-
score: number;
|
6
|
-
categoryId?: number;
|
7
|
-
article: number;
|
8
|
-
questionOrder: number;
|
9
|
-
};
|
10
|
-
export declare type Exam = {
|
11
|
-
title: string;
|
12
|
-
subjectId: number;
|
13
|
-
duration: number;
|
14
|
-
questions: Question[];
|
15
|
-
};
|
16
|
-
export declare type ArticleGroup = {
|
17
|
-
article: number;
|
18
|
-
categoryId?: number;
|
19
|
-
answerCount: number;
|
20
|
-
questionCount: number;
|
21
|
-
questions: Question[];
|
22
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const getAcademiesApi: (textSearch: string, isAdmin: boolean) => Promise<import("axios").AxiosResponse<any, any>>;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
interface Props {
|
3
|
-
open: boolean;
|
4
|
-
file?: File;
|
5
|
-
onChangeFile: (file?: File) => void;
|
6
|
-
onClose: () => void;
|
7
|
-
onSubmit: () => Promise<boolean>;
|
8
|
-
}
|
9
|
-
declare const DeleteUserCsvDialog: FC<Props>;
|
10
|
-
export default DeleteUserCsvDialog;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
import { Types } from "../../../..";
|
3
|
-
interface Props {
|
4
|
-
open: boolean;
|
5
|
-
onClose: () => void;
|
6
|
-
recentUserActions?: Types.RecentUserActionResponse[];
|
7
|
-
}
|
8
|
-
declare const RecentUserActionDialog: FC<Props>;
|
9
|
-
export default RecentUserActionDialog;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
import { UserForm } from "../../configs/types";
|
3
|
-
import { User } from "../../../../utils/types/users";
|
4
|
-
interface Props {
|
5
|
-
open: boolean;
|
6
|
-
data?: User;
|
7
|
-
disabled?: boolean;
|
8
|
-
onClose: () => void;
|
9
|
-
onSubmitForm: (data: UserForm) => void;
|
10
|
-
}
|
11
|
-
declare const UserDialog: FC<Props>;
|
12
|
-
export default UserDialog;
|
@@ -1,19 +0,0 @@
|
|
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: number;
|
19
|
-
export {};
|
@@ -1,19 +0,0 @@
|
|
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: 200;
|
19
|
-
export {};
|
@@ -1,19 +0,0 @@
|
|
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,19 +0,0 @@
|
|
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: 400;
|
19
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const getErrorMessage: (t: any, error: any, defaultErrorMessage?: string | undefined) => string;
|
package/dist/utils/helpers.d.ts
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
import { Category, CategoryResponse, ExamResult, Question } from "../containers/ExamResult/configs/types";
|
2
|
-
import { Role } from "./constants";
|
3
|
-
export declare const formatDateTime: (inputDate: string) => string;
|
4
|
-
export declare type FormatDataMyAnswer = {
|
5
|
-
category: Category;
|
6
|
-
questions: Question[];
|
7
|
-
};
|
8
|
-
export declare const ellipsisText: (text: string, maxLength: number) => string;
|
9
|
-
export declare const getOrdinalSuffix: (number: number, lang: string) => string;
|
10
|
-
export declare const formatDataMyAnswer: (inputData: ExamResult, categories: CategoryResponse[]) => FormatDataMyAnswer[];
|
11
|
-
export declare const totalSolveTimeCategories: (inputData: ExamResult, categories: CategoryResponse[]) => {
|
12
|
-
totalSolveTime: any;
|
13
|
-
id: number;
|
14
|
-
name: string;
|
15
|
-
totalQuestions: number;
|
16
|
-
totalCorrectQuestions: number;
|
17
|
-
totalAnsweredQuestions: number;
|
18
|
-
percentageAmongStudents: number;
|
19
|
-
}[];
|
20
|
-
export declare const formatTimeSecond: (duration: number, t: any) => string;
|
21
|
-
export declare const formatRole: (roles: string[], t: any) => any;
|
22
|
-
export declare const getRole: (roles: string[]) => Role.Student | Role.Teacher | Role.Admin | Role.AcademyAdmin | null;
|
package/dist/utils/pusherTo.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export declare const pushTo: (history: any, data: any, isReplace?: boolean) => void;
|
package/dist/utils/times.d.ts
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
import moment from "moment";
|
2
|
-
export declare const getLocalDayOfWeek: (utcDateTime: string, dayOfWeek: number) => number;
|
3
|
-
export declare const getUtcDayOfWeek: (localDateTime: moment.Moment, dayOfWeek: number) => number;
|
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;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const toLocalTime: (time?: string | undefined, FORMAT?: string | undefined) => string;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const checkSuperUrl: (superUrls: string[], pathname: string) => boolean;
|
package/dist/utils/types.d.ts
DELETED