mario-core 2.9.10-beta → 2.9.13-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 CHANGED
@@ -58,7 +58,7 @@ import getFileUrl from "./utils/getFileUrl";
58
58
  import getTextFromHTML from "./utils/getTextFromHTML";
59
59
  import utcToLocalTime from "./utils/utcToLocalTime";
60
60
  import { uploadFile, systemStudentBadge, systemCertificateUpload } from "./services/fileServices";
61
- import { setLoading, setModal, setAlert, setUser, reset, setCurrentStudentId, setCurrentStudentUserId, setCurrentStudentName, setTurnOffPassWhenChangeMode, showMenuBar, showFontSize } from "./redux/commons/action";
61
+ import { setLoading, setModal, setAlert, setUser, reset, setCurrentStudentId, setCurrentStudentUserId, setCurrentStudentName, setTurnOffPassWhenChangeMode, showMenuBar, showFontSize, setEnableIEP } from "./redux/commons/action";
62
62
  import { setClassList } from "./redux/classes/action";
63
63
  import { setConferenceRubricList } from "./redux/conferenceRubrics/action";
64
64
  import { setSuggestionList } from "./redux/suggestionBanks/action";
@@ -101,4 +101,4 @@ import { setFilterWidget } from "./redux/widget/action";
101
101
  import { setBandScoreList } from "./redux/bandScores/action";
102
102
  import { setStudentIdSelectedByTeacher } from "./redux/navMobile/action";
103
103
  import useFilters from "./hooks/useFilters";
104
- export { Login, Dashboard, TheLayout, TheContent, NotFound, EmailTemplateList, EmailTemplateDetail, FaqList, SkillList, UserList, UserDetail, Loading, NotificationModal, CommonHeader, CommonModal, AddButton, DeleteButtonIcon, EditButtonIcon, LinkEditButton, ToggleButton, EmptyDataAlert, CreatableSelector, CustomPagination, SearchBox, FileInput, QuitPrompt, QuestionTypeSelector, QuestionCategorySelector, SuggestionCategorySelector, ErrorHandler, DetailActionButtons, RequiredLabel, StarRatingSelector, ReactNotification, NotificationList, CustomSelector, UploadFileButton, SearchBoxContainer, CustomTab, CommonAlert, GalleryList, MediaList, useGalleryList, AcademicClassSelector, SchoolList, store, showMenuBar, showFontSize, setLoading, setModal, setAlert, setClassList, setConferenceRubricList, setSuggestionList, setStrategyList, setSubjectList, setLearningSupportCategoryList, setQuestionList, setUserList, setStudentList, setBadgeList, setGoalExampleList, setSemesterList, setFeedbackList, setAssessmentList, setQuestionByCategory, setSelectQuestion, setMoveItemQuestion, setReflectionList, setReflectionResultList, setEditItemQuesion, setResetQuestionList, setMailCategory, setUser, setAssignmentList, setAssistantList, setSessionTemplateList, setTutorialScreenList, setSessionTemplateGeneralClassList, setCustomAlertList, setCertificateList, closeTab, addTab, editTab, clearTab, changeNote, changeTags, answerQuestion, setSessionPlayer, setStartTime, setTurnOffPassWhenChangeMode, reset, setImproveMyClass, setSchoolBlankDayList, api, apiUpload, uploadFile, systemStudentBadge, systemCertificateUpload, BASE_URL, DEFAULT_FILTER, LICENSE_AGGRID, TINY_MCE_API_KEY, QUESTION_TYPES, QUESTION_TYPES_OPTIONS, ANSWER_EDITOR_HEIGHT, CHAT_CHANNEL, NOTIFICATION_CHANNEL, DATE_RESULT, DATE_FORMAT, FULL_DATE_RESULT, ACCESS_TOKEN, GOOGLE_RECAPTCHA_KEY, EMOTIONS, TAB_COLORS, Filter, Conversation, Message, ConversationMember, NavbarTab, editorConfig, generateRandomString, isInViewport, debounce, firstCheckToken, canAccessRoute, getFileUrl, getTextFromHTML, utcToLocalTime, getInfo, Images, setQuestionCateList, setMyStudent, setDataPlayer, answerQuestionDataPlayer, setCurrentStudentUserId, setCurrentStudentId, setCurrentStudentName, setFilterWidget, setBandScoreList, setStudentIdSelectedByTeacher, useFilters, ScrollToTop };
104
+ export { Login, Dashboard, TheLayout, TheContent, NotFound, EmailTemplateList, EmailTemplateDetail, FaqList, SkillList, UserList, UserDetail, Loading, NotificationModal, CommonHeader, CommonModal, AddButton, DeleteButtonIcon, EditButtonIcon, LinkEditButton, ToggleButton, EmptyDataAlert, CreatableSelector, CustomPagination, SearchBox, FileInput, QuitPrompt, QuestionTypeSelector, QuestionCategorySelector, SuggestionCategorySelector, ErrorHandler, DetailActionButtons, RequiredLabel, StarRatingSelector, ReactNotification, NotificationList, CustomSelector, UploadFileButton, SearchBoxContainer, CustomTab, CommonAlert, GalleryList, MediaList, useGalleryList, AcademicClassSelector, SchoolList, store, showMenuBar, showFontSize, setLoading, setModal, setAlert, setClassList, setConferenceRubricList, setSuggestionList, setStrategyList, setSubjectList, setLearningSupportCategoryList, setQuestionList, setUserList, setStudentList, setBadgeList, setGoalExampleList, setSemesterList, setFeedbackList, setAssessmentList, setQuestionByCategory, setSelectQuestion, setMoveItemQuestion, setReflectionList, setReflectionResultList, setEditItemQuesion, setResetQuestionList, setMailCategory, setUser, setAssignmentList, setAssistantList, setSessionTemplateList, setTutorialScreenList, setSessionTemplateGeneralClassList, setCustomAlertList, setCertificateList, closeTab, addTab, editTab, clearTab, changeNote, changeTags, answerQuestion, setSessionPlayer, setStartTime, setTurnOffPassWhenChangeMode, reset, setImproveMyClass, setSchoolBlankDayList, setEnableIEP, api, apiUpload, uploadFile, systemStudentBadge, systemCertificateUpload, BASE_URL, DEFAULT_FILTER, LICENSE_AGGRID, TINY_MCE_API_KEY, QUESTION_TYPES, QUESTION_TYPES_OPTIONS, ANSWER_EDITOR_HEIGHT, CHAT_CHANNEL, NOTIFICATION_CHANNEL, DATE_RESULT, DATE_FORMAT, FULL_DATE_RESULT, ACCESS_TOKEN, GOOGLE_RECAPTCHA_KEY, EMOTIONS, TAB_COLORS, Filter, Conversation, Message, ConversationMember, NavbarTab, editorConfig, generateRandomString, isInViewport, debounce, firstCheckToken, canAccessRoute, getFileUrl, getTextFromHTML, utcToLocalTime, getInfo, Images, setQuestionCateList, setMyStudent, setDataPlayer, answerQuestionDataPlayer, setCurrentStudentUserId, setCurrentStudentId, setCurrentStudentName, setFilterWidget, setBandScoreList, setStudentIdSelectedByTeacher, useFilters, ScrollToTop };
package/dist/index.js CHANGED
@@ -233,6 +233,7 @@ var setAlert = toolkit.createAction("common/setAlert");
233
233
  var reset = toolkit.createAction("common/reset");
234
234
  var showMenuBar = toolkit.createAction("common/showMenuBar");
235
235
  var showFontSize = toolkit.createAction("common/showFontSize");
236
+ var setEnableIEP = toolkit.createAction("common/setEnableIEP");
236
237
  var setCurrentStudentId = toolkit.createAction("common/setCurrentStudentId");
237
238
  var setCurrentStudentUserId = toolkit.createAction("common/setCurrentStudentUserId");
238
239
  var setCurrentStudentName = toolkit.createAction("common/setCurrentStudentName");
@@ -287,7 +288,9 @@ var apiUpload = axios.create({
287
288
  return response;
288
289
  }, function (error) {
289
290
  if (error.response.status === 401) {
290
- localStorage.clear();
291
+ Object.keys(localStorage).forEach(function (key) {
292
+ if (!key.includes('learning-plan')) delete localStorage[key];
293
+ });
291
294
  window.location.href = "/login";
292
295
  }
293
296
 
@@ -6738,7 +6741,8 @@ var initialState = {
6738
6741
  currentStudentName: localStorage.getItem("currentStudentName") || "",
6739
6742
  turnOffPassWhenChangeMode: false,
6740
6743
  menuBar: true,
6741
- defaultFontSize: 16
6744
+ defaultFontSize: 16,
6745
+ isEnableIEP: true
6742
6746
  };
6743
6747
  var commonReducer = toolkit.createReducer(initialState, function (builder) {
6744
6748
  builder.addCase(setLoading, function (state, action) {
@@ -6766,6 +6770,8 @@ var commonReducer = toolkit.createReducer(initialState, function (builder) {
6766
6770
  state.turnOffPassWhenChangeMode = action.payload;
6767
6771
  }).addCase(showMenuBar, function (state, action) {
6768
6772
  state.menuBar = action.payload;
6773
+ }).addCase(setEnableIEP, function (state, action) {
6774
+ state.isEnableIEP = action.payload;
6769
6775
  }).addCase(showFontSize, function (state, action) {
6770
6776
  state.defaultFontSize = action.payload;
6771
6777
  });
@@ -7775,6 +7781,7 @@ exports.setCurrentStudentUserId = setCurrentStudentUserId;
7775
7781
  exports.setCustomAlertList = setCustomAlertList;
7776
7782
  exports.setDataPlayer = setDataPlayer;
7777
7783
  exports.setEditItemQuesion = setEditItemQuesion;
7784
+ exports.setEnableIEP = setEnableIEP;
7778
7785
  exports.setFeedbackList = setFeedbackList;
7779
7786
  exports.setFilterWidget = setFilterWidget;
7780
7787
  exports.setGoalExampleList = setGoalExampleList;