mario-core 3.0.6-admin → 3.0.6-counselor
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/views/block/IconContent.d.ts +2 -2
- package/dist/containers/Login/views/block/QuoteContent.d.ts +5 -2
- package/dist/index.css +127 -167
- package/dist/index.js +94 -116
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +95 -117
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/constants.d.ts +1 -0
- package/package.json +1 -1
- package/dist/containers/Login/constant/type.d.ts +0 -5
- package/dist/containers/Login/views/ModelSelectRole.d.ts +0 -4
- package/dist/utils/amplitude.d.ts +0 -1
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,
|
|
6
|
+
import { Input, Modal, ModalHeader, ModalBody, ModalFooter, Button, Row, Col, Form, FormGroup, Label, Dropdown, DropdownToggle, DropdownMenu, NavLink, DropdownItem, Alert, Pagination, PaginationItem, PaginationLink, Table, CustomInput, Nav, NavItem, 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,7 +14,6 @@ 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';
|
|
18
17
|
import { CSidebar, CSidebarBrand, CSidebarNav, CCreateElement, CSidebarNavDivider, CSidebarNavDropdown, CSidebarNavItem, CSidebarNavTitle, CSidebarFooter, CHeader, CHeaderBrand, CHeaderNav, CContainer } from '@coreui/react';
|
|
19
18
|
import { CgMenuRight } from 'react-icons/cg';
|
|
20
19
|
import { RiLogoutBoxRLine } from 'react-icons/ri';
|
|
@@ -196,6 +195,7 @@ var current_assistant_email = "Current Assistant Email";
|
|
|
196
195
|
var remove_assistant = "Remove Assistant";
|
|
197
196
|
var switch_assistant = "Switch Assistant";
|
|
198
197
|
var select_assistant_change = "Select Assistant change";
|
|
198
|
+
var select_assistant = "Select Assistant";
|
|
199
199
|
var welcome_email_resend = "Welcome Email Re-send";
|
|
200
200
|
var send_for_selected_users = "Send for selected users";
|
|
201
201
|
var user_name = "User Name";
|
|
@@ -508,6 +508,8 @@ var search_activity = "Search activity";
|
|
|
508
508
|
var activity = "Activity";
|
|
509
509
|
var activity_type = "Activity type";
|
|
510
510
|
var select_or_type_an_activity = "Select or type an activity";
|
|
511
|
+
var counselor_name = "Counselor Name";
|
|
512
|
+
var assign_counselor = "Assign Counselor";
|
|
511
513
|
var lang_us = {
|
|
512
514
|
dashboard: dashboard,
|
|
513
515
|
user: user,
|
|
@@ -675,6 +677,7 @@ var lang_us = {
|
|
|
675
677
|
remove_assistant: remove_assistant,
|
|
676
678
|
switch_assistant: switch_assistant,
|
|
677
679
|
select_assistant_change: select_assistant_change,
|
|
680
|
+
select_assistant: select_assistant,
|
|
678
681
|
welcome_email_resend: welcome_email_resend,
|
|
679
682
|
send_for_selected_users: send_for_selected_users,
|
|
680
683
|
user_name: user_name,
|
|
@@ -990,7 +993,9 @@ var lang_us = {
|
|
|
990
993
|
search_activity: search_activity,
|
|
991
994
|
activity: activity,
|
|
992
995
|
activity_type: activity_type,
|
|
993
|
-
select_or_type_an_activity: select_or_type_an_activity
|
|
996
|
+
select_or_type_an_activity: select_or_type_an_activity,
|
|
997
|
+
counselor_name: counselor_name,
|
|
998
|
+
assign_counselor: assign_counselor
|
|
994
999
|
};
|
|
995
1000
|
|
|
996
1001
|
var dashboard$1 = "Dashboard";
|
|
@@ -1158,6 +1163,7 @@ var current_assistant_email$1 = "Current Assistant Email";
|
|
|
1158
1163
|
var remove_assistant$1 = "Remove Assistant";
|
|
1159
1164
|
var switch_assistant$1 = "Switch Assistant";
|
|
1160
1165
|
var select_assistant_change$1 = "Select Assistant change";
|
|
1166
|
+
var select_assistant$1 = "Select Assistant";
|
|
1161
1167
|
var welcome_email_resend$1 = "Welcome Email Re-send";
|
|
1162
1168
|
var send_for_selected_users$1 = "Send for selected users";
|
|
1163
1169
|
var user_name$1 = "User Name";
|
|
@@ -1167,7 +1173,7 @@ var use_for$1 = "Use for";
|
|
|
1167
1173
|
var admin_training$1 = "Admin training";
|
|
1168
1174
|
var teacher_training$1 = "Teacher training";
|
|
1169
1175
|
var created_time$1 = "Create time";
|
|
1170
|
-
var total_reflections$1 = "Total Reflections
|
|
1176
|
+
var total_reflections$1 = "Total Reflections";
|
|
1171
1177
|
var student_training$1 = "Student training";
|
|
1172
1178
|
var create_destination$1 = "Create Destination";
|
|
1173
1179
|
var total_of_designation$1 = "Total of Designation";
|
|
@@ -1470,6 +1476,8 @@ var search_activity$1 = "Search activity";
|
|
|
1470
1476
|
var activity$1 = "Activity";
|
|
1471
1477
|
var activity_type$1 = "Activity type";
|
|
1472
1478
|
var select_or_type_an_activity$1 = "Select or type an activity";
|
|
1479
|
+
var counselor_name$1 = "Counselor Name";
|
|
1480
|
+
var assign_counselor$1 = "Assign Counselor";
|
|
1473
1481
|
var lang_uk = {
|
|
1474
1482
|
dashboard: dashboard$1,
|
|
1475
1483
|
user: user$1,
|
|
@@ -1637,6 +1645,7 @@ var lang_uk = {
|
|
|
1637
1645
|
remove_assistant: remove_assistant$1,
|
|
1638
1646
|
switch_assistant: switch_assistant$1,
|
|
1639
1647
|
select_assistant_change: select_assistant_change$1,
|
|
1648
|
+
select_assistant: select_assistant$1,
|
|
1640
1649
|
welcome_email_resend: welcome_email_resend$1,
|
|
1641
1650
|
send_for_selected_users: send_for_selected_users$1,
|
|
1642
1651
|
user_name: user_name$1,
|
|
@@ -1952,7 +1961,9 @@ var lang_uk = {
|
|
|
1952
1961
|
search_activity: search_activity$1,
|
|
1953
1962
|
activity: activity$1,
|
|
1954
1963
|
activity_type: activity_type$1,
|
|
1955
|
-
select_or_type_an_activity: select_or_type_an_activity$1
|
|
1964
|
+
select_or_type_an_activity: select_or_type_an_activity$1,
|
|
1965
|
+
counselor_name: counselor_name$1,
|
|
1966
|
+
assign_counselor: assign_counselor$1
|
|
1956
1967
|
};
|
|
1957
1968
|
|
|
1958
1969
|
var DEFAULT_LANGUAGE = localStorage.getItem("language") !== null ? localStorage.getItem("language") : "uk";
|
|
@@ -1995,7 +2006,7 @@ function _catch(body, recover) {
|
|
|
1995
2006
|
return result;
|
|
1996
2007
|
}
|
|
1997
2008
|
|
|
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","
|
|
2009
|
+
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","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","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","hide-in-desktop":"_2LIqK","control-input":"_2Zz97","custom-control":"_3-yp5"};
|
|
1999
2010
|
|
|
2000
2011
|
var style = {
|
|
2001
2012
|
fontSize: "0.85rem"
|
|
@@ -2157,7 +2168,7 @@ var STAR_OPTIONS = [{
|
|
|
2157
2168
|
value: 5
|
|
2158
2169
|
}];
|
|
2159
2170
|
var ANSWER_EDITOR_HEIGHT = 150;
|
|
2160
|
-
var USER_ROLES = ["Admin", "Assistant", "Teacher", "General ED teacher", "Student", "Parent"];
|
|
2171
|
+
var USER_ROLES = ["Admin", "Assistant", "Teacher", "General ED teacher", "Counselor", "Student", "Parent"];
|
|
2161
2172
|
var CHAT_CHANNEL = "chat-channel";
|
|
2162
2173
|
var NOTIFICATION_CHANNEL = "NOTIFICATION_CHANNEL";
|
|
2163
2174
|
var NEW_NOTIFICATION = "NEW_NOTIFICATION";
|
|
@@ -2173,7 +2184,8 @@ var ROLES = {
|
|
|
2173
2184
|
ASSISTANT: "Assistant",
|
|
2174
2185
|
EDUTEACHER: "General ED teacher",
|
|
2175
2186
|
STUDENT: "Student",
|
|
2176
|
-
PARENT: "Parent"
|
|
2187
|
+
PARENT: "Parent",
|
|
2188
|
+
COUNSELOR: "Counselor"
|
|
2177
2189
|
};
|
|
2178
2190
|
|
|
2179
2191
|
var getAccessToken = (function () {
|
|
@@ -2415,7 +2427,7 @@ var useLogin = function useLogin() {
|
|
|
2415
2427
|
history.push(HOMEPAGE_DISTRICT);
|
|
2416
2428
|
} else if (roles.includes("Admin")) {
|
|
2417
2429
|
history.push(HOMEPAGE_ADMIN);
|
|
2418
|
-
} else if (roles.includes("Teacher") || roles.includes("Assistant")) {
|
|
2430
|
+
} else if (roles.includes("Teacher") || roles.includes("Assistant") || roles.includes("Counselor")) {
|
|
2419
2431
|
history.push(HOMEPAGE_TEACHER);
|
|
2420
2432
|
} else if (roles.includes("Student")) {
|
|
2421
2433
|
history.push(HOMEPAGE_STUDENT);
|
|
@@ -3377,45 +3389,55 @@ var Login = function Login(props) {
|
|
|
3377
3389
|
}), isForgotPassword && React.createElement(BlockForgetPassword, null)), isResetPassword && React.createElement(BlockResetPassword, null))));
|
|
3378
3390
|
};
|
|
3379
3391
|
|
|
3380
|
-
var QuoteContent = function QuoteContent() {
|
|
3392
|
+
var QuoteContent = function QuoteContent(_ref) {
|
|
3393
|
+
var descriptions = _ref.descriptions;
|
|
3381
3394
|
return React.createElement("div", {
|
|
3382
3395
|
className: "" + styles["content-quote"]
|
|
3383
|
-
}, React.createElement(
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3396
|
+
}, React.createElement(Row, null, React.createElement(Col, {
|
|
3397
|
+
md: 5,
|
|
3398
|
+
className: "" + styles["title-quote"]
|
|
3399
|
+
}, React.createElement("p", null, "Powerful"), React.createElement("p", null, "Personalized"), React.createElement("p", null, "Learning")), React.createElement(Col, {
|
|
3400
|
+
md: 7,
|
|
3401
|
+
className: styles["descriptions-quote"] + " d-flex align-items-center"
|
|
3402
|
+
}, React.createElement("p", null, descriptions))));
|
|
3388
3403
|
};
|
|
3389
3404
|
|
|
3390
3405
|
var IconContent = function IconContent(_ref) {
|
|
3391
3406
|
var srcIcon = _ref.srcIcon,
|
|
3392
3407
|
content = _ref.content;
|
|
3393
|
-
return React.createElement(
|
|
3394
|
-
key: content,
|
|
3408
|
+
return React.createElement(Row, {
|
|
3395
3409
|
className: "" + styles["content-icon"]
|
|
3396
|
-
}, React.createElement(
|
|
3410
|
+
}, React.createElement(Col, {
|
|
3411
|
+
md: 4,
|
|
3397
3412
|
className: "" + styles["title-icon"]
|
|
3398
3413
|
}, React.createElement("img", {
|
|
3399
3414
|
src: srcIcon,
|
|
3400
3415
|
alt: "icon"
|
|
3401
|
-
})), React.createElement(
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
}
|
|
3406
|
-
}));
|
|
3416
|
+
})), React.createElement(Col, {
|
|
3417
|
+
md: 8,
|
|
3418
|
+
className: styles["descriptions-icon"] + " d-flex align-items-center"
|
|
3419
|
+
}, React.createElement("p", null, content)));
|
|
3407
3420
|
};
|
|
3408
3421
|
|
|
3409
|
-
var
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3422
|
+
var data = {
|
|
3423
|
+
quote: {
|
|
3424
|
+
title: "Powerful Personalized Learning",
|
|
3425
|
+
description: "Focus on what matters most to you and make learning meaningful."
|
|
3426
|
+
},
|
|
3427
|
+
contents: [{
|
|
3428
|
+
scrIcon: "/images/177_2_Finance.svg",
|
|
3429
|
+
content: "Understand yourself better through helpful feedback."
|
|
3430
|
+
}, {
|
|
3431
|
+
scrIcon: "/images/177_9_Brain.svg",
|
|
3432
|
+
content: "Create, explore, and share exciting personalized learning journeys."
|
|
3433
|
+
}, {
|
|
3434
|
+
scrIcon: "/images/177_6_Goal.svg",
|
|
3435
|
+
content: "Set, monitor, and achieve your goals."
|
|
3436
|
+
}, {
|
|
3437
|
+
scrIcon: "/images/177_8_Space.svg",
|
|
3438
|
+
content: "Empower parents to become part of the learning process."
|
|
3439
|
+
}]
|
|
3440
|
+
};
|
|
3419
3441
|
|
|
3420
3442
|
var ContentHomePage = function ContentHomePage(_ref) {
|
|
3421
3443
|
_objectDestructuringEmpty(_ref);
|
|
@@ -3424,15 +3446,26 @@ var ContentHomePage = function ContentHomePage(_ref) {
|
|
|
3424
3446
|
className: "" + styles["page-not-login"]
|
|
3425
3447
|
}, React.createElement(Col, {
|
|
3426
3448
|
md: 12
|
|
3427
|
-
}, React.createElement(QuoteContent,
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3449
|
+
}, React.createElement(QuoteContent, {
|
|
3450
|
+
descriptions: data.quote.description
|
|
3451
|
+
})), data.contents.map(function (content, index) {
|
|
3452
|
+
return React.createElement(Col, {
|
|
3453
|
+
md: 6,
|
|
3454
|
+
key: index
|
|
3455
|
+
}, React.createElement(IconContent, {
|
|
3432
3456
|
srcIcon: content.scrIcon,
|
|
3433
3457
|
content: content.content
|
|
3434
|
-
});
|
|
3435
|
-
})
|
|
3458
|
+
}));
|
|
3459
|
+
}), React.createElement(Col, {
|
|
3460
|
+
md: 12,
|
|
3461
|
+
className: styles["student-image"] + " d-flex justify-content-end mt-5"
|
|
3462
|
+
}, React.createElement("a", {
|
|
3463
|
+
href: "https://cert.privo.com/#/companies/marioFrameworkLlc",
|
|
3464
|
+
target: "blank"
|
|
3465
|
+
}, React.createElement(IconContent, {
|
|
3466
|
+
srcIcon: "/images/STUDENT.png",
|
|
3467
|
+
content: ""
|
|
3468
|
+
}))));
|
|
3436
3469
|
};
|
|
3437
3470
|
|
|
3438
3471
|
var HOME_ADMIN = "/admin/user";
|
|
@@ -3442,74 +3475,39 @@ var DASHBOARD_TITLE = "Dashboard";
|
|
|
3442
3475
|
var ROOT_TITLE = "Mario Framework";
|
|
3443
3476
|
|
|
3444
3477
|
var Dashboard = function Dashboard() {
|
|
3445
|
-
var _useState = useState(false),
|
|
3446
|
-
isOpen = _useState[0],
|
|
3447
|
-
setIsOpen = _useState[1];
|
|
3448
|
-
|
|
3449
3478
|
var user = useSelector(function (state) {
|
|
3450
3479
|
return state.common.user;
|
|
3451
3480
|
});
|
|
3452
|
-
|
|
3453
|
-
var toggle = function toggle() {
|
|
3454
|
-
return setIsOpen(!isOpen);
|
|
3455
|
-
};
|
|
3456
|
-
|
|
3457
3481
|
useEffect(function () {
|
|
3458
3482
|
!!user ? document.title = DASHBOARD_TITLE : document.title = ROOT_TITLE;
|
|
3459
3483
|
}, [user]);
|
|
3460
3484
|
return React.createElement("div", {
|
|
3461
3485
|
className: styles["login"] + " " + styles["red-background"]
|
|
3462
|
-
}, React.createElement(
|
|
3463
|
-
className: "" +
|
|
3464
|
-
}, React.createElement(
|
|
3465
|
-
|
|
3466
|
-
|
|
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",
|
|
3486
|
+
}, React.createElement(Row, null, React.createElement(Col, {
|
|
3487
|
+
className: styles["nav-home"] + " d-flex w-100"
|
|
3488
|
+
}, React.createElement("a", {
|
|
3489
|
+
className: styles["learn-more"] + " align-self-lg-center",
|
|
3490
|
+
href: "/privacy-policy",
|
|
3486
3491
|
target: "blank"
|
|
3487
|
-
}, "
|
|
3488
|
-
className: styles["contact"] + " align-self-
|
|
3492
|
+
}, "Privacy Policy"), React.createElement(Link, {
|
|
3493
|
+
className: styles["contact"] + " align-self-lg-center",
|
|
3489
3494
|
to: "/contact"
|
|
3490
|
-
}, "Contact")
|
|
3491
|
-
className: styles["learn-more"] + " align-self-
|
|
3492
|
-
href: "/
|
|
3495
|
+
}, "Contact"), React.createElement("a", {
|
|
3496
|
+
className: styles["learn-more"] + " align-self-lg-center",
|
|
3497
|
+
href: "https://marioframework.com/software",
|
|
3493
3498
|
target: "blank"
|
|
3494
|
-
}, "
|
|
3495
|
-
className: styles["hide-in-mobile"] + " d-flex justify-content-end"
|
|
3496
|
-
}, user ? React.createElement(Link, {
|
|
3499
|
+
}, "Learn More"), user ? React.createElement(Link, {
|
|
3497
3500
|
to: user.roles.includes("Admin") ? HOME_ADMIN : user.roles.includes("Teacher") ? HOME_TEACHER : HOME_STUDENT,
|
|
3498
3501
|
className: "" + styles["btn-trans-border"]
|
|
3499
3502
|
}, "Dashboard") : React.createElement(Link, {
|
|
3500
3503
|
to: "/login",
|
|
3501
3504
|
className: "" + styles["btn-trans-border"]
|
|
3502
|
-
}, "Login")))
|
|
3503
|
-
className: ""
|
|
3504
|
-
}, React.createElement(
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
target: "blank"
|
|
3509
|
-
}, React.createElement("img", {
|
|
3510
|
-
src: "/images/STUDENT.png",
|
|
3511
|
-
alt: "icon"
|
|
3512
|
-
})))));
|
|
3505
|
+
}, "Login"))), React.createElement(Row, {
|
|
3506
|
+
className: styles["hide-in-mobile"] + " " + styles["hide-in-tablet"]
|
|
3507
|
+
}, React.createElement(Col, {
|
|
3508
|
+
md: 6,
|
|
3509
|
+
className: "offset-6 d-flex justify-content-center"
|
|
3510
|
+
}, React.createElement(ContentHomePage, null))));
|
|
3513
3511
|
};
|
|
3514
3512
|
|
|
3515
3513
|
var Images = {
|
|
@@ -7090,13 +7088,13 @@ var UserDetail = function UserDetail() {
|
|
|
7090
7088
|
return;
|
|
7091
7089
|
}
|
|
7092
7090
|
|
|
7093
|
-
if ([ROLES.ADMIN, ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER].includes(role)) {
|
|
7091
|
+
if ([ROLES.ADMIN, ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER, ROLES.COUNSELOR].includes(role)) {
|
|
7094
7092
|
setFieldValue("roles", [role]);
|
|
7095
7093
|
return;
|
|
7096
7094
|
}
|
|
7097
7095
|
|
|
7098
7096
|
var teacherAssistantRoles = values.roles.filter(function (item) {
|
|
7099
|
-
return ![ROLES.STUDENT, ROLES.ADMIN, ROLES.PARENT, ROLES.EDUTEACHER].includes(item);
|
|
7097
|
+
return ![ROLES.STUDENT, ROLES.ADMIN, ROLES.PARENT, ROLES.EDUTEACHER, ROLES.COUNSELOR].includes(item);
|
|
7100
7098
|
});
|
|
7101
7099
|
setFieldValue("roles", [].concat(teacherAssistantRoles, [role]));
|
|
7102
7100
|
}, [values.roles]);
|
|
@@ -7752,7 +7750,7 @@ var useNotificationList = function useNotificationList() {
|
|
|
7752
7750
|
};
|
|
7753
7751
|
|
|
7754
7752
|
var viewNotification = function viewNotification(notification) {
|
|
7755
|
-
var _JSON$parse, _JSON$parse2, _JSON$parse3, _JSON$parse4
|
|
7753
|
+
var _JSON$parse, _JSON$parse2, _JSON$parse3, _JSON$parse4;
|
|
7756
7754
|
|
|
7757
7755
|
var source = notification.source,
|
|
7758
7756
|
extraData = notification.extraData;
|
|
@@ -7766,28 +7764,8 @@ var useNotificationList = function useNotificationList() {
|
|
|
7766
7764
|
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");
|
|
7767
7765
|
break;
|
|
7768
7766
|
|
|
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
|
-
|
|
7773
7767
|
case "NewSessionCreated":
|
|
7774
|
-
window.open("/start-question/" + ((_JSON$
|
|
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));
|
|
7768
|
+
window.open("/start-question/" + ((_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]));
|
|
7791
7769
|
break;
|
|
7792
7770
|
|
|
7793
7771
|
case "CertificateApproved":
|