mario-teacher-student-client 3.0.1-admin → 3.0.2-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/index.d.ts +1 -2
- package/dist/index.js +0 -146
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1 -146
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
- package/dist/containers/MyStudent/hooks/useOverviewToPDF.d.ts +0 -7
- package/dist/containers/StageDebug/hooks/useStageDebug.d.ts +0 -4
- package/dist/containers/StageDebug/views/StageDebugPage.d.ts +0 -3
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
|
@@ -47963,151 +47963,6 @@ var ChangePassword = function ChangePassword() {
|
|
|
47963
47963
|
});
|
|
47964
47964
|
};
|
|
47965
47965
|
|
|
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
47966
|
var LearningPlan$1 = function LearningPlan() {
|
|
48112
47967
|
var _useState = React.useState(''),
|
|
48113
47968
|
value = _useState[0],
|
|
@@ -71736,7 +71591,6 @@ exports.ResultReflection = ResultReflection;
|
|
|
71736
71591
|
exports.SessionDetail = SessionDetail;
|
|
71737
71592
|
exports.SessionResultComponent = SessionResultComponent;
|
|
71738
71593
|
exports.SettingPage = SettingPage;
|
|
71739
|
-
exports.StageDebugPage = StageDebugPage;
|
|
71740
71594
|
exports.StartReflection = StartReflection;
|
|
71741
71595
|
exports.StudentDetail = StudentDetail;
|
|
71742
71596
|
exports.StudentReflection = StudentReflection;
|