mario-teacher-student-client 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Circle/Circle.d.ts +11 -0
- package/dist/components/Circle/ItemCircle.d.ts +7 -0
- package/dist/components/Header/HeaderLearningPlan.d.ts +11 -0
- package/dist/components/Header/HeaderSurvey.d.ts +11 -0
- package/dist/components/Input/TextAreaComponent.d.ts +8 -0
- package/dist/containers/FriendCircle/components/ModalGoalFriend.d.ts +3 -0
- package/dist/containers/FriendCircle/constants/types.d.ts +101 -0
- package/dist/containers/FriendCircle/hooks/useListDetail.d.ts +20 -0
- package/dist/containers/FriendCircle/hooks/useListFriend.d.ts +8 -0
- package/dist/containers/FriendCircle/views/FriendCircle.d.ts +3 -0
- package/dist/containers/FriendCircle/views/FriendCircleLearning.d.ts +3 -0
- package/dist/containers/FriendCircle/views/ListFriendCircle.d.ts +3 -0
- package/dist/containers/MyStudent/components/Accommodation/Accomondation.d.ts +3 -0
- package/dist/containers/MyStudent/components/Accommodation/AccomondationList.d.ts +3 -0
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/hooks/useTopLearningStrategies.d.ts +4 -0
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/services/TopLearningStrategies.d.ts +1 -0
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/view/TopLearningStrategiesChart.d.ts +3 -0
- package/dist/containers/MyStudent/hooks/useAccommodation.d.ts +8 -0
- package/dist/containers/MySurvey/constants/types.d.ts +41 -0
- package/dist/containers/MySurvey/hooks/useStudentList.d.ts +9 -0
- package/dist/containers/MySurvey/views/CreateSurvey.d.ts +3 -0
- package/dist/containers/MySurvey/views/Mysurvey.d.ts +3 -0
- package/dist/containers/MySurvey/views/StudentSurvey.d.ts +3 -0
- package/dist/containers/PersonalLearningPlan/hook/usePersonalInterest.d.ts +2 -33
- package/dist/index.js +98 -18
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +98 -18
- package/dist/index.modern.js.map +1 -1
- package/dist/services/myFriendGoalService.d.ts +5 -0
- package/package.json +1 -1
- package/dist/containers/PersonalLearningPlan/hook/personalInterestApi.d.ts +0 -6
- package/dist/containers/PersonalLearningPlan/hook/personalInterestsService.d.ts +0 -6
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface Props {
|
|
3
|
+
title: string;
|
|
4
|
+
numberFriend: number;
|
|
5
|
+
background: string;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
key?: number;
|
|
9
|
+
}
|
|
10
|
+
declare const Circle: ({ title, numberFriend, width, height, background, key }: Props) => JSX.Element;
|
|
11
|
+
export default Circle;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
text: string;
|
|
4
|
+
isShowButtonBackGround?: boolean;
|
|
5
|
+
onRedirect?: Function;
|
|
6
|
+
goBack?: Function;
|
|
7
|
+
isShowButtonPageHeader?: boolean;
|
|
8
|
+
textButton: string;
|
|
9
|
+
}
|
|
10
|
+
declare const HeaderLearningPlan: FC<Props>;
|
|
11
|
+
export default HeaderLearningPlan;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
text: string;
|
|
4
|
+
isShowButtonBackGround?: boolean;
|
|
5
|
+
onFinishSession?: Function;
|
|
6
|
+
goBack?: Function;
|
|
7
|
+
isShowButtonPageHeader?: boolean;
|
|
8
|
+
textButton?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const HeaderSurvey: FC<Props>;
|
|
11
|
+
export default HeaderSurvey;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
export interface FILTER_STUDENT_SESSION {
|
|
2
|
+
currentPage: number;
|
|
3
|
+
pageSize: number;
|
|
4
|
+
searchString: string;
|
|
5
|
+
sortBy: string;
|
|
6
|
+
sortOrder?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
startDate?: number;
|
|
9
|
+
endDate?: number;
|
|
10
|
+
isDone?: boolean;
|
|
11
|
+
isDescending?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface FILTER_SESSION {
|
|
14
|
+
currentPage: number;
|
|
15
|
+
pageSize: number;
|
|
16
|
+
searchString: string;
|
|
17
|
+
sortBy: string;
|
|
18
|
+
sortOrder?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
startDate?: number;
|
|
21
|
+
endDate?: number;
|
|
22
|
+
isDone?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface SESSION_TYPE {
|
|
25
|
+
id: string;
|
|
26
|
+
studentId: string;
|
|
27
|
+
teacherId: number;
|
|
28
|
+
startTime: string;
|
|
29
|
+
minutes?: number;
|
|
30
|
+
isDoing?: boolean;
|
|
31
|
+
isDone?: boolean;
|
|
32
|
+
isCreatedByTeacher?: boolean;
|
|
33
|
+
isFavourite: boolean;
|
|
34
|
+
isTeacherFavourite: boolean;
|
|
35
|
+
isTeacherDone?: boolean;
|
|
36
|
+
teacherName?: string;
|
|
37
|
+
studentAvatar?: string;
|
|
38
|
+
studentName?: string;
|
|
39
|
+
gradeLevel?: any;
|
|
40
|
+
finalScore?: any;
|
|
41
|
+
studentProfile?: any;
|
|
42
|
+
sortOrder?: string;
|
|
43
|
+
teacherResultId?: number;
|
|
44
|
+
}
|
|
45
|
+
export interface STUDENT_PROFILE {
|
|
46
|
+
id: number;
|
|
47
|
+
userId: string;
|
|
48
|
+
name: string;
|
|
49
|
+
avatar: string;
|
|
50
|
+
classes: string[];
|
|
51
|
+
}
|
|
52
|
+
export interface CLASS_REFLECTION {
|
|
53
|
+
id: number;
|
|
54
|
+
classDate: string;
|
|
55
|
+
classType: string;
|
|
56
|
+
status: string;
|
|
57
|
+
teacherName: string;
|
|
58
|
+
isDone: string;
|
|
59
|
+
classImpactScore?: string;
|
|
60
|
+
studentAvatar?: string;
|
|
61
|
+
teacherAvatar?: string;
|
|
62
|
+
IsDescending?: boolean;
|
|
63
|
+
studentName?: string;
|
|
64
|
+
}
|
|
65
|
+
export interface QuestionAnswer {
|
|
66
|
+
id: number;
|
|
67
|
+
answer: string;
|
|
68
|
+
}
|
|
69
|
+
export declare enum OrderByStudent {
|
|
70
|
+
id = 0,
|
|
71
|
+
name = 1,
|
|
72
|
+
grade = 2,
|
|
73
|
+
lastOneToOne = 3,
|
|
74
|
+
lastConference = 4,
|
|
75
|
+
totalTime = 5
|
|
76
|
+
}
|
|
77
|
+
export interface ActionPointType {
|
|
78
|
+
id?: string;
|
|
79
|
+
text: string;
|
|
80
|
+
}
|
|
81
|
+
export interface FILTER_STUDENT_WELLBEING {
|
|
82
|
+
startDate?: number;
|
|
83
|
+
endDate?: number;
|
|
84
|
+
}
|
|
85
|
+
export interface FILTER_LEARNING {
|
|
86
|
+
currentPage: number;
|
|
87
|
+
pageSize: number;
|
|
88
|
+
searchString: string;
|
|
89
|
+
sortBy: string;
|
|
90
|
+
sortOrder?: string;
|
|
91
|
+
startDate?: number;
|
|
92
|
+
endDate?: number;
|
|
93
|
+
studentId?: number;
|
|
94
|
+
}
|
|
95
|
+
export interface LEARNING_PLAN {
|
|
96
|
+
id: number;
|
|
97
|
+
modifyTime: string;
|
|
98
|
+
createTime: string;
|
|
99
|
+
profileImageTeacher: string;
|
|
100
|
+
teacherName: string;
|
|
101
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type CircleType = {
|
|
3
|
+
id: number;
|
|
4
|
+
firstName: string;
|
|
5
|
+
lastName: string;
|
|
6
|
+
type: string;
|
|
7
|
+
};
|
|
8
|
+
declare const useListDetail: () => {
|
|
9
|
+
myGoalCircle: CircleType;
|
|
10
|
+
setGoalCircle: import("react").Dispatch<import("react").SetStateAction<CircleType>>;
|
|
11
|
+
confirmData: (values: any, cb: any) => Promise<void>;
|
|
12
|
+
friendId: number;
|
|
13
|
+
setfriendId: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
14
|
+
OPTIONS_TYPE: {
|
|
15
|
+
value: string;
|
|
16
|
+
label: string;
|
|
17
|
+
color: string;
|
|
18
|
+
}[];
|
|
19
|
+
};
|
|
20
|
+
export default useListDetail;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FILTER_STUDENT_SESSION } from "../constants/types";
|
|
2
|
+
declare const useListFriend: () => {
|
|
3
|
+
goalFriendList: never[];
|
|
4
|
+
changeFilters: (updatedFilters: any) => void;
|
|
5
|
+
filters: FILTER_STUDENT_SESSION;
|
|
6
|
+
getData: () => Promise<void>;
|
|
7
|
+
};
|
|
8
|
+
export default useListFriend;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getTopLearningStrategiesApi: (studentId: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const useAccommodation: () => {
|
|
2
|
+
create: (data: any) => Promise<void>;
|
|
3
|
+
update: (id: number, data: any) => Promise<void>;
|
|
4
|
+
getById: (id: number, data: any) => Promise<void>;
|
|
5
|
+
deleteById: (id: number) => Promise<void>;
|
|
6
|
+
accommodationData: any;
|
|
7
|
+
};
|
|
8
|
+
export default useAccommodation;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface FILTER_STUDENT_SESSION {
|
|
2
|
+
currentPage: number;
|
|
3
|
+
pageSize: number;
|
|
4
|
+
searchString: string;
|
|
5
|
+
sortBy: string;
|
|
6
|
+
sortOrder?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
startDate?: number;
|
|
9
|
+
endDate?: number;
|
|
10
|
+
isDone?: boolean;
|
|
11
|
+
isDescending?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface SESSION_TYPE {
|
|
14
|
+
id: string;
|
|
15
|
+
studentId: string;
|
|
16
|
+
teacherId: number;
|
|
17
|
+
startTime: string;
|
|
18
|
+
minutes?: number;
|
|
19
|
+
isDoing?: boolean;
|
|
20
|
+
isDone?: boolean;
|
|
21
|
+
isCreatedByTeacher?: boolean;
|
|
22
|
+
isFavourite: boolean;
|
|
23
|
+
isTeacherFavourite: boolean;
|
|
24
|
+
isTeacherDone?: boolean;
|
|
25
|
+
teacherName?: string;
|
|
26
|
+
studentAvatar?: string;
|
|
27
|
+
studentName?: string;
|
|
28
|
+
gradeLevel?: any;
|
|
29
|
+
finalScore?: any;
|
|
30
|
+
studentProfile?: any;
|
|
31
|
+
sortOrder?: string;
|
|
32
|
+
teacherResultId?: number;
|
|
33
|
+
}
|
|
34
|
+
export declare enum OrderByStudent {
|
|
35
|
+
id = 0,
|
|
36
|
+
name = 1,
|
|
37
|
+
grade = 2,
|
|
38
|
+
lastOneToOne = 3,
|
|
39
|
+
lastConference = 4,
|
|
40
|
+
totalTime = 5
|
|
41
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FILTER_STUDENT_SESSION } from "../constants/types";
|
|
2
|
+
declare const useStudentList: () => {
|
|
3
|
+
students: any;
|
|
4
|
+
changeFilters: (updatedFilters: any) => void;
|
|
5
|
+
filters: FILTER_STUDENT_SESSION;
|
|
6
|
+
importStudentCsv: (file: any, teacherID: string, cb: any) => Promise<void>;
|
|
7
|
+
getData: () => Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
export default useStudentList;
|
|
@@ -1,36 +1,5 @@
|
|
|
1
1
|
declare const usePersonalInterest: () => {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
sendDataCreate: () => Promise<void>;
|
|
5
|
-
deleteDataItem: () => Promise<void>;
|
|
6
|
-
handleClose: () => void;
|
|
7
|
-
handleCloseEdit: () => void;
|
|
8
|
-
handUpload: (e: any) => void;
|
|
9
|
-
handleCloseDelete: () => void;
|
|
10
|
-
dataList: any;
|
|
11
|
-
handUploadEdit: (e: any) => void;
|
|
12
|
-
openModal: boolean;
|
|
13
|
-
openModalDelete: boolean;
|
|
14
|
-
openModalEdit: boolean;
|
|
15
|
-
targetImage: any;
|
|
16
|
-
fileUploadEdit: string;
|
|
17
|
-
fileAvatarEdit: string;
|
|
18
|
-
deleteData: (id: number) => void;
|
|
19
|
-
handOpenModal: () => void;
|
|
20
|
-
handCloseModalEdit: () => void;
|
|
21
|
-
handCloseModalDelete: () => void;
|
|
22
|
-
value: string;
|
|
23
|
-
fileAvatar: string;
|
|
24
|
-
valueAddActivity: string;
|
|
25
|
-
onChangeSetData: (e: any) => void;
|
|
26
|
-
onChangeSetDataNote: (e: any) => void;
|
|
27
|
-
dataEdit: {
|
|
28
|
-
id: string;
|
|
29
|
-
Title: string;
|
|
30
|
-
Note: string;
|
|
31
|
-
studentId: string;
|
|
32
|
-
};
|
|
33
|
-
onChangeSetDataEdit: (e: any) => void;
|
|
34
|
-
onChangeSetDataEditNote: (e: any) => void;
|
|
2
|
+
getDataPersonalInterest: () => Promise<void>;
|
|
3
|
+
listPersonalInterest: any;
|
|
35
4
|
};
|
|
36
5
|
export default usePersonalInterest;
|
package/dist/index.js
CHANGED
|
@@ -7042,6 +7042,7 @@ var CustomTabNote = function CustomTabNote(props) {
|
|
|
7042
7042
|
return (_user$roles = user.roles) === null || _user$roles === void 0 ? void 0 : _user$roles.includes("Teacher");
|
|
7043
7043
|
}, [user]);
|
|
7044
7044
|
var indexTab = 0;
|
|
7045
|
+
var privateInit = "";
|
|
7045
7046
|
|
|
7046
7047
|
if (localStorage.getItem('activeTab') != null) {
|
|
7047
7048
|
var activeTab = JSON.parse(localStorage.getItem('activeTab') || '{}');
|
|
@@ -7051,6 +7052,7 @@ var CustomTabNote = function CustomTabNote(props) {
|
|
|
7051
7052
|
|
|
7052
7053
|
if (objectTab != null) {
|
|
7053
7054
|
indexTab = objectTab.activeTab;
|
|
7055
|
+
privateInit = objectTab.content;
|
|
7054
7056
|
}
|
|
7055
7057
|
}
|
|
7056
7058
|
|
|
@@ -7058,7 +7060,7 @@ var CustomTabNote = function CustomTabNote(props) {
|
|
|
7058
7060
|
value = _useState[0],
|
|
7059
7061
|
setValue = _useState[1];
|
|
7060
7062
|
|
|
7061
|
-
var _useState2 = React.useState(),
|
|
7063
|
+
var _useState2 = React.useState(privateInit),
|
|
7062
7064
|
dataPrivate = _useState2[0],
|
|
7063
7065
|
setDataPrivate = _useState2[1];
|
|
7064
7066
|
|
|
@@ -7074,9 +7076,6 @@ var CustomTabNote = function CustomTabNote(props) {
|
|
|
7074
7076
|
widthItem = _useState5[0],
|
|
7075
7077
|
setWidthItem = _useState5[1];
|
|
7076
7078
|
|
|
7077
|
-
console.log({
|
|
7078
|
-
value: value
|
|
7079
|
-
});
|
|
7080
7079
|
React.useEffect(function () {
|
|
7081
7080
|
setDataPrivate(props.privateNoteData);
|
|
7082
7081
|
}, [props.privateNoteData]);
|
|
@@ -7093,11 +7092,13 @@ var CustomTabNote = function CustomTabNote(props) {
|
|
|
7093
7092
|
var objectTab = [{
|
|
7094
7093
|
isTeacher: true,
|
|
7095
7094
|
sessionId: props.sessionId,
|
|
7096
|
-
activeTab: 0
|
|
7095
|
+
activeTab: 0,
|
|
7096
|
+
content: ""
|
|
7097
7097
|
}, {
|
|
7098
7098
|
isTeacher: false,
|
|
7099
7099
|
sessionId: props.sessionId,
|
|
7100
|
-
activeTab: 0
|
|
7100
|
+
activeTab: 0,
|
|
7101
|
+
content: ""
|
|
7101
7102
|
}];
|
|
7102
7103
|
var index = objectTab.findIndex(function (t) {
|
|
7103
7104
|
return t.isTeacher == isTeacher;
|
|
@@ -7142,6 +7143,20 @@ var CustomTabNote = function CustomTabNote(props) {
|
|
|
7142
7143
|
clearTimeout(inputSearch.current);
|
|
7143
7144
|
}
|
|
7144
7145
|
|
|
7146
|
+
if (localStorage.getItem('activeTab') != null) {
|
|
7147
|
+
var _activeTab = JSON.parse(localStorage.getItem('activeTab') || '{}');
|
|
7148
|
+
|
|
7149
|
+
var indexTab = _activeTab === null || _activeTab === void 0 ? void 0 : _activeTab.findIndex(function (item) {
|
|
7150
|
+
return item.sessionId == props.sessionId && item.isTeacher == isTeacher;
|
|
7151
|
+
});
|
|
7152
|
+
|
|
7153
|
+
if (indexTab != -1) {
|
|
7154
|
+
_activeTab[indexTab].content = inputValue;
|
|
7155
|
+
}
|
|
7156
|
+
|
|
7157
|
+
localStorage.setItem('activeTab', JSON.stringify(_activeTab));
|
|
7158
|
+
}
|
|
7159
|
+
|
|
7145
7160
|
inputSearch.current = setTimeout(function () {
|
|
7146
7161
|
handleUpdatePrivateNote(inputValue);
|
|
7147
7162
|
}, 500);
|
|
@@ -7927,17 +7942,9 @@ var DialogNodes = function DialogNodes(props) {
|
|
|
7927
7942
|
deleteNoteConference = _useNoteSession.deleteNoteConference,
|
|
7928
7943
|
updateConferenceRubricPrivateNote = _useNoteSession.updateConferenceRubricPrivateNote;
|
|
7929
7944
|
|
|
7930
|
-
var _React$useState = React__default.useState(),
|
|
7931
|
-
|
|
7932
|
-
|
|
7933
|
-
|
|
7934
|
-
var _React$useState2 = React__default.useState(),
|
|
7935
|
-
recordValue = _React$useState2[0],
|
|
7936
|
-
setRecordValue = _React$useState2[1];
|
|
7937
|
-
|
|
7938
|
-
var _React$useState3 = React__default.useState(false),
|
|
7939
|
-
isShowQuestionList = _React$useState3[0],
|
|
7940
|
-
setIsShowQuestionList = _React$useState3[1];
|
|
7945
|
+
var _React$useState = React__default.useState(false),
|
|
7946
|
+
isShowQuestionList = _React$useState[0],
|
|
7947
|
+
setIsShowQuestionList = _React$useState[1];
|
|
7941
7948
|
|
|
7942
7949
|
var user = reactRedux.useSelector(function (state) {
|
|
7943
7950
|
return state.common.user;
|
|
@@ -7948,6 +7955,7 @@ var DialogNodes = function DialogNodes(props) {
|
|
|
7948
7955
|
return (_user$roles = user.roles) === null || _user$roles === void 0 ? void 0 : _user$roles.includes("Teacher");
|
|
7949
7956
|
}, [user]);
|
|
7950
7957
|
var indexTab = 0;
|
|
7958
|
+
var inputInitValue = "";
|
|
7951
7959
|
|
|
7952
7960
|
if (localStorage.getItem('activeTab') != null) {
|
|
7953
7961
|
var activeTab = JSON.parse(localStorage.getItem('activeTab') || '{}');
|
|
@@ -7957,14 +7965,58 @@ var DialogNodes = function DialogNodes(props) {
|
|
|
7957
7965
|
|
|
7958
7966
|
if (objectTab != null) {
|
|
7959
7967
|
indexTab = objectTab.activeTab;
|
|
7968
|
+
inputInitValue = objectTab.content;
|
|
7960
7969
|
}
|
|
7961
7970
|
}
|
|
7962
7971
|
|
|
7972
|
+
var _React$useState2 = React__default.useState(inputInitValue),
|
|
7973
|
+
inputValue = _React$useState2[0],
|
|
7974
|
+
setInputValue = _React$useState2[1];
|
|
7975
|
+
|
|
7976
|
+
var _React$useState3 = React__default.useState(),
|
|
7977
|
+
recordValue = _React$useState3[0],
|
|
7978
|
+
setRecordValue = _React$useState3[1];
|
|
7979
|
+
|
|
7963
7980
|
var _React$useState4 = React__default.useState(indexTab),
|
|
7964
7981
|
tabProp = _React$useState4[0],
|
|
7965
7982
|
setTabProp = _React$useState4[1];
|
|
7966
7983
|
|
|
7967
7984
|
var handleChange = function handleChange(event) {
|
|
7985
|
+
if (localStorage.getItem('activeTab') != null) {
|
|
7986
|
+
var _activeTab = JSON.parse(localStorage.getItem('activeTab') || '{}');
|
|
7987
|
+
|
|
7988
|
+
var indexTab = _activeTab === null || _activeTab === void 0 ? void 0 : _activeTab.findIndex(function (item) {
|
|
7989
|
+
return item.sessionId == props.sessionId && item.isTeacher == isTeacher;
|
|
7990
|
+
});
|
|
7991
|
+
|
|
7992
|
+
if (indexTab != -1) {
|
|
7993
|
+
_activeTab[indexTab].content = event.target.value;
|
|
7994
|
+
}
|
|
7995
|
+
|
|
7996
|
+
localStorage.setItem('activeTab', JSON.stringify(_activeTab));
|
|
7997
|
+
} else {
|
|
7998
|
+
var objectTab = [{
|
|
7999
|
+
isTeacher: true,
|
|
8000
|
+
sessionId: props.sessionId,
|
|
8001
|
+
activeTab: 0,
|
|
8002
|
+
content: ""
|
|
8003
|
+
}, {
|
|
8004
|
+
isTeacher: false,
|
|
8005
|
+
sessionId: props.sessionId,
|
|
8006
|
+
activeTab: 0,
|
|
8007
|
+
content: ""
|
|
8008
|
+
}];
|
|
8009
|
+
var index = objectTab.findIndex(function (t) {
|
|
8010
|
+
return t.isTeacher == isTeacher;
|
|
8011
|
+
});
|
|
8012
|
+
|
|
8013
|
+
if (index != -1) {
|
|
8014
|
+
objectTab[index].content = event.target.value;
|
|
8015
|
+
}
|
|
8016
|
+
|
|
8017
|
+
localStorage.setItem('activeTab', JSON.stringify(objectTab));
|
|
8018
|
+
}
|
|
8019
|
+
|
|
7968
8020
|
setInputValue(event.target.value);
|
|
7969
8021
|
};
|
|
7970
8022
|
|
|
@@ -7972,6 +8024,20 @@ var DialogNodes = function DialogNodes(props) {
|
|
|
7972
8024
|
props.handleClose();
|
|
7973
8025
|
};
|
|
7974
8026
|
|
|
8027
|
+
React.useEffect(function () {
|
|
8028
|
+
if (localStorage.getItem('activeTab') != null) {
|
|
8029
|
+
var _activeTab2 = JSON.parse(localStorage.getItem('activeTab') || '{}');
|
|
8030
|
+
|
|
8031
|
+
var objectTab = _activeTab2 === null || _activeTab2 === void 0 ? void 0 : _activeTab2.find(function (item) {
|
|
8032
|
+
return item.sessionId == props.sessionId && item.isTeacher == isTeacher;
|
|
8033
|
+
});
|
|
8034
|
+
|
|
8035
|
+
if (objectTab != null) {
|
|
8036
|
+
setInputValue(objectTab.content);
|
|
8037
|
+
}
|
|
8038
|
+
}
|
|
8039
|
+
}, [tabProp]);
|
|
8040
|
+
|
|
7975
8041
|
var handleCreateNote = function handleCreateNote() {
|
|
7976
8042
|
try {
|
|
7977
8043
|
return Promise.resolve(_catch(function () {
|
|
@@ -7982,7 +8048,21 @@ var DialogNodes = function DialogNodes(props) {
|
|
|
7982
8048
|
Text: inputValue
|
|
7983
8049
|
}, props.sessionResultId, props.sessionId)).then(function (_createConferenceSing) {
|
|
7984
8050
|
_createConferenceSing;
|
|
7985
|
-
return Promise.resolve(setInputValue("")).then(function () {
|
|
8051
|
+
return Promise.resolve(setInputValue("")).then(function () {
|
|
8052
|
+
if (localStorage.getItem('activeTab') != null) {
|
|
8053
|
+
var _activeTab3 = JSON.parse(localStorage.getItem('activeTab') || '{}');
|
|
8054
|
+
|
|
8055
|
+
var indexTab = _activeTab3 === null || _activeTab3 === void 0 ? void 0 : _activeTab3.findIndex(function (item) {
|
|
8056
|
+
return item.sessionId == props.sessionId && item.isTeacher == isTeacher;
|
|
8057
|
+
});
|
|
8058
|
+
|
|
8059
|
+
if (indexTab != -1) {
|
|
8060
|
+
_activeTab3[indexTab].content = "";
|
|
8061
|
+
}
|
|
8062
|
+
|
|
8063
|
+
localStorage.setItem('activeTab', JSON.stringify(_activeTab3));
|
|
8064
|
+
}
|
|
8065
|
+
});
|
|
7986
8066
|
});
|
|
7987
8067
|
}, function (err) {
|
|
7988
8068
|
dispatch(marioCore.setAlert({
|