touchstudy-core 0.1.159 → 0.1.161

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.
Files changed (89) hide show
  1. package/README.md +46 -46
  2. package/dist/add-ts-nocheck.js +33 -0
  3. package/dist/alert-circle-fill~CSSkoNUz.svg +3 -0
  4. package/dist/calendar_fill~zEgxFwDs.svg +4 -0
  5. package/dist/check-circle_fill~bbGHfKpz.svg +3 -0
  6. package/dist/checked-circle_fill~KLGxfRpW.svg +3 -0
  7. package/dist/clock_fill~mcRclYYO.svg +3 -0
  8. package/dist/close-circle_fill~PRVaHJUQ.svg +3 -0
  9. package/dist/components/CkEditor/CkEditor.d.ts +2 -11
  10. package/dist/components/Dialogs/index.d.ts +1 -2
  11. package/dist/containers/ExamResult/components/MyAnswer/components/SelectQuestion.d.ts +1 -1
  12. package/dist/containers/Notes/configs/interfaces.d.ts +1 -0
  13. package/dist/containers/PreparedTextbook/components/QuestionScore.d.ts +9 -0
  14. package/dist/containers/PreparedTextbook/configs/types.d.ts +1 -0
  15. package/dist/containers/PreparedTextbook/hooks/useExamDetailView.d.ts +1 -3
  16. package/dist/containers/PreparedTextbook/hooks/useTextbookManagement.d.ts +1 -1
  17. package/dist/containers/StudentInfoDrawer/components/AttendanceCourseTable.d.ts +15 -0
  18. package/dist/containers/StudentInfoDrawer/components/CourseAttendanceItem.d.ts +10 -0
  19. package/dist/containers/StudentInfoDrawer/components/CourseAttendanceList.d.ts +4 -0
  20. package/dist/containers/StudentInfoDrawer/components/DrawerAttendanceTab.d.ts +4 -0
  21. package/dist/containers/StudentInfoDrawer/components/DrawerExamResultTab.d.ts +9 -0
  22. package/dist/containers/StudentInfoDrawer/components/DrawerNoteTab.d.ts +8 -0
  23. package/dist/containers/StudentInfoDrawer/components/DrawerTextbookResultTab.d.ts +7 -0
  24. package/dist/containers/StudentInfoDrawer/components/ExamResultDrawer.d.ts +13 -0
  25. package/dist/containers/StudentInfoDrawer/components/ExamResultItem.d.ts +10 -0
  26. package/dist/containers/StudentInfoDrawer/components/ExanResultList.d.ts +4 -0
  27. package/dist/containers/StudentInfoDrawer/components/LessonTooltip.d.ts +8 -0
  28. package/dist/containers/StudentInfoDrawer/components/NoteDrawer.d.ts +13 -0
  29. package/dist/containers/StudentInfoDrawer/components/TextbookResultItem.d.ts +10 -0
  30. package/dist/containers/StudentInfoDrawer/components/TextbookResultList.d.ts +4 -0
  31. package/dist/containers/StudentInfoDrawer/hooks/useDrawerNoteTab.d.ts +3 -0
  32. package/dist/containers/Textbooks/apiClient/textbookService.d.ts +2 -2
  33. package/dist/containers/Textbooks/configs/constants.d.ts +1 -1
  34. package/dist/containers/Textbooks/configs/types.d.ts +2 -0
  35. package/dist/containers/Textbooks/hooks/useTextbookShare.d.ts +1 -0
  36. package/dist/containers/Textbooks/views/TextbookList.d.ts +1 -0
  37. package/dist/iconPerson~bfprHOKm.svg +4 -0
  38. package/dist/index.css +9 -587
  39. package/dist/index.js +806 -761
  40. package/dist/index.js.map +1 -1
  41. package/dist/index.modern.js +800 -754
  42. package/dist/index.modern.js.map +1 -1
  43. package/package.json +102 -102
  44. package/dist/StudyTouch_Character_v1_Question~jLFvuYmI.png +0 -0
  45. package/dist/components/Chats/ChatHeader.d.ts +0 -25
  46. package/dist/components/Chats/ChatItem.d.ts +0 -31
  47. package/dist/components/Chats/ChatLeftItem.d.ts +0 -4
  48. package/dist/components/Chats/ChatList.d.ts +0 -14
  49. package/dist/components/Chats/ChatRightItem.d.ts +0 -4
  50. package/dist/components/Chats/InputChat.d.ts +0 -16
  51. package/dist/components/Chats/components/CustomTooltip.d.ts +0 -2
  52. package/dist/components/Dialogs/CreateNewQuestion.d.ts +0 -15
  53. package/dist/components/Dialogs/CreateQuestionDialog.d.ts +0 -15
  54. package/dist/components/ErrorHandler.d.ts +0 -6
  55. package/dist/components/Inputs/MobileInputWrapper.d.ts +0 -6
  56. package/dist/components/LabelRequired.d.ts +0 -8
  57. package/dist/components/Print/hooks/useDeviceType.d.ts +0 -4
  58. package/dist/components/Selectors/InActiveAcademySelector.d.ts +0 -16
  59. package/dist/containers/Academies/hooks/usePassCodeDialog.d.ts +0 -10
  60. package/dist/containers/ExamResult/components/MyAnswer/components/CreateNewQuestion.d.ts +0 -15
  61. package/dist/containers/Exams/configs/types.d.ts +0 -22
  62. package/dist/containers/PreparedTextbook/apiClients/academyService.d.ts +0 -1
  63. package/dist/containers/Users/components/Dialogs/DeleteUserCsvDialog.d.ts +0 -10
  64. package/dist/containers/Users/components/Dialogs/RecentUserActionDialog.d.ts +0 -9
  65. package/dist/containers/Users/components/Dialogs/UserDialog.d.ts +0 -12
  66. package/dist/tests/performances/do-exam-session-list-student.d.ts +0 -19
  67. package/dist/tests/performances/do-exam-session-request-answer-one-time.d.ts +0 -19
  68. package/dist/tests/performances/do-exam-session-skip-answer.d.ts +0 -19
  69. package/dist/tests/performances/do-exam-session2.d.ts +0 -19
  70. package/dist/utils/canAccessRoute.d.ts +0 -2
  71. package/dist/utils/diffFromNow.d.ts +0 -3
  72. package/dist/utils/encodeParams.d.ts +0 -2
  73. package/dist/utils/formatTime.d.ts +0 -4
  74. package/dist/utils/getAcademyDomain.d.ts +0 -2
  75. package/dist/utils/getAccessToken.d.ts +0 -2
  76. package/dist/utils/getErrorMessage.d.ts +0 -1
  77. package/dist/utils/getLanguage.d.ts +0 -2
  78. package/dist/utils/getLearningSpace.d.ts +0 -2
  79. package/dist/utils/getRedirectUrl.d.ts +0 -2
  80. package/dist/utils/helpers.d.ts +0 -22
  81. package/dist/utils/isLocalHost.d.ts +0 -2
  82. package/dist/utils/minutesToTimeSpan.d.ts +0 -2
  83. package/dist/utils/pusherTo.d.ts +0 -1
  84. package/dist/utils/times.d.ts +0 -6
  85. package/dist/utils/toISOString.d.ts +0 -2
  86. package/dist/utils/toLocalTime.d.ts +0 -1
  87. package/dist/utils/types/checkSuperUrl.d.ts +0 -1
  88. package/dist/utils/types.d.ts +0 -9
  89. 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.159",
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.161",
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,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,4 +0,0 @@
1
- import { FC } from "react";
2
- import { IChatItemWithActionProps } from "./ChatItem";
3
- declare const ChatLeftItem: FC<IChatItemWithActionProps>;
4
- export default ChatLeftItem;
@@ -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,4 +0,0 @@
1
- import { FC } from "react";
2
- import { IChatItemWithActionProps } from "./ChatItem";
3
- declare const ChatRightItem: FC<IChatItemWithActionProps>;
4
- export default ChatRightItem;
@@ -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,2 +0,0 @@
1
- declare const CustomTooltip: any;
2
- export default CustomTooltip;
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- declare type Props = {
3
- openDialog: boolean;
4
- onClose: () => void;
5
- initialValues: any;
6
- handleCreateQuestion: any;
7
- options: any[];
8
- schema: any;
9
- labelQuestion: string;
10
- nameQuestion: string;
11
- labelContent: string;
12
- nameContent: string;
13
- };
14
- export default function CreateNewQuestionDialog({ handleCreateQuestion, openDialog, initialValues, onClose, options, schema }: Props): React.JSX.Element;
15
- export {};
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- declare type Props = {
3
- openDialog: boolean;
4
- onClose: () => void;
5
- initialValues: any;
6
- handleCreateQuestion: any;
7
- options: any[];
8
- schema: any;
9
- labelQuestion?: string;
10
- nameQuestion: string;
11
- labelContent?: string;
12
- nameContent: string;
13
- };
14
- export default function CommonCreateNewQuestionDialog({ handleCreateQuestion, openDialog, initialValues, onClose, options, schema, labelQuestion, nameQuestion, labelContent, nameContent }: Props): React.JSX.Element;
15
- export {};
@@ -1,6 +0,0 @@
1
- import { FC } from "react";
2
- interface Props {
3
- text: string;
4
- }
5
- declare const ErrorHandler: FC<Props>;
6
- export default ErrorHandler;
@@ -1,6 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- declare type Props = {
3
- children: ReactNode;
4
- };
5
- declare const MobileInputWrapper: ({ children }: Props) => React.JSX.Element;
6
- export default MobileInputWrapper;
@@ -1,8 +0,0 @@
1
- import { FormLabelProps } from "@mui/material";
2
- import { FC } from "react";
3
- interface Props extends FormLabelProps {
4
- text: string;
5
- isRequired?: boolean;
6
- }
7
- declare const LabelRequired: FC<Props>;
8
- export default LabelRequired;
@@ -1,4 +0,0 @@
1
- declare const useDeviceType: () => {
2
- isTablet: boolean;
3
- };
4
- export default useDeviceType;
@@ -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,2 +0,0 @@
1
- declare const canAccess: (userRoles: any[], componentRoles: any[]) => boolean;
2
- export default canAccess;
@@ -1,3 +0,0 @@
1
- import { unitOfTime } from "moment";
2
- declare const _default: (time: string, unitOfTime: unitOfTime.Diff, targetTime?: string | undefined) => number | "";
3
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: (params: any) => string;
2
- export default _default;
@@ -1,4 +0,0 @@
1
- import moment from "moment";
2
- declare const _default: (time: string, ORIGINAL_FORMAT: string, FORMAT?: string | undefined) => string;
3
- export default _default;
4
- export declare const compareTimeSpanFromMoment: (time1: moment.Moment, time2: moment.Moment) => 0 | 1 | -1;
@@ -1,2 +0,0 @@
1
- declare const getAcademyDomain: () => string | null;
2
- export default getAcademyDomain;
@@ -1,2 +0,0 @@
1
- declare const _default: () => string | null;
2
- export default _default;
@@ -1 +0,0 @@
1
- export declare const getErrorMessage: (t: any, error: any, defaultErrorMessage?: string | undefined) => string;
@@ -1,2 +0,0 @@
1
- declare const _default: () => string | null;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const getLearningSpace: () => boolean;
2
- export default getLearningSpace;
@@ -1,2 +0,0 @@
1
- declare const getRedirectUrl: () => string | null | undefined;
2
- export default getRedirectUrl;
@@ -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;
@@ -1,2 +0,0 @@
1
- declare const isLocalHost: boolean;
2
- export default isLocalHost;
@@ -1,2 +0,0 @@
1
- declare const _default: (time: number) => string;
2
- export default _default;