touchstudy-core 0.1.135 → 0.1.137

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 (73) hide show
  1. package/README.md +46 -46
  2. package/dist/.DS_Store +0 -0
  3. package/dist/components/.DS_Store +0 -0
  4. package/dist/components/Commons/NotFound.d.ts +1 -4
  5. package/dist/components/Print/PrintExamView2.d.ts +1 -2
  6. package/dist/containers/.DS_Store +0 -0
  7. package/dist/containers/Classes/configs/constants.d.ts +8 -1
  8. package/dist/containers/Classes/configs/types.d.ts +2 -0
  9. package/dist/containers/PreparedTextbook/components/Article.d.ts +3 -2
  10. package/dist/containers/PreparedTextbook/configs/enums.d.ts +1 -1
  11. package/dist/containers/PreparedTextbook/configs/functions.d.ts +98 -1
  12. package/dist/containers/PreparedTextbook/configs/types.d.ts +1 -0
  13. package/dist/containers/Users/configs/types.d.ts +2 -2
  14. package/dist/index.css +9 -9
  15. package/dist/index.js +1200 -1058
  16. package/dist/index.js.map +1 -1
  17. package/dist/index.modern.js +1191 -1052
  18. package/dist/index.modern.js.map +1 -1
  19. package/dist/redux/.DS_Store +0 -0
  20. package/dist/rootReducer.d.ts +2 -2
  21. package/dist/utils/.DS_Store +0 -0
  22. package/dist/utils/constants.d.ts +16 -0
  23. package/dist/utils/enums/academy.d.ts +6 -0
  24. package/dist/utils/enums/index.d.ts +1 -0
  25. package/dist/utils/hooks/useLanguage.d.ts +1 -0
  26. package/dist/utils/types/index.d.ts +1 -0
  27. package/package.json +102 -102
  28. package/dist/StudyTouch_Character_v1_Question~jLFvuYmI.png +0 -0
  29. package/dist/components/Chats/ChatHeader.d.ts +0 -25
  30. package/dist/components/Chats/ChatItem.d.ts +0 -31
  31. package/dist/components/Chats/ChatLeftItem.d.ts +0 -4
  32. package/dist/components/Chats/ChatList.d.ts +0 -14
  33. package/dist/components/Chats/ChatRightItem.d.ts +0 -4
  34. package/dist/components/Chats/InputChat.d.ts +0 -16
  35. package/dist/components/Chats/components/CustomTooltip.d.ts +0 -2
  36. package/dist/components/CkEditor/CkEditor.d.ts +0 -19
  37. package/dist/components/CkEditor/config.d.ts +0 -19
  38. package/dist/components/CkEditor/index.d.ts +0 -2
  39. package/dist/components/ErrorHandler.d.ts +0 -6
  40. package/dist/components/LabelRequired.d.ts +0 -8
  41. package/dist/components/Selectors/InActiveAcademySelector.d.ts +0 -16
  42. package/dist/containers/Academies/hooks/usePassCodeDialog.d.ts +0 -10
  43. package/dist/containers/ExamResult/components/MyAnswer/components/CreateNewQuestion.d.ts +0 -15
  44. package/dist/containers/Exams/configs/types.d.ts +0 -22
  45. package/dist/containers/PreparedTextbook/apiClients/academyService.d.ts +0 -1
  46. package/dist/containers/PreparedTextbook/components/TextbookOwners.d.ts +0 -13
  47. package/dist/containers/Users/components/Dialogs/DeleteUserCsvDialog.d.ts +0 -10
  48. package/dist/containers/Users/components/Dialogs/RecentUserActionDialog.d.ts +0 -9
  49. package/dist/containers/Users/components/Dialogs/UserDialog.d.ts +0 -12
  50. package/dist/tests/performances/do-exam-session-list-student.d.ts +0 -19
  51. package/dist/tests/performances/do-exam-session-request-answer-one-time.d.ts +0 -19
  52. package/dist/tests/performances/do-exam-session-skip-answer.d.ts +0 -19
  53. package/dist/tests/performances/do-exam-session2.d.ts +0 -19
  54. package/dist/utils/canAccessRoute.d.ts +0 -2
  55. package/dist/utils/diffFromNow.d.ts +0 -3
  56. package/dist/utils/encodeParams.d.ts +0 -2
  57. package/dist/utils/formatTime.d.ts +0 -4
  58. package/dist/utils/getAcademyDomain.d.ts +0 -2
  59. package/dist/utils/getAccessToken.d.ts +0 -2
  60. package/dist/utils/getErrorMessage.d.ts +0 -1
  61. package/dist/utils/getLanguage.d.ts +0 -2
  62. package/dist/utils/getLearningSpace.d.ts +0 -2
  63. package/dist/utils/getRedirectUrl.d.ts +0 -2
  64. package/dist/utils/helpers.d.ts +0 -22
  65. package/dist/utils/isLocalHost.d.ts +0 -2
  66. package/dist/utils/minutesToTimeSpan.d.ts +0 -2
  67. package/dist/utils/pusherTo.d.ts +0 -1
  68. package/dist/utils/times.d.ts +0 -6
  69. package/dist/utils/toISOString.d.ts +0 -2
  70. package/dist/utils/toLocalTime.d.ts +0 -1
  71. package/dist/utils/types/checkSuperUrl.d.ts +0 -1
  72. package/dist/utils/types.d.ts +0 -9
  73. package/dist/utils/utcToLocalTime.d.ts +0 -2
Binary file
@@ -1,12 +1,12 @@
1
1
  declare const rootReducer: import("redux").Reducer<{
2
2
  common: any;
3
3
  academies: {
4
- items: import("./utils/types/academy").AcademyResponse[];
4
+ items: import("./utils/types").AcademyResponse[];
5
5
  };
6
6
  }, import("redux").UnknownAction, Partial<{
7
7
  common: any;
8
8
  academies: {
9
- items: import("./utils/types/academy").AcademyResponse[];
9
+ items: import("./utils/types").AcademyResponse[];
10
10
  } | undefined;
11
11
  }>>;
12
12
  export default rootReducer;
Binary file
@@ -62,3 +62,19 @@ export declare const PrintTitleClassName = "print-title";
62
62
  export declare const PrintContentClassName = "print-content";
63
63
  export declare const PrintContainerClassName = "print-container";
64
64
  export declare const DEFAULT_PAGING_RESPONSE: PagingResponse;
65
+ export declare const SCHOOL_OPTIONS: {
66
+ label: string;
67
+ value: number;
68
+ }[];
69
+ export declare const ELEMENTARY_GRADES: {
70
+ label: string;
71
+ value: number;
72
+ }[];
73
+ export declare const MIDDLE_GRADES: {
74
+ label: string;
75
+ value: number;
76
+ }[];
77
+ export declare const HIGH_GRADES: {
78
+ label: string;
79
+ value: number;
80
+ }[];
@@ -0,0 +1,6 @@
1
+ export declare enum SchoolType {
2
+ Default = 0,
3
+ Elementary = 1,
4
+ Middle = 2,
5
+ High = 3
6
+ }
@@ -4,4 +4,5 @@ import { ExamStatus, QuestionAnswerType } from "./examStatus";
4
4
  import { OrderType } from "./order";
5
5
  import { RecentUserAction } from "./recentUserAction";
6
6
  import { UserSortColumn } from "./userSortColumn";
7
+ export * from "./academy";
7
8
  export { PreparedType, OrderType, QuestionAnswerType, ExamStatus, RecentUserAction, UserSortColumn, ExamEvent };
@@ -2,6 +2,7 @@ import { Language } from "../../configs/constants";
2
2
  import "moment/locale/ko.js";
3
3
  import "moment/locale/en-au.js";
4
4
  declare const useLanguage: (history: any) => {
5
+ language: any;
5
6
  dropdownOpen: boolean;
6
7
  currentLanguage: Language | undefined;
7
8
  toggle: () => void;
@@ -8,3 +8,4 @@ export * from "./examResults";
8
8
  export * from "./exams";
9
9
  export * from "./pusher";
10
10
  export * from "./note";
11
+ export * from "./academy";
package/package.json CHANGED
@@ -1,102 +1,102 @@
1
- {
2
- "name": "touchstudy-core",
3
- "version": "0.1.135",
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.5",
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.137",
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.5",
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,19 +0,0 @@
1
- import React from "react";
2
- interface Props {
3
- ref?: any;
4
- value: string;
5
- onChange: any;
6
- option?: any;
7
- onBlur?: any;
8
- onFocus?: any;
9
- onAfterInsertHtml?: any;
10
- onInsertElement?: any;
11
- onInsertHtml?: any;
12
- onInsertText?: any;
13
- onDataReady?: any;
14
- onSelectionChange?: any;
15
- action?: any;
16
- disabled: boolean;
17
- }
18
- declare const CkEditor: ({ ref, value, option, onBlur, onFocus, onChange, onAfterInsertHtml, onInsertElement, onInsertHtml, onInsertText, onDataReady, onSelectionChange, disabled, ...action }: Props) => React.JSX.Element;
19
- export default CkEditor;
@@ -1,19 +0,0 @@
1
- export declare const config: {
2
- height: number;
3
- allowedContent: boolean;
4
- toolbar: (string | string[] | {
5
- name: string;
6
- groups: string[];
7
- items: string[];
8
- } | {
9
- name: string;
10
- items: string[];
11
- groups?: undefined;
12
- } | {
13
- name: string;
14
- groups?: undefined;
15
- items?: undefined;
16
- })[];
17
- filebrowserImageUploadUrl: string;
18
- filebrowserUploadUrl: string;
19
- };
@@ -1,2 +0,0 @@
1
- import CkEditor from "./CkEditor";
2
- export { CkEditor };
@@ -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,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,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,13 +0,0 @@
1
- import React from "react";
2
- import { Theme } from "@mui/material";
3
- import { TextbookOwner } from "../configs/types";
4
- declare type Props = {
5
- t: any;
6
- theme: Theme;
7
- onChangeFieldValue: any;
8
- textbookOwners?: TextbookOwner[];
9
- errors: any;
10
- values: any;
11
- };
12
- declare const TextbookOwners: ({ t, errors, values, onChangeFieldValue, textbookOwners }: Props) => React.JSX.Element;
13
- export default TextbookOwners;
@@ -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 {};