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