mario-core 2.9.340-release → 2.9.342-release
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.modern.js
CHANGED
|
@@ -1919,8 +1919,8 @@ var financial_planning = "Financial Planning";
|
|
|
1919
1919
|
var add_new_plan = "Add New Plan";
|
|
1920
1920
|
var rows_per_page = "Rows per page";
|
|
1921
1921
|
var anonymous_link = "Anonymous Link";
|
|
1922
|
-
var select_ratings_of_questions = "Select
|
|
1923
|
-
var select_responses_distribution = "Select
|
|
1922
|
+
var select_ratings_of_questions = "Select ratings of questions";
|
|
1923
|
+
var select_responses_distribution = "Select responses distribution";
|
|
1924
1924
|
var you_can_only_select_one_question_per_time = "You can only select one question per time";
|
|
1925
1925
|
var number_of_answers = "Number of Answers";
|
|
1926
1926
|
var my_interests = "My Interests";
|
|
@@ -1999,8 +1999,11 @@ var open_responses = "Open Responses";
|
|
|
1999
1999
|
var this_survey_was_sent_all_survey_links_that_were_sent_will_be_invalid_are_you_sure_to_delete_it = "This survey was sent all survey links that were sent will be invalid. Are you sure to delete it";
|
|
2000
2000
|
var assign_teacher = "Assign Teacher";
|
|
2001
2001
|
var teachers_list = "Teachers list";
|
|
2002
|
+
var you_can_only_select_1_question_at_a_time = "You can only select 1 question at a time";
|
|
2002
2003
|
var educator = "Educator";
|
|
2003
2004
|
var the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in = "The data presented in this chart reflects the student's <b>most recent check-in</b>.";
|
|
2005
|
+
var free_fields_responses = "Free fields responses";
|
|
2006
|
+
var please_select_a_category_to_view_data = "Please select a category to view data";
|
|
2004
2007
|
var lang_us = {
|
|
2005
2008
|
dashboard: dashboard,
|
|
2006
2009
|
user: user,
|
|
@@ -4000,8 +4003,11 @@ var lang_us = {
|
|
|
4000
4003
|
this_survey_was_sent_all_survey_links_that_were_sent_will_be_invalid_are_you_sure_to_delete_it: this_survey_was_sent_all_survey_links_that_were_sent_will_be_invalid_are_you_sure_to_delete_it,
|
|
4001
4004
|
assign_teacher: assign_teacher,
|
|
4002
4005
|
teachers_list: teachers_list,
|
|
4006
|
+
you_can_only_select_1_question_at_a_time: you_can_only_select_1_question_at_a_time,
|
|
4003
4007
|
educator: educator,
|
|
4004
|
-
the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in: the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in
|
|
4008
|
+
the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in: the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in,
|
|
4009
|
+
free_fields_responses: free_fields_responses,
|
|
4010
|
+
please_select_a_category_to_view_data: please_select_a_category_to_view_data
|
|
4005
4011
|
};
|
|
4006
4012
|
|
|
4007
4013
|
var dashboard$1 = "Dashboard";
|
|
@@ -5885,8 +5891,8 @@ var financial_planning$1 = "Financial Planning";
|
|
|
5885
5891
|
var add_new_plan$1 = "Add New Plan";
|
|
5886
5892
|
var rows_per_page$1 = "Rows per page";
|
|
5887
5893
|
var anonymous_link$1 = "Anonymous Link";
|
|
5888
|
-
var select_ratings_of_questions$1 = "Select
|
|
5889
|
-
var select_responses_distribution$1 = "Select
|
|
5894
|
+
var select_ratings_of_questions$1 = "Select ratings of questions";
|
|
5895
|
+
var select_responses_distribution$1 = "Select responses distribution";
|
|
5890
5896
|
var you_can_only_select_one_question_per_time$1 = "You can only select one question per time";
|
|
5891
5897
|
var number_of_answers$1 = "Number of Answers";
|
|
5892
5898
|
var my_interests$1 = "My Interests";
|
|
@@ -5965,8 +5971,11 @@ var open_responses$1 = "Open Responses";
|
|
|
5965
5971
|
var this_survey_was_sent_all_survey_links_that_were_sent_will_be_invalid_are_you_sure_to_delete_it$1 = "This survey was sent all survey links that were sent will be invalid. Are you sure to delete it";
|
|
5966
5972
|
var assign_teacher$1 = "Assign Teacher";
|
|
5967
5973
|
var teachers_list$1 = "Teachers list";
|
|
5974
|
+
var you_can_only_select_1_question_at_a_time$1 = "You can only select 1 question at a time";
|
|
5968
5975
|
var educator$1 = "Educator";
|
|
5969
5976
|
var the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in$1 = "The data presented in this chart reflects the student's <b>most recent check-in</b>.";
|
|
5977
|
+
var free_fields_responses$1 = "Free fields responses";
|
|
5978
|
+
var please_select_a_category_to_view_data$1 = "Please select a category to view data";
|
|
5970
5979
|
var lang_uk = {
|
|
5971
5980
|
dashboard: dashboard$1,
|
|
5972
5981
|
user: user$1,
|
|
@@ -7966,8 +7975,11 @@ var lang_uk = {
|
|
|
7966
7975
|
this_survey_was_sent_all_survey_links_that_were_sent_will_be_invalid_are_you_sure_to_delete_it: this_survey_was_sent_all_survey_links_that_were_sent_will_be_invalid_are_you_sure_to_delete_it$1,
|
|
7967
7976
|
assign_teacher: assign_teacher$1,
|
|
7968
7977
|
teachers_list: teachers_list$1,
|
|
7978
|
+
you_can_only_select_1_question_at_a_time: you_can_only_select_1_question_at_a_time$1,
|
|
7969
7979
|
educator: educator$1,
|
|
7970
|
-
the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in: the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in$1
|
|
7980
|
+
the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in: the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in$1,
|
|
7981
|
+
free_fields_responses: free_fields_responses$1,
|
|
7982
|
+
please_select_a_category_to_view_data: please_select_a_category_to_view_data$1
|
|
7971
7983
|
};
|
|
7972
7984
|
|
|
7973
7985
|
var dashboard$2 = "لوحة المعلومات";
|
|
@@ -9964,6 +9976,9 @@ var good_job_you_filled_out_support_network_in_the_my_support_network_section =
|
|
|
9964
9976
|
var good_job_you_filled_out_learning_strategies_in_the_my_learning_strategies_section = "أحسنت! لقد قمت بملء \"استراتيجيات التعلم\" في قسم استراتيجيات التعلم الخاصة بي.";
|
|
9965
9977
|
var open_responses$2 = "الردود المفتوحة";
|
|
9966
9978
|
var teachers_list$2 = "قائمة المعلمين";
|
|
9979
|
+
var you_can_only_select_1_question_at_a_time$2 = "لا يمكنك اختيار سوى سؤال واحد في كل مرة";
|
|
9980
|
+
var free_fields_responses$2 = "استجابات الحقول المجانية";
|
|
9981
|
+
var please_select_a_category_to_view_data$2 = "الرجاء تحديد الفئة لعرض البيانات";
|
|
9967
9982
|
var educator$2 = "مُعلّم";
|
|
9968
9983
|
var the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in$2 = "تعكس البيانات المقدمة في هذا المخطط <b>آخر تسجيل دخول</b> للطالب.";
|
|
9969
9984
|
var lang_ar = {
|
|
@@ -12000,6 +12015,9 @@ var lang_ar = {
|
|
|
12000
12015
|
good_job_you_filled_out_learning_strategies_in_the_my_learning_strategies_section: good_job_you_filled_out_learning_strategies_in_the_my_learning_strategies_section,
|
|
12001
12016
|
open_responses: open_responses$2,
|
|
12002
12017
|
teachers_list: teachers_list$2,
|
|
12018
|
+
you_can_only_select_1_question_at_a_time: you_can_only_select_1_question_at_a_time$2,
|
|
12019
|
+
free_fields_responses: free_fields_responses$2,
|
|
12020
|
+
please_select_a_category_to_view_data: please_select_a_category_to_view_data$2,
|
|
12003
12021
|
educator: educator$2,
|
|
12004
12022
|
the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in: the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in$2
|
|
12005
12023
|
};
|
|
@@ -13998,8 +14016,11 @@ var good_job_you_filled_out_support_network_in_the_my_support_network_section$1
|
|
|
13998
14016
|
var good_job_you_filled_out_learning_strategies_in_the_my_learning_strategies_section$1 = "¡Buen trabajo! Completaste \"Estrategias de aprendizaje\" en la sección Mis estrategias de aprendizaje.";
|
|
13999
14017
|
var open_responses$3 = "Respuestas abiertas";
|
|
14000
14018
|
var teachers_list$3 = "Lista de profesores";
|
|
14019
|
+
var you_can_only_select_1_question_at_a_time$3 = "You can only select 1 question at a time";
|
|
14001
14020
|
var educator$3 = "Educadora";
|
|
14002
14021
|
var the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in$3 = "Los datos presentados en este gráfico reflejan el <b>registro más reciente</b> del estudiante.";
|
|
14022
|
+
var free_fields_responses$3 = "Respuestas de campos libres";
|
|
14023
|
+
var please_select_a_category_to_view_data$3 = "Seleccione una categoría para ver los datos";
|
|
14003
14024
|
var lang_es = {
|
|
14004
14025
|
dashboard: dashboard$3,
|
|
14005
14026
|
user: user$3,
|
|
@@ -16034,8 +16055,11 @@ var lang_es = {
|
|
|
16034
16055
|
good_job_you_filled_out_learning_strategies_in_the_my_learning_strategies_section: good_job_you_filled_out_learning_strategies_in_the_my_learning_strategies_section$1,
|
|
16035
16056
|
open_responses: open_responses$3,
|
|
16036
16057
|
teachers_list: teachers_list$3,
|
|
16058
|
+
you_can_only_select_1_question_at_a_time: you_can_only_select_1_question_at_a_time$3,
|
|
16037
16059
|
educator: educator$3,
|
|
16038
|
-
the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in: the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in$3
|
|
16060
|
+
the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in: the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in$3,
|
|
16061
|
+
free_fields_responses: free_fields_responses$3,
|
|
16062
|
+
please_select_a_category_to_view_data: please_select_a_category_to_view_data$3
|
|
16039
16063
|
};
|
|
16040
16064
|
|
|
16041
16065
|
var dashboard$4 = "仪表板";
|
|
@@ -18032,8 +18056,11 @@ var good_job_you_filled_out_support_network_in_the_my_support_network_section$2
|
|
|
18032
18056
|
var good_job_you_filled_out_learning_strategies_in_the_my_learning_strategies_section$2 = "干得好!您已在我的学习策略部分填写“学习策略”。";
|
|
18033
18057
|
var open_responses$4 = "开放式回应";
|
|
18034
18058
|
var teachers_list$4 = "教师名单";
|
|
18059
|
+
var you_can_only_select_1_question_at_a_time$4 = "您一次只能选择一个问题";
|
|
18035
18060
|
var educator$4 = "教育者";
|
|
18036
18061
|
var the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in$4 = "此图表中显示的数据反映了学生<b>最近的签到情况</b>。";
|
|
18062
|
+
var free_fields_responses$4 = "自由场响应";
|
|
18063
|
+
var please_select_a_category_to_view_data$4 = "请选择一个类别来查看数据";
|
|
18037
18064
|
var lang_zh = {
|
|
18038
18065
|
dashboard: dashboard$4,
|
|
18039
18066
|
user: user$4,
|
|
@@ -20068,8 +20095,11 @@ var lang_zh = {
|
|
|
20068
20095
|
good_job_you_filled_out_learning_strategies_in_the_my_learning_strategies_section: good_job_you_filled_out_learning_strategies_in_the_my_learning_strategies_section$2,
|
|
20069
20096
|
open_responses: open_responses$4,
|
|
20070
20097
|
teachers_list: teachers_list$4,
|
|
20098
|
+
you_can_only_select_1_question_at_a_time: you_can_only_select_1_question_at_a_time$4,
|
|
20071
20099
|
educator: educator$4,
|
|
20072
|
-
the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in: the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in$4
|
|
20100
|
+
the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in: the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in$4,
|
|
20101
|
+
free_fields_responses: free_fields_responses$4,
|
|
20102
|
+
please_select_a_category_to_view_data: please_select_a_category_to_view_data$4
|
|
20073
20103
|
};
|
|
20074
20104
|
|
|
20075
20105
|
var TINY_MCE_API_KEY = "htqausuofrnali3nh9ivmlpq6v415o0tv2qikpg39bqf4pnk";
|
|
@@ -40024,6 +40054,7 @@ var setEmailTemplateList = createAction("emailTemplate/setEmailTemplateList");
|
|
|
40024
40054
|
|
|
40025
40055
|
var setMailCategory = createAction("mailCategories/setMailCategory");
|
|
40026
40056
|
|
|
40057
|
+
var TINY_MCE_KEY_URL = "/api/TinyMCEKey";
|
|
40027
40058
|
var EMAIL_TEMPLATE_URL = BASE_URL + "/api/emailtemplate";
|
|
40028
40059
|
var get$1 = function get(filter) {
|
|
40029
40060
|
return api.get(EMAIL_TEMPLATE_URL, {
|
|
@@ -40042,6 +40073,9 @@ var update$5 = function update(data) {
|
|
|
40042
40073
|
var remove = function remove(id) {
|
|
40043
40074
|
return api["delete"](EMAIL_TEMPLATE_URL + "/" + id);
|
|
40044
40075
|
};
|
|
40076
|
+
var getTinyMCEKeyApi = function getTinyMCEKeyApi() {
|
|
40077
|
+
return api.get("" + TINY_MCE_KEY_URL);
|
|
40078
|
+
};
|
|
40045
40079
|
|
|
40046
40080
|
var MAIL_CATEGORY_URL = BASE_URL + "/api/EmailTemplateCategory";
|
|
40047
40081
|
var get$2 = function get() {
|
|
@@ -40709,11 +40743,10 @@ var useEmailTemplateDetail = function useEmailTemplateDetail(id) {
|
|
|
40709
40743
|
fileUpload = _useState4[0],
|
|
40710
40744
|
setFileUpload = _useState4[1];
|
|
40711
40745
|
|
|
40712
|
-
|
|
40713
|
-
|
|
40714
|
-
|
|
40715
|
-
|
|
40716
|
-
}, []);
|
|
40746
|
+
var _useState5 = useState(""),
|
|
40747
|
+
tinyMCEKey = _useState5[0],
|
|
40748
|
+
setTinyMCEKey = _useState5[1];
|
|
40749
|
+
|
|
40717
40750
|
useEffect(function () {
|
|
40718
40751
|
!!id && getData();
|
|
40719
40752
|
}, [id]);
|
|
@@ -40752,6 +40785,37 @@ var useEmailTemplateDetail = function useEmailTemplateDetail(id) {
|
|
|
40752
40785
|
}
|
|
40753
40786
|
}, [id]);
|
|
40754
40787
|
|
|
40788
|
+
var getTinyMCEKey = function getTinyMCEKey() {
|
|
40789
|
+
try {
|
|
40790
|
+
var _temp7 = function _temp7() {
|
|
40791
|
+
dispatch(setLoading(false));
|
|
40792
|
+
};
|
|
40793
|
+
|
|
40794
|
+
dispatch(setLoading(true));
|
|
40795
|
+
|
|
40796
|
+
var _temp8 = _catch(function () {
|
|
40797
|
+
return Promise.resolve(getTinyMCEKeyApi()).then(function (res) {
|
|
40798
|
+
var data = res.data;
|
|
40799
|
+
|
|
40800
|
+
if (!!data) {
|
|
40801
|
+
setTinyMCEKey(data.key);
|
|
40802
|
+
}
|
|
40803
|
+
});
|
|
40804
|
+
}, function (err) {
|
|
40805
|
+
var _err$response2, _err$response2$data;
|
|
40806
|
+
|
|
40807
|
+
dispatch(setAlert({
|
|
40808
|
+
type: "danger",
|
|
40809
|
+
message: ((_err$response2 = err.response) === null || _err$response2 === void 0 ? void 0 : (_err$response2$data = _err$response2.data) === null || _err$response2$data === void 0 ? void 0 : _err$response2$data.title) || "Get key failed"
|
|
40810
|
+
}));
|
|
40811
|
+
});
|
|
40812
|
+
|
|
40813
|
+
return Promise.resolve(_temp8 && _temp8.then ? _temp8.then(_temp7) : _temp7(_temp8));
|
|
40814
|
+
} catch (e) {
|
|
40815
|
+
return Promise.reject(e);
|
|
40816
|
+
}
|
|
40817
|
+
};
|
|
40818
|
+
|
|
40755
40819
|
var setEditorRef = function setEditorRef(node) {
|
|
40756
40820
|
return editorRef = node;
|
|
40757
40821
|
};
|
|
@@ -40765,14 +40829,14 @@ var useEmailTemplateDetail = function useEmailTemplateDetail(id) {
|
|
|
40765
40829
|
}, []);
|
|
40766
40830
|
var confirmData = useCallback(function (data) {
|
|
40767
40831
|
try {
|
|
40768
|
-
var
|
|
40832
|
+
var _temp13 = function _temp13() {
|
|
40769
40833
|
dispatch(setLoading(false));
|
|
40770
40834
|
};
|
|
40771
40835
|
|
|
40772
40836
|
dispatch(setLoading(true));
|
|
40773
40837
|
|
|
40774
|
-
var
|
|
40775
|
-
function
|
|
40838
|
+
var _temp14 = _catch(function () {
|
|
40839
|
+
function _temp10() {
|
|
40776
40840
|
var next = !!id ? update$5 : create$5;
|
|
40777
40841
|
return Promise.resolve(next(data)).then(function () {
|
|
40778
40842
|
dispatch(setAlert({
|
|
@@ -40783,7 +40847,7 @@ var useEmailTemplateDetail = function useEmailTemplateDetail(id) {
|
|
|
40783
40847
|
});
|
|
40784
40848
|
}
|
|
40785
40849
|
|
|
40786
|
-
var
|
|
40850
|
+
var _temp9 = function () {
|
|
40787
40851
|
if (!!fileUpload && !!fileUpload.length) {
|
|
40788
40852
|
return Promise.resolve(uploadFiles()).then(function (fileData) {
|
|
40789
40853
|
var newAttachments = fileData.map(function (item) {
|
|
@@ -40797,17 +40861,17 @@ var useEmailTemplateDetail = function useEmailTemplateDetail(id) {
|
|
|
40797
40861
|
}
|
|
40798
40862
|
}();
|
|
40799
40863
|
|
|
40800
|
-
return
|
|
40864
|
+
return _temp9 && _temp9.then ? _temp9.then(_temp10) : _temp10(_temp9);
|
|
40801
40865
|
}, function (err) {
|
|
40802
|
-
var _err$
|
|
40866
|
+
var _err$response3, _err$response3$data;
|
|
40803
40867
|
|
|
40804
40868
|
dispatch(setAlert({
|
|
40805
40869
|
type: "danger",
|
|
40806
|
-
message: ((_err$
|
|
40870
|
+
message: ((_err$response3 = err.response) === null || _err$response3 === void 0 ? void 0 : (_err$response3$data = _err$response3.data) === null || _err$response3$data === void 0 ? void 0 : _err$response3$data.title) || err.message
|
|
40807
40871
|
}));
|
|
40808
40872
|
});
|
|
40809
40873
|
|
|
40810
|
-
return Promise.resolve(
|
|
40874
|
+
return Promise.resolve(_temp14 && _temp14.then ? _temp14.then(_temp13) : _temp13(_temp14));
|
|
40811
40875
|
} catch (e) {
|
|
40812
40876
|
return Promise.reject(e);
|
|
40813
40877
|
}
|
|
@@ -40925,6 +40989,12 @@ var useEmailTemplateDetail = function useEmailTemplateDetail(id) {
|
|
|
40925
40989
|
}
|
|
40926
40990
|
};
|
|
40927
40991
|
|
|
40992
|
+
useEffect(function () {
|
|
40993
|
+
document.title = TITLE$5;
|
|
40994
|
+
getTinyMCEKey();
|
|
40995
|
+
setEdited(false);
|
|
40996
|
+
if (!!localStorage.getItem(window.location.href)) localStorage.removeItem(window.location.href);
|
|
40997
|
+
}, []);
|
|
40928
40998
|
return {
|
|
40929
40999
|
emailTemplateDetail: emailTemplateDetail,
|
|
40930
41000
|
setEditorRef: setEditorRef,
|
|
@@ -40937,7 +41007,8 @@ var useEmailTemplateDetail = function useEmailTemplateDetail(id) {
|
|
|
40937
41007
|
onAttachFile: onAttachFile,
|
|
40938
41008
|
updateAttachment: updateAttachment,
|
|
40939
41009
|
fileUpload: fileUpload,
|
|
40940
|
-
removeAttachment: removeAttachment
|
|
41010
|
+
removeAttachment: removeAttachment,
|
|
41011
|
+
tinyMCEKey: tinyMCEKey
|
|
40941
41012
|
};
|
|
40942
41013
|
};
|
|
40943
41014
|
|
|
@@ -40971,7 +41042,8 @@ var EmailTemplateDetail = function EmailTemplateDetail() {
|
|
|
40971
41042
|
setEditedTrue = _useEmailTemplateDeta.setEditedTrue,
|
|
40972
41043
|
onAttachFile = _useEmailTemplateDeta.onAttachFile,
|
|
40973
41044
|
fileUpload = _useEmailTemplateDeta.fileUpload,
|
|
40974
|
-
removeAttachment = _useEmailTemplateDeta.removeAttachment
|
|
41045
|
+
removeAttachment = _useEmailTemplateDeta.removeAttachment,
|
|
41046
|
+
tinyMCEKey = _useEmailTemplateDeta.tinyMCEKey;
|
|
40975
41047
|
|
|
40976
41048
|
var header = !!id ? t(EDIT_TEMPLATE_HEADER) : t(CREATE_TEMPLATE_HEADER);
|
|
40977
41049
|
var confirmText = !!id ? t("update") : t("create");
|
|
@@ -41045,7 +41117,7 @@ var EmailTemplateDetail = function EmailTemplateDetail() {
|
|
|
41045
41117
|
ref: function ref(node) {
|
|
41046
41118
|
return setEditorRef(node);
|
|
41047
41119
|
},
|
|
41048
|
-
apiKey:
|
|
41120
|
+
apiKey: tinyMCEKey,
|
|
41049
41121
|
initialValue: emailTemplateDetail.body,
|
|
41050
41122
|
init: editorConfig.email,
|
|
41051
41123
|
onEditorChange: function onEditorChange(content) {
|