mario-core 2.9.53-beta → 2.9.55-beta
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 +2 -2
- package/dist/index.js +21 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +21 -5
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/constants.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -2445,6 +2445,7 @@ var ROLES = {
|
|
|
2445
2445
|
STUDENT: "Student",
|
|
2446
2446
|
PARENT: "Parent"
|
|
2447
2447
|
};
|
|
2448
|
+
var NOTIFICATION_ALERT_KEY = "NOTIFICATION_ALERT_KEY";
|
|
2448
2449
|
|
|
2449
2450
|
var getAccessToken = (function () {
|
|
2450
2451
|
try {
|
|
@@ -2539,6 +2540,12 @@ var apiUpload = axios.create({
|
|
|
2539
2540
|
window.location.href = "/login";
|
|
2540
2541
|
}
|
|
2541
2542
|
|
|
2543
|
+
if (error.response.status == 403) {
|
|
2544
|
+
localStorage.removeItem(ACCESS_TOKEN);
|
|
2545
|
+
localStorage.removeItem("USER_EMAIL");
|
|
2546
|
+
window.location.href = "/login";
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2542
2549
|
return Promise.reject(error);
|
|
2543
2550
|
});
|
|
2544
2551
|
});
|
|
@@ -2652,6 +2659,7 @@ var useLogin = function useLogin() {
|
|
|
2652
2659
|
profileImageFileName = _res$data.profileImageFileName,
|
|
2653
2660
|
isLoginFirst = _res$data.isLoginFirst;
|
|
2654
2661
|
localStorage.setItem(ACCESS_TOKEN, token);
|
|
2662
|
+
localStorage.removeItem(NOTIFICATION_ALERT_KEY);
|
|
2655
2663
|
dispatch(setUser({
|
|
2656
2664
|
id: id,
|
|
2657
2665
|
firstName: firstName,
|
|
@@ -8022,7 +8030,7 @@ var useNotificationList = function useNotificationList() {
|
|
|
8022
8030
|
};
|
|
8023
8031
|
|
|
8024
8032
|
var viewNotification = function viewNotification(notification) {
|
|
8025
|
-
var _JSON$parse, _JSON$parse2, _JSON$parse3, _JSON$parse4, _JSON$parse5, _JSON$parse6, _JSON$parse7, _JSON$parse8;
|
|
8033
|
+
var _JSON$parse, _JSON$parse2, _JSON$parse3, _JSON$parse4, _JSON$parse5, _JSON$parse6, _JSON$parse7, _JSON$parse8, _JSON$parse9, _JSON$parse10;
|
|
8026
8034
|
|
|
8027
8035
|
var source = notification.source,
|
|
8028
8036
|
extraData = notification.extraData;
|
|
@@ -8040,12 +8048,20 @@ var useNotificationList = function useNotificationList() {
|
|
|
8040
8048
|
window.open("/start-reflection/" + ((_JSON$parse3 = JSON.parse(extraData)) === null || _JSON$parse3 === void 0 ? void 0 : _JSON$parse3[0]) + "/" + ((_JSON$parse4 = JSON.parse(extraData)) === null || _JSON$parse4 === void 0 ? void 0 : _JSON$parse4[1]));
|
|
8041
8049
|
break;
|
|
8042
8050
|
|
|
8051
|
+
case "Class Reflection Completed":
|
|
8052
|
+
window.open("/result-reflection/" + ((_JSON$parse5 = JSON.parse(extraData)) === null || _JSON$parse5 === void 0 ? void 0 : _JSON$parse5[1]));
|
|
8053
|
+
break;
|
|
8054
|
+
|
|
8055
|
+
case "External Reflection Completed":
|
|
8056
|
+
window.open("/result-reflection/" + ((_JSON$parse6 = JSON.parse(extraData)) === null || _JSON$parse6 === void 0 ? void 0 : _JSON$parse6[1]) + "/external");
|
|
8057
|
+
break;
|
|
8058
|
+
|
|
8043
8059
|
case "NewSessionCreated":
|
|
8044
|
-
window.open("/start-question/" + ((_JSON$
|
|
8060
|
+
window.open("/start-question/" + ((_JSON$parse7 = JSON.parse(extraData)) === null || _JSON$parse7 === void 0 ? void 0 : _JSON$parse7[0]) + "/" + ((_JSON$parse8 = JSON.parse(extraData)) === null || _JSON$parse8 === void 0 ? void 0 : _JSON$parse8[1]));
|
|
8045
8061
|
break;
|
|
8046
8062
|
|
|
8047
8063
|
case "NewSessionComplete":
|
|
8048
|
-
window.open("/start-question/" + ((_JSON$
|
|
8064
|
+
window.open("/start-question/" + ((_JSON$parse9 = JSON.parse(extraData)) === null || _JSON$parse9 === void 0 ? void 0 : _JSON$parse9[0]) + "/" + ((_JSON$parse10 = JSON.parse(extraData)) === null || _JSON$parse10 === void 0 ? void 0 : _JSON$parse10[1]));
|
|
8049
8065
|
break;
|
|
8050
8066
|
|
|
8051
8067
|
case "ActionPointReminder":
|
|
@@ -8277,7 +8293,7 @@ var NotificationList = function NotificationList() {
|
|
|
8277
8293
|
}
|
|
8278
8294
|
})), React.createElement("td", {
|
|
8279
8295
|
className: "text-center align-middle"
|
|
8280
|
-
}, ["AssessmentAssignment", "NewConferenceCreated", "NewSessionCreated", "CertificateApproved", "Class Reflection", "NewSessionComplete", "ActionPointReminder", "SendNotiPLP", "SendNotiGOAL"].includes(record.source) && React.createElement(AiOutlineEye, {
|
|
8296
|
+
}, ["AssessmentAssignment", "NewConferenceCreated", "NewSessionCreated", "CertificateApproved", "Class Reflection", "NewSessionComplete", "ActionPointReminder", "SendNotiPLP", "SendNotiGOAL", "Class Reflection Completed", "External Reflection Completed"].includes(record.source) && React.createElement(AiOutlineEye, {
|
|
8281
8297
|
className: "cursor-pointer",
|
|
8282
8298
|
size: ICON_SIZE,
|
|
8283
8299
|
title: "Detail",
|
|
@@ -10480,5 +10496,5 @@ var generateRandomString = (function () {
|
|
|
10480
10496
|
|
|
10481
10497
|
var amplitudeClient = amplitude.getInstance();
|
|
10482
10498
|
|
|
10483
|
-
export { ACCESS_TOKEN, ANSWER_EDITOR_HEIGHT, AcademicClassSelector, AddButton, BASE_URL, CHAT_CHANNEL, CommonAlert, CommonHeader, CommonModal$1 as CommonModal, CreatableSelector, CustomPagination, CustomSelector, CustomTabs as CustomTab, DATE_FORMAT, DATE_RESULT, DEFAULT_FILTER, Dashboard, DeleteButtonIcon, DetailActionButtons, EMOTIONS, EditButtonIcon, EmailTemplateDetail, EmailTemplateList, EmptyDataAlert, ErrorHandler, FULL_DATE_RESULT, FaqList, InputFile as FileInput, GOOGLE_RECAPTCHA_KEY, GalleryList, INIT_AMPLITUDE_KEY, Images, LICENSE_AGGRID, LinkEditButton, Loading, Login, MediaList, NOTIFICATION_CHANNEL, NotFound, NotificationList, NotificationModal, QUESTION_TYPES, QUESTION_TYPES_OPTIONS, QuestionCategorySelector, QuestionTypeSelector, QuitPrompt, ReactNotification, RequiredLabel$1 as RequiredLabel, SchoolList, ScrollToTop, SearchBox$1 as SearchBox, SearchBoxContainer, SkillList, StarRatingSelector, SuggestionCategorySelector, TAB_COLORS, TINY_MCE_API_KEY, TheContent$1 as TheContent, TheLayout, ToggleButton, UploadFileButton, UserDetail, UserList, addTab, amplitudeClient, answerQuestion, answerQuestionDataPlayer, api, apiUpload, canAccess as canAccessRoute, changeNote, changeTags, clearTab, closeTab, debounce, editTab, editorConfig, firstCheckToken, generateRandomString, getFileUrl, getInfo, getTextFromHTML, i18n, initAmplitude, isInViewport, reset, setAlert, setAssessmentList, setAssignmentList, setAssistantList, setBadgeList, setBandScoreList, setCertificateList, setClassList, setConferenceRubricList, setConversationOneToOne, setCurrentStudentId, setCurrentStudentName, setCurrentStudentUserId, setCustomAlertList, setDataPlayer, setEditItemQuesion, setEnableIEP, setEnableSurvey, setFeedbackList, setFilterWidget, setGoalExampleList, setImproveMyClass, setLanguage, setLearningSupportCategoryList, setLoading, setMailCategory, setModal, setMoveItemQuestion, setMyStudent, setQuestionByCategory, setQuestionCateList, setQuestionList, setReflectionList, setReflectionResultList, setResetQuestionList, setSchoolBlankDayList, setSelectQuestion, setSemesterList, setSessionPlayer, setSessionTemplateGeneralClassList, setSessionTemplateList, setStartTime, setStrategyList, setStudentIdSelectedByTeacher, setStudentList, setSubjectList, setSuggestionList, setTurnOffPassWhenChangeMode, setTutorialScreenList, setUser, setUserList, showFontSize, showMenuBar, store, systemCertificateUpload, systemStudentBadge, uploadFile, useFilters, useGalleryList, utcToLocalTime };
|
|
10499
|
+
export { ACCESS_TOKEN, ANSWER_EDITOR_HEIGHT, AcademicClassSelector, AddButton, BASE_URL, CHAT_CHANNEL, CommonAlert, CommonHeader, CommonModal$1 as CommonModal, CreatableSelector, CustomPagination, CustomSelector, CustomTabs as CustomTab, DATE_FORMAT, DATE_RESULT, DEFAULT_FILTER, Dashboard, DeleteButtonIcon, DetailActionButtons, EMOTIONS, EditButtonIcon, EmailTemplateDetail, EmailTemplateList, EmptyDataAlert, ErrorHandler, FULL_DATE_RESULT, FaqList, InputFile as FileInput, GOOGLE_RECAPTCHA_KEY, GalleryList, INIT_AMPLITUDE_KEY, Images, LICENSE_AGGRID, LinkEditButton, Loading, Login, MediaList, NOTIFICATION_ALERT_KEY, NOTIFICATION_CHANNEL, NotFound, NotificationList, NotificationModal, QUESTION_TYPES, QUESTION_TYPES_OPTIONS, QuestionCategorySelector, QuestionTypeSelector, QuitPrompt, ReactNotification, RequiredLabel$1 as RequiredLabel, SchoolList, ScrollToTop, SearchBox$1 as SearchBox, SearchBoxContainer, SkillList, StarRatingSelector, SuggestionCategorySelector, TAB_COLORS, TINY_MCE_API_KEY, TheContent$1 as TheContent, TheLayout, ToggleButton, UploadFileButton, UserDetail, UserList, addTab, amplitudeClient, answerQuestion, answerQuestionDataPlayer, api, apiUpload, canAccess as canAccessRoute, changeNote, changeTags, clearTab, closeTab, debounce, editTab, editorConfig, firstCheckToken, generateRandomString, getFileUrl, getInfo, getTextFromHTML, i18n, initAmplitude, isInViewport, reset, setAlert, setAssessmentList, setAssignmentList, setAssistantList, setBadgeList, setBandScoreList, setCertificateList, setClassList, setConferenceRubricList, setConversationOneToOne, setCurrentStudentId, setCurrentStudentName, setCurrentStudentUserId, setCustomAlertList, setDataPlayer, setEditItemQuesion, setEnableIEP, setEnableSurvey, setFeedbackList, setFilterWidget, setGoalExampleList, setImproveMyClass, setLanguage, setLearningSupportCategoryList, setLoading, setMailCategory, setModal, setMoveItemQuestion, setMyStudent, setQuestionByCategory, setQuestionCateList, setQuestionList, setReflectionList, setReflectionResultList, setResetQuestionList, setSchoolBlankDayList, setSelectQuestion, setSemesterList, setSessionPlayer, setSessionTemplateGeneralClassList, setSessionTemplateList, setStartTime, setStrategyList, setStudentIdSelectedByTeacher, setStudentList, setSubjectList, setSuggestionList, setTurnOffPassWhenChangeMode, setTutorialScreenList, setUser, setUserList, showFontSize, showMenuBar, store, systemCertificateUpload, systemStudentBadge, uploadFile, useFilters, useGalleryList, utcToLocalTime };
|
|
10484
10500
|
//# sourceMappingURL=index.modern.js.map
|