mario-core 2.9.224-release → 2.9.227-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.
package/dist/index.js CHANGED
@@ -1847,6 +1847,11 @@ var my_learning_progress = "My Learning Progress";
1847
1847
  var responses_and_response_rates_per_question = "Responses and Response Rates Per Question";
1848
1848
  var responses_comparisons = "Responses Comparisons";
1849
1849
  var dropdown_and_verbal_questions_responses = "Dropdown and Verbal Questions Responses";
1850
+ var mario_tools = "MARIO TOOLS";
1851
+ var customize = "Customize";
1852
+ var techical_settings = "Technical Settings";
1853
+ var data_import_export = "Data Import/Export";
1854
+ var question_text = "Question text";
1850
1855
  var lang_us = {
1851
1856
  dashboard: dashboard,
1852
1857
  user: user,
@@ -3674,7 +3679,12 @@ var lang_us = {
3674
3679
  "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.",
3675
3680
  responses_and_response_rates_per_question: responses_and_response_rates_per_question,
3676
3681
  responses_comparisons: responses_comparisons,
3677
- dropdown_and_verbal_questions_responses: dropdown_and_verbal_questions_responses
3682
+ dropdown_and_verbal_questions_responses: dropdown_and_verbal_questions_responses,
3683
+ mario_tools: mario_tools,
3684
+ customize: customize,
3685
+ techical_settings: techical_settings,
3686
+ data_import_export: data_import_export,
3687
+ question_text: question_text
3678
3688
  };
3679
3689
 
3680
3690
  var dashboard$1 = "Dashboard";
@@ -3755,7 +3765,7 @@ var edit_question$1 = "Edit question";
3755
3765
  var question_type$1 = "Question Type";
3756
3766
  var category$1 = "Category";
3757
3767
  var sub_category$1 = "Sub Category";
3758
- var question_text = "Question text";
3768
+ var question_text$1 = "Question text";
3759
3769
  var text$1 = "Text";
3760
3770
  var is_default_question_for_one_to_one$1 = "Is default question for one-to-one";
3761
3771
  var default_question_for_students_or_teachers$1 = "Default question for students or teachers";
@@ -5485,6 +5495,10 @@ var print_my_accommodations$1 = "Print my accommodations";
5485
5495
  var my_learning_progress$1 = "My Learning Progress";
5486
5496
  var responses_comparisons$1 = "Responses Comparisons";
5487
5497
  var dropdown_and_verbal_questions_responses$1 = "Dropdown and Verbal Questions Responses";
5498
+ var mario_tools$1 = "MARIO TOOLS";
5499
+ var customize$1 = "Customize";
5500
+ var techical_settings$1 = "Technical Settings";
5501
+ var data_import_export$1 = "Data Import/Export";
5488
5502
  var lang_uk = {
5489
5503
  dashboard: dashboard$1,
5490
5504
  user: user$1,
@@ -5565,7 +5579,7 @@ var lang_uk = {
5565
5579
  question_type: question_type$1,
5566
5580
  category: category$1,
5567
5581
  sub_category: sub_category$1,
5568
- question_text: question_text,
5582
+ question_text: question_text$1,
5569
5583
  text: text$1,
5570
5584
  is_default_question_for_one_to_one: is_default_question_for_one_to_one$1,
5571
5585
  default_question_for_students_or_teachers: default_question_for_students_or_teachers$1,
@@ -7313,7 +7327,11 @@ var lang_uk = {
7313
7327
  "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.",
7314
7328
  "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.",
7315
7329
  responses_comparisons: responses_comparisons$1,
7316
- dropdown_and_verbal_questions_responses: dropdown_and_verbal_questions_responses$1
7330
+ dropdown_and_verbal_questions_responses: dropdown_and_verbal_questions_responses$1,
7331
+ mario_tools: mario_tools$1,
7332
+ customize: customize$1,
7333
+ techical_settings: techical_settings$1,
7334
+ data_import_export: data_import_export$1
7317
7335
  };
7318
7336
 
7319
7337
  var dashboard$2 = "لوحة المعلومات";
@@ -7394,7 +7412,7 @@ var edit_question$2 = "تعديل سؤال";
7394
7412
  var question_type$2 = "نوع السؤال";
7395
7413
  var category$2 = "الفئة";
7396
7414
  var sub_category$2 = "الفئة الفرعية";
7397
- var question_text$1 = "نص السؤال";
7415
+ var question_text$2 = "نص السؤال";
7398
7416
  var text$2 = "النص";
7399
7417
  var is_default_question_for_one_to_one$2 = "سؤال افتراضي لجلسات التعلّم الفردية";
7400
7418
  var default_question_for_students_or_teachers$2 = "سؤال افتراضي للطلبة أو المعلمين ";
@@ -9116,6 +9134,10 @@ var my_learning_progress$2 = "My Learning Progress";
9116
9134
  var responses_and_response_rates_per_question$2 = "الردود ومعدلات الاستجابة لكل سؤال";
9117
9135
  var responses_comparisons$2 = "مقارنات الردود";
9118
9136
  var dropdown_and_verbal_questions_responses$2 = "القائمة المنسدلة والأسئلة اللفظية الردود";
9137
+ var mario_tools$2 = "أدوات ماريو";
9138
+ var customize$2 = "يعدل أو يكيف";
9139
+ var techical_settings$2 = "الإعدادات الفنية";
9140
+ var data_import_export$2 = "استيراد/تصدير البيانات";
9119
9141
  var lang_ar = {
9120
9142
  dashboard: dashboard$2,
9121
9143
  user: user$2,
@@ -9196,7 +9218,7 @@ var lang_ar = {
9196
9218
  question_type: question_type$2,
9197
9219
  category: category$2,
9198
9220
  sub_category: sub_category$2,
9199
- question_text: question_text$1,
9221
+ question_text: question_text$2,
9200
9222
  text: text$2,
9201
9223
  is_default_question_for_one_to_one: is_default_question_for_one_to_one$2,
9202
9224
  default_question_for_students_or_teachers: default_question_for_students_or_teachers$2,
@@ -10933,7 +10955,11 @@ var lang_ar = {
10933
10955
  "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.",
10934
10956
  responses_and_response_rates_per_question: responses_and_response_rates_per_question$2,
10935
10957
  responses_comparisons: responses_comparisons$2,
10936
- dropdown_and_verbal_questions_responses: dropdown_and_verbal_questions_responses$2
10958
+ dropdown_and_verbal_questions_responses: dropdown_and_verbal_questions_responses$2,
10959
+ mario_tools: mario_tools$2,
10960
+ customize: customize$2,
10961
+ techical_settings: techical_settings$2,
10962
+ data_import_export: data_import_export$2
10937
10963
  };
10938
10964
 
10939
10965
  var dashboard$3 = "Panel de Control";
@@ -11014,7 +11040,7 @@ var edit_question$3 = "Editar pregunta";
11014
11040
  var question_type$3 = "Tipo de Pregunta";
11015
11041
  var category$3 = "Categoría";
11016
11042
  var sub_category$3 = "Subcategoría";
11017
- var question_text$2 = "Texto de la pregunta";
11043
+ var question_text$3 = "Texto de la pregunta";
11018
11044
  var text$3 = "Texto";
11019
11045
  var is_default_question_for_one_to_one$3 = "Es la pregunta predeterminada para uno a uno";
11020
11046
  var default_question_for_students_or_teachers$3 = "Pregunta predeterminada para estudiantes o profesores";
@@ -11667,6 +11693,10 @@ var my_learning_plan_beta$3 = "My Learning Plan (Beta)";
11667
11693
  var responses_and_response_rates_per_question$3 = "Respuestas y tasas de respuesta por pregunta";
11668
11694
  var responses_comparisons$3 = "Comparaciones de respuestas";
11669
11695
  var dropdown_and_verbal_questions_responses$3 = "Preguntas desplegables y verbales Respuestas";
11696
+ var mario_tools$3 = "HERRAMIENTAS DE MARIO";
11697
+ var customize$3 = "Personalizar";
11698
+ var techical_settings$3 = "Configuraciones técnicas";
11699
+ var data_import_export$3 = "Importación/exportación de datos";
11670
11700
  var lang_es = {
11671
11701
  dashboard: dashboard$3,
11672
11702
  user: user$3,
@@ -11747,7 +11777,7 @@ var lang_es = {
11747
11777
  question_type: question_type$3,
11748
11778
  category: category$3,
11749
11779
  sub_category: sub_category$3,
11750
- question_text: question_text$2,
11780
+ question_text: question_text$3,
11751
11781
  text: text$3,
11752
11782
  is_default_question_for_one_to_one: is_default_question_for_one_to_one$3,
11753
11783
  default_question_for_students_or_teachers: default_question_for_students_or_teachers$3,
@@ -12408,7 +12438,11 @@ var lang_es = {
12408
12438
  "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.",
12409
12439
  responses_and_response_rates_per_question: responses_and_response_rates_per_question$3,
12410
12440
  responses_comparisons: responses_comparisons$3,
12411
- dropdown_and_verbal_questions_responses: dropdown_and_verbal_questions_responses$3
12441
+ dropdown_and_verbal_questions_responses: dropdown_and_verbal_questions_responses$3,
12442
+ mario_tools: mario_tools$3,
12443
+ customize: customize$3,
12444
+ techical_settings: techical_settings$3,
12445
+ data_import_export: data_import_export$3
12412
12446
  };
12413
12447
 
12414
12448
  var TINY_MCE_API_KEY = "htqausuofrnali3nh9ivmlpq6v415o0tv2qikpg39bqf4pnk";
@@ -30136,7 +30170,7 @@ var defaultInfo = {
30136
30170
  };
30137
30171
  var HOMEPAGE_TEACHER = "/home";
30138
30172
  var HOMEPAGE_STUDENT = "/home";
30139
- var HOMEPAGE_ADMIN = "/admin/dashboard";
30173
+ var HOMEPAGE_ADMIN = "/admin/home";
30140
30174
  var HOMEPAGE_PARENT = "/parent";
30141
30175
  var HOMEPAGE_DISTRICT = "/admin/schools";
30142
30176
  var HOMEPAGE_EDU_TEACHER = "/list-student";
@@ -32125,12 +32159,13 @@ var TheContent = function TheContent(_ref) {
32125
32159
  var routes = _ref.routes;
32126
32160
  var location = reactRouterDom.useLocation();
32127
32161
  var pathname = location.pathname;
32128
- var dashboard = pathname === "/" ? "box-container" : "";
32162
+ var dashboard = !pathname.includes("/admin") ? "box-container" : "";
32163
+ var padding = pathname.includes("/admin") ? "pt-3" : "";
32129
32164
  return React__default.createElement("main", {
32130
32165
  className: "c-main " + dashboard
32131
32166
  }, React__default.createElement(react.CContainer, {
32132
32167
  fluid: true,
32133
- className: "h-100"
32168
+ className: "h-100 " + padding
32134
32169
  }, React__default.createElement(React.Suspense, {
32135
32170
  fallback: loading
32136
32171
  }, React__default.createElement(reactRouterDom.Switch, null, routes.map(function (route, idx) {
@@ -32231,7 +32266,7 @@ var ModelSelectRole = function ModelSelectRole(_ref) {
32231
32266
  if (roles.includes("Parent")) {
32232
32267
  history.push("/parent");
32233
32268
  } else if (roles.includes("Admin")) {
32234
- history.push("/admin/dashboard");
32269
+ history.push("/admin/home");
32235
32270
  } else {
32236
32271
  pathname !== "/home" ? history.push("/home") : window.location.reload();
32237
32272
  }
@@ -32807,13 +32842,14 @@ var EmailTemplateList = function EmailTemplateList() {
32807
32842
  var style$1 = {
32808
32843
  width: "100%",
32809
32844
  position: "fixed",
32810
- bottom: 0,
32845
+ bottom: 83,
32811
32846
  backgroundColor: "#fff",
32812
32847
  borderTop: "1px solid #ddd",
32813
32848
  marginTop: "20px",
32814
32849
  marginLeft: "-30px",
32815
32850
  padding: "8px",
32816
- zIndex: 1
32851
+ zIndex: 1,
32852
+ paddingTop: 18
32817
32853
  };
32818
32854
 
32819
32855
  var DetailActionButtons = function DetailActionButtons(_ref) {
@@ -34941,7 +34977,7 @@ var CREATE_USER_URL = "/admin/create-user";
34941
34977
  var TITLE$8 = "User list";
34942
34978
  var HOMEPAGE_TEACHER$1 = "/home";
34943
34979
  var HOMEPAGE_STUDENT$1 = "/home";
34944
- var HOMEPAGE_ADMIN$1 = "/admin/dashboard";
34980
+ var HOMEPAGE_ADMIN$1 = "/admin/home";
34945
34981
  var HOMEPAGE_PARENT$1 = "/parent";
34946
34982
  var HOMEPAGE_DISTRICT$1 = "/admin/schools";
34947
34983
  var HOMEPAGE_EDU_TEACHER$1 = "/list-student";
@@ -35133,6 +35169,11 @@ var useUserList = function useUserList() {
35133
35169
  email = _res$data2.email,
35134
35170
  profileImageFileName = _res$data2.profileImageFileName;
35135
35171
  localStorage.setItem(ACCESS_TOKEN, token);
35172
+
35173
+ if (roles.includes("Admin")) {
35174
+ localStorage.setItem("ROLES", "Admin");
35175
+ }
35176
+
35136
35177
  localStorage.removeItem(NOTIFICATION_ALERT_KEY);
35137
35178
  dispatch(setUser({
35138
35179
  id: id,