mario-core 3.0.5-admin → 3.0.6-admin
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/containers/Login/constant/type.d.ts +5 -0
- package/dist/containers/Login/views/ModelSelectRole.d.ts +4 -0
- package/dist/containers/Login/views/block/IconContent.d.ts +2 -2
- package/dist/containers/Login/views/block/QuoteContent.d.ts +2 -5
- package/dist/index.css +167 -127
- package/dist/index.js +115 -89
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +116 -90
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/amplitude.d.ts +1 -0
- package/dist/utils/constants.d.ts +0 -1
- package/package.json +100 -100
package/dist/index.modern.js
CHANGED
|
@@ -3,7 +3,7 @@ import i18n from 'i18next';
|
|
|
3
3
|
import { initReactI18next, useTranslation } from 'react-i18next';
|
|
4
4
|
export { I18nextProvider, useTranslation } from 'react-i18next';
|
|
5
5
|
import React, { useState, useCallback, useEffect, forwardRef, useRef, Suspense, useMemo, memo, Fragment, useImperativeHandle } from 'react';
|
|
6
|
-
import { Input, Modal, ModalHeader, ModalBody, ModalFooter, Button, Row, Col, Form, FormGroup, Label, Dropdown, DropdownToggle, DropdownMenu,
|
|
6
|
+
import { Input, Modal, ModalHeader, ModalBody, ModalFooter, Button, Row, Col, Form, FormGroup, Label, Navbar, NavbarBrand, Collapse, Nav, NavItem, NavLink, Dropdown, DropdownToggle, DropdownMenu, DropdownItem, Alert, Pagination, PaginationItem, PaginationLink, Table, CustomInput, TabContent, TabPane, Card, CardImg, CardBody, CardTitle, CardHeader, CardText } from 'reactstrap';
|
|
7
7
|
import { useHistory, Link, useLocation, Switch, Route, Prompt, useParams } from 'react-router-dom';
|
|
8
8
|
import { Formik } from 'formik';
|
|
9
9
|
import { object, string, boolean, number, array } from 'yup';
|
|
@@ -14,6 +14,7 @@ import amplitude from 'amplitude-js';
|
|
|
14
14
|
import { useGoogleReCaptcha, GoogleReCaptcha, GoogleReCaptchaProvider } from 'react-google-recaptcha-v3';
|
|
15
15
|
import GoogleLogin from 'react-google-login';
|
|
16
16
|
import Select from 'react-select';
|
|
17
|
+
import { GiHamburgerMenu } from 'react-icons/gi';
|
|
17
18
|
import { CSidebar, CSidebarBrand, CSidebarNav, CCreateElement, CSidebarNavDivider, CSidebarNavDropdown, CSidebarNavItem, CSidebarNavTitle, CSidebarFooter, CHeader, CHeaderBrand, CHeaderNav, CContainer } from '@coreui/react';
|
|
18
19
|
import { CgMenuRight } from 'react-icons/cg';
|
|
19
20
|
import { RiLogoutBoxRLine } from 'react-icons/ri';
|
|
@@ -507,8 +508,6 @@ var search_activity = "Search activity";
|
|
|
507
508
|
var activity = "Activity";
|
|
508
509
|
var activity_type = "Activity type";
|
|
509
510
|
var select_or_type_an_activity = "Select or type an activity";
|
|
510
|
-
var counselor_name = "Counselor Name";
|
|
511
|
-
var assign_counselor = "Assign Counselor";
|
|
512
511
|
var lang_us = {
|
|
513
512
|
dashboard: dashboard,
|
|
514
513
|
user: user,
|
|
@@ -991,9 +990,7 @@ var lang_us = {
|
|
|
991
990
|
search_activity: search_activity,
|
|
992
991
|
activity: activity,
|
|
993
992
|
activity_type: activity_type,
|
|
994
|
-
select_or_type_an_activity: select_or_type_an_activity
|
|
995
|
-
counselor_name: counselor_name,
|
|
996
|
-
assign_counselor: assign_counselor
|
|
993
|
+
select_or_type_an_activity: select_or_type_an_activity
|
|
997
994
|
};
|
|
998
995
|
|
|
999
996
|
var dashboard$1 = "Dashboard";
|
|
@@ -1473,8 +1470,6 @@ var search_activity$1 = "Search activity";
|
|
|
1473
1470
|
var activity$1 = "Activity";
|
|
1474
1471
|
var activity_type$1 = "Activity type";
|
|
1475
1472
|
var select_or_type_an_activity$1 = "Select or type an activity";
|
|
1476
|
-
var counselor_name$1 = "Counselor Name";
|
|
1477
|
-
var assign_counselor$1 = "Assign Counselor";
|
|
1478
1473
|
var lang_uk = {
|
|
1479
1474
|
dashboard: dashboard$1,
|
|
1480
1475
|
user: user$1,
|
|
@@ -1957,9 +1952,7 @@ var lang_uk = {
|
|
|
1957
1952
|
search_activity: search_activity$1,
|
|
1958
1953
|
activity: activity$1,
|
|
1959
1954
|
activity_type: activity_type$1,
|
|
1960
|
-
select_or_type_an_activity: select_or_type_an_activity$1
|
|
1961
|
-
counselor_name: counselor_name$1,
|
|
1962
|
-
assign_counselor: assign_counselor$1
|
|
1955
|
+
select_or_type_an_activity: select_or_type_an_activity$1
|
|
1963
1956
|
};
|
|
1964
1957
|
|
|
1965
1958
|
var DEFAULT_LANGUAGE = localStorage.getItem("language") !== null ? localStorage.getItem("language") : "uk";
|
|
@@ -2002,7 +1995,7 @@ function _catch(body, recover) {
|
|
|
2002
1995
|
return result;
|
|
2003
1996
|
}
|
|
2004
1997
|
|
|
2005
|
-
var styles = {"btn-login-google":"_2HqmH","notification-count":"_2sew7","text-introduction":"_3OgWF","btn-trans-border":"_r9cAh","contact":"_NszFe","learn-more":"_MDjzH","title-quote":"_1Swkw","descriptions-quote":"_gi8vj","
|
|
1998
|
+
var styles = {"btn-login-google":"_2HqmH","notification-count":"_2sew7","text-introduction":"_3OgWF","btn-trans-border":"_r9cAh","contact":"_NszFe","learn-more":"_MDjzH","title-quote":"_1Swkw","descriptions-quote":"_gi8vj","box-login":"_38Lo1","block-verification":"_1OzGy","block-login":"_wWIyO","title-login":"_3nuns","title-forgot-password":"_21qb6","btn-close":"_NhW9l","btn-login":"_3IL10","digital-privacy-icon":"_141p1","return-to-login":"_Ce3Kg","recover-account":"_2t6d9","link-to-login":"_3bDsd","remember":"_11FZt","term-and-conditions":"_3LXoI","descriptions-forgot-pass":"_PMcjT","content-icon":"_2rZY6","descriptions-icon":"_3SOdX","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","imageAnimation":"_wnn2_","login":"_F-hjL","login-content":"_149oA","logo-home":"_24U3W","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","sidebar-nav-links-hover":"_DNrus","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-menu-flag":"_XK8oS","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","dropdown-content-language":"_3ajui","dropdown-item-language":"_3Y_y4","dropdown-item-language-active":"_CzNMi","hide-in-mobile":"_1INnO","hamburger-menu":"_2yRc8","box-content-home-page":"_ABUIP","collapse-box":"_WX97m","hide-in-desktop":"_2LIqK","control-input":"_2Zz97","custom-control":"_3-yp5"};
|
|
2006
1999
|
|
|
2007
2000
|
var style = {
|
|
2008
2001
|
fontSize: "0.85rem"
|
|
@@ -2164,7 +2157,7 @@ var STAR_OPTIONS = [{
|
|
|
2164
2157
|
value: 5
|
|
2165
2158
|
}];
|
|
2166
2159
|
var ANSWER_EDITOR_HEIGHT = 150;
|
|
2167
|
-
var USER_ROLES = ["Admin", "Assistant", "Teacher", "General ED teacher", "
|
|
2160
|
+
var USER_ROLES = ["Admin", "Assistant", "Teacher", "General ED teacher", "Student", "Parent"];
|
|
2168
2161
|
var CHAT_CHANNEL = "chat-channel";
|
|
2169
2162
|
var NOTIFICATION_CHANNEL = "NOTIFICATION_CHANNEL";
|
|
2170
2163
|
var NEW_NOTIFICATION = "NEW_NOTIFICATION";
|
|
@@ -2180,8 +2173,7 @@ var ROLES = {
|
|
|
2180
2173
|
ASSISTANT: "Assistant",
|
|
2181
2174
|
EDUTEACHER: "General ED teacher",
|
|
2182
2175
|
STUDENT: "Student",
|
|
2183
|
-
PARENT: "Parent"
|
|
2184
|
-
COUNSELOR: "Counselor"
|
|
2176
|
+
PARENT: "Parent"
|
|
2185
2177
|
};
|
|
2186
2178
|
|
|
2187
2179
|
var getAccessToken = (function () {
|
|
@@ -2423,7 +2415,7 @@ var useLogin = function useLogin() {
|
|
|
2423
2415
|
history.push(HOMEPAGE_DISTRICT);
|
|
2424
2416
|
} else if (roles.includes("Admin")) {
|
|
2425
2417
|
history.push(HOMEPAGE_ADMIN);
|
|
2426
|
-
} else if (roles.includes("Teacher") || roles.includes("Assistant")
|
|
2418
|
+
} else if (roles.includes("Teacher") || roles.includes("Assistant")) {
|
|
2427
2419
|
history.push(HOMEPAGE_TEACHER);
|
|
2428
2420
|
} else if (roles.includes("Student")) {
|
|
2429
2421
|
history.push(HOMEPAGE_STUDENT);
|
|
@@ -3385,55 +3377,45 @@ var Login = function Login(props) {
|
|
|
3385
3377
|
}), isForgotPassword && React.createElement(BlockForgetPassword, null)), isResetPassword && React.createElement(BlockResetPassword, null))));
|
|
3386
3378
|
};
|
|
3387
3379
|
|
|
3388
|
-
var QuoteContent = function QuoteContent(
|
|
3389
|
-
var descriptions = _ref.descriptions;
|
|
3380
|
+
var QuoteContent = function QuoteContent() {
|
|
3390
3381
|
return React.createElement("div", {
|
|
3391
3382
|
className: "" + styles["content-quote"]
|
|
3392
|
-
}, React.createElement(
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
className: styles["descriptions-quote"] + " d-flex align-items-center"
|
|
3398
|
-
}, React.createElement("p", null, descriptions))));
|
|
3383
|
+
}, React.createElement("div", {
|
|
3384
|
+
className: styles["title-quote"] + " d-block"
|
|
3385
|
+
}, React.createElement("p", null, "Powerful"), React.createElement("p", null, "Personalized"), React.createElement("p", null, "Learning")), React.createElement("div", {
|
|
3386
|
+
className: styles["descriptions-quote"] + " d-block"
|
|
3387
|
+
}, React.createElement("p", null, "Focus on what matters most to you and"), React.createElement("p", null, "and make learning meaningful.")));
|
|
3399
3388
|
};
|
|
3400
3389
|
|
|
3401
3390
|
var IconContent = function IconContent(_ref) {
|
|
3402
3391
|
var srcIcon = _ref.srcIcon,
|
|
3403
3392
|
content = _ref.content;
|
|
3404
|
-
return React.createElement(
|
|
3393
|
+
return React.createElement("div", {
|
|
3394
|
+
key: content,
|
|
3405
3395
|
className: "" + styles["content-icon"]
|
|
3406
|
-
}, React.createElement(
|
|
3407
|
-
md: 4,
|
|
3396
|
+
}, React.createElement("div", {
|
|
3408
3397
|
className: "" + styles["title-icon"]
|
|
3409
3398
|
}, React.createElement("img", {
|
|
3410
3399
|
src: srcIcon,
|
|
3411
3400
|
alt: "icon"
|
|
3412
|
-
})), React.createElement(
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3401
|
+
})), React.createElement("div", {
|
|
3402
|
+
className: "" + styles["descriptions-icon"],
|
|
3403
|
+
dangerouslySetInnerHTML: {
|
|
3404
|
+
__html: content
|
|
3405
|
+
}
|
|
3406
|
+
}));
|
|
3416
3407
|
};
|
|
3417
3408
|
|
|
3418
|
-
var
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
content: "Create, explore, and share exciting personalized learning journeys."
|
|
3429
|
-
}, {
|
|
3430
|
-
scrIcon: "/images/177_6_Goal.svg",
|
|
3431
|
-
content: "Set, monitor, and achieve your goals."
|
|
3432
|
-
}, {
|
|
3433
|
-
scrIcon: "/images/177_8_Space.svg",
|
|
3434
|
-
content: "Empower parents to become part of the learning process."
|
|
3435
|
-
}]
|
|
3436
|
-
};
|
|
3409
|
+
var contents = [{
|
|
3410
|
+
scrIcon: "/images/ChatsTeardrop.svg",
|
|
3411
|
+
content: "<p>Understand yourself better through <span>helpful feedback</span>.</p>"
|
|
3412
|
+
}, {
|
|
3413
|
+
scrIcon: "/images/Student.svg",
|
|
3414
|
+
content: "<p>Create, explore, and share exciting <span>personalized</span> learning journeys.</p>"
|
|
3415
|
+
}, {
|
|
3416
|
+
scrIcon: "/images/Confetti.svg",
|
|
3417
|
+
content: "<p>Set, monitor, and achieve <span>your goals</span>.</p>"
|
|
3418
|
+
}];
|
|
3437
3419
|
|
|
3438
3420
|
var ContentHomePage = function ContentHomePage(_ref) {
|
|
3439
3421
|
_objectDestructuringEmpty(_ref);
|
|
@@ -3442,26 +3424,15 @@ var ContentHomePage = function ContentHomePage(_ref) {
|
|
|
3442
3424
|
className: "" + styles["page-not-login"]
|
|
3443
3425
|
}, React.createElement(Col, {
|
|
3444
3426
|
md: 12
|
|
3445
|
-
}, React.createElement(QuoteContent, {
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
key: index
|
|
3451
|
-
}, React.createElement(IconContent, {
|
|
3427
|
+
}, React.createElement(QuoteContent, null)), React.createElement(Col, {
|
|
3428
|
+
md: 12,
|
|
3429
|
+
className: styles["box-content-home-page"] + " d-flex align-items-center"
|
|
3430
|
+
}, contents.map(function (content) {
|
|
3431
|
+
return React.createElement(IconContent, {
|
|
3452
3432
|
srcIcon: content.scrIcon,
|
|
3453
3433
|
content: content.content
|
|
3454
|
-
})
|
|
3455
|
-
})
|
|
3456
|
-
md: 12,
|
|
3457
|
-
className: styles["student-image"] + " d-flex justify-content-end mt-5"
|
|
3458
|
-
}, React.createElement("a", {
|
|
3459
|
-
href: "https://cert.privo.com/#/companies/marioFrameworkLlc",
|
|
3460
|
-
target: "blank"
|
|
3461
|
-
}, React.createElement(IconContent, {
|
|
3462
|
-
srcIcon: "/images/STUDENT.png",
|
|
3463
|
-
content: ""
|
|
3464
|
-
}))));
|
|
3434
|
+
});
|
|
3435
|
+
})));
|
|
3465
3436
|
};
|
|
3466
3437
|
|
|
3467
3438
|
var HOME_ADMIN = "/admin/user";
|
|
@@ -3471,39 +3442,74 @@ var DASHBOARD_TITLE = "Dashboard";
|
|
|
3471
3442
|
var ROOT_TITLE = "Mario Framework";
|
|
3472
3443
|
|
|
3473
3444
|
var Dashboard = function Dashboard() {
|
|
3445
|
+
var _useState = useState(false),
|
|
3446
|
+
isOpen = _useState[0],
|
|
3447
|
+
setIsOpen = _useState[1];
|
|
3448
|
+
|
|
3474
3449
|
var user = useSelector(function (state) {
|
|
3475
3450
|
return state.common.user;
|
|
3476
3451
|
});
|
|
3452
|
+
|
|
3453
|
+
var toggle = function toggle() {
|
|
3454
|
+
return setIsOpen(!isOpen);
|
|
3455
|
+
};
|
|
3456
|
+
|
|
3477
3457
|
useEffect(function () {
|
|
3478
3458
|
!!user ? document.title = DASHBOARD_TITLE : document.title = ROOT_TITLE;
|
|
3479
3459
|
}, [user]);
|
|
3480
3460
|
return React.createElement("div", {
|
|
3481
3461
|
className: styles["login"] + " " + styles["red-background"]
|
|
3482
|
-
}, React.createElement(
|
|
3483
|
-
className:
|
|
3484
|
-
}, React.createElement(
|
|
3485
|
-
|
|
3486
|
-
|
|
3462
|
+
}, React.createElement("div", {
|
|
3463
|
+
className: "" + styles["login-content"]
|
|
3464
|
+
}, React.createElement(Navbar, {
|
|
3465
|
+
light: true,
|
|
3466
|
+
expand: "md"
|
|
3467
|
+
}, React.createElement(NavbarBrand, {
|
|
3468
|
+
href: "/",
|
|
3469
|
+
className: "" + styles["logo-home"]
|
|
3470
|
+
}, React.createElement("img", {
|
|
3471
|
+
src: "/images/logo-v2.svg",
|
|
3472
|
+
alt: "mario"
|
|
3473
|
+
})), React.createElement(GiHamburgerMenu, {
|
|
3474
|
+
onClick: toggle,
|
|
3475
|
+
className: styles["hide-in-desktop"] + " " + styles["hamburger-menu"]
|
|
3476
|
+
}), React.createElement(Collapse, {
|
|
3477
|
+
isOpen: isOpen,
|
|
3478
|
+
navbar: true,
|
|
3479
|
+
className: "" + styles["collapse-box"]
|
|
3480
|
+
}, React.createElement(Nav, {
|
|
3481
|
+
className: styles["nav-home"] + " d-md-flex w-100 justify-content-center mr-auto",
|
|
3482
|
+
navbar: true
|
|
3483
|
+
}, React.createElement(NavItem, null, React.createElement(NavLink, {
|
|
3484
|
+
className: styles["learn-more"] + " align-self-md-center",
|
|
3485
|
+
href: "https://marioframework.com/software",
|
|
3487
3486
|
target: "blank"
|
|
3488
|
-
}, "
|
|
3489
|
-
className: styles["contact"] + " align-self-
|
|
3487
|
+
}, "Learn More")), React.createElement(NavItem, null, React.createElement(Link, {
|
|
3488
|
+
className: styles["contact"] + " align-self-md-center",
|
|
3490
3489
|
to: "/contact"
|
|
3491
|
-
}, "Contact"), React.createElement(
|
|
3492
|
-
className: styles["learn-more"] + " align-self-
|
|
3493
|
-
href: "
|
|
3490
|
+
}, "Contact")), React.createElement(NavItem, null, React.createElement(NavLink, {
|
|
3491
|
+
className: styles["learn-more"] + " align-self-md-center",
|
|
3492
|
+
href: "/privacy-policy",
|
|
3494
3493
|
target: "blank"
|
|
3495
|
-
}, "
|
|
3494
|
+
}, "Privacy Policy"))), React.createElement("div", {
|
|
3495
|
+
className: styles["hide-in-mobile"] + " d-flex justify-content-end"
|
|
3496
|
+
}, user ? React.createElement(Link, {
|
|
3496
3497
|
to: user.roles.includes("Admin") ? HOME_ADMIN : user.roles.includes("Teacher") ? HOME_TEACHER : HOME_STUDENT,
|
|
3497
3498
|
className: "" + styles["btn-trans-border"]
|
|
3498
3499
|
}, "Dashboard") : React.createElement(Link, {
|
|
3499
3500
|
to: "/login",
|
|
3500
3501
|
className: "" + styles["btn-trans-border"]
|
|
3501
|
-
}, "Login"))), React.createElement(
|
|
3502
|
-
className:
|
|
3503
|
-
}, React.createElement(
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3502
|
+
}, "Login")))), React.createElement("div", {
|
|
3503
|
+
className: ""
|
|
3504
|
+
}, React.createElement(ContentHomePage, null)), React.createElement("div", {
|
|
3505
|
+
className: "" + styles["digital-privacy-icon"]
|
|
3506
|
+
}, React.createElement("a", {
|
|
3507
|
+
href: "https://cert.privo.com/#/companies/marioFrameworkLlc",
|
|
3508
|
+
target: "blank"
|
|
3509
|
+
}, React.createElement("img", {
|
|
3510
|
+
src: "/images/STUDENT.png",
|
|
3511
|
+
alt: "icon"
|
|
3512
|
+
})))));
|
|
3507
3513
|
};
|
|
3508
3514
|
|
|
3509
3515
|
var Images = {
|
|
@@ -7084,13 +7090,13 @@ var UserDetail = function UserDetail() {
|
|
|
7084
7090
|
return;
|
|
7085
7091
|
}
|
|
7086
7092
|
|
|
7087
|
-
if ([ROLES.ADMIN, ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER
|
|
7093
|
+
if ([ROLES.ADMIN, ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER].includes(role)) {
|
|
7088
7094
|
setFieldValue("roles", [role]);
|
|
7089
7095
|
return;
|
|
7090
7096
|
}
|
|
7091
7097
|
|
|
7092
7098
|
var teacherAssistantRoles = values.roles.filter(function (item) {
|
|
7093
|
-
return ![ROLES.STUDENT, ROLES.ADMIN, ROLES.PARENT, ROLES.EDUTEACHER
|
|
7099
|
+
return ![ROLES.STUDENT, ROLES.ADMIN, ROLES.PARENT, ROLES.EDUTEACHER].includes(item);
|
|
7094
7100
|
});
|
|
7095
7101
|
setFieldValue("roles", [].concat(teacherAssistantRoles, [role]));
|
|
7096
7102
|
}, [values.roles]);
|
|
@@ -7746,7 +7752,7 @@ var useNotificationList = function useNotificationList() {
|
|
|
7746
7752
|
};
|
|
7747
7753
|
|
|
7748
7754
|
var viewNotification = function viewNotification(notification) {
|
|
7749
|
-
var _JSON$parse, _JSON$parse2, _JSON$parse3, _JSON$parse4;
|
|
7755
|
+
var _JSON$parse, _JSON$parse2, _JSON$parse3, _JSON$parse4, _JSON$parse5, _JSON$parse6, _JSON$parse7, _JSON$parse8;
|
|
7750
7756
|
|
|
7751
7757
|
var source = notification.source,
|
|
7752
7758
|
extraData = notification.extraData;
|
|
@@ -7760,8 +7766,28 @@ var useNotificationList = function useNotificationList() {
|
|
|
7760
7766
|
window.open("/start-conference/" + ((_JSON$parse = JSON.parse(extraData)) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse[0]) + "/" + ((_JSON$parse2 = JSON.parse(extraData)) === null || _JSON$parse2 === void 0 ? void 0 : _JSON$parse2[1]) + "/conferenceRubric");
|
|
7761
7767
|
break;
|
|
7762
7768
|
|
|
7769
|
+
case "Class Reflection":
|
|
7770
|
+
window.open("/start-reflection/" + ((_JSON$parse3 = JSON.parse(extraData)) === null || _JSON$parse3 === void 0 ? void 0 : _JSON$parse3[0]) + "/" + ((_JSON$parse4 = JSON.parse(extraData)) === null || _JSON$parse4 === void 0 ? void 0 : _JSON$parse4[1]));
|
|
7771
|
+
break;
|
|
7772
|
+
|
|
7763
7773
|
case "NewSessionCreated":
|
|
7764
|
-
window.open("/start-question/" + ((_JSON$
|
|
7774
|
+
window.open("/start-question/" + ((_JSON$parse5 = JSON.parse(extraData)) === null || _JSON$parse5 === void 0 ? void 0 : _JSON$parse5[0]) + "/" + ((_JSON$parse6 = JSON.parse(extraData)) === null || _JSON$parse6 === void 0 ? void 0 : _JSON$parse6[1]));
|
|
7775
|
+
break;
|
|
7776
|
+
|
|
7777
|
+
case "NewSessionComplete":
|
|
7778
|
+
window.open("/start-question/" + ((_JSON$parse7 = JSON.parse(extraData)) === null || _JSON$parse7 === void 0 ? void 0 : _JSON$parse7[0]) + "/" + ((_JSON$parse8 = JSON.parse(extraData)) === null || _JSON$parse8 === void 0 ? void 0 : _JSON$parse8[1]));
|
|
7779
|
+
break;
|
|
7780
|
+
|
|
7781
|
+
case "ActionPointReminder":
|
|
7782
|
+
window.open("/action-point/to-do");
|
|
7783
|
+
break;
|
|
7784
|
+
|
|
7785
|
+
case "SendNotiPLP":
|
|
7786
|
+
window.open("/personal-learning-plan");
|
|
7787
|
+
break;
|
|
7788
|
+
|
|
7789
|
+
case "SendNotiGOAL":
|
|
7790
|
+
window.open("/my-goals/" + JSON.parse(extraData));
|
|
7765
7791
|
break;
|
|
7766
7792
|
|
|
7767
7793
|
case "CertificateApproved":
|