mario-core 2.9.7 → 2.9.8-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.css +36 -0
- package/dist/index.js +43 -14
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +44 -15
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -333,10 +333,46 @@
|
|
|
333
333
|
max-width: 300px;
|
|
334
334
|
max-height: 75px; }
|
|
335
335
|
|
|
336
|
+
._2vcmv {
|
|
337
|
+
background: #262626 !important; }
|
|
338
|
+
|
|
336
339
|
._1hXpy {
|
|
337
340
|
max-width: 160px;
|
|
338
341
|
max-height: 40px; }
|
|
339
342
|
|
|
343
|
+
._3vb3s li > a {
|
|
344
|
+
color: #808080 !important; }
|
|
345
|
+
|
|
346
|
+
._3vb3s li > a:hover {
|
|
347
|
+
background: #191919 !important;
|
|
348
|
+
color: #ffff !important; }
|
|
349
|
+
|
|
350
|
+
._3vb3s li > ._36jSM {
|
|
351
|
+
background: #191919 !important;
|
|
352
|
+
color: #ffff !important; }
|
|
353
|
+
|
|
354
|
+
._3NEZj, ._1wUDG {
|
|
355
|
+
background: #262626 !important; }
|
|
356
|
+
|
|
357
|
+
._1S7Px {
|
|
358
|
+
cursor: pointer;
|
|
359
|
+
font-size: 20px;
|
|
360
|
+
color: #808080; }
|
|
361
|
+
|
|
362
|
+
._1wUDG {
|
|
363
|
+
background: #262626;
|
|
364
|
+
cursor: pointer; }
|
|
365
|
+
._1wUDG p {
|
|
366
|
+
color: #808080;
|
|
367
|
+
margin: 0;
|
|
368
|
+
cursor: pointer; }
|
|
369
|
+
|
|
370
|
+
._2P85D {
|
|
371
|
+
height: 25px;
|
|
372
|
+
margin-right: 15px;
|
|
373
|
+
cursor: pointer;
|
|
374
|
+
color: #808080; }
|
|
375
|
+
|
|
340
376
|
._1qjbW {
|
|
341
377
|
height: 90vh; }
|
|
342
378
|
|
package/dist/index.js
CHANGED
|
@@ -12,6 +12,8 @@ var toolkit = require('@reduxjs/toolkit');
|
|
|
12
12
|
var axios = _interopDefault(require('axios'));
|
|
13
13
|
var reactGoogleRecaptchaV3 = require('react-google-recaptcha-v3');
|
|
14
14
|
var react = require('@coreui/react');
|
|
15
|
+
var cg = require('react-icons/cg');
|
|
16
|
+
var ri = require('react-icons/ri');
|
|
15
17
|
var Pusher = _interopDefault(require('pusher-js/with-encryption'));
|
|
16
18
|
var fa = require('react-icons/fa');
|
|
17
19
|
var Select = _interopDefault(require('react-select'));
|
|
@@ -46,7 +48,7 @@ function _catch(body, recover) {
|
|
|
46
48
|
return result;
|
|
47
49
|
}
|
|
48
50
|
|
|
49
|
-
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"};
|
|
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"};
|
|
50
52
|
|
|
51
53
|
var style = {
|
|
52
54
|
fontSize: "0.85rem"
|
|
@@ -384,7 +386,7 @@ var useLogin = function useLogin() {
|
|
|
384
386
|
history.push(HOMEPAGE_DISTRICT);
|
|
385
387
|
} else if (roles.includes("Admin")) {
|
|
386
388
|
history.push(HOMEPAGE_ADMIN);
|
|
387
|
-
} else if (roles.includes("Teacher")) {
|
|
389
|
+
} else if (roles.includes("Teacher") || roles.includes("Assistant")) {
|
|
388
390
|
history.push(HOMEPAGE_TEACHER);
|
|
389
391
|
} else if (roles.includes("Student")) {
|
|
390
392
|
history.push(HOMEPAGE_STUDENT);
|
|
@@ -1139,9 +1141,9 @@ var Dashboard = function Dashboard() {
|
|
|
1139
1141
|
var Images = {
|
|
1140
1142
|
USER_CONVERSATION_AVATAR: "images/user.png",
|
|
1141
1143
|
GROUP_CONVERSATION_AVATAR: "images/group.png",
|
|
1142
|
-
LOGO: "images/
|
|
1144
|
+
LOGO: "images/logoV1-1.png",
|
|
1143
1145
|
LOGO_HEADER: "images/logo-header.png",
|
|
1144
|
-
LOGO_MINIMIZED: "images/logo-
|
|
1146
|
+
LOGO_MINIMIZED: "images/logo-small.png",
|
|
1145
1147
|
DOCS_IMAGE: "images/docs.png",
|
|
1146
1148
|
AUDIO_IMAGE: "images/audio.png",
|
|
1147
1149
|
PHOTO_IMAGE: "images/image.png",
|
|
@@ -1153,24 +1155,46 @@ var Images = {
|
|
|
1153
1155
|
var TheSidebar = function TheSidebar(_ref) {
|
|
1154
1156
|
var navigation = _ref.navigation;
|
|
1155
1157
|
var dispatch = reactRedux.useDispatch();
|
|
1158
|
+
var history = reactRouterDom.useHistory();
|
|
1156
1159
|
var show = reactRedux.useSelector(function (state) {
|
|
1157
1160
|
return state.common.sidebarShow;
|
|
1158
1161
|
});
|
|
1162
|
+
|
|
1163
|
+
var _useState = React.useState(false),
|
|
1164
|
+
toggleMinimize = _useState[0],
|
|
1165
|
+
setToggleMinimize = _useState[1];
|
|
1166
|
+
|
|
1167
|
+
var signOut = React.useCallback(function () {
|
|
1168
|
+
localStorage.removeItem(ACCESS_TOKEN);
|
|
1169
|
+
dispatch(reset());
|
|
1170
|
+
history.push("/");
|
|
1171
|
+
}, []);
|
|
1159
1172
|
return React__default.createElement(react.CSidebar, {
|
|
1160
1173
|
show: show,
|
|
1161
1174
|
onShowChange: function onShowChange(val) {
|
|
1162
1175
|
return dispatch(setSidebar(val));
|
|
1163
|
-
}
|
|
1176
|
+
},
|
|
1177
|
+
minimize: toggleMinimize,
|
|
1178
|
+
className: "" + styles["box-sidebar"]
|
|
1164
1179
|
}, React__default.createElement(react.CSidebarBrand, {
|
|
1165
|
-
className: "d-md-down-none"
|
|
1166
|
-
|
|
1167
|
-
}, React__default.createElement("img", {
|
|
1180
|
+
className: styles["box-sidebar-header"] + " d-md-down-none justify-content-around"
|
|
1181
|
+
}, React__default.createElement("div", null, React__default.createElement("img", {
|
|
1168
1182
|
src: Images.LOGO,
|
|
1169
1183
|
className: styles["sidebar-logo"] + " c-sidebar-brand-full"
|
|
1170
1184
|
}), React__default.createElement("img", {
|
|
1171
1185
|
src: Images.LOGO_MINIMIZED,
|
|
1172
|
-
className: styles["sidebar-logo"] + " c-sidebar-brand-minimized"
|
|
1173
|
-
|
|
1186
|
+
className: styles["sidebar-logo"] + " " + styles["sidebar-btn-minimized"] + " c-sidebar-brand-minimized",
|
|
1187
|
+
onClick: function onClick() {
|
|
1188
|
+
return setToggleMinimize(false);
|
|
1189
|
+
}
|
|
1190
|
+
})), React__default.createElement(cg.CgMenuRight, {
|
|
1191
|
+
className: styles["sidebar-btn-minimized"] + " c-sidebar-brand-full",
|
|
1192
|
+
onClick: function onClick() {
|
|
1193
|
+
return setToggleMinimize(true);
|
|
1194
|
+
}
|
|
1195
|
+
})), React__default.createElement(react.CSidebarNav, {
|
|
1196
|
+
className: "" + styles["sidebar-nav-links"]
|
|
1197
|
+
}, React__default.createElement(react.CCreateElement, {
|
|
1174
1198
|
items: navigation,
|
|
1175
1199
|
components: {
|
|
1176
1200
|
CSidebarNavDivider: react.CSidebarNavDivider,
|
|
@@ -1178,10 +1202,15 @@ var TheSidebar = function TheSidebar(_ref) {
|
|
|
1178
1202
|
CSidebarNavItem: react.CSidebarNavItem,
|
|
1179
1203
|
CSidebarNavTitle: react.CSidebarNavTitle
|
|
1180
1204
|
}
|
|
1181
|
-
})), React__default.createElement(react.
|
|
1182
|
-
|
|
1183
|
-
className: "
|
|
1184
|
-
}
|
|
1205
|
+
})), React__default.createElement(react.CSidebarFooter, {
|
|
1206
|
+
onClick: signOut,
|
|
1207
|
+
className: styles["box-logout"] + " p-3 d-flex align-items-center cursor-point"
|
|
1208
|
+
}, React__default.createElement(ri.RiLogoutBoxRLine, {
|
|
1209
|
+
onClick: signOut,
|
|
1210
|
+
className: "" + styles["sidebar-logout"]
|
|
1211
|
+
}), React__default.createElement("p", {
|
|
1212
|
+
onClick: signOut
|
|
1213
|
+
}, "Log out")));
|
|
1185
1214
|
};
|
|
1186
1215
|
|
|
1187
1216
|
var setNotification = toolkit.createAction("notifications/setNotification");
|