mario-core 2.9.8-beta → 2.9.11-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/components/Scroll/ScrollToTop.d.ts +3 -0
- package/dist/index.css +3 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +18 -28
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +19 -30
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import SkillList from "./containers/Skill/views/SkillList";
|
|
|
10
10
|
import UserList from "./containers/User/views/UserList";
|
|
11
11
|
import UserDetail from "./containers/User/views/UserDetail";
|
|
12
12
|
import Loading from "./components/Loading/Loading";
|
|
13
|
+
import ScrollToTop from "./components/Scroll/ScrollToTop";
|
|
13
14
|
import NotificationModal from "./components/Modals/NotificationModal";
|
|
14
15
|
import CommonHeader from "./components/Headers/CommonHeader";
|
|
15
16
|
import CommonModal from "./components/Modals/CommonModal";
|
|
@@ -100,4 +101,4 @@ import { setFilterWidget } from "./redux/widget/action";
|
|
|
100
101
|
import { setBandScoreList } from "./redux/bandScores/action";
|
|
101
102
|
import { setStudentIdSelectedByTeacher } from "./redux/navMobile/action";
|
|
102
103
|
import useFilters from "./hooks/useFilters";
|
|
103
|
-
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 };
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -48,7 +48,7 @@ function _catch(body, recover) {
|
|
|
48
48
|
return result;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
var styles = {"notification-count":"_2sew7","text-introduction":"_3OgWF","btn-trans-border":"_r9cAh","contact":"_NszFe","learn-more":"_MDjzH","title-quote":"_1Swkw","descriptions-quote":"_gi8vj","descriptions-icon":"_3SOdX","box-login":"_38Lo1","block-verification":"_1OzGy","block-login":"_wWIyO","title-login":"_3nuns","title-forgot-password":"_21qb6","btn-close":"_NhW9l","btn-login":"_3IL10","return-to-login":"_Ce3Kg","recover-account":"_2t6d9","link-to-login":"_3bDsd","remember":"_11FZt","term-and-conditions":"_3LXoI","descriptions-forgot-pass":"_PMcjT","content-icon":"_2rZY6","title-icon":"_y9lM2","nav-home":"_1TT1q","box-introduction":"_32V6L","icon":"_20YJX","form-user-name":"_39BJD","checkbox-remember":"_2K9b2","block-reset-password":"_23Sua","block-forgot-pass":"_3CWP6","page-not-login":"_3Wmco","content-quote":"_13Rk0","home-page":"_o6HKW","red-background":"_jOY7o","login":"_F-hjL","img-box":"_2v-L_","img-login":"_3ncTL","img-login-rectangle":"_2kOvJ","c-main":"_39l0X","container-fluid":"_1BMwK","input-file-label":"_1XNpH","delete-avatar-button":"_1z5h9","header-logo":"_Gewcf","box-sidebar":"_2vcmv","sidebar-logo":"_1hXpy","sidebar-nav-links":"_3vb3s","c-active":"_36jSM","box-sidebar-header":"_3NEZj","box-logout":"_1wUDG","sidebar-btn-minimized":"_1S7Px","sidebar-logout":"_2P85D","nav-mobile":"_1qjbW","filter-media-file":"_1I62C","div":"_3cLcM","dropdown-menu":"_1krbH","header-avatar":"_RQaHE","dropdown-content":"_3ys4W","dropdown-change":"_ToOW_","item-address":"_3sQlR","item-logout":"_3bqSM","title-address":"_1jgSI","img-avatar":"_35Ttz","item-contact":"_1wc7o","logout":"_1_9tV","content-text":"_3S4f2","hide-in-mobile":"_1INnO","hide-in-desktop":"_2LIqK","control-input":"_2Zz97","custom-control":"_3-yp5"};
|
|
51
|
+
var styles = {"notification-count":"_2sew7","text-introduction":"_3OgWF","btn-trans-border":"_r9cAh","contact":"_NszFe","learn-more":"_MDjzH","title-quote":"_1Swkw","descriptions-quote":"_gi8vj","descriptions-icon":"_3SOdX","box-login":"_38Lo1","block-verification":"_1OzGy","block-login":"_wWIyO","title-login":"_3nuns","title-forgot-password":"_21qb6","btn-close":"_NhW9l","btn-login":"_3IL10","return-to-login":"_Ce3Kg","recover-account":"_2t6d9","link-to-login":"_3bDsd","remember":"_11FZt","term-and-conditions":"_3LXoI","descriptions-forgot-pass":"_PMcjT","content-icon":"_2rZY6","title-icon":"_y9lM2","nav-home":"_1TT1q","box-introduction":"_32V6L","icon":"_20YJX","form-user-name":"_39BJD","checkbox-remember":"_2K9b2","block-reset-password":"_23Sua","block-forgot-pass":"_3CWP6","page-not-login":"_3Wmco","content-quote":"_13Rk0","home-page":"_o6HKW","red-background":"_jOY7o","login":"_F-hjL","img-box":"_2v-L_","img-login":"_3ncTL","img-login-rectangle":"_2kOvJ","c-main":"_39l0X","container-fluid":"_1BMwK","input-file-label":"_1XNpH","delete-avatar-button":"_1z5h9","header-logo":"_Gewcf","box-sidebar":"_2vcmv","sidebar-logo":"_1hXpy","sidebar-nav-links":"_3vb3s","c-active":"_36jSM","sidebar-nav-links-hover":"_DNrus","box-sidebar-header":"_3NEZj","box-logout":"_1wUDG","sidebar-btn-minimized":"_1S7Px","sidebar-logout":"_2P85D","nav-mobile":"_1qjbW","filter-media-file":"_1I62C","div":"_3cLcM","dropdown-menu":"_1krbH","header-avatar":"_RQaHE","dropdown-content":"_3ys4W","dropdown-change":"_ToOW_","item-address":"_3sQlR","item-logout":"_3bqSM","title-address":"_1jgSI","img-avatar":"_35Ttz","item-contact":"_1wc7o","logout":"_1_9tV","content-text":"_3S4f2","hide-in-mobile":"_1INnO","hide-in-desktop":"_2LIqK","control-input":"_2Zz97","custom-control":"_3-yp5"};
|
|
52
52
|
|
|
53
53
|
var style = {
|
|
54
54
|
fontSize: "0.85rem"
|
|
@@ -287,7 +287,9 @@ var apiUpload = axios.create({
|
|
|
287
287
|
return response;
|
|
288
288
|
}, function (error) {
|
|
289
289
|
if (error.response.status === 401) {
|
|
290
|
-
localStorage.
|
|
290
|
+
Object.keys(localStorage).forEach(function (key) {
|
|
291
|
+
if (!key.includes('learning-plan')) delete localStorage[key];
|
|
292
|
+
});
|
|
291
293
|
window.location.href = "/login";
|
|
292
294
|
}
|
|
293
295
|
|
|
@@ -1193,7 +1195,7 @@ var TheSidebar = function TheSidebar(_ref) {
|
|
|
1193
1195
|
return setToggleMinimize(true);
|
|
1194
1196
|
}
|
|
1195
1197
|
})), React__default.createElement(react.CSidebarNav, {
|
|
1196
|
-
className: "" + styles["sidebar-nav-links"]
|
|
1198
|
+
className: styles["sidebar-nav-links"] + " " + (toggleMinimize && styles["sidebar-nav-links-hover"])
|
|
1197
1199
|
}, React__default.createElement(react.CCreateElement, {
|
|
1198
1200
|
items: navigation,
|
|
1199
1201
|
components: {
|
|
@@ -1419,34 +1421,11 @@ var TheHeaderDropdown = function TheHeaderDropdown() {
|
|
|
1419
1421
|
};
|
|
1420
1422
|
|
|
1421
1423
|
var TheHeader = function TheHeader() {
|
|
1422
|
-
var dispatch = reactRedux.useDispatch();
|
|
1423
|
-
var sidebarShow = reactRedux.useSelector(function (state) {
|
|
1424
|
-
return state.common.sidebarShow;
|
|
1425
|
-
});
|
|
1426
|
-
|
|
1427
|
-
var toggleSidebar = function toggleSidebar() {
|
|
1428
|
-
var val = [true, "responsive"].includes(sidebarShow) ? false : "responsive";
|
|
1429
|
-
dispatch(setSidebar(val));
|
|
1430
|
-
};
|
|
1431
|
-
|
|
1432
|
-
var toggleSidebarMobile = function toggleSidebarMobile() {
|
|
1433
|
-
var val = [false, "responsive"].includes(sidebarShow) ? true : "responsive";
|
|
1434
|
-
dispatch(setSidebar(val));
|
|
1435
|
-
};
|
|
1436
|
-
|
|
1437
1424
|
var isDistrict = window.location.host.includes("-district");
|
|
1438
1425
|
return React__default.createElement(react.CHeader, {
|
|
1439
1426
|
withSubheader: true,
|
|
1440
|
-
className: "d-flex align-items-center justify-content-
|
|
1441
|
-
}, React__default.createElement(react.
|
|
1442
|
-
inHeader: true,
|
|
1443
|
-
className: "ml-md-3 d-lg-none",
|
|
1444
|
-
onClick: toggleSidebarMobile
|
|
1445
|
-
}), React__default.createElement(react.CToggler, {
|
|
1446
|
-
inHeader: true,
|
|
1447
|
-
className: "ml-3 d-md-down-none",
|
|
1448
|
-
onClick: toggleSidebar
|
|
1449
|
-
}), React__default.createElement(react.CHeaderBrand, {
|
|
1427
|
+
className: "d-flex align-items-center justify-content-end"
|
|
1428
|
+
}, React__default.createElement(react.CHeaderBrand, {
|
|
1450
1429
|
className: "mx-auto flex-grow-1 d-lg-none",
|
|
1451
1430
|
to: "/"
|
|
1452
1431
|
}, React__default.createElement("img", {
|
|
@@ -4897,6 +4876,16 @@ var UserDetail = function UserDetail() {
|
|
|
4897
4876
|
});
|
|
4898
4877
|
};
|
|
4899
4878
|
|
|
4879
|
+
var ScrollToTop = function ScrollToTop() {
|
|
4880
|
+
var _useLocation = reactRouterDom.useLocation(),
|
|
4881
|
+
pathname = _useLocation.pathname;
|
|
4882
|
+
|
|
4883
|
+
React.useEffect(function () {
|
|
4884
|
+
window.scrollTo(0, 0);
|
|
4885
|
+
}, [pathname]);
|
|
4886
|
+
return null;
|
|
4887
|
+
};
|
|
4888
|
+
|
|
4900
4889
|
var modalInfo = function modalInfo(type) {
|
|
4901
4890
|
switch (type) {
|
|
4902
4891
|
case "danger":
|
|
@@ -7739,6 +7728,7 @@ exports.QuitPrompt = QuitPrompt;
|
|
|
7739
7728
|
exports.ReactNotification = ReactNotification;
|
|
7740
7729
|
exports.RequiredLabel = RequiredLabel$1;
|
|
7741
7730
|
exports.SchoolList = SchoolList;
|
|
7731
|
+
exports.ScrollToTop = ScrollToTop;
|
|
7742
7732
|
exports.SearchBox = SearchBox$1;
|
|
7743
7733
|
exports.SearchBoxContainer = SearchBoxContainer;
|
|
7744
7734
|
exports.SkillList = SkillList;
|