mario-teacher-student-client 1.6.8 → 1.7.2
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/MarioFramework.TeacherStudentClient/ClientApp/src/components/Button/AddButton.d.ts +8 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/components/Button/ChipButton.d.ts +8 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/components/Button/ChipImage.d.ts +6 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/components/Button/NodeDraggable.d.ts +3 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/components/Header/HeaderComponent.d.ts +7 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/components/Input/TextFieldComponent.d.ts +3 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/components/QuestionTypes/EmotionComponent.d.ts +10 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/components/QuestionTypes/LearningStrategyComponent.d.ts +7 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/components/QuestionTypes/QuestionComponent.d.ts +14 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/components/QuestionTypes/SliderComponent.d.ts +10 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/components/Tabs/CustomTab.d.ts +3 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/components/Tabs/CustomTabNote.d.ts +3 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/components/layouts/HeaderSideBar.d.ts +7 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/components/selector/StudentSelector.d.ts +3 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/ConductOneToOne/components/ConductTop/ConductItem.d.ts +7 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/ConductOneToOne/components/ConductTop/ConductTop.d.ts +7 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/ConductOneToOne/components/Note/Note.d.ts +6 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/ConductOneToOne/components/Note/PrivateNote.d.ts +3 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/ConductOneToOne/components/Note/SessionResultNote.d.ts +3 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/ConductOneToOne/components/QuestionConduct.d.ts +8 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/ConductOneToOne/constant/types.d.ts +34 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/ConductOneToOne/hooks/useConductOne.d.ts +12 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/ConductOneToOne/views/ConductIndex.d.ts +3 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/Home/views/TeacherHomePage.d.ts +3 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/MyOneToOne/components/BookSession.d.ts +3 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/MyOneToOne/components/Completed.d.ts +3 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/MyOneToOne/components/DialogRequestOneToOne.d.ts +3 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/MyOneToOne/components/GoogleCalendar.d.ts +17 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/MyOneToOne/components/Loading.d.ts +3 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/MyOneToOne/components/UpComing.d.ts +3 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/MyOneToOne/components/dialog/DialogNodes.d.ts +3 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/MyOneToOne/components/dialog/DialogRequestOneToOne.d.ts +7 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/MyOneToOne/components/tab/Me.d.ts +3 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/MyOneToOne/components/tab/Student.d.ts +3 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/MyOneToOne/constants/types.d.ts +43 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/MyOneToOne/hooks/useAsync.d.ts +7 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/MyOneToOne/hooks/useSessionCompleted.d.ts +7 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/MyOneToOne/hooks/useUpComing.d.ts +11 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/containers/MyOneToOne/views/MyOneToOne.d.ts +3 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/index.d.ts +5 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/index.test.d.ts +1 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/layouts/MainLayout.d.ts +3 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/services/ConductOneToOne.d.ts +5 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/services/OneToOne.d.ts +6 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/services/SimpleProfile.d.ts +1 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/utils/CountMinutesUTC.d.ts +1 -0
- package/dist/MarioFramework.TeacherStudentClient/ClientApp/src/utils/constants.d.ts +9 -0
- package/dist/containers/Home/components/CurrentFullCalendar.d.ts +5 -1
- package/dist/containers/Home/views/TeacherHomePage.d.ts +3 -0
- package/dist/containers/MyConferences/components/dialog/StudentDetail.d.ts +3 -0
- package/dist/containers/MyOneToOne/components/DialogRequestOneToOne.d.ts +3 -0
- package/dist/containers/MyOneToOne/components/dialog/DialogRequestOneToOne.d.ts +1 -1
- package/dist/containers/MyOneToOne/components/dialog/StudentDetail.d.ts +4 -0
- package/dist/containers/MyOneToOne/components/tab/Me.d.ts +3 -0
- package/dist/containers/MyOneToOne/components/tab/Student.d.ts +3 -0
- package/dist/containers/MyStudent/components/ChangePassword.d.ts +3 -0
- package/dist/containers/MyStudent/hooks/useChangePassword.d.ts +4 -0
- package/dist/containers/MyStudent/hooks/useLearningPlan.d.ts +4 -0
- package/dist/containers/StageDebug/hooks/useStageDebug.d.ts +4 -0
- package/dist/containers/StageDebug/views/StageDebugPage.d.ts +3 -0
- package/dist/index.css +116 -16
- package/dist/index.d.ts +3 -1
- package/dist/index.js +525 -129
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +509 -115
- package/dist/index.modern.js.map +1 -1
- package/package.json +102 -102
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { EmotionType } from "../../containers/ConductOneToOne/constant/types";
|
|
3
|
+
interface Props {
|
|
4
|
+
emotionTypeList?: EmotionType[];
|
|
5
|
+
onChangeSlider?: Function;
|
|
6
|
+
questionId: number;
|
|
7
|
+
valueText?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const EmotionComponent: FC<Props>;
|
|
10
|
+
export default EmotionComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { LearningStrategyType } from "../../containers/ConductOneToOne/constant/types";
|
|
3
|
+
interface Props {
|
|
4
|
+
listLearningStrategory: LearningStrategyType[];
|
|
5
|
+
}
|
|
6
|
+
declare const LearningStrategyComponent: FC<Props>;
|
|
7
|
+
export default LearningStrategyComponent;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { QuestionType, EmotionType } from "../../containers/ConductOneToOne/constant/types";
|
|
3
|
+
interface Props {
|
|
4
|
+
questionItemName: string;
|
|
5
|
+
minText?: string;
|
|
6
|
+
maxText?: string;
|
|
7
|
+
questionTypeId: QuestionType;
|
|
8
|
+
emotionTypeList?: EmotionType[];
|
|
9
|
+
onChangeSlider?: (questionId: number, value: string) => void;
|
|
10
|
+
questionId: number;
|
|
11
|
+
valueText: string;
|
|
12
|
+
}
|
|
13
|
+
declare const QuestionComponent: FC<Props>;
|
|
14
|
+
export default QuestionComponent;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
minText?: string;
|
|
4
|
+
maxText?: string;
|
|
5
|
+
questionId: number;
|
|
6
|
+
valueText: string;
|
|
7
|
+
onChangeSlider?: (questionId: number, value: string) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const SliderComponent: FC<Props>;
|
|
10
|
+
export default SliderComponent;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface ItemConduct {
|
|
2
|
+
color: string;
|
|
3
|
+
label: string;
|
|
4
|
+
backgroundColor: string;
|
|
5
|
+
}
|
|
6
|
+
export declare enum QuestionType {
|
|
7
|
+
Default = "Default",
|
|
8
|
+
SingleChoice = "SingleChoice",
|
|
9
|
+
MultipleChoice = "MultipleChoice",
|
|
10
|
+
TextInput = "TextInput",
|
|
11
|
+
Slider = "Slider",
|
|
12
|
+
ProgressBar = "ProgressBar",
|
|
13
|
+
StarRating = "StarRating",
|
|
14
|
+
TextInputWithSuggestions = "TextInputWithSuggestions",
|
|
15
|
+
Emotional = "Emotional",
|
|
16
|
+
Summarize = "Summarize",
|
|
17
|
+
Rating = "Rating",
|
|
18
|
+
LearningStrategy = "LearningStrategy"
|
|
19
|
+
}
|
|
20
|
+
export interface LearningStrategyType {
|
|
21
|
+
id?: number;
|
|
22
|
+
text: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface EmotionType {
|
|
26
|
+
id?: number;
|
|
27
|
+
text: string;
|
|
28
|
+
emotionalText: string;
|
|
29
|
+
}
|
|
30
|
+
export interface LearningStrategyCategory {
|
|
31
|
+
id?: number;
|
|
32
|
+
name: string;
|
|
33
|
+
color: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LearningStrategyType, LearningStrategyCategory } from "../constant/types";
|
|
2
|
+
declare const useConductOne: () => {
|
|
3
|
+
currentUser: any;
|
|
4
|
+
isTeacher: any;
|
|
5
|
+
isStudent: any;
|
|
6
|
+
listQuestionTeachers: any;
|
|
7
|
+
listQuestionStudents: any;
|
|
8
|
+
listLearningStrategory: LearningStrategyType[];
|
|
9
|
+
listLearningStrategoryCategory: LearningStrategyCategory[];
|
|
10
|
+
updateQuestionAnswer: (questionId: number, text: string) => void;
|
|
11
|
+
};
|
|
12
|
+
export default useConductOne;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
|
|
3
|
+
export interface GoogleCalendarEvent {
|
|
4
|
+
description: string;
|
|
5
|
+
endDate: string;
|
|
6
|
+
id: string;
|
|
7
|
+
startDate: string;
|
|
8
|
+
status: string;
|
|
9
|
+
summary: string;
|
|
10
|
+
location: string;
|
|
11
|
+
}
|
|
12
|
+
interface Props {
|
|
13
|
+
studentUserId: string;
|
|
14
|
+
date: MaterialUiPickersDate;
|
|
15
|
+
}
|
|
16
|
+
declare const GoogleCalendar: FC<Props>;
|
|
17
|
+
export default GoogleCalendar;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { MediaType } from "../../../../../../MarioFramework.Core/ClientApp/src/containers/Gallery/constants/gallery.types";
|
|
2
|
+
export interface SESSION_TYPE {
|
|
3
|
+
id: string;
|
|
4
|
+
studentResultId: number;
|
|
5
|
+
teacherResultId: number;
|
|
6
|
+
studentProfile: STUDENT_PROFILE;
|
|
7
|
+
startTime: string;
|
|
8
|
+
minutes?: number;
|
|
9
|
+
isDoing?: boolean;
|
|
10
|
+
isDone?: boolean;
|
|
11
|
+
isCreatedByTeacher?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface STUDENT_PROFILE {
|
|
14
|
+
id: number;
|
|
15
|
+
userId: string;
|
|
16
|
+
name: string;
|
|
17
|
+
avatar: string;
|
|
18
|
+
classes: string[];
|
|
19
|
+
}
|
|
20
|
+
export interface SIMPLE_DIALOG {
|
|
21
|
+
open: boolean;
|
|
22
|
+
selectedValue: string;
|
|
23
|
+
onClose: (value: string) => void;
|
|
24
|
+
setStudentId?: Function;
|
|
25
|
+
onClickStartQuestion?: Function;
|
|
26
|
+
}
|
|
27
|
+
export interface STUDENT_SELECTOR {
|
|
28
|
+
id: number;
|
|
29
|
+
fullName: string;
|
|
30
|
+
studentId: string;
|
|
31
|
+
}
|
|
32
|
+
export interface FILTER_SESSION {
|
|
33
|
+
currentPage: number;
|
|
34
|
+
pageSize: number;
|
|
35
|
+
searchString: string;
|
|
36
|
+
sortBy: string;
|
|
37
|
+
sortOrder: string;
|
|
38
|
+
name?: string;
|
|
39
|
+
queryTypes?: MediaType[];
|
|
40
|
+
startDate?: number;
|
|
41
|
+
endDate?: number;
|
|
42
|
+
isDone?: boolean;
|
|
43
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FILTER_SESSION } from "../constants/types";
|
|
3
|
+
declare const useUpComing: () => {
|
|
4
|
+
studentData: any;
|
|
5
|
+
sessionData: any;
|
|
6
|
+
setFilters: import("react").Dispatch<import("react").SetStateAction<FILTER_SESSION>>;
|
|
7
|
+
changeFilters: (updatedFilters: any) => void;
|
|
8
|
+
filters: FILTER_SESSION;
|
|
9
|
+
changRouteQuestion: (studentId: number) => Promise<void>;
|
|
10
|
+
};
|
|
11
|
+
export default useUpComing;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import MainLayout from "./layouts/MainLayout";
|
|
2
|
+
import TeacherHomePage from "./containers/Home/views/TeacherHomePage";
|
|
3
|
+
import MyOneToOne from "./containers/MyOneToOne/views/MyOneToOne";
|
|
4
|
+
import ConductIndex from "./containers/ConductOneToOne/views/ConductIndex";
|
|
5
|
+
export { MainLayout, TeacherHomePage, MyOneToOne, ConductIndex };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Filter } from "mario-core";
|
|
2
|
+
export declare const getQuestionTeacherDefault: (sessionId: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
3
|
+
export declare const getLearningStrategory: (filter: Filter) => Promise<import("axios").AxiosResponse<any>>;
|
|
4
|
+
export declare const getLearningStrategoryCategory: () => Promise<import("axios").AxiosResponse<any>>;
|
|
5
|
+
export declare const updateItemQuestionAnswer: (body: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GoogleCalendarEvent } from "../containers/MyOneToOne/components/GoogleCalendar";
|
|
2
|
+
export declare const getSessionOneToOne: (filter: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
3
|
+
export declare const getStudent: () => Promise<import("axios").AxiosResponse<any>>;
|
|
4
|
+
export declare const createSession: (data: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
5
|
+
export declare const getListEventTeacher: (startDate: any) => Promise<import("axios").AxiosResponse<GoogleCalendarEvent[]>>;
|
|
6
|
+
export declare const startSession: (studentId?: number | undefined) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getStudentSimpleProfile: () => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const countMinutesUTC: (startTime: string) => number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const DATE_FORMAT = "yyyy-MM-dd";
|
|
2
|
+
export declare const DATE_MIN_VALUE = "0001-01-01T00:00:00";
|
|
3
|
+
export declare const CONFERENCE_RUBRIC_TYPES: {
|
|
4
|
+
Default: string;
|
|
5
|
+
Balanced: string;
|
|
6
|
+
GoalProgress: string;
|
|
7
|
+
HabitsAttitudesTowardsLearning: string;
|
|
8
|
+
Custom: string;
|
|
9
|
+
};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
interface myProp {
|
|
3
|
+
eventList: any[];
|
|
4
|
+
isTeacher: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const CurrentFullCalendar: (props: myProp) => JSX.Element;
|
|
3
7
|
export default CurrentFullCalendar;
|
|
@@ -5,5 +5,5 @@ interface Props {
|
|
|
5
5
|
onClickStartQuestion?: Function;
|
|
6
6
|
handleClose?: any;
|
|
7
7
|
}
|
|
8
|
-
declare const DialogRequestOneToOne: ({ setStudentId, onClickStartQuestion, handleClose, studentId
|
|
8
|
+
declare const DialogRequestOneToOne: ({ setStudentId, onClickStartQuestion, handleClose, studentId }: Props) => JSX.Element;
|
|
9
9
|
export default DialogRequestOneToOne;
|