mario-teacher-student-client 3.0.1-admin → 3.0.3-admin
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/Button/SwitchComponent.d.ts +9 -0
- package/dist/components/Tabs/CustomTabNote.d.ts +3 -0
- package/dist/containers/ConductSurvey/components/ConductTop/ConductTop.d.ts +17 -0
- package/dist/containers/ConductSurvey/hooks/useConductOne.d.ts +21 -0
- package/dist/containers/ConductSurvey/hooks/useCountDown.d.ts +8 -0
- package/dist/containers/ConductSurvey/hooks/useIsMounted.d.ts +2 -0
- package/dist/containers/ConductSurvey/views/SessionResultComponent.d.ts +3 -0
- package/dist/containers/ExternalSurvey/components/IBLearnerComponent.d.ts +12 -0
- package/dist/containers/ExternalSurvey/hooks/useConductSurvey.d.ts +21 -0
- package/dist/containers/GoalPage/apiClient/apiGoals.d.ts +6 -0
- package/dist/containers/GoalPage/components/CardGoalItem.d.ts +3 -0
- package/dist/containers/GoalPage/components/CardItem/CardGoalItem.d.ts +4 -0
- package/dist/containers/GoalPage/components/CardItem/StatusTargetComponent.d.ts +4 -0
- package/dist/containers/GoalPage/components/CardItem/TargetItem.d.ts +4 -0
- package/dist/containers/GoalPage/components/CreateGoalModel.d.ts +4 -0
- package/dist/containers/GoalPage/components/CustomInputDatePicker.d.ts +4 -0
- package/dist/containers/GoalPage/components/FilterGoalPage.d.ts +3 -0
- package/dist/containers/GoalPage/components/Steps/BaseLine.d.ts +4 -0
- package/dist/containers/GoalPage/components/Steps/ChooseArea.d.ts +4 -0
- package/dist/containers/GoalPage/components/Steps/DetailFormCreate.d.ts +4 -0
- package/dist/containers/GoalPage/components/Steps/ModelPickTarget.d.ts +4 -0
- package/dist/containers/GoalPage/components/Steps/ModelSelectCategory.d.ts +4 -0
- package/dist/containers/GoalPage/constants/constants.d.ts +205 -0
- package/dist/containers/GoalPage/hook/useGoals.d.ts +19 -0
- package/dist/containers/GoalPage/services/goalService.d.ts +3 -0
- package/dist/containers/GoalPage/styles/makeStyles.d.ts +1 -0
- package/dist/containers/GoalPage/types/types.d.ts +71 -0
- package/dist/containers/GoalPage/views/MyGoals.d.ts +3 -0
- package/dist/containers/Home/components/mutipleSelectBox/mutipleSelectBox.d.ts +8 -0
- package/dist/containers/LearningStrategies/hook/useEditaLearningStrategies.d.ts +5 -0
- package/dist/containers/MyConferences/components/Tabs/CustomTabNote.d.ts +3 -0
- package/dist/containers/MyConferences/components/dialog/DialogNodes.d.ts +3 -0
- package/dist/containers/MyOneToOne/components/dialog/DialogNodes.d.ts +3 -0
- package/dist/containers/MyStudent/components/ClassReflectionTable.d.ts +3 -0
- package/dist/containers/MyStudent/components/NewOverview/Chat/ApiClient/{conference.d.ts → Conference.d.ts} +0 -0
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/hooks/useChartConference.d.ts +19 -0
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/services/ConferenceChart.d.ts +1 -0
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/view/ConferenceChart.d.ts +6 -0
- package/dist/containers/MySurvey/styles/makeStyles.d.ts +2 -0
- package/dist/containers/MySurvey/views/MySurvey.d.ts +3 -0
- package/dist/containers/ScaffoldingExample/components/OneToOne.d.ts +3 -0
- package/dist/containers/ScaffoldingExample/components/PicChat.d.ts +2 -0
- package/dist/containers/ScaffoldingExample/components/RightPicChatScreenFour.d.ts +8 -0
- package/dist/containers/ScaffoldingExample/components/RightPicChatScreenOne.d.ts +8 -0
- package/dist/containers/ScaffoldingExample/components/RightPicChatScreenThree.d.ts +8 -0
- package/dist/containers/ScaffoldingExample/components/RightPicChatScreenTwo.d.ts +8 -0
- package/dist/containers/ScaffoldingExample/components/ScaffoldingFloatTab/MineNotes/views/ScaffoldingNote.d.ts +10 -0
- package/dist/containers/ScaffoldingExample/components/ScreenTab.d.ts +3 -0
- package/dist/containers/ScaffoldingExample/components/SliderRange.d.ts +2 -0
- package/dist/containers/ScaffoldingExample/components/TeacherView/PrivateNotes/view/PrivateNote.d.ts +3 -0
- package/dist/containers/ScaffoldingExample/components/TeacherView/StudentNotes/view/StudentNote.d.ts +3 -0
- package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/hooks/useTeacherNotes.d.ts +23 -0
- package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/services/index.d.ts +12 -0
- package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/views/ScaffoldingFirstScreen.d.ts +12 -0
- package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/views/ScaffoldingQuestionAndAnswer.d.ts +12 -0
- package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/views/ScaffoldingSecondScreen.d.ts +3 -0
- package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/views/TeacherScreen.d.ts +7 -0
- package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherTab.d.ts +8 -0
- package/dist/containers/SettingPageV1/contants/contants.d.ts +19 -0
- package/dist/containers/SettingPageV1/contants/type.d.ts +17 -0
- package/dist/containers/Surveys/apiClient/survey.d.ts +2 -0
- package/dist/containers/Surveys/components/ChartOverview/BarChart.d.ts +9 -0
- package/dist/containers/Surveys/components/SurveyDetail.d.ts +3 -0
- package/dist/containers/Surveys/components/SurveyStudentCompleted.d.ts +3 -0
- package/dist/containers/Surveys/components/SurveyStudentMissed.d.ts +3 -0
- package/dist/containers/Surveys/components/SurveyStudentPending.d.ts +3 -0
- package/dist/containers/Surveys/hook/useActionNeededSurvey.d.ts +9 -0
- package/dist/containers/Surveys/hook/useAllSurvey.d.ts +10 -0
- package/dist/containers/Surveys/hook/usePendingSurvey.d.ts +10 -0
- package/dist/containers/Surveys/hook/useRepliedSurvey.d.ts +9 -0
- package/dist/containers/Surveys/views/ViewSurveyStudent.d.ts +3 -0
- package/dist/hooks/useUploadFile.d.ts +4 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +80 -146
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +81 -146
- package/dist/index.modern.js.map +1 -1
- package/dist/services/File.d.ts +1 -0
- package/dist/utils/function.d.ts +1 -0
- package/package.json +107 -107
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface Props {
|
|
3
|
+
id: number;
|
|
4
|
+
content?: string;
|
|
5
|
+
date?: string;
|
|
6
|
+
onRemoveNote: Function;
|
|
7
|
+
onUpdateNote: Function;
|
|
8
|
+
}
|
|
9
|
+
declare const ScaffoldingQuestionAndAnswer: ({ id, content, date, onRemoveNote, onUpdateNote, }: Props) => JSX.Element;
|
|
10
|
+
export default ScaffoldingQuestionAndAnswer;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare type Filter = {
|
|
2
|
+
category?: string;
|
|
3
|
+
level?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const useTeacherNotes: (sessionId: number, sessionResultId: number) => {
|
|
6
|
+
screenIndex: number;
|
|
7
|
+
changeScreen: (index: number) => void;
|
|
8
|
+
questionList: never[];
|
|
9
|
+
categoryList: never[];
|
|
10
|
+
levelList: never[];
|
|
11
|
+
randomQuestion: never[];
|
|
12
|
+
note: string;
|
|
13
|
+
handleChangeNote: (e?: any) => void;
|
|
14
|
+
handleSelectQuestion: (question: any) => Promise<void>;
|
|
15
|
+
changeFilters: (updateFilters: any) => void;
|
|
16
|
+
filters: Filter;
|
|
17
|
+
teacherNotesData: never[];
|
|
18
|
+
handleSelectSuggester: (question: any) => Promise<void>;
|
|
19
|
+
handleRemoveQuestion: (noteId: number) => Promise<void>;
|
|
20
|
+
handleSubmitNote: (noteId: number, answer: string) => Promise<void>;
|
|
21
|
+
handleRemoveQuestionAnswer: (noteId: number) => Promise<void>;
|
|
22
|
+
};
|
|
23
|
+
export default useTeacherNotes;
|
package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/services/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare type Filter = {
|
|
2
|
+
category?: string;
|
|
3
|
+
level?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const getAllSelectQuestion: (dispatch: any, filters: Filter) => Promise<any>;
|
|
6
|
+
export declare const getListCategories: (dispatch: any) => Promise<any>;
|
|
7
|
+
export declare const getListLevel: (dispatch: any) => Promise<any>;
|
|
8
|
+
export declare const getAllNote: (dispatch: any, sessionId: number) => Promise<any>;
|
|
9
|
+
export declare const submitNote: (dispatch: any, sessionId: number, text: string) => Promise<any>;
|
|
10
|
+
export declare const updateNote: (dispatch: any, sessionNoteId: number, text: string) => Promise<any>;
|
|
11
|
+
export declare const removeNote: (dispatch: any, noteId: number) => Promise<any>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type PropsType = {
|
|
3
|
+
changeScreen: Function;
|
|
4
|
+
onPressSuggester: Function;
|
|
5
|
+
onUpdateNote: Function;
|
|
6
|
+
randomQuestion: any[];
|
|
7
|
+
teacherNotesData: any[];
|
|
8
|
+
onRemoveQuestion: Function;
|
|
9
|
+
onRemoveQuestionAnswer: Function;
|
|
10
|
+
};
|
|
11
|
+
declare const ScaffoldingFirstScreen: (props: PropsType) => JSX.Element;
|
|
12
|
+
export default ScaffoldingFirstScreen;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface Props {
|
|
3
|
+
id: number;
|
|
4
|
+
content?: string;
|
|
5
|
+
answer?: string;
|
|
6
|
+
date?: string;
|
|
7
|
+
onRemoveQuestion: Function;
|
|
8
|
+
onRemoveQuestionAnswer: Function;
|
|
9
|
+
onUpdateNote: Function;
|
|
10
|
+
}
|
|
11
|
+
declare const ScaffoldingQuestionAndAnswer: ({ id, content, answer, date, onRemoveQuestion, onUpdateNote, onRemoveQuestionAnswer }: Props) => JSX.Element;
|
|
12
|
+
export default ScaffoldingQuestionAndAnswer;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const defaultFontSmall = 12;
|
|
2
|
+
export declare const defaultFontLarge = 20;
|
|
3
|
+
export declare const initialSetting: {
|
|
4
|
+
actionPointSchedule: boolean;
|
|
5
|
+
completeClassReflection: boolean;
|
|
6
|
+
completeConference: boolean;
|
|
7
|
+
completeOneToOne: boolean;
|
|
8
|
+
emailActionPointSchedule: boolean;
|
|
9
|
+
emailCompleteClassReflection: boolean;
|
|
10
|
+
emailCompleteConference: boolean;
|
|
11
|
+
emailCompleteOneToOne: boolean;
|
|
12
|
+
emailScheduleConference: boolean;
|
|
13
|
+
emailScheduleOneToOne: boolean;
|
|
14
|
+
isTurnOnAllEmail: boolean;
|
|
15
|
+
isTurnOnAllNotification: boolean;
|
|
16
|
+
scheduleConference: boolean;
|
|
17
|
+
scheduleOneToOne: boolean;
|
|
18
|
+
id: number;
|
|
19
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface ISetting {
|
|
2
|
+
actionPointSchedule: boolean;
|
|
3
|
+
completeClassReflection: boolean;
|
|
4
|
+
completeConference: boolean;
|
|
5
|
+
completeOneToOne: boolean;
|
|
6
|
+
emailActionPointSchedule: boolean;
|
|
7
|
+
emailCompleteClassReflection: boolean;
|
|
8
|
+
emailCompleteConference: boolean;
|
|
9
|
+
emailCompleteOneToOne: boolean;
|
|
10
|
+
emailScheduleConference: boolean;
|
|
11
|
+
emailScheduleOneToOne: boolean;
|
|
12
|
+
isTurnOnAllEmail: boolean;
|
|
13
|
+
isTurnOnAllNotification: boolean;
|
|
14
|
+
scheduleConference: boolean;
|
|
15
|
+
scheduleOneToOne: boolean;
|
|
16
|
+
id: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FILTER_SURVEY } from "../constants/types";
|
|
3
|
+
declare const useActionNeededSurvey: () => {
|
|
4
|
+
listActionNeeded: any;
|
|
5
|
+
setListActionNeeded: import("react").Dispatch<any>;
|
|
6
|
+
changeFilters: (updatedFilters: any) => void;
|
|
7
|
+
filters: FILTER_SURVEY;
|
|
8
|
+
};
|
|
9
|
+
export default useActionNeededSurvey;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FILTER_SURVEY } from "../constants/types";
|
|
3
|
+
declare const useAllSurvey: () => {
|
|
4
|
+
changeFilters: (updatedFilters: any) => void;
|
|
5
|
+
filters: FILTER_SURVEY;
|
|
6
|
+
listAllSurvey: any;
|
|
7
|
+
isTeacher: any;
|
|
8
|
+
setListAllSurvey: import("react").Dispatch<any>;
|
|
9
|
+
};
|
|
10
|
+
export default useAllSurvey;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DATA_STUDENT_SURVEY, FILTER_SURVEY } from "../constants/types";
|
|
3
|
+
declare const usePendingSurvey: () => {
|
|
4
|
+
listPendingSurvey: DATA_STUDENT_SURVEY | undefined;
|
|
5
|
+
setListPendingSurvey: import("react").Dispatch<import("react").SetStateAction<DATA_STUDENT_SURVEY | undefined>>;
|
|
6
|
+
filters: FILTER_SURVEY;
|
|
7
|
+
inputSearch: import("react").MutableRefObject<any>;
|
|
8
|
+
handleChangeInputSearch: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
9
|
+
};
|
|
10
|
+
export default usePendingSurvey;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DATA_STUDENT_SURVEY, FILTER_SURVEY } from "../constants/types";
|
|
3
|
+
declare const useRepliedSurvey: () => {
|
|
4
|
+
listRepliedSurvey: DATA_STUDENT_SURVEY | undefined;
|
|
5
|
+
setListRepliedSurvey: import("react").Dispatch<import("react").SetStateAction<DATA_STUDENT_SURVEY | undefined>>;
|
|
6
|
+
changeFilters: (updatedFilters: any) => void;
|
|
7
|
+
filters: FILTER_SURVEY;
|
|
8
|
+
};
|
|
9
|
+
export default useRepliedSurvey;
|
package/dist/index.css
CHANGED
|
@@ -5335,7 +5335,7 @@ h2._2HVLw {
|
|
|
5335
5335
|
position: absolute;
|
|
5336
5336
|
color: rgba(0, 0, 0, 0.54);
|
|
5337
5337
|
font-size: 1rem;
|
|
5338
|
-
font-family: "Roboto", "Helvetica", "Arial",
|
|
5338
|
+
font-family: "Roboto", "Helvetica", "Arial",
|
|
5339
5339
|
sans-serif;
|
|
5340
5340
|
letter-spacing: 0.00938em;
|
|
5341
5341
|
background: #ffffff; }
|
|
5342
5342
|
._3TPGz ._1n-GQ ._1IiKL ._1k0E0 ._10gXX ._1Rtg2 {
|
package/dist/index.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ import NewLearningPlan from "./containers/MyStudent/components/NewLearningPlan";
|
|
|
22
22
|
import UpdateStudentProfile from "./containers/MyStudent/components/UpdateStudentProfile";
|
|
23
23
|
import CreateStudent from "./containers/MyStudent/components/CreateStudent";
|
|
24
24
|
import ChangePassword from "./containers/MyProfile/views/ChangePassword";
|
|
25
|
-
import StageDebugPage from "./containers/StageDebug/views/StageDebugPage";
|
|
26
25
|
import LearningPlan from "./containers/LearningPlan/views/LearningPlan";
|
|
27
26
|
import PersonalLearningGoal from "./containers/PersonalLearningPlan/components/PersonalLearningGoal/PersonalLearningGoal";
|
|
28
27
|
import ListPersonalinterrest from "./containers/PersonalLearningPlan/PersonalInterests/components/ListPersonalInterrest";
|
|
@@ -67,4 +66,4 @@ import EduTeacherViewDetail from "./containers/MyStudentEduTeacher/views/EduTeac
|
|
|
67
66
|
import TeachingStrategiesAdd from "./containers/ThingTeachersCanHelp/components/TeachingStrategiesAdd";
|
|
68
67
|
import ExternalSurvey from "./containers/ExternalSurvey/views/ExternalSurvey";
|
|
69
68
|
import SurveyOverview from "./containers/Surveys/views/SurveyOverview";
|
|
70
|
-
export { MainLayout, HomePage, MyOneToOne, MyConferences, ConductIndex, SurveyIndex, SurveyResult, MyStudent, SessionResultComponent, BookSession, SessionDetail, StudentDetail, StartReflection, ResultReflection, StudentReflection, ConferenceRubric, ResultConferenceRubric, BookSessionConferences, MyProfile, NewLearningPlan, UpdateStudentProfile, CreateStudent, ChangePassword,
|
|
69
|
+
export { MainLayout, HomePage, MyOneToOne, MyConferences, ConductIndex, SurveyIndex, SurveyResult, MyStudent, SessionResultComponent, BookSession, SessionDetail, StudentDetail, StartReflection, ResultReflection, StudentReflection, ConferenceRubric, ResultConferenceRubric, BookSessionConferences, MyProfile, NewLearningPlan, UpdateStudentProfile, CreateStudent, ChangePassword, LearningPlan, PersonalLearningGoal, ListPersonalinterrest, AccomondationList, AboutMyLearningList, ThinkTeacherCanHelpList, DetailStrengthsAndChallenges, UiCompletedOneToOne, Note, AddNote, EditNote, ViewItemNote, SettingPage, FriendCircleLearning, ListFriendCircle, ActivityCircleLearning, ListActivityLearning, LearningStrategies, LearningStrategiesSave, ActionPoint, GoalList, GoalDetail, NewGoal, MyClassReflection, AddClassReflection, PrivacyPolicy, PlpPage, MyClassSchedule, AddClassSchedule, TrainingLink, ExternalReflection, TeacherClassReflection, ThankYouCard, ListSurveys, SurveyDetail, CreateSurvey, PreviewSurvey, SurveyStudentList, ThankYouError, ParentPage, ListStudent, EduTeacherViewDetail, TeachingStrategiesAdd, ExternalSurvey, SurveyOverview };
|
package/dist/index.js
CHANGED
|
@@ -12921,6 +12921,7 @@ var ConductIndex = function ConductIndex() {
|
|
|
12921
12921
|
listQuestionStudents = _useConductOne.listQuestionStudents,
|
|
12922
12922
|
listQuestionTeachers = _useConductOne.listQuestionTeachers,
|
|
12923
12923
|
listLearningStrategory = _useConductOne.listLearningStrategory,
|
|
12924
|
+
listLearningStrategoryCategory = _useConductOne.listLearningStrategoryCategory,
|
|
12924
12925
|
updateQuestionAnswer = _useConductOne.updateQuestionAnswer,
|
|
12925
12926
|
isUnlocked = _useConductOne.isUnlocked,
|
|
12926
12927
|
setIsUnclocked = _useConductOne.setIsUnclocked,
|
|
@@ -12942,6 +12943,7 @@ var ConductIndex = function ConductIndex() {
|
|
|
12942
12943
|
isUserChangeSession = _useConductOne.isUserChangeSession,
|
|
12943
12944
|
numberOfEdit = _useConductOne.numberOfEdit,
|
|
12944
12945
|
learningSupportCategoryId = _useConductOne.learningSupportCategoryId,
|
|
12946
|
+
setLearningSupportCategoryId = _useConductOne.setLearningSupportCategoryId,
|
|
12945
12947
|
isConversation = _useConductOne.isConversation,
|
|
12946
12948
|
setConversation = _useConductOne.setConversation,
|
|
12947
12949
|
onChangeConversationSession = _useConductOne.onChangeConversationSession,
|
|
@@ -12992,6 +12994,11 @@ var ConductIndex = function ConductIndex() {
|
|
|
12992
12994
|
record = _useAudioRecorder.record,
|
|
12993
12995
|
stop = _useAudioRecorder.stop;
|
|
12994
12996
|
|
|
12997
|
+
var onChangeSessionCategory = function onChangeSessionCategory(event) {
|
|
12998
|
+
var value = event.target.value;
|
|
12999
|
+
setLearningSupportCategoryId(parseInt(value));
|
|
13000
|
+
};
|
|
13001
|
+
|
|
12995
13002
|
var onChangeAfterSession = function onChangeAfterSession(checkedAfter) {
|
|
12996
13003
|
setIsUnclocked(checkedAfter);
|
|
12997
13004
|
onChangeToogleAfterSession();
|
|
@@ -13074,6 +13081,19 @@ var ConductIndex = function ConductIndex() {
|
|
|
13074
13081
|
setOpenScaffolding(false);
|
|
13075
13082
|
};
|
|
13076
13083
|
|
|
13084
|
+
var compare = function compare(a, b) {
|
|
13085
|
+
if (a.name < b.name) {
|
|
13086
|
+
return -1;
|
|
13087
|
+
}
|
|
13088
|
+
|
|
13089
|
+
if (a.name > b.name) {
|
|
13090
|
+
return 1;
|
|
13091
|
+
}
|
|
13092
|
+
|
|
13093
|
+
return 0;
|
|
13094
|
+
};
|
|
13095
|
+
|
|
13096
|
+
var listSorted = !!listLearningStrategoryCategory && listLearningStrategoryCategory.sort(compare);
|
|
13077
13097
|
return React__default.createElement("div", {
|
|
13078
13098
|
className: styles$5["page-conduct"] + " " + styles$5[classFontSize]
|
|
13079
13099
|
}, React__default.createElement(HeaderComponent, {
|
|
@@ -13153,6 +13173,66 @@ var ConductIndex = function ConductIndex() {
|
|
|
13153
13173
|
className: styles$5["block-question"]
|
|
13154
13174
|
}, React__default.createElement("div", {
|
|
13155
13175
|
className: styles$5["title-strategories"]
|
|
13176
|
+
}, React__default.createElement("div", {
|
|
13177
|
+
className: styles$5["strategories-title"]
|
|
13178
|
+
}, React__default.createElement("h2", {
|
|
13179
|
+
className: styles$5["font-title"]
|
|
13180
|
+
}, "Session Type"))), React__default.createElement("div", {
|
|
13181
|
+
className: styles$5["block-session-type"]
|
|
13182
|
+
}, React__default.createElement("div", {
|
|
13183
|
+
className: styles$5["session-text"]
|
|
13184
|
+
}, React__default.createElement("h2", null, "What is this session type?")), React__default.createElement("div", {
|
|
13185
|
+
className: styles$5["session-select"]
|
|
13186
|
+
}, React__default.createElement(core.FormControl, {
|
|
13187
|
+
variant: "outlined",
|
|
13188
|
+
style: {
|
|
13189
|
+
minWidth: 300
|
|
13190
|
+
}
|
|
13191
|
+
}, React__default.createElement(core.InputLabel, {
|
|
13192
|
+
htmlFor: "outlined-age-native-simple"
|
|
13193
|
+
}, "Session type"), isUserChangeSession ? React__default.createElement(core.Select, {
|
|
13194
|
+
"native": true,
|
|
13195
|
+
value: learningSupportCategoryId,
|
|
13196
|
+
onChange: function onChange(event) {
|
|
13197
|
+
return onChangeSessionCategory(event);
|
|
13198
|
+
},
|
|
13199
|
+
label: "Session type",
|
|
13200
|
+
inputProps: {
|
|
13201
|
+
name: "age",
|
|
13202
|
+
id: "outlined-age-native-simple"
|
|
13203
|
+
},
|
|
13204
|
+
style: {
|
|
13205
|
+
borderRadius: "12px",
|
|
13206
|
+
overflow: "hidden"
|
|
13207
|
+
}
|
|
13208
|
+
}, React__default.createElement("option", {
|
|
13209
|
+
"aria-label": "None",
|
|
13210
|
+
value: ""
|
|
13211
|
+
}), listSorted === null || listSorted === void 0 ? void 0 : listSorted.map(function (item) {
|
|
13212
|
+
return React__default.createElement("option", {
|
|
13213
|
+
value: item.id,
|
|
13214
|
+
style: {
|
|
13215
|
+
color: "black"
|
|
13216
|
+
},
|
|
13217
|
+
key: item.id
|
|
13218
|
+
}, item.name);
|
|
13219
|
+
})) : React__default.createElement(core.Select, {
|
|
13220
|
+
"native": true,
|
|
13221
|
+
value: setLearningSupportCategoryId,
|
|
13222
|
+
label: "Session type",
|
|
13223
|
+
inputProps: {
|
|
13224
|
+
name: "age",
|
|
13225
|
+
id: "outlined-age-native-simple"
|
|
13226
|
+
},
|
|
13227
|
+
style: {
|
|
13228
|
+
borderRadius: "12px",
|
|
13229
|
+
overflow: "hidden"
|
|
13230
|
+
},
|
|
13231
|
+
disabled: true
|
|
13232
|
+
}))))), isTeacher && isConversation && React__default.createElement("div", {
|
|
13233
|
+
className: styles$5["block-question"]
|
|
13234
|
+
}, React__default.createElement("div", {
|
|
13235
|
+
className: styles$5["title-strategories"]
|
|
13156
13236
|
}, React__default.createElement("div", {
|
|
13157
13237
|
className: styles$5["strategories-image"]
|
|
13158
13238
|
}, React__default.createElement("img", {
|
|
@@ -47963,151 +48043,6 @@ var ChangePassword = function ChangePassword() {
|
|
|
47963
48043
|
});
|
|
47964
48044
|
};
|
|
47965
48045
|
|
|
47966
|
-
var useStageDebug = function useStageDebug(userId, year, month) {
|
|
47967
|
-
var dispatch = reactRedux.useDispatch();
|
|
47968
|
-
var history = reactRouterDom.useHistory();
|
|
47969
|
-
|
|
47970
|
-
var _useState = React.useState(),
|
|
47971
|
-
dataEvent = _useState[0],
|
|
47972
|
-
setDataEvent = _useState[1];
|
|
47973
|
-
|
|
47974
|
-
var getDataEvent = React.useCallback(function () {
|
|
47975
|
-
try {
|
|
47976
|
-
var _temp2 = _catch(function () {
|
|
47977
|
-
return Promise.resolve(getEventCalendar(userId, year, month)).then(function (res) {
|
|
47978
|
-
setDataEvent(res.data);
|
|
47979
|
-
});
|
|
47980
|
-
}, function (err) {
|
|
47981
|
-
var _err$response, _err$response$data;
|
|
47982
|
-
|
|
47983
|
-
dispatch(marioCore.setAlert({
|
|
47984
|
-
type: "danger",
|
|
47985
|
-
message: ((_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : _err$response$data.title) || err.message
|
|
47986
|
-
}));
|
|
47987
|
-
});
|
|
47988
|
-
|
|
47989
|
-
return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
|
|
47990
|
-
} catch (e) {
|
|
47991
|
-
return Promise.reject(e);
|
|
47992
|
-
}
|
|
47993
|
-
}, []);
|
|
47994
|
-
|
|
47995
|
-
var initPage = function initPage() {
|
|
47996
|
-
try {
|
|
47997
|
-
var _temp5 = function _temp5() {
|
|
47998
|
-
return Promise.resolve(getDataEvent()).then(function () {});
|
|
47999
|
-
};
|
|
48000
|
-
|
|
48001
|
-
var _temp6 = function () {
|
|
48002
|
-
if (!!userId) return Promise.resolve(checkAuthentication()).then(function () {});
|
|
48003
|
-
}();
|
|
48004
|
-
|
|
48005
|
-
return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(_temp5) : _temp5(_temp6));
|
|
48006
|
-
} catch (e) {
|
|
48007
|
-
return Promise.reject(e);
|
|
48008
|
-
}
|
|
48009
|
-
};
|
|
48010
|
-
|
|
48011
|
-
var checkAuthentication = function checkAuthentication() {
|
|
48012
|
-
try {
|
|
48013
|
-
var _temp8 = _catch(function () {
|
|
48014
|
-
return Promise.resolve(marioCore.firstCheckToken()).then(function (tokenStatus) {
|
|
48015
|
-
tokenStatus ? loadInfo() : resetAuth();
|
|
48016
|
-
});
|
|
48017
|
-
}, function () {
|
|
48018
|
-
resetAuth();
|
|
48019
|
-
});
|
|
48020
|
-
|
|
48021
|
-
return Promise.resolve(_temp8 && _temp8.then ? _temp8.then(function () {}) : void 0);
|
|
48022
|
-
} catch (e) {
|
|
48023
|
-
return Promise.reject(e);
|
|
48024
|
-
}
|
|
48025
|
-
};
|
|
48026
|
-
|
|
48027
|
-
var loadInfo = function loadInfo() {
|
|
48028
|
-
try {
|
|
48029
|
-
var _temp12 = _catch(function () {
|
|
48030
|
-
return Promise.resolve(marioCore.getInfo()).then(function (info) {
|
|
48031
|
-
var _info$data;
|
|
48032
|
-
|
|
48033
|
-
function _temp10() {
|
|
48034
|
-
dispatch(marioCore.setUser(userData));
|
|
48035
|
-
}
|
|
48036
|
-
|
|
48037
|
-
if (!info) {
|
|
48038
|
-
resetAuth();
|
|
48039
|
-
}
|
|
48040
|
-
|
|
48041
|
-
var roles = (_info$data = info.data) === null || _info$data === void 0 ? void 0 : _info$data.roles;
|
|
48042
|
-
var userData = info.data;
|
|
48043
|
-
var isTeacher = roles.includes("Teacher");
|
|
48044
|
-
var isStudent = roles.includes("Student");
|
|
48045
|
-
|
|
48046
|
-
var _temp9 = function () {
|
|
48047
|
-
if (isTeacher || isStudent) {
|
|
48048
|
-
return Promise.resolve(getStudentSimpleProfile()).then(function (profileRes) {
|
|
48049
|
-
var _profileRes$data7;
|
|
48050
|
-
|
|
48051
|
-
if (isStudent) {
|
|
48052
|
-
var _profileRes$data, _profileRes$data2, _profileRes$data3, _profileRes$data4, _profileRes$data5;
|
|
48053
|
-
|
|
48054
|
-
userData.studentId = (_profileRes$data = profileRes.data) === null || _profileRes$data === void 0 ? void 0 : _profileRes$data.id;
|
|
48055
|
-
userData.mainTeacherId = (_profileRes$data2 = profileRes.data) === null || _profileRes$data2 === void 0 ? void 0 : _profileRes$data2.mainTeacherId;
|
|
48056
|
-
userData.mainTeacherName = (_profileRes$data3 = profileRes.data) === null || _profileRes$data3 === void 0 ? void 0 : _profileRes$data3.mainTeacherName;
|
|
48057
|
-
userData.mainTeacherUserId = (_profileRes$data4 = profileRes.data) === null || _profileRes$data4 === void 0 ? void 0 : _profileRes$data4.mainTeacherUserId;
|
|
48058
|
-
userData.mainTeacherProfileImageFileName = (_profileRes$data5 = profileRes.data) === null || _profileRes$data5 === void 0 ? void 0 : _profileRes$data5.mainTeacherProfileImageFileName;
|
|
48059
|
-
} else {
|
|
48060
|
-
var _profileRes$data6;
|
|
48061
|
-
|
|
48062
|
-
userData.teacherId = (_profileRes$data6 = profileRes.data) === null || _profileRes$data6 === void 0 ? void 0 : _profileRes$data6.id;
|
|
48063
|
-
}
|
|
48064
|
-
|
|
48065
|
-
userData.name = (_profileRes$data7 = profileRes.data) === null || _profileRes$data7 === void 0 ? void 0 : _profileRes$data7.name;
|
|
48066
|
-
});
|
|
48067
|
-
}
|
|
48068
|
-
}();
|
|
48069
|
-
|
|
48070
|
-
return _temp9 && _temp9.then ? _temp9.then(_temp10) : _temp10(_temp9);
|
|
48071
|
-
});
|
|
48072
|
-
}, function () {
|
|
48073
|
-
resetAuth();
|
|
48074
|
-
});
|
|
48075
|
-
|
|
48076
|
-
return Promise.resolve(_temp12 && _temp12.then ? _temp12.then(function () {}) : void 0);
|
|
48077
|
-
} catch (e) {
|
|
48078
|
-
return Promise.reject(e);
|
|
48079
|
-
}
|
|
48080
|
-
};
|
|
48081
|
-
|
|
48082
|
-
var resetAuth = function resetAuth() {
|
|
48083
|
-
localStorage.removeItem(marioCore.ACCESS_TOKEN);
|
|
48084
|
-
history.push("/");
|
|
48085
|
-
};
|
|
48086
|
-
|
|
48087
|
-
React.useEffect(function () {
|
|
48088
|
-
initPage();
|
|
48089
|
-
}, []);
|
|
48090
|
-
return {
|
|
48091
|
-
dataEvent: dataEvent
|
|
48092
|
-
};
|
|
48093
|
-
};
|
|
48094
|
-
|
|
48095
|
-
var StageDebugPage = function StageDebugPage() {
|
|
48096
|
-
var currentYear = parseInt(moment().format("YYYY"));
|
|
48097
|
-
var currentMonth = parseInt(moment().format("MM"));
|
|
48098
|
-
var user = reactRedux.useSelector(function (state) {
|
|
48099
|
-
return state.common.user;
|
|
48100
|
-
});
|
|
48101
|
-
|
|
48102
|
-
var _useStageDebug = useStageDebug(user, currentYear, currentMonth),
|
|
48103
|
-
dataEvent = _useStageDebug.dataEvent;
|
|
48104
|
-
|
|
48105
|
-
return React__default.createElement(CurrentFullCalendar, {
|
|
48106
|
-
eventList: dataEvent === null || dataEvent === void 0 ? void 0 : dataEvent.calendarEvents,
|
|
48107
|
-
isTeacher: true
|
|
48108
|
-
});
|
|
48109
|
-
};
|
|
48110
|
-
|
|
48111
48046
|
var LearningPlan$1 = function LearningPlan() {
|
|
48112
48047
|
var _useState = React.useState(''),
|
|
48113
48048
|
value = _useState[0],
|
|
@@ -71736,7 +71671,6 @@ exports.ResultReflection = ResultReflection;
|
|
|
71736
71671
|
exports.SessionDetail = SessionDetail;
|
|
71737
71672
|
exports.SessionResultComponent = SessionResultComponent;
|
|
71738
71673
|
exports.SettingPage = SettingPage;
|
|
71739
|
-
exports.StageDebugPage = StageDebugPage;
|
|
71740
71674
|
exports.StartReflection = StartReflection;
|
|
71741
71675
|
exports.StudentDetail = StudentDetail;
|
|
71742
71676
|
exports.StudentReflection = StudentReflection;
|