touchstudy-core 0.1.120 → 0.1.121
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/StudyTouch_Character_v1_Question~jLFvuYmI.png +0 -0
- package/dist/components/CkEditor/CkEditor.d.ts +11 -2
- package/dist/components/MathJax/MathJaxContainer.d.ts +6 -0
- package/dist/components/MathJax/index.d.ts +2 -0
- package/dist/components/Selectors/InActiveAcademySelector.d.ts +16 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/containers/Academies/hooks/usePassCodeDialog.d.ts +10 -0
- package/dist/containers/ExamResult/components/MyAnswer/components/CreateNewQuestion.d.ts +3 -2
- package/dist/containers/ExamResult/configs/types.d.ts +3 -0
- package/dist/containers/PreparedTextbook/apiClients/academyService.d.ts +1 -0
- package/dist/containers/PreparedTextbook/configs/constants.d.ts +3 -1
- package/dist/index.css +12 -9
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2104 -1993
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2100 -2000
- package/dist/index.modern.js.map +1 -1
- package/dist/tests/performances/do-exam-session-list-student.d.ts +19 -0
- package/dist/tests/performances/do-exam-session-request-answer-one-time.d.ts +19 -0
- package/dist/tests/performances/do-exam-session-skip-answer.d.ts +19 -0
- package/dist/tests/performances/do-exam-session2.d.ts +19 -0
- package/dist/utils/enums/examStatus.d.ts +4 -0
- package/dist/utils/enums/index.d.ts +2 -2
- package/dist/utils/types/examResults.d.ts +2 -0
- package/dist/utils/types/exams.d.ts +3 -0
- package/package.json +102 -101
- package/dist/components/List/List.d.ts +0 -7
- package/dist/containers/ExamResult/components/Dialog/CreateNewQuestion2.d.ts +0 -9
- package/dist/containers/ExamResult/components/Notes/components/ActionItem.d.ts +0 -7
- package/dist/containers/ExamResult/components/Notes/components/ActionsTooltip.d.ts +0 -14
- package/dist/containers/ExamResult/components/Notes/components/ContentTooltip.d.ts +0 -14
- package/dist/containers/ExamResult/components/Notes/components/NewNoteButton.d.ts +0 -6
- package/dist/containers/ExamResult/components/Notes/components/NoteItem.d.ts +0 -9
- package/dist/containers/ExamResult/components/Notes/components/NoteList.d.ts +0 -12
- package/dist/containers/ExamResult/components/Notes/configs/constants.d.ts +0 -2
- package/dist/containers/ExamResult/components/Notes/configs/interfaces.d.ts +0 -4
- package/dist/containers/ExamResult/components/Notes/hooks/useNotes.d.ts +0 -8
- package/dist/containers/ExamResult/components/Notes/styles/styles.d.ts +0 -67
- package/dist/containers/ExamResult/components/StudentNotes/components/ActionItem.d.ts +0 -7
- package/dist/containers/ExamResult/components/StudentNotes/components/ActionsTooltip.d.ts +0 -14
- package/dist/containers/ExamResult/components/StudentNotes/components/NewNoteButton.d.ts +0 -6
- package/dist/containers/ExamResult/components/StudentNotes/components/NoteItem.d.ts +0 -9
- package/dist/containers/ExamResult/components/StudentNotes/configs/constants.d.ts +0 -2
- package/dist/containers/ExamResult/components/StudentNotes/configs/interfaces.d.ts +0 -7
- package/dist/containers/ExamResult/components/StudentNotes/hooks/useStudentNotes.d.ts +0 -12
- package/dist/containers/ExamResult/components/StudentNotes/index.d.ts +0 -4
- package/dist/containers/ExamResult/components/StudentNotes/styles/styles.d.ts +0 -67
- package/dist/containers/ExamResult/hooks/useExamNoteDialog.d.ts +0 -18
- package/dist/containers/Login/views/LoginQRCode.d.ts +0 -10
- package/dist/containers/Notes/components/ActionItem.d.ts +0 -7
- package/dist/containers/Notes/components/ActionsTooltip.d.ts +0 -16
- package/dist/containers/Notes/components/NoteDialog.d.ts +0 -4
- package/dist/containers/Textbooks/components/TextbookShareDialog.d.ts +0 -26
@@ -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: number;
|
19
|
+
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: 200;
|
19
|
+
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: 96;
|
19
|
+
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: 400;
|
19
|
+
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { PreparedType } from './textbook';
|
2
2
|
import { ExamEvent } from "./examEvent";
|
3
|
-
import { ExamStatus } from "./examStatus";
|
3
|
+
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 { PreparedType, OrderType, ExamStatus, RecentUserAction, UserSortColumn, ExamEvent };
|
7
|
+
export { PreparedType, OrderType, QuestionAnswerType, ExamStatus, RecentUserAction, UserSortColumn, ExamEvent };
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { QuestionAnswerType } from "../enums";
|
1
2
|
import { AnswerResponseSignal } from "../enums/answerResponseSignal";
|
2
3
|
export declare type Category = {
|
3
4
|
id: number;
|
@@ -31,6 +32,7 @@ export declare type Question = {
|
|
31
32
|
selectedAnswers: string;
|
32
33
|
topDuration?: number | null;
|
33
34
|
questionOrder: number;
|
35
|
+
questionAnswerType?: QuestionAnswerType;
|
34
36
|
};
|
35
37
|
export declare type ExamResult = {
|
36
38
|
description: string;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { QuestionAnswerType } from "../enums";
|
1
2
|
export declare type QuestionResponse = {
|
2
3
|
id?: number;
|
3
4
|
numberOfAnswers: number;
|
@@ -6,6 +7,8 @@ export declare type QuestionResponse = {
|
|
6
7
|
categoryId?: number;
|
7
8
|
article: number;
|
8
9
|
questionOrder: number;
|
10
|
+
questionAnswerType?: QuestionAnswerType;
|
11
|
+
textualAnswer?: string;
|
9
12
|
};
|
10
13
|
export declare type Exam = {
|
11
14
|
title: string;
|
package/package.json
CHANGED
@@ -1,101 +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
|
-
"axios": "^1.6.2",
|
21
|
-
"
|
22
|
-
"
|
23
|
-
"
|
24
|
-
"
|
25
|
-
"
|
26
|
-
"
|
27
|
-
"
|
28
|
-
"
|
29
|
-
"
|
30
|
-
"
|
31
|
-
"
|
32
|
-
"react-
|
33
|
-
"react-
|
34
|
-
"react-
|
35
|
-
"react-
|
36
|
-
"react-
|
37
|
-
"react-
|
38
|
-
"react-
|
39
|
-
"
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
"react
|
44
|
-
"react-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
"
|
49
|
-
"
|
50
|
-
"
|
51
|
-
"test
|
52
|
-
"test:
|
53
|
-
"test:
|
54
|
-
"test:
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
"@
|
62
|
-
"@testing-library/
|
63
|
-
"@testing-library/
|
64
|
-
"@
|
65
|
-
"@types/
|
66
|
-
"@types/
|
67
|
-
"@types/
|
68
|
-
"@types/
|
69
|
-
"@types/
|
70
|
-
"@types/react
|
71
|
-
"@types/react-
|
72
|
-
"@types/react-
|
73
|
-
"@types/react-
|
74
|
-
"@types/react-
|
75
|
-
"@types/
|
76
|
-
"@types/
|
77
|
-
"@types/
|
78
|
-
"
|
79
|
-
"
|
80
|
-
"
|
81
|
-
"
|
82
|
-
"eslint
|
83
|
-
"eslint-config-
|
84
|
-
"eslint-config-standard
|
85
|
-
"eslint-
|
86
|
-
"eslint-plugin-
|
87
|
-
"eslint-plugin-
|
88
|
-
"eslint-plugin-
|
89
|
-
"eslint-plugin-
|
90
|
-
"eslint-plugin-
|
91
|
-
"
|
92
|
-
"
|
93
|
-
"
|
94
|
-
"
|
95
|
-
"
|
96
|
-
"
|
97
|
-
"react-
|
98
|
-
"
|
99
|
-
"
|
100
|
-
|
101
|
-
}
|
1
|
+
{
|
2
|
+
"name": "touchstudy-core",
|
3
|
+
"version": "0.1.121",
|
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
|
+
"axios": "^1.6.2",
|
21
|
+
"better-react-mathjax": "^2.1.0",
|
22
|
+
"ckeditor4-react": "5.2.0",
|
23
|
+
"formik": "^2.4.5",
|
24
|
+
"gapi-script": "^1.2.0",
|
25
|
+
"html2pdf.js": "^0.10.2",
|
26
|
+
"i18next": "^23.7.16",
|
27
|
+
"link": "^2.1.0",
|
28
|
+
"lodash": "^4.17.21",
|
29
|
+
"moment": "^2.29.4",
|
30
|
+
"node-sass": "^7.0.3",
|
31
|
+
"pusher-js": "^8.4.0-rc2",
|
32
|
+
"react-google-recaptcha-v3": "^1.10.1",
|
33
|
+
"react-hook-form": "^7.49.2",
|
34
|
+
"react-i18next": "^14.0.0",
|
35
|
+
"react-icons": "^4.12.0",
|
36
|
+
"react-select": "^5.8.0",
|
37
|
+
"react-slick": "^0.29.0",
|
38
|
+
"react-toastify": "^9.1.3",
|
39
|
+
"react-virtualized": "^9.22.5",
|
40
|
+
"yup": "^1.3.3"
|
41
|
+
},
|
42
|
+
"peerDependencies": {
|
43
|
+
"react": "^18.2.0",
|
44
|
+
"react-dom": "^18.2.0",
|
45
|
+
"react-redux": "^9.0.4"
|
46
|
+
},
|
47
|
+
"scripts": {
|
48
|
+
"build": "microbundle-crl --no-compress --format modern,cjs",
|
49
|
+
"start": "microbundle-crl watch --no-compress --format modern,cjs",
|
50
|
+
"prepare": "run-s build",
|
51
|
+
"test": "run-s test:unit test:lint test:build",
|
52
|
+
"test:build": "run-s build",
|
53
|
+
"test:lint": "eslint .",
|
54
|
+
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
|
55
|
+
"test:watch": "react-scripts test --env=jsdom"
|
56
|
+
},
|
57
|
+
"files": [
|
58
|
+
"dist"
|
59
|
+
],
|
60
|
+
"devDependencies": {
|
61
|
+
"@babel/plugin-proposal-unicode-property-regex": "^7.18.6",
|
62
|
+
"@testing-library/jest-dom": "^5.17.0",
|
63
|
+
"@testing-library/react": "^13.4.0",
|
64
|
+
"@testing-library/user-event": "^13.5.0",
|
65
|
+
"@types/ckeditor4": "4.20.7",
|
66
|
+
"@types/file-saver": "2.0.7",
|
67
|
+
"@types/jest": "^27.5.2",
|
68
|
+
"@types/lodash": "^4.14.202",
|
69
|
+
"@types/node": "^16.18.68",
|
70
|
+
"@types/react": "^18.2.45",
|
71
|
+
"@types/react-dom": "^18.2.18",
|
72
|
+
"@types/react-redux": "^7.1.33",
|
73
|
+
"@types/react-router-dom": "^5.3.3",
|
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,9 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
declare type Props = {
|
3
|
-
openCreateQuestionDialog: boolean;
|
4
|
-
toggleCreateQuestion: () => void;
|
5
|
-
handleCreateQuestion: any;
|
6
|
-
examSessionId: number;
|
7
|
-
};
|
8
|
-
export default function CreateNewQuestionDialog({ handleCreateQuestion, openCreateQuestionDialog, toggleCreateQuestion, examSessionId }: Props): React.JSX.Element;
|
9
|
-
export {};
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { FC, MouseEvent } from "react";
|
2
|
-
export declare type Action = {
|
3
|
-
label: string;
|
4
|
-
startIcon?: JSX.Element;
|
5
|
-
endIcon?: JSX.Element;
|
6
|
-
style?: object;
|
7
|
-
textStyle?: object;
|
8
|
-
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
9
|
-
};
|
10
|
-
declare type Props = {
|
11
|
-
actions: Action[];
|
12
|
-
};
|
13
|
-
declare const ActionsTooltip: FC<Props>;
|
14
|
-
export default ActionsTooltip;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
declare type Action = {
|
3
|
-
label: string;
|
4
|
-
startIcon?: JSX.Element;
|
5
|
-
endIcon?: JSX.Element;
|
6
|
-
onClick?: (event: any) => void;
|
7
|
-
style?: object;
|
8
|
-
textStyle?: object;
|
9
|
-
};
|
10
|
-
declare type Props = {
|
11
|
-
actions: Action[];
|
12
|
-
};
|
13
|
-
declare const ActionsTooltip: FC<Props>;
|
14
|
-
export default ActionsTooltip;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
import { NoteResponse } from "../../../../../utils/types/note";
|
3
|
-
import { TooltipProps } from "../configs/interfaces";
|
4
|
-
interface NoteItemProps extends TooltipProps<NoteResponse> {
|
5
|
-
data: NoteResponse;
|
6
|
-
openTooltip: boolean;
|
7
|
-
}
|
8
|
-
declare const NoteItem: FC<NoteItemProps>;
|
9
|
-
export default NoteItem;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { FC, RefObject } from "react";
|
2
|
-
import { NoteResponse } from "../../../../../utils/types/note";
|
3
|
-
import { TooltipProps } from "../configs/interfaces";
|
4
|
-
interface NoteListProps extends TooltipProps<NoteResponse> {
|
5
|
-
data: NoteResponse[];
|
6
|
-
selectedItem?: NoteResponse;
|
7
|
-
observerTarget: RefObject<HTMLDivElement>;
|
8
|
-
loading: boolean;
|
9
|
-
onLoadMore: () => void;
|
10
|
-
}
|
11
|
-
declare const NoteList: FC<NoteListProps>;
|
12
|
-
export default NoteList;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { NoteResponse } from "../../../../../utils/types/note";
|
2
|
-
declare const useNotes: () => {
|
3
|
-
t: any;
|
4
|
-
selectedNote: NoteResponse | undefined;
|
5
|
-
handleCloseTooltip: () => void;
|
6
|
-
handleOpenTooltip: (note: NoteResponse) => void;
|
7
|
-
};
|
8
|
-
export default useNotes;
|
@@ -1,67 +0,0 @@
|
|
1
|
-
export declare const NoteListStyles: {
|
2
|
-
p: number;
|
3
|
-
bgcolor: string;
|
4
|
-
border: string;
|
5
|
-
borderRadius: string;
|
6
|
-
minHeight: string;
|
7
|
-
};
|
8
|
-
export declare const newButtonStyle: {
|
9
|
-
color: string;
|
10
|
-
borderColor: string;
|
11
|
-
};
|
12
|
-
export declare const NoteItemRootStyle: {
|
13
|
-
bgcolor: string;
|
14
|
-
paddingInline: number;
|
15
|
-
paddingBlock: number;
|
16
|
-
borderRadius: string;
|
17
|
-
};
|
18
|
-
export declare const NoteItemLeftTextStyle: {
|
19
|
-
color: string;
|
20
|
-
fontSize: string;
|
21
|
-
fontWeight: number;
|
22
|
-
};
|
23
|
-
export declare const NoteItemMiddleTextStyle: {
|
24
|
-
color: string;
|
25
|
-
fontSize: string;
|
26
|
-
fontWeight: number;
|
27
|
-
};
|
28
|
-
export declare const NoteItemContentTextStyle: {
|
29
|
-
color: string;
|
30
|
-
fontSize: string;
|
31
|
-
fontWeight: number;
|
32
|
-
};
|
33
|
-
export declare const NoteItemRightTextStyle: {
|
34
|
-
color: string;
|
35
|
-
fontSize: string;
|
36
|
-
fontWeight: number;
|
37
|
-
};
|
38
|
-
export declare const NoteItemStyles: {
|
39
|
-
root: {
|
40
|
-
bgcolor: string;
|
41
|
-
paddingInline: number;
|
42
|
-
paddingBlock: number;
|
43
|
-
borderRadius: string;
|
44
|
-
};
|
45
|
-
text: {
|
46
|
-
left: {
|
47
|
-
color: string;
|
48
|
-
fontSize: string;
|
49
|
-
fontWeight: number;
|
50
|
-
};
|
51
|
-
middle: {
|
52
|
-
color: string;
|
53
|
-
fontSize: string;
|
54
|
-
fontWeight: number;
|
55
|
-
};
|
56
|
-
right: {
|
57
|
-
color: string;
|
58
|
-
fontSize: string;
|
59
|
-
fontWeight: number;
|
60
|
-
};
|
61
|
-
};
|
62
|
-
contentText: {
|
63
|
-
color: string;
|
64
|
-
fontSize: string;
|
65
|
-
fontWeight: number;
|
66
|
-
};
|
67
|
-
};
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { FC, MouseEvent } from "react";
|
2
|
-
export declare type Action = {
|
3
|
-
label: string;
|
4
|
-
startIcon?: JSX.Element;
|
5
|
-
endIcon?: JSX.Element;
|
6
|
-
style?: object;
|
7
|
-
textStyle?: object;
|
8
|
-
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
9
|
-
};
|
10
|
-
declare type Props = {
|
11
|
-
actions: Action[];
|
12
|
-
};
|
13
|
-
declare const ActionsTooltip: FC<Props>;
|
14
|
-
export default ActionsTooltip;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
import { NoteResponse } from "../../../../../utils/types/note";
|
3
|
-
import { TooltipProps } from "../configs/interfaces";
|
4
|
-
interface NoteItemProps extends TooltipProps<NoteResponse> {
|
5
|
-
data: NoteResponse;
|
6
|
-
openTooltip: boolean;
|
7
|
-
}
|
8
|
-
declare const NoteItem: FC<NoteItemProps>;
|
9
|
-
export default NoteItem;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { NoteResponse } from "../../../../../utils/types/note";
|
2
|
-
import { StudentNotesProps } from "../configs/interfaces";
|
3
|
-
declare const useStudentNotes: ({ examCode }: StudentNotesProps) => {
|
4
|
-
t: any;
|
5
|
-
notes: NoteResponse[];
|
6
|
-
isLoading: boolean;
|
7
|
-
selectedNote: NoteResponse | undefined;
|
8
|
-
handleLoadMore: () => void;
|
9
|
-
handleCloseTooltip: () => void;
|
10
|
-
handleOpenTooltip: (note: NoteResponse) => void;
|
11
|
-
};
|
12
|
-
export default useStudentNotes;
|