mario-teacher-student-client 1.7.3 → 1.7.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/index.d.ts
CHANGED
|
@@ -19,4 +19,5 @@ import UpdateStudentProfile from "./containers/MyStudent/components/UpdateStuden
|
|
|
19
19
|
import CreateStudent from "./containers/MyStudent/components/CreateStudent";
|
|
20
20
|
import ChangePassword from "./containers/MyProfile/views/ChangePassword";
|
|
21
21
|
import StageDebugPage from "./containers/StageDebug/views/StageDebugPage";
|
|
22
|
-
|
|
22
|
+
import NotificarionsPage from "./containers/SettingsPage/components/NotificationsPage";
|
|
23
|
+
export { MainLayout, HomePage, MyOneToOne, MyConferences, ConductIndex, MyStudent, SessionResultComponent, BookSession, StudentDetail, StartReflection, ResultReflection, StudentReflection, ConferenceRubric, ResultConferenceRubric, BookSessionConferences, MyProfile, NewLearningPlan, UpdateStudentProfile, CreateStudent, ChangePassword, StageDebugPage, NotificarionsPage };
|
package/dist/index.js
CHANGED
|
@@ -70,6 +70,7 @@ require('react-datepicker/dist/react-datepicker.css');
|
|
|
70
70
|
var DatePicker = _interopDefault(require('react-datepicker'));
|
|
71
71
|
var jsPDF = _interopDefault(require('jspdf'));
|
|
72
72
|
var SaveIcon = _interopDefault(require('@material-ui/icons/Save'));
|
|
73
|
+
var Button = _interopDefault(require('@material-ui/core/Button'));
|
|
73
74
|
|
|
74
75
|
// A type of promise-like that resolves synchronously and supports only one observer
|
|
75
76
|
|
|
@@ -904,7 +905,7 @@ var CurrentFullCalendar = function CurrentFullCalendar(props) {
|
|
|
904
905
|
isTeacher = props.isTeacher;
|
|
905
906
|
var history = reactRouterDom.useHistory();
|
|
906
907
|
var map = eventList === null || eventList === void 0 ? void 0 : eventList.map(function (event) {
|
|
907
|
-
var _event$sessionResult, _event$sessionResult2;
|
|
908
|
+
var _event$sessionResult, _event$sessionResult2, _event$conferenceAnsw;
|
|
908
909
|
|
|
909
910
|
return {
|
|
910
911
|
id: event.location,
|
|
@@ -917,7 +918,9 @@ var CurrentFullCalendar = function CurrentFullCalendar(props) {
|
|
|
917
918
|
studentResultId: (_event$sessionResult2 = event.sessionResult) === null || _event$sessionResult2 === void 0 ? void 0 : _event$sessionResult2.find(function (r) {
|
|
918
919
|
return !r.isTeacherResult;
|
|
919
920
|
}).id,
|
|
920
|
-
sessionResult: event.sessionId
|
|
921
|
+
sessionResult: event.sessionId,
|
|
922
|
+
studentId: (_event$conferenceAnsw = event.conferenceAnswers) === null || _event$conferenceAnsw === void 0 ? void 0 : _event$conferenceAnsw.studentId,
|
|
923
|
+
conferenceId: event.conferenceId
|
|
921
924
|
}
|
|
922
925
|
};
|
|
923
926
|
});
|
|
@@ -926,12 +929,18 @@ var CurrentFullCalendar = function CurrentFullCalendar(props) {
|
|
|
926
929
|
var _event$event$_def$ext = event.event._def.extendedProps,
|
|
927
930
|
teacherResultId = _event$event$_def$ext.teacherResultId,
|
|
928
931
|
studentResultId = _event$event$_def$ext.studentResultId,
|
|
929
|
-
sessionResult = _event$event$_def$ext.sessionResult
|
|
932
|
+
sessionResult = _event$event$_def$ext.sessionResult,
|
|
933
|
+
studentId = _event$event$_def$ext.studentId,
|
|
934
|
+
conferenceId = _event$event$_def$ext.conferenceId;
|
|
930
935
|
|
|
931
936
|
if (!!teacherResultId && isTeacher) {
|
|
932
|
-
history.push("start-question/" + sessionResult + "/" + teacherResultId);
|
|
937
|
+
history.push("/start-question/" + sessionResult + "/" + teacherResultId);
|
|
933
938
|
} else if (!!studentResultId && !isTeacher) {
|
|
934
|
-
history.push("start-question/" + sessionResult + "/" + studentResultId);
|
|
939
|
+
history.push("/start-question/" + sessionResult + "/" + studentResultId);
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
if (!!studentId && !!conferenceId) {
|
|
943
|
+
history.push("/start-conference/" + studentId + "/" + conferenceId + "/conferenceRubric");
|
|
935
944
|
}
|
|
936
945
|
};
|
|
937
946
|
|
|
@@ -5773,7 +5782,9 @@ var LearningStrategyComponent = function LearningStrategyComponent(_ref) {
|
|
|
5773
5782
|
setAnswerLearningStrategory = _useState[1];
|
|
5774
5783
|
|
|
5775
5784
|
var onChangeLearingStategory = function onChangeLearingStategory(answerId) {
|
|
5776
|
-
var arrNew =
|
|
5785
|
+
var arrNew = answerLearningStrategy.filter(function (item) {
|
|
5786
|
+
return item != '';
|
|
5787
|
+
});
|
|
5777
5788
|
var newLearningStategory = [];
|
|
5778
5789
|
|
|
5779
5790
|
if (arrNew.includes(answerId)) {
|
|
@@ -5785,12 +5796,12 @@ var LearningStrategyComponent = function LearningStrategyComponent(_ref) {
|
|
|
5785
5796
|
}
|
|
5786
5797
|
|
|
5787
5798
|
setAnswerLearningStrategory(newLearningStategory);
|
|
5788
|
-
var textValue =
|
|
5799
|
+
var textValue = newLearningStategory.join(";");
|
|
5789
5800
|
onChangeQuestionAnswer === null || onChangeQuestionAnswer === void 0 ? void 0 : onChangeQuestionAnswer(questionId, textValue);
|
|
5790
5801
|
};
|
|
5791
5802
|
|
|
5792
5803
|
React.useEffect(function () {
|
|
5793
|
-
var newInitAnswers = (valueText === null || valueText === void 0 ? void 0 : valueText.split("
|
|
5804
|
+
var newInitAnswers = (valueText === null || valueText === void 0 ? void 0 : valueText.split(";")) || [];
|
|
5794
5805
|
setAnswerLearningStrategory(newInitAnswers);
|
|
5795
5806
|
}, [valueText]);
|
|
5796
5807
|
return React__default.createElement("div", {
|
|
@@ -8020,7 +8031,7 @@ var ConductIndex = function ConductIndex() {
|
|
|
8020
8031
|
}, React__default.createElement(core.DialogTitle, {
|
|
8021
8032
|
id: "alert-dialog-title",
|
|
8022
8033
|
className: styles$2["title-modal"]
|
|
8023
|
-
}, "
|
|
8034
|
+
}, "Before clicking submit"), React__default.createElement(core.DialogContent, {
|
|
8024
8035
|
className: styles$2["body-modal"]
|
|
8025
8036
|
}, React__default.createElement(core.DialogContentText, {
|
|
8026
8037
|
id: "alert-dialog-description"
|
|
@@ -8058,7 +8069,7 @@ var ConductIndex = function ConductIndex() {
|
|
|
8058
8069
|
value: 60
|
|
8059
8070
|
}, "1 hour")))) : React__default.createElement(React__default.Fragment, null, React__default.createElement("h4", {
|
|
8060
8071
|
className: styles$2["tite-body"]
|
|
8061
|
-
}, "
|
|
8072
|
+
}, "be sure to check with your teacher that you have completed all that is required")))), React__default.createElement(core.DialogActions, null, React__default.createElement(core.Button, {
|
|
8062
8073
|
onClick: handleModalSessionClose,
|
|
8063
8074
|
color: "primary",
|
|
8064
8075
|
className: styles$2["btn-cancel"]
|
|
@@ -11379,8 +11390,8 @@ var useStyles$6 = styles$b.makeStyles(function () {
|
|
|
11379
11390
|
}, _span), _tabLabel),
|
|
11380
11391
|
tabLabelMobile: {
|
|
11381
11392
|
height: "55px",
|
|
11382
|
-
maxWidth: "
|
|
11383
|
-
width: "
|
|
11393
|
+
maxWidth: "153px",
|
|
11394
|
+
width: "153px",
|
|
11384
11395
|
opacity: 1,
|
|
11385
11396
|
padding: "auto",
|
|
11386
11397
|
background: "#156DA1",
|
|
@@ -14390,13 +14401,13 @@ var StartReflection = function StartReflection() {
|
|
|
14390
14401
|
}, React__default.createElement(core.DialogTitle, {
|
|
14391
14402
|
id: "alert-dialog-title",
|
|
14392
14403
|
className: styles$6["title-modal"]
|
|
14393
|
-
}, "
|
|
14404
|
+
}, "Before clicking submit"), React__default.createElement(core.DialogContent, {
|
|
14394
14405
|
className: styles$6["body-modal"]
|
|
14395
14406
|
}, React__default.createElement(core.DialogContentText, {
|
|
14396
14407
|
id: "alert-dialog-description"
|
|
14397
14408
|
}, React__default.createElement(React__default.Fragment, null, React__default.createElement("h4", {
|
|
14398
14409
|
className: styles$6["tite-body"]
|
|
14399
|
-
}, "
|
|
14410
|
+
}, "Be sure to check with your teacher that you have completed all that is required")))), React__default.createElement(core.DialogActions, null, React__default.createElement(core.Button, {
|
|
14400
14411
|
onClick: handleModalSessionClose,
|
|
14401
14412
|
color: "primary",
|
|
14402
14413
|
className: styles$6["btn-cancel"]
|
|
@@ -16818,7 +16829,7 @@ var ConferenceRubric = function ConferenceRubric() {
|
|
|
16818
16829
|
}, React__default.createElement(core.DialogTitle, {
|
|
16819
16830
|
id: "alert-dialog-title",
|
|
16820
16831
|
className: styles$7["title-modal"]
|
|
16821
|
-
}, "
|
|
16832
|
+
}, "Before clicking submit"), React__default.createElement(core.DialogContent, {
|
|
16822
16833
|
className: styles$7["body-modal"]
|
|
16823
16834
|
}, React__default.createElement(core.DialogContentText, {
|
|
16824
16835
|
id: "alert-dialog-description"
|
|
@@ -16856,7 +16867,7 @@ var ConferenceRubric = function ConferenceRubric() {
|
|
|
16856
16867
|
value: 360
|
|
16857
16868
|
}, "6h")))) : React__default.createElement(React__default.Fragment, null, React__default.createElement("h4", {
|
|
16858
16869
|
className: styles$7["tite-body"]
|
|
16859
|
-
}, "
|
|
16870
|
+
}, "be sure to check with your teacher that you have completed all that is required")))), React__default.createElement(core.DialogActions, null, React__default.createElement(core.Button, {
|
|
16860
16871
|
onClick: handleModalConferenceClose,
|
|
16861
16872
|
color: "primary",
|
|
16862
16873
|
className: styles$7["btn-cancel"]
|
|
@@ -20782,6 +20793,90 @@ var StageDebugPage = function StageDebugPage() {
|
|
|
20782
20793
|
});
|
|
20783
20794
|
};
|
|
20784
20795
|
|
|
20796
|
+
var useStyles$8 = styles$b.makeStyles(function (theme) {
|
|
20797
|
+
return styles$b.createStyles({
|
|
20798
|
+
container: {
|
|
20799
|
+
display: 'flex',
|
|
20800
|
+
flexWrap: 'wrap',
|
|
20801
|
+
marginLeft: "15px"
|
|
20802
|
+
},
|
|
20803
|
+
textField: {
|
|
20804
|
+
marginLeft: theme.spacing(1),
|
|
20805
|
+
marginRight: theme.spacing(1),
|
|
20806
|
+
width: 200
|
|
20807
|
+
},
|
|
20808
|
+
paddindNotificationsPage: {
|
|
20809
|
+
padding: "50px"
|
|
20810
|
+
},
|
|
20811
|
+
buttonsubmit: {
|
|
20812
|
+
width: "100px",
|
|
20813
|
+
"float": "right"
|
|
20814
|
+
}
|
|
20815
|
+
});
|
|
20816
|
+
});
|
|
20817
|
+
function NotificationsPage() {
|
|
20818
|
+
var classes = useStyles$8();
|
|
20819
|
+
return React__default.createElement("div", {
|
|
20820
|
+
className: classes.paddindNotificationsPage
|
|
20821
|
+
}, React__default.createElement(core.Typography, {
|
|
20822
|
+
variant: "h3",
|
|
20823
|
+
component: "h2"
|
|
20824
|
+
}, "Activity Notifications"), React__default.createElement(core.FormControl, {
|
|
20825
|
+
component: "fieldset"
|
|
20826
|
+
}, React__default.createElement(core.FormGroup, {
|
|
20827
|
+
"aria-label": "position"
|
|
20828
|
+
}, React__default.createElement(core.FormControlLabel, {
|
|
20829
|
+
value: "start",
|
|
20830
|
+
control: React__default.createElement(core.Switch, {
|
|
20831
|
+
color: "primary"
|
|
20832
|
+
}),
|
|
20833
|
+
label: "Notifications ON/OFF",
|
|
20834
|
+
labelPlacement: "start"
|
|
20835
|
+
}), React__default.createElement("div", null, React__default.createElement(core.Typography, null, " Time to mute notifications "), React__default.createElement(core.TextField, {
|
|
20836
|
+
id: "datetime-local",
|
|
20837
|
+
label: "From",
|
|
20838
|
+
type: "datetime-local",
|
|
20839
|
+
defaultValue: "2017-05-24T10:30",
|
|
20840
|
+
className: classes.textField,
|
|
20841
|
+
InputLabelProps: {
|
|
20842
|
+
shrink: true
|
|
20843
|
+
}
|
|
20844
|
+
}), React__default.createElement(core.TextField, {
|
|
20845
|
+
id: "datetime-local",
|
|
20846
|
+
label: "To",
|
|
20847
|
+
type: "datetime-local",
|
|
20848
|
+
defaultValue: "2017-05-24T10:30",
|
|
20849
|
+
className: classes.textField,
|
|
20850
|
+
InputLabelProps: {
|
|
20851
|
+
shrink: true
|
|
20852
|
+
}
|
|
20853
|
+
})), React__default.createElement(core.FormControlLabel, {
|
|
20854
|
+
value: "start",
|
|
20855
|
+
control: React__default.createElement(core.Switch, {
|
|
20856
|
+
color: "primary"
|
|
20857
|
+
}),
|
|
20858
|
+
label: "Booked ON/OFF",
|
|
20859
|
+
labelPlacement: "start"
|
|
20860
|
+
}), React__default.createElement(core.FormControlLabel, {
|
|
20861
|
+
value: "start",
|
|
20862
|
+
control: React__default.createElement(core.Switch, {
|
|
20863
|
+
color: "primary"
|
|
20864
|
+
}),
|
|
20865
|
+
label: "Prebooked ON/OFF",
|
|
20866
|
+
labelPlacement: "start"
|
|
20867
|
+
}), React__default.createElement(core.FormControlLabel, {
|
|
20868
|
+
value: "start",
|
|
20869
|
+
control: React__default.createElement(core.Switch, {
|
|
20870
|
+
color: "primary"
|
|
20871
|
+
}),
|
|
20872
|
+
label: " Silence notifications",
|
|
20873
|
+
labelPlacement: "start"
|
|
20874
|
+
})), React__default.createElement(Button, {
|
|
20875
|
+
variant: "contained",
|
|
20876
|
+
color: "primary"
|
|
20877
|
+
}, "Submit")));
|
|
20878
|
+
}
|
|
20879
|
+
|
|
20785
20880
|
exports.BookSession = BookSession;
|
|
20786
20881
|
exports.BookSessionConferences = BookSessionConferences;
|
|
20787
20882
|
exports.ChangePassword = ChangePassword;
|
|
@@ -20795,6 +20890,7 @@ exports.MyOneToOne = MyOneToOne;
|
|
|
20795
20890
|
exports.MyProfile = MyProfile;
|
|
20796
20891
|
exports.MyStudent = MyStudent;
|
|
20797
20892
|
exports.NewLearningPlan = NewLearningPlan;
|
|
20893
|
+
exports.NotificarionsPage = NotificationsPage;
|
|
20798
20894
|
exports.ResultConferenceRubric = ResultConferenceRubric;
|
|
20799
20895
|
exports.ResultReflection = ResultReflection;
|
|
20800
20896
|
exports.SessionResultComponent = SessionResultComponent;
|