mario-core 3.0.2-admin → 3.0.4-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/index.js CHANGED
@@ -16,6 +16,7 @@ var amplitude = _interopDefault(require('amplitude-js'));
16
16
  var reactGoogleRecaptchaV3 = require('react-google-recaptcha-v3');
17
17
  var GoogleLogin = _interopDefault(require('react-google-login'));
18
18
  var Select = _interopDefault(require('react-select'));
19
+ var gi = require('react-icons/gi');
19
20
  var react = require('@coreui/react');
20
21
  var cg = require('react-icons/cg');
21
22
  var ri = require('react-icons/ri');
@@ -1996,7 +1997,7 @@ function _catch(body, recover) {
1996
1997
  return result;
1997
1998
  }
1998
1999
 
1999
- 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"};
2000
+ 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"};
2000
2001
 
2001
2002
  var style = {
2002
2003
  fontSize: "0.85rem"
@@ -3378,55 +3379,45 @@ var Login = function Login(props) {
3378
3379
  }), isForgotPassword && React__default.createElement(BlockForgetPassword, null)), isResetPassword && React__default.createElement(BlockResetPassword, null))));
3379
3380
  };
3380
3381
 
3381
- var QuoteContent = function QuoteContent(_ref) {
3382
- var descriptions = _ref.descriptions;
3382
+ var QuoteContent = function QuoteContent() {
3383
3383
  return React__default.createElement("div", {
3384
3384
  className: "" + styles["content-quote"]
3385
- }, React__default.createElement(reactstrap.Row, null, React__default.createElement(reactstrap.Col, {
3386
- md: 5,
3387
- className: "" + styles["title-quote"]
3388
- }, React__default.createElement("p", null, "Powerful"), React__default.createElement("p", null, "Personalized"), React__default.createElement("p", null, "Learning")), React__default.createElement(reactstrap.Col, {
3389
- md: 7,
3390
- className: styles["descriptions-quote"] + " d-flex align-items-center"
3391
- }, React__default.createElement("p", null, descriptions))));
3385
+ }, React__default.createElement("div", {
3386
+ className: styles["title-quote"] + " d-block"
3387
+ }, React__default.createElement("p", null, "Powerful"), React__default.createElement("p", null, "Personalized"), React__default.createElement("p", null, "Learning")), React__default.createElement("div", {
3388
+ className: styles["descriptions-quote"] + " d-block"
3389
+ }, React__default.createElement("p", null, "Focus on what matters most to you and"), React__default.createElement("p", null, "and make learning meaningful.")));
3392
3390
  };
3393
3391
 
3394
3392
  var IconContent = function IconContent(_ref) {
3395
3393
  var srcIcon = _ref.srcIcon,
3396
3394
  content = _ref.content;
3397
- return React__default.createElement(reactstrap.Row, {
3395
+ return React__default.createElement("div", {
3396
+ key: content,
3398
3397
  className: "" + styles["content-icon"]
3399
- }, React__default.createElement(reactstrap.Col, {
3400
- md: 4,
3398
+ }, React__default.createElement("div", {
3401
3399
  className: "" + styles["title-icon"]
3402
3400
  }, React__default.createElement("img", {
3403
3401
  src: srcIcon,
3404
3402
  alt: "icon"
3405
- })), React__default.createElement(reactstrap.Col, {
3406
- md: 8,
3407
- className: styles["descriptions-icon"] + " d-flex align-items-center"
3408
- }, React__default.createElement("p", null, content)));
3403
+ })), React__default.createElement("div", {
3404
+ className: "" + styles["descriptions-icon"],
3405
+ dangerouslySetInnerHTML: {
3406
+ __html: content
3407
+ }
3408
+ }));
3409
3409
  };
3410
3410
 
3411
- var data = {
3412
- quote: {
3413
- title: "Powerful Personalized Learning",
3414
- description: "Focus on what matters most to you and make learning meaningful."
3415
- },
3416
- contents: [{
3417
- scrIcon: "/images/177_2_Finance.svg",
3418
- content: "Understand yourself better through helpful feedback."
3419
- }, {
3420
- scrIcon: "/images/177_9_Brain.svg",
3421
- content: "Create, explore, and share exciting personalized learning journeys."
3422
- }, {
3423
- scrIcon: "/images/177_6_Goal.svg",
3424
- content: "Set, monitor, and achieve your goals."
3425
- }, {
3426
- scrIcon: "/images/177_8_Space.svg",
3427
- content: "Empower parents to become part of the learning process."
3428
- }]
3429
- };
3411
+ var contents = [{
3412
+ scrIcon: "/images/ChatsTeardrop.svg",
3413
+ content: "<p>Understand yourself better through <span>helpful feedback</span>.</p>"
3414
+ }, {
3415
+ scrIcon: "/images/Student.svg",
3416
+ content: "<p>Create, explore, and share exciting <span>personalized</span> learning journeys.</p>"
3417
+ }, {
3418
+ scrIcon: "/images/Confetti.svg",
3419
+ content: "<p>Set, monitor, and achieve <span>your goals</span>.</p>"
3420
+ }];
3430
3421
 
3431
3422
  var ContentHomePage = function ContentHomePage(_ref) {
3432
3423
  _objectDestructuringEmpty(_ref);
@@ -3435,26 +3426,15 @@ var ContentHomePage = function ContentHomePage(_ref) {
3435
3426
  className: "" + styles["page-not-login"]
3436
3427
  }, React__default.createElement(reactstrap.Col, {
3437
3428
  md: 12
3438
- }, React__default.createElement(QuoteContent, {
3439
- descriptions: data.quote.description
3440
- })), data.contents.map(function (content, index) {
3441
- return React__default.createElement(reactstrap.Col, {
3442
- md: 6,
3443
- key: index
3444
- }, React__default.createElement(IconContent, {
3429
+ }, React__default.createElement(QuoteContent, null)), React__default.createElement(reactstrap.Col, {
3430
+ md: 12,
3431
+ className: styles["box-content-home-page"] + " d-flex align-items-center"
3432
+ }, contents.map(function (content) {
3433
+ return React__default.createElement(IconContent, {
3445
3434
  srcIcon: content.scrIcon,
3446
3435
  content: content.content
3447
- }));
3448
- }), React__default.createElement(reactstrap.Col, {
3449
- md: 12,
3450
- className: styles["student-image"] + " d-flex justify-content-end mt-5"
3451
- }, React__default.createElement("a", {
3452
- href: "https://cert.privo.com/#/companies/marioFrameworkLlc",
3453
- target: "blank"
3454
- }, React__default.createElement(IconContent, {
3455
- srcIcon: "/images/STUDENT.png",
3456
- content: ""
3457
- }))));
3436
+ });
3437
+ })));
3458
3438
  };
3459
3439
 
3460
3440
  var HOME_ADMIN = "/admin/user";
@@ -3464,39 +3444,74 @@ var DASHBOARD_TITLE = "Dashboard";
3464
3444
  var ROOT_TITLE = "Mario Framework";
3465
3445
 
3466
3446
  var Dashboard = function Dashboard() {
3447
+ var _useState = React.useState(false),
3448
+ isOpen = _useState[0],
3449
+ setIsOpen = _useState[1];
3450
+
3467
3451
  var user = reactRedux.useSelector(function (state) {
3468
3452
  return state.common.user;
3469
3453
  });
3454
+
3455
+ var toggle = function toggle() {
3456
+ return setIsOpen(!isOpen);
3457
+ };
3458
+
3470
3459
  React.useEffect(function () {
3471
3460
  !!user ? document.title = DASHBOARD_TITLE : document.title = ROOT_TITLE;
3472
3461
  }, [user]);
3473
3462
  return React__default.createElement("div", {
3474
3463
  className: styles["login"] + " " + styles["red-background"]
3475
- }, React__default.createElement(reactstrap.Row, null, React__default.createElement(reactstrap.Col, {
3476
- className: styles["nav-home"] + " d-flex w-100"
3477
- }, React__default.createElement("a", {
3478
- className: styles["learn-more"] + " align-self-lg-center",
3479
- href: "/privacy-policy",
3464
+ }, React__default.createElement("div", {
3465
+ className: "" + styles["login-content"]
3466
+ }, React__default.createElement(reactstrap.Navbar, {
3467
+ light: true,
3468
+ expand: "md"
3469
+ }, React__default.createElement(reactstrap.NavbarBrand, {
3470
+ href: "/",
3471
+ className: "" + styles["logo-home"]
3472
+ }, React__default.createElement("img", {
3473
+ src: "/images/logo-v2.svg",
3474
+ alt: "mario"
3475
+ })), React__default.createElement(gi.GiHamburgerMenu, {
3476
+ onClick: toggle,
3477
+ className: styles["hide-in-desktop"] + " " + styles["hamburger-menu"]
3478
+ }), React__default.createElement(reactstrap.Collapse, {
3479
+ isOpen: isOpen,
3480
+ navbar: true,
3481
+ className: "" + styles["collapse-box"]
3482
+ }, React__default.createElement(reactstrap.Nav, {
3483
+ className: styles["nav-home"] + " d-md-flex w-100 justify-content-center mr-auto",
3484
+ navbar: true
3485
+ }, React__default.createElement(reactstrap.NavItem, null, React__default.createElement(reactstrap.NavLink, {
3486
+ className: styles["learn-more"] + " align-self-md-center",
3487
+ href: "https://marioframework.com/software",
3480
3488
  target: "blank"
3481
- }, "Privacy Policy"), React__default.createElement(reactRouterDom.Link, {
3482
- className: styles["contact"] + " align-self-lg-center",
3489
+ }, "Learn More")), React__default.createElement(reactstrap.NavItem, null, React__default.createElement(reactRouterDom.Link, {
3490
+ className: styles["contact"] + " align-self-md-center",
3483
3491
  to: "/contact"
3484
- }, "Contact"), React__default.createElement("a", {
3485
- className: styles["learn-more"] + " align-self-lg-center",
3486
- href: "https://marioframework.com/software",
3492
+ }, "Contact")), React__default.createElement(reactstrap.NavItem, null, React__default.createElement(reactstrap.NavLink, {
3493
+ className: styles["learn-more"] + " align-self-md-center",
3494
+ href: "/privacy-policy",
3487
3495
  target: "blank"
3488
- }, "Learn More"), user ? React__default.createElement(reactRouterDom.Link, {
3496
+ }, "Privacy Policy"))), React__default.createElement("div", {
3497
+ className: styles["hide-in-mobile"] + " d-flex justify-content-end"
3498
+ }, user ? React__default.createElement(reactRouterDom.Link, {
3489
3499
  to: user.roles.includes("Admin") ? HOME_ADMIN : user.roles.includes("Teacher") ? HOME_TEACHER : HOME_STUDENT,
3490
3500
  className: "" + styles["btn-trans-border"]
3491
3501
  }, "Dashboard") : React__default.createElement(reactRouterDom.Link, {
3492
3502
  to: "/login",
3493
3503
  className: "" + styles["btn-trans-border"]
3494
- }, "Login"))), React__default.createElement(reactstrap.Row, {
3495
- className: styles["hide-in-mobile"] + " " + styles["hide-in-tablet"]
3496
- }, React__default.createElement(reactstrap.Col, {
3497
- md: 6,
3498
- className: "offset-6 d-flex justify-content-center"
3499
- }, React__default.createElement(ContentHomePage, null))));
3504
+ }, "Login")))), React__default.createElement("div", {
3505
+ className: ""
3506
+ }, React__default.createElement(ContentHomePage, null)), React__default.createElement("div", {
3507
+ className: "" + styles["digital-privacy-icon"]
3508
+ }, React__default.createElement("a", {
3509
+ href: "https://cert.privo.com/#/companies/marioFrameworkLlc",
3510
+ target: "blank"
3511
+ }, React__default.createElement("img", {
3512
+ src: "/images/STUDENT.png",
3513
+ alt: "icon"
3514
+ })))));
3500
3515
  };
3501
3516
 
3502
3517
  var Images = {