mario-core 2.9.223-release → 2.9.226-layout

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.
@@ -1844,6 +1844,10 @@ var my_learning_progress = "My Learning Progress";
1844
1844
  var responses_and_response_rates_per_question = "Responses and Response Rates Per Question";
1845
1845
  var responses_comparisons = "Responses Comparisons";
1846
1846
  var dropdown_and_verbal_questions_responses = "Dropdown and Verbal Questions Responses";
1847
+ var mario_tools = "MARIO TOOLS";
1848
+ var customize = "Customize";
1849
+ var techical_settings = "Technical Settings";
1850
+ var data_import_export = "Data Import/Export";
1847
1851
  var lang_us = {
1848
1852
  dashboard: dashboard,
1849
1853
  user: user,
@@ -3671,7 +3675,11 @@ var lang_us = {
3671
3675
  "this_is_a_brand_new_beta_version_for_your_personal_learning_journey._you_can_think_about_what_you_want_like_to_do_and_how_you_like_to_learn._we_advise_you_to_do_it_gradually_per_section_and_visit_it_once_a_month.": "This is a brand new beta version for your personal learning journey. You can think about what you want like to do and how you like to learn. We advise you to do it gradually per section and visit it once a month.",
3672
3676
  responses_and_response_rates_per_question: responses_and_response_rates_per_question,
3673
3677
  responses_comparisons: responses_comparisons,
3674
- dropdown_and_verbal_questions_responses: dropdown_and_verbal_questions_responses
3678
+ dropdown_and_verbal_questions_responses: dropdown_and_verbal_questions_responses,
3679
+ mario_tools: mario_tools,
3680
+ customize: customize,
3681
+ techical_settings: techical_settings,
3682
+ data_import_export: data_import_export
3675
3683
  };
3676
3684
 
3677
3685
  var dashboard$1 = "Dashboard";
@@ -5482,6 +5490,10 @@ var print_my_accommodations$1 = "Print my accommodations";
5482
5490
  var my_learning_progress$1 = "My Learning Progress";
5483
5491
  var responses_comparisons$1 = "Responses Comparisons";
5484
5492
  var dropdown_and_verbal_questions_responses$1 = "Dropdown and Verbal Questions Responses";
5493
+ var mario_tools$1 = "MARIO TOOLS";
5494
+ var customize$1 = "Customize";
5495
+ var techical_settings$1 = "Technical Settings";
5496
+ var data_import_export$1 = "Data Import/Export";
5485
5497
  var lang_uk = {
5486
5498
  dashboard: dashboard$1,
5487
5499
  user: user$1,
@@ -7310,7 +7322,11 @@ var lang_uk = {
7310
7322
  "here_your_teacher_can_edit_or_add_your_accommodation_details._please_note_that_you_can_view_the_information,_but_for_any_edits_or_additions,_kindly_contact_your_teacher_directly.": "Here your teacher can edit or add your accommodation details. Please note that you can view the information, but for any edits or additions, kindly contact your teacher directly.",
7311
7323
  "this_is_a_brand_new_beta_version_for_your_personal_learning_journey._you_can_think_about_what_you_want_like_to_do_and_how_you_like_to_learn._we_advise_you_to_do_it_gradually_per_section_and_visit_it_once_a_month.": "This is a brand new beta version for your personal learning journey. You can think about what you want like to do and how you like to learn. We advise you to do it gradually per section and visit it once a month.",
7312
7324
  responses_comparisons: responses_comparisons$1,
7313
- dropdown_and_verbal_questions_responses: dropdown_and_verbal_questions_responses$1
7325
+ dropdown_and_verbal_questions_responses: dropdown_and_verbal_questions_responses$1,
7326
+ mario_tools: mario_tools$1,
7327
+ customize: customize$1,
7328
+ techical_settings: techical_settings$1,
7329
+ data_import_export: data_import_export$1
7314
7330
  };
7315
7331
 
7316
7332
  var dashboard$2 = "لوحة المعلومات";
@@ -9113,6 +9129,10 @@ var my_learning_progress$2 = "My Learning Progress";
9113
9129
  var responses_and_response_rates_per_question$2 = "الردود ومعدلات الاستجابة لكل سؤال";
9114
9130
  var responses_comparisons$2 = "مقارنات الردود";
9115
9131
  var dropdown_and_verbal_questions_responses$2 = "القائمة المنسدلة والأسئلة اللفظية الردود";
9132
+ var mario_tools$2 = "أدوات ماريو";
9133
+ var customize$2 = "يعدل أو يكيف";
9134
+ var techical_settings$2 = "الإعدادات الفنية";
9135
+ var data_import_export$2 = "استيراد/تصدير البيانات";
9116
9136
  var lang_ar = {
9117
9137
  dashboard: dashboard$2,
9118
9138
  user: user$2,
@@ -10930,7 +10950,11 @@ var lang_ar = {
10930
10950
  "this_is_a_brand_new_beta_version_for_your_personal_learning_journey._you_can_think_about_what_you_want_like_to_do_and_how_you_like_to_learn._we_advise_you_to_do_it_gradually_per_section_and_visit_it_once_a_month.": "This is a brand new beta version for your personal learning journey. You can think about what you want like to do and how you like to learn. We advise you to do it gradually per section and visit it once a month.",
10931
10951
  responses_and_response_rates_per_question: responses_and_response_rates_per_question$2,
10932
10952
  responses_comparisons: responses_comparisons$2,
10933
- dropdown_and_verbal_questions_responses: dropdown_and_verbal_questions_responses$2
10953
+ dropdown_and_verbal_questions_responses: dropdown_and_verbal_questions_responses$2,
10954
+ mario_tools: mario_tools$2,
10955
+ customize: customize$2,
10956
+ techical_settings: techical_settings$2,
10957
+ data_import_export: data_import_export$2
10934
10958
  };
10935
10959
 
10936
10960
  var dashboard$3 = "Panel de Control";
@@ -11664,6 +11688,10 @@ var my_learning_plan_beta$3 = "My Learning Plan (Beta)";
11664
11688
  var responses_and_response_rates_per_question$3 = "Respuestas y tasas de respuesta por pregunta";
11665
11689
  var responses_comparisons$3 = "Comparaciones de respuestas";
11666
11690
  var dropdown_and_verbal_questions_responses$3 = "Preguntas desplegables y verbales Respuestas";
11691
+ var mario_tools$3 = "HERRAMIENTAS DE MARIO";
11692
+ var customize$3 = "Personalizar";
11693
+ var techical_settings$3 = "Configuraciones técnicas";
11694
+ var data_import_export$3 = "Importación/exportación de datos";
11667
11695
  var lang_es = {
11668
11696
  dashboard: dashboard$3,
11669
11697
  user: user$3,
@@ -12405,7 +12433,11 @@ var lang_es = {
12405
12433
  "this_is_a_brand_new_beta_version_for_your_personal_learning_journey._you_can_think_about_what_you_want_like_to_do_and_how_you_like_to_learn._we_advise_you_to_do_it_gradually_per_section_and_visit_it_once_a_month.": "This is a brand new beta version for your personal learning journey. You can think about what you want like to do and how you like to learn. We advise you to do it gradually per section and visit it once a month.",
12406
12434
  responses_and_response_rates_per_question: responses_and_response_rates_per_question$3,
12407
12435
  responses_comparisons: responses_comparisons$3,
12408
- dropdown_and_verbal_questions_responses: dropdown_and_verbal_questions_responses$3
12436
+ dropdown_and_verbal_questions_responses: dropdown_and_verbal_questions_responses$3,
12437
+ mario_tools: mario_tools$3,
12438
+ customize: customize$3,
12439
+ techical_settings: techical_settings$3,
12440
+ data_import_export: data_import_export$3
12409
12441
  };
12410
12442
 
12411
12443
  var TINY_MCE_API_KEY = "htqausuofrnali3nh9ivmlpq6v415o0tv2qikpg39bqf4pnk";
@@ -30133,7 +30165,7 @@ var defaultInfo = {
30133
30165
  };
30134
30166
  var HOMEPAGE_TEACHER = "/home";
30135
30167
  var HOMEPAGE_STUDENT = "/home";
30136
- var HOMEPAGE_ADMIN = "/admin/dashboard";
30168
+ var HOMEPAGE_ADMIN = "/admin/home";
30137
30169
  var HOMEPAGE_PARENT = "/parent";
30138
30170
  var HOMEPAGE_DISTRICT = "/admin/schools";
30139
30171
  var HOMEPAGE_EDU_TEACHER = "/list-student";
@@ -32123,11 +32155,12 @@ var TheContent = function TheContent(_ref) {
32123
32155
  var location = useLocation();
32124
32156
  var pathname = location.pathname;
32125
32157
  var dashboard = pathname === "/" ? "box-container" : "";
32158
+ var padding = pathname === "/admin" ? "pt-3" : "";
32126
32159
  return React.createElement("main", {
32127
32160
  className: "c-main " + dashboard
32128
32161
  }, React.createElement(CContainer, {
32129
32162
  fluid: true,
32130
- className: "h-100"
32163
+ className: "h-100 " + padding
32131
32164
  }, React.createElement(Suspense, {
32132
32165
  fallback: loading
32133
32166
  }, React.createElement(Switch, null, routes.map(function (route, idx) {
@@ -32228,7 +32261,7 @@ var ModelSelectRole = function ModelSelectRole(_ref) {
32228
32261
  if (roles.includes("Parent")) {
32229
32262
  history.push("/parent");
32230
32263
  } else if (roles.includes("Admin")) {
32231
- history.push("/admin/dashboard");
32264
+ history.push("/admin/home");
32232
32265
  } else {
32233
32266
  pathname !== "/home" ? history.push("/home") : window.location.reload();
32234
32267
  }
@@ -32350,7 +32383,9 @@ var TheLayout = function TheLayout(_ref) {
32350
32383
  try {
32351
32384
  var _temp6 = _catch(function () {
32352
32385
  return Promise.resolve(getInfo()).then(function (info) {
32353
- if (!info) {
32386
+ var _info$data, _info$data$roles;
32387
+
32388
+ if (!info || !(info !== null && info !== void 0 && (_info$data = info.data) !== null && _info$data !== void 0 && (_info$data$roles = _info$data.roles) !== null && _info$data$roles !== void 0 && _info$data$roles.includes("Admin"))) {
32354
32389
  resetAuth();
32355
32390
  }
32356
32391
 
@@ -34936,7 +34971,7 @@ var CREATE_USER_URL = "/admin/create-user";
34936
34971
  var TITLE$8 = "User list";
34937
34972
  var HOMEPAGE_TEACHER$1 = "/home";
34938
34973
  var HOMEPAGE_STUDENT$1 = "/home";
34939
- var HOMEPAGE_ADMIN$1 = "/admin/dashboard";
34974
+ var HOMEPAGE_ADMIN$1 = "/admin/home";
34940
34975
  var HOMEPAGE_PARENT$1 = "/parent";
34941
34976
  var HOMEPAGE_DISTRICT$1 = "/admin/schools";
34942
34977
  var HOMEPAGE_EDU_TEACHER$1 = "/list-student";