mario-core 2.9.5-beta → 2.9.7

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 CHANGED
@@ -333,46 +333,10 @@
333
333
  max-width: 300px;
334
334
  max-height: 75px; }
335
335
 
336
- ._2vcmv {
337
- background: #262626 !important; }
338
-
339
336
  ._1hXpy {
340
337
  max-width: 160px;
341
338
  max-height: 40px; }
342
339
 
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
-
376
340
  ._1qjbW {
377
341
  height: 90vh; }
378
342
 
package/dist/index.js CHANGED
@@ -12,8 +12,6 @@ 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');
17
15
  var Pusher = _interopDefault(require('pusher-js/with-encryption'));
18
16
  var fa = require('react-icons/fa');
19
17
  var Select = _interopDefault(require('react-select'));
@@ -48,7 +46,7 @@ function _catch(body, recover) {
48
46
  return result;
49
47
  }
50
48
 
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"};
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"};
52
50
 
53
51
  var style = {
54
52
  fontSize: "0.85rem"
@@ -386,7 +384,7 @@ var useLogin = function useLogin() {
386
384
  history.push(HOMEPAGE_DISTRICT);
387
385
  } else if (roles.includes("Admin")) {
388
386
  history.push(HOMEPAGE_ADMIN);
389
- } else if (roles.includes("Teacher") || roles.includes("Assistant")) {
387
+ } else if (roles.includes("Teacher")) {
390
388
  history.push(HOMEPAGE_TEACHER);
391
389
  } else if (roles.includes("Student")) {
392
390
  history.push(HOMEPAGE_STUDENT);
@@ -1084,7 +1082,16 @@ var ContentHomePage = function ContentHomePage(_ref) {
1084
1082
  srcIcon: content.scrIcon,
1085
1083
  content: content.content
1086
1084
  }));
1087
- }));
1085
+ }), React__default.createElement(reactstrap.Col, {
1086
+ md: 12,
1087
+ className: styles["student-image"] + " d-flex justify-content-end mt-5"
1088
+ }, React__default.createElement("a", {
1089
+ href: "https://cert.privo.com/#/companies/marioFrameworkLlc",
1090
+ target: "blank"
1091
+ }, React__default.createElement(IconContent, {
1092
+ srcIcon: "/images/STUDENT.png",
1093
+ content: ""
1094
+ }))));
1088
1095
  };
1089
1096
 
1090
1097
  var HOME_ADMIN = "/admin/user";
@@ -1132,7 +1139,7 @@ var Dashboard = function Dashboard() {
1132
1139
  var Images = {
1133
1140
  USER_CONVERSATION_AVATAR: "images/user.png",
1134
1141
  GROUP_CONVERSATION_AVATAR: "images/group.png",
1135
- LOGO: "images/logoV1-1.png",
1142
+ LOGO: "images/logo.png",
1136
1143
  LOGO_HEADER: "images/logo-header.png",
1137
1144
  LOGO_MINIMIZED: "images/logo-minimized.png",
1138
1145
  DOCS_IMAGE: "images/docs.png",
@@ -1146,46 +1153,24 @@ var Images = {
1146
1153
  var TheSidebar = function TheSidebar(_ref) {
1147
1154
  var navigation = _ref.navigation;
1148
1155
  var dispatch = reactRedux.useDispatch();
1149
- var history = reactRouterDom.useHistory();
1150
1156
  var show = reactRedux.useSelector(function (state) {
1151
1157
  return state.common.sidebarShow;
1152
1158
  });
1153
-
1154
- var _useState = React.useState(false),
1155
- toggleMinimize = _useState[0],
1156
- setToggleMinimize = _useState[1];
1157
-
1158
- var signOut = React.useCallback(function () {
1159
- localStorage.removeItem(ACCESS_TOKEN);
1160
- dispatch(reset());
1161
- history.push("/");
1162
- }, []);
1163
1159
  return React__default.createElement(react.CSidebar, {
1164
1160
  show: show,
1165
1161
  onShowChange: function onShowChange(val) {
1166
1162
  return dispatch(setSidebar(val));
1167
- },
1168
- minimize: toggleMinimize,
1169
- className: "" + styles["box-sidebar"]
1163
+ }
1170
1164
  }, React__default.createElement(react.CSidebarBrand, {
1171
- className: styles["box-sidebar-header"] + " d-md-down-none justify-content-around"
1172
- }, React__default.createElement("div", null, React__default.createElement("img", {
1165
+ className: "d-md-down-none",
1166
+ to: "/"
1167
+ }, React__default.createElement("img", {
1173
1168
  src: Images.LOGO,
1174
1169
  className: styles["sidebar-logo"] + " c-sidebar-brand-full"
1175
1170
  }), React__default.createElement("img", {
1176
1171
  src: Images.LOGO_MINIMIZED,
1177
- className: styles["sidebar-logo"] + " " + styles["sidebar-btn-minimized"] + " c-sidebar-brand-minimized",
1178
- onClick: function onClick() {
1179
- return setToggleMinimize(false);
1180
- }
1181
- })), React__default.createElement(cg.CgMenuRight, {
1182
- className: styles["sidebar-btn-minimized"] + " c-sidebar-brand-full",
1183
- onClick: function onClick() {
1184
- return setToggleMinimize(true);
1185
- }
1186
- })), React__default.createElement(react.CSidebarNav, {
1187
- className: "" + styles["sidebar-nav-links"]
1188
- }, React__default.createElement(react.CCreateElement, {
1172
+ className: styles["sidebar-logo"] + " c-sidebar-brand-minimized"
1173
+ })), React__default.createElement(react.CSidebarNav, null, React__default.createElement(react.CCreateElement, {
1189
1174
  items: navigation,
1190
1175
  components: {
1191
1176
  CSidebarNavDivider: react.CSidebarNavDivider,
@@ -1193,15 +1178,10 @@ var TheSidebar = function TheSidebar(_ref) {
1193
1178
  CSidebarNavItem: react.CSidebarNavItem,
1194
1179
  CSidebarNavTitle: react.CSidebarNavTitle
1195
1180
  }
1196
- })), React__default.createElement(react.CSidebarFooter, {
1197
- onClick: signOut,
1198
- className: styles["box-logout"] + " p-3 d-flex align-items-center cursor-point"
1199
- }, React__default.createElement(ri.RiLogoutBoxRLine, {
1200
- onClick: signOut,
1201
- className: "" + styles["sidebar-logout"]
1202
- }), React__default.createElement("p", {
1203
- onClick: signOut
1204
- }, "Log out")));
1181
+ })), React__default.createElement(react.CSidebarMinimizer, {
1182
+ id: "sidebar-minimizer",
1183
+ className: "c-d-md-down-none"
1184
+ }));
1205
1185
  };
1206
1186
 
1207
1187
  var setNotification = toolkit.createAction("notifications/setNotification");
@@ -1450,7 +1430,7 @@ var TheHeader = function TheHeader() {
1450
1430
  style: {
1451
1431
  color: '#000'
1452
1432
  },
1453
- href: 'https://marioframework.com/privacy-policy',
1433
+ href: '/privacy-policy',
1454
1434
  target: "blank"
1455
1435
  }, "Privacy Policy"), !isDistrict && React__default.createElement(NotificationButton, null), React__default.createElement(TheHeaderDropdown, null)));
1456
1436
  };