mario-core 2.9.4 → 2.9.5-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 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);
@@ -1130,7 +1132,7 @@ var Dashboard = function Dashboard() {
1130
1132
  var Images = {
1131
1133
  USER_CONVERSATION_AVATAR: "images/user.png",
1132
1134
  GROUP_CONVERSATION_AVATAR: "images/group.png",
1133
- LOGO: "images/logo.png",
1135
+ LOGO: "images/logoV1-1.png",
1134
1136
  LOGO_HEADER: "images/logo-header.png",
1135
1137
  LOGO_MINIMIZED: "images/logo-minimized.png",
1136
1138
  DOCS_IMAGE: "images/docs.png",
@@ -1144,24 +1146,46 @@ var Images = {
1144
1146
  var TheSidebar = function TheSidebar(_ref) {
1145
1147
  var navigation = _ref.navigation;
1146
1148
  var dispatch = reactRedux.useDispatch();
1149
+ var history = reactRouterDom.useHistory();
1147
1150
  var show = reactRedux.useSelector(function (state) {
1148
1151
  return state.common.sidebarShow;
1149
1152
  });
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
+ }, []);
1150
1163
  return React__default.createElement(react.CSidebar, {
1151
1164
  show: show,
1152
1165
  onShowChange: function onShowChange(val) {
1153
1166
  return dispatch(setSidebar(val));
1154
- }
1167
+ },
1168
+ minimize: toggleMinimize,
1169
+ className: "" + styles["box-sidebar"]
1155
1170
  }, React__default.createElement(react.CSidebarBrand, {
1156
- className: "d-md-down-none",
1157
- to: "/"
1158
- }, React__default.createElement("img", {
1171
+ className: styles["box-sidebar-header"] + " d-md-down-none justify-content-around"
1172
+ }, React__default.createElement("div", null, React__default.createElement("img", {
1159
1173
  src: Images.LOGO,
1160
1174
  className: styles["sidebar-logo"] + " c-sidebar-brand-full"
1161
1175
  }), React__default.createElement("img", {
1162
1176
  src: Images.LOGO_MINIMIZED,
1163
- className: styles["sidebar-logo"] + " c-sidebar-brand-minimized"
1164
- })), React__default.createElement(react.CSidebarNav, null, React__default.createElement(react.CCreateElement, {
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, {
1165
1189
  items: navigation,
1166
1190
  components: {
1167
1191
  CSidebarNavDivider: react.CSidebarNavDivider,
@@ -1169,10 +1193,15 @@ var TheSidebar = function TheSidebar(_ref) {
1169
1193
  CSidebarNavItem: react.CSidebarNavItem,
1170
1194
  CSidebarNavTitle: react.CSidebarNavTitle
1171
1195
  }
1172
- })), React__default.createElement(react.CSidebarMinimizer, {
1173
- id: "sidebar-minimizer",
1174
- className: "c-d-md-down-none"
1175
- }));
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")));
1176
1205
  };
1177
1206
 
1178
1207
  var setNotification = toolkit.createAction("notifications/setNotification");