mario-teacher-student-client 1.8.8 → 1.9.2
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 +1 -1
- package/dist/index.js +28 -8
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +28 -8
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -179,7 +179,7 @@ var ICON_NAV = [{
|
|
|
179
179
|
}];
|
|
180
180
|
|
|
181
181
|
var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
182
|
-
var _clsx;
|
|
182
|
+
var _currentUrl$split, _clsx;
|
|
183
183
|
|
|
184
184
|
var children = _ref.children,
|
|
185
185
|
navigations = _ref.navigations;
|
|
@@ -198,6 +198,7 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
198
198
|
return state.common.user.pusherKey;
|
|
199
199
|
});
|
|
200
200
|
var currentUrl = location.pathname;
|
|
201
|
+
var urlActive = (_currentUrl$split = currentUrl.split("/")) === null || _currentUrl$split === void 0 ? void 0 : _currentUrl$split[1];
|
|
201
202
|
var roles = reactRedux.useSelector(function (state) {
|
|
202
203
|
var _state$common2, _state$common2$user;
|
|
203
204
|
|
|
@@ -319,7 +320,11 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
319
320
|
className: classes.grow
|
|
320
321
|
}), React__default.createElement("div", {
|
|
321
322
|
className: classes.sectionDesktop
|
|
322
|
-
}, React__default.createElement(
|
|
323
|
+
}, React__default.createElement("a", {
|
|
324
|
+
className: classes.textPrivacy,
|
|
325
|
+
href: 'https://marioframework.com/privacy-policy',
|
|
326
|
+
target: "blank"
|
|
327
|
+
}, "Privacy Policy"), React__default.createElement(IconButton, {
|
|
323
328
|
"aria-label": "show 17 new notifications",
|
|
324
329
|
color: "inherit",
|
|
325
330
|
onClick: handleMenu
|
|
@@ -369,7 +374,7 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
369
374
|
onClick: function onClick() {
|
|
370
375
|
return history.push(navigation.to);
|
|
371
376
|
},
|
|
372
|
-
className: classes.drawerItem + " " + (
|
|
377
|
+
className: classes.drawerItem + " " + (urlActive != '' && (navigation.to.includes(urlActive) || navigation.to.includes('my-student') && urlActive == 'student-detail') ? classes.drawerActive : "")
|
|
373
378
|
}, React__default.createElement(core.ListItemIcon, null, (_ICON_NAV$find = ICON_NAV.find(function (nav) {
|
|
374
379
|
return nav.name == navigation.name;
|
|
375
380
|
})) === null || _ICON_NAV$find === void 0 ? void 0 : _ICON_NAV$find.icon), React__default.createElement(core.ListItemText, null, React__default.createElement("span", {
|
|
@@ -393,7 +398,7 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
393
398
|
toggleSideBar();
|
|
394
399
|
history.push(navigation.to);
|
|
395
400
|
},
|
|
396
|
-
className: classes.drawerItem + " " + (
|
|
401
|
+
className: classes.drawerItem + " " + (urlActive != '' && (navigation.to.includes(urlActive) || navigation.to.includes('my-student') && urlActive == 'student-detail') ? classes.drawerActive : "")
|
|
397
402
|
}, React__default.createElement(core.ListItemIcon, null, (_ICON_NAV$find2 = ICON_NAV.find(function (nav) {
|
|
398
403
|
return nav.name == navigation.name;
|
|
399
404
|
})) === null || _ICON_NAV$find2 === void 0 ? void 0 : _ICON_NAV$find2.icon), React__default.createElement(core.ListItemText, {
|
|
@@ -420,7 +425,7 @@ var useStyles = styles$b.makeStyles(function (theme) {
|
|
|
420
425
|
}
|
|
421
426
|
},
|
|
422
427
|
header: {
|
|
423
|
-
zIndex:
|
|
428
|
+
zIndex: 1000,
|
|
424
429
|
background: "#156DA1"
|
|
425
430
|
},
|
|
426
431
|
dropdown: {
|
|
@@ -436,6 +441,17 @@ var useStyles = styles$b.makeStyles(function (theme) {
|
|
|
436
441
|
}, _drawer[theme.breakpoints.down(600)] = {
|
|
437
442
|
display: "none"
|
|
438
443
|
}, _drawer),
|
|
444
|
+
textPrivacy: {
|
|
445
|
+
display: 'flex',
|
|
446
|
+
alignItems: 'center',
|
|
447
|
+
color: '#fff',
|
|
448
|
+
textDecoration: 'none',
|
|
449
|
+
marginRight: '12px',
|
|
450
|
+
"&:hover": {
|
|
451
|
+
color: '#fff',
|
|
452
|
+
textDecoration: 'none'
|
|
453
|
+
}
|
|
454
|
+
},
|
|
439
455
|
drawerItem: {
|
|
440
456
|
height: "70px",
|
|
441
457
|
display: "flex",
|
|
@@ -460,7 +476,8 @@ var useStyles = styles$b.makeStyles(function (theme) {
|
|
|
460
476
|
},
|
|
461
477
|
drawerPaper: (_drawerPaper = {
|
|
462
478
|
width: drawerWidth,
|
|
463
|
-
paddingTop: headerHeightDesktop
|
|
479
|
+
paddingTop: headerHeightDesktop,
|
|
480
|
+
zIndex: 900
|
|
464
481
|
}, _drawerPaper[theme.breakpoints.down(600)] = {
|
|
465
482
|
paddingTop: headerHeightMobile
|
|
466
483
|
}, _drawerPaper),
|
|
@@ -11022,6 +11039,9 @@ var StudentList = function StudentList() {
|
|
|
11022
11039
|
accept: "text/csv",
|
|
11023
11040
|
onChange: function onChange(e) {
|
|
11024
11041
|
return importStudentCsv(e.target.files[0], teacherID, getData);
|
|
11042
|
+
},
|
|
11043
|
+
onClick: function onClick(event) {
|
|
11044
|
+
event.target.value = null;
|
|
11025
11045
|
}
|
|
11026
11046
|
}), React__default.createElement(Label, {
|
|
11027
11047
|
htmlFor: "uploadFile",
|
|
@@ -12889,7 +12909,7 @@ var OneToOne = function OneToOne() {
|
|
|
12889
12909
|
onClick: function onClick() {
|
|
12890
12910
|
handleSort("Name");
|
|
12891
12911
|
},
|
|
12892
|
-
width: "
|
|
12912
|
+
width: "15%"
|
|
12893
12913
|
}, "Student name", filter.sortBy === "Name" ? filter.sortOrder === "DESC" ? React__default.createElement(ArrowDownwardIcon, {
|
|
12894
12914
|
color: "disabled",
|
|
12895
12915
|
style: {
|
|
@@ -13336,7 +13356,7 @@ var Conferences = function Conferences() {
|
|
|
13336
13356
|
textTransform: "uppercase",
|
|
13337
13357
|
cursor: "pointer"
|
|
13338
13358
|
},
|
|
13339
|
-
width: "
|
|
13359
|
+
width: "15%",
|
|
13340
13360
|
onClick: function onClick() {
|
|
13341
13361
|
handleSort("Name");
|
|
13342
13362
|
}
|