mario-core 2.9.5-beta → 2.9.5
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.css +0 -36
- package/dist/index.js +13 -42
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +14 -43
- package/dist/index.modern.js.map +1 -1
- package/package.json +94 -94
package/dist/index.modern.js
CHANGED
|
@@ -8,9 +8,7 @@ import { useDispatch, useSelector } from 'react-redux';
|
|
|
8
8
|
import { createAction, createReducer, configureStore } from '@reduxjs/toolkit';
|
|
9
9
|
import axios from 'axios';
|
|
10
10
|
import { useGoogleReCaptcha, GoogleReCaptcha, GoogleReCaptchaProvider } from 'react-google-recaptcha-v3';
|
|
11
|
-
import { CSidebar, CSidebarBrand, CSidebarNav, CCreateElement, CSidebarNavDivider, CSidebarNavDropdown, CSidebarNavItem, CSidebarNavTitle,
|
|
12
|
-
import { CgMenuRight } from 'react-icons/cg';
|
|
13
|
-
import { RiLogoutBoxRLine } from 'react-icons/ri';
|
|
11
|
+
import { CSidebar, CSidebarBrand, CSidebarNav, CCreateElement, CSidebarNavDivider, CSidebarNavDropdown, CSidebarNavItem, CSidebarNavTitle, CSidebarMinimizer, CHeader, CToggler, CHeaderBrand, CHeaderNav, CContainer } from '@coreui/react';
|
|
14
12
|
import Pusher from 'pusher-js/with-encryption';
|
|
15
13
|
import { FaPlus, FaTrashAlt, FaRegEdit, FaArrowLeft, FaDownload, FaTrash, FaEdit, FaFolderPlus, FaFileUpload } from 'react-icons/fa';
|
|
16
14
|
import Select from 'react-select';
|
|
@@ -45,7 +43,7 @@ function _catch(body, recover) {
|
|
|
45
43
|
return result;
|
|
46
44
|
}
|
|
47
45
|
|
|
48
|
-
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","
|
|
46
|
+
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","sidebar-logo":"_1hXpy","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"};
|
|
49
47
|
|
|
50
48
|
var style = {
|
|
51
49
|
fontSize: "0.85rem"
|
|
@@ -383,7 +381,7 @@ var useLogin = function useLogin() {
|
|
|
383
381
|
history.push(HOMEPAGE_DISTRICT);
|
|
384
382
|
} else if (roles.includes("Admin")) {
|
|
385
383
|
history.push(HOMEPAGE_ADMIN);
|
|
386
|
-
} else if (roles.includes("Teacher")
|
|
384
|
+
} else if (roles.includes("Teacher")) {
|
|
387
385
|
history.push(HOMEPAGE_TEACHER);
|
|
388
386
|
} else if (roles.includes("Student")) {
|
|
389
387
|
history.push(HOMEPAGE_STUDENT);
|
|
@@ -1129,7 +1127,7 @@ var Dashboard = function Dashboard() {
|
|
|
1129
1127
|
var Images = {
|
|
1130
1128
|
USER_CONVERSATION_AVATAR: "images/user.png",
|
|
1131
1129
|
GROUP_CONVERSATION_AVATAR: "images/group.png",
|
|
1132
|
-
LOGO: "images/
|
|
1130
|
+
LOGO: "images/logo.png",
|
|
1133
1131
|
LOGO_HEADER: "images/logo-header.png",
|
|
1134
1132
|
LOGO_MINIMIZED: "images/logo-minimized.png",
|
|
1135
1133
|
DOCS_IMAGE: "images/docs.png",
|
|
@@ -1143,46 +1141,24 @@ var Images = {
|
|
|
1143
1141
|
var TheSidebar = function TheSidebar(_ref) {
|
|
1144
1142
|
var navigation = _ref.navigation;
|
|
1145
1143
|
var dispatch = useDispatch();
|
|
1146
|
-
var history = useHistory();
|
|
1147
1144
|
var show = useSelector(function (state) {
|
|
1148
1145
|
return state.common.sidebarShow;
|
|
1149
1146
|
});
|
|
1150
|
-
|
|
1151
|
-
var _useState = useState(false),
|
|
1152
|
-
toggleMinimize = _useState[0],
|
|
1153
|
-
setToggleMinimize = _useState[1];
|
|
1154
|
-
|
|
1155
|
-
var signOut = useCallback(function () {
|
|
1156
|
-
localStorage.removeItem(ACCESS_TOKEN);
|
|
1157
|
-
dispatch(reset());
|
|
1158
|
-
history.push("/");
|
|
1159
|
-
}, []);
|
|
1160
1147
|
return React.createElement(CSidebar, {
|
|
1161
1148
|
show: show,
|
|
1162
1149
|
onShowChange: function onShowChange(val) {
|
|
1163
1150
|
return dispatch(setSidebar(val));
|
|
1164
|
-
}
|
|
1165
|
-
minimize: toggleMinimize,
|
|
1166
|
-
className: "" + styles["box-sidebar"]
|
|
1151
|
+
}
|
|
1167
1152
|
}, React.createElement(CSidebarBrand, {
|
|
1168
|
-
className:
|
|
1169
|
-
|
|
1153
|
+
className: "d-md-down-none",
|
|
1154
|
+
to: "/"
|
|
1155
|
+
}, React.createElement("img", {
|
|
1170
1156
|
src: Images.LOGO,
|
|
1171
1157
|
className: styles["sidebar-logo"] + " c-sidebar-brand-full"
|
|
1172
1158
|
}), React.createElement("img", {
|
|
1173
1159
|
src: Images.LOGO_MINIMIZED,
|
|
1174
|
-
className: styles["sidebar-logo"] + "
|
|
1175
|
-
|
|
1176
|
-
return setToggleMinimize(false);
|
|
1177
|
-
}
|
|
1178
|
-
})), React.createElement(CgMenuRight, {
|
|
1179
|
-
className: styles["sidebar-btn-minimized"] + " c-sidebar-brand-full",
|
|
1180
|
-
onClick: function onClick() {
|
|
1181
|
-
return setToggleMinimize(true);
|
|
1182
|
-
}
|
|
1183
|
-
})), React.createElement(CSidebarNav, {
|
|
1184
|
-
className: "" + styles["sidebar-nav-links"]
|
|
1185
|
-
}, React.createElement(CCreateElement, {
|
|
1160
|
+
className: styles["sidebar-logo"] + " c-sidebar-brand-minimized"
|
|
1161
|
+
})), React.createElement(CSidebarNav, null, React.createElement(CCreateElement, {
|
|
1186
1162
|
items: navigation,
|
|
1187
1163
|
components: {
|
|
1188
1164
|
CSidebarNavDivider: CSidebarNavDivider,
|
|
@@ -1190,15 +1166,10 @@ var TheSidebar = function TheSidebar(_ref) {
|
|
|
1190
1166
|
CSidebarNavItem: CSidebarNavItem,
|
|
1191
1167
|
CSidebarNavTitle: CSidebarNavTitle
|
|
1192
1168
|
}
|
|
1193
|
-
})), React.createElement(
|
|
1194
|
-
|
|
1195
|
-
className:
|
|
1196
|
-
}
|
|
1197
|
-
onClick: signOut,
|
|
1198
|
-
className: "" + styles["sidebar-logout"]
|
|
1199
|
-
}), React.createElement("p", {
|
|
1200
|
-
onClick: signOut
|
|
1201
|
-
}, "Log out")));
|
|
1169
|
+
})), React.createElement(CSidebarMinimizer, {
|
|
1170
|
+
id: "sidebar-minimizer",
|
|
1171
|
+
className: "c-d-md-down-none"
|
|
1172
|
+
}));
|
|
1202
1173
|
};
|
|
1203
1174
|
|
|
1204
1175
|
var setNotification = createAction("notifications/setNotification");
|