mario-core 2.9.5 → 2.9.7-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 +54 -16
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +55 -17
- package/dist/index.modern.js.map +1 -1
- package/package.json +94 -94
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);
|
|
@@ -1082,7 +1084,16 @@ var ContentHomePage = function ContentHomePage(_ref) {
|
|
|
1082
1084
|
srcIcon: content.scrIcon,
|
|
1083
1085
|
content: content.content
|
|
1084
1086
|
}));
|
|
1085
|
-
})
|
|
1087
|
+
}), React__default.createElement(reactstrap.Col, {
|
|
1088
|
+
md: 12,
|
|
1089
|
+
className: styles["student-image"] + " d-flex justify-content-end mt-5"
|
|
1090
|
+
}, React__default.createElement("a", {
|
|
1091
|
+
href: "https://cert.privo.com/#/companies/marioFrameworkLlc",
|
|
1092
|
+
target: "blank"
|
|
1093
|
+
}, React__default.createElement(IconContent, {
|
|
1094
|
+
srcIcon: "/images/STUDENT.png",
|
|
1095
|
+
content: ""
|
|
1096
|
+
}))));
|
|
1086
1097
|
};
|
|
1087
1098
|
|
|
1088
1099
|
var HOME_ADMIN = "/admin/user";
|
|
@@ -1130,9 +1141,9 @@ var Dashboard = function Dashboard() {
|
|
|
1130
1141
|
var Images = {
|
|
1131
1142
|
USER_CONVERSATION_AVATAR: "images/user.png",
|
|
1132
1143
|
GROUP_CONVERSATION_AVATAR: "images/group.png",
|
|
1133
|
-
LOGO: "images/
|
|
1144
|
+
LOGO: "images/logoV1-1.png",
|
|
1134
1145
|
LOGO_HEADER: "images/logo-header.png",
|
|
1135
|
-
LOGO_MINIMIZED: "images/logo-
|
|
1146
|
+
LOGO_MINIMIZED: "images/logo-small.png",
|
|
1136
1147
|
DOCS_IMAGE: "images/docs.png",
|
|
1137
1148
|
AUDIO_IMAGE: "images/audio.png",
|
|
1138
1149
|
PHOTO_IMAGE: "images/image.png",
|
|
@@ -1144,24 +1155,46 @@ var Images = {
|
|
|
1144
1155
|
var TheSidebar = function TheSidebar(_ref) {
|
|
1145
1156
|
var navigation = _ref.navigation;
|
|
1146
1157
|
var dispatch = reactRedux.useDispatch();
|
|
1158
|
+
var history = reactRouterDom.useHistory();
|
|
1147
1159
|
var show = reactRedux.useSelector(function (state) {
|
|
1148
1160
|
return state.common.sidebarShow;
|
|
1149
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
|
+
}, []);
|
|
1150
1172
|
return React__default.createElement(react.CSidebar, {
|
|
1151
1173
|
show: show,
|
|
1152
1174
|
onShowChange: function onShowChange(val) {
|
|
1153
1175
|
return dispatch(setSidebar(val));
|
|
1154
|
-
}
|
|
1176
|
+
},
|
|
1177
|
+
minimize: toggleMinimize,
|
|
1178
|
+
className: "" + styles["box-sidebar"]
|
|
1155
1179
|
}, React__default.createElement(react.CSidebarBrand, {
|
|
1156
|
-
className: "d-md-down-none"
|
|
1157
|
-
|
|
1158
|
-
}, 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", {
|
|
1159
1182
|
src: Images.LOGO,
|
|
1160
1183
|
className: styles["sidebar-logo"] + " c-sidebar-brand-full"
|
|
1161
1184
|
}), React__default.createElement("img", {
|
|
1162
1185
|
src: Images.LOGO_MINIMIZED,
|
|
1163
|
-
className: styles["sidebar-logo"] + " c-sidebar-brand-minimized"
|
|
1164
|
-
|
|
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, {
|
|
1165
1198
|
items: navigation,
|
|
1166
1199
|
components: {
|
|
1167
1200
|
CSidebarNavDivider: react.CSidebarNavDivider,
|
|
@@ -1169,10 +1202,15 @@ var TheSidebar = function TheSidebar(_ref) {
|
|
|
1169
1202
|
CSidebarNavItem: react.CSidebarNavItem,
|
|
1170
1203
|
CSidebarNavTitle: react.CSidebarNavTitle
|
|
1171
1204
|
}
|
|
1172
|
-
})), React__default.createElement(react.
|
|
1173
|
-
|
|
1174
|
-
className: "
|
|
1175
|
-
}
|
|
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")));
|
|
1176
1214
|
};
|
|
1177
1215
|
|
|
1178
1216
|
var setNotification = toolkit.createAction("notifications/setNotification");
|
|
@@ -1421,7 +1459,7 @@ var TheHeader = function TheHeader() {
|
|
|
1421
1459
|
style: {
|
|
1422
1460
|
color: '#000'
|
|
1423
1461
|
},
|
|
1424
|
-
href: '
|
|
1462
|
+
href: '/privacy-policy',
|
|
1425
1463
|
target: "blank"
|
|
1426
1464
|
}, "Privacy Policy"), !isDistrict && React__default.createElement(NotificationButton, null), React__default.createElement(TheHeaderDropdown, null)));
|
|
1427
1465
|
};
|