mario-core 2.9.48-beta → 2.9.50-beta
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 +27 -11
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +27 -11
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -23,6 +23,7 @@ import { FaPlus, FaTrashAlt, FaRegEdit, FaArrowLeft, FaDownload, FaTrash, FaEdit
|
|
|
23
23
|
import { format } from 'date-fns';
|
|
24
24
|
import { Editor } from '@tinymce/tinymce-react';
|
|
25
25
|
import differenceInCalendarYears from 'date-fns/differenceInCalendarYears';
|
|
26
|
+
import moment from 'moment';
|
|
26
27
|
import DatePicker from 'react-datepicker';
|
|
27
28
|
import toDate from 'date-fns/toDate';
|
|
28
29
|
import { MdAttachFile } from 'react-icons/md';
|
|
@@ -30,7 +31,6 @@ import Creatable from 'react-select/creatable';
|
|
|
30
31
|
import ReactNotification$1 from 'react-notifications-component';
|
|
31
32
|
import 'react-notifications-component/dist/theme.css';
|
|
32
33
|
import { AiOutlineEye } from 'react-icons/ai';
|
|
33
|
-
import moment from 'moment';
|
|
34
34
|
|
|
35
35
|
var dashboard = "Dashboard";
|
|
36
36
|
var user = "User";
|
|
@@ -201,7 +201,10 @@ var user_name = "User Name";
|
|
|
201
201
|
var user_email = "User Email";
|
|
202
202
|
var level = "Level";
|
|
203
203
|
var use_for = "Use for";
|
|
204
|
+
var admin_training = "Admin training";
|
|
204
205
|
var teacher_training = "Teacher training";
|
|
206
|
+
var created_time = "Create time";
|
|
207
|
+
var total_reflections = "Total reflections";
|
|
205
208
|
var student_training = "Student training";
|
|
206
209
|
var create_destination = "Create Destination";
|
|
207
210
|
var total_of_designation = "Total of Designation";
|
|
@@ -677,7 +680,10 @@ var lang_us = {
|
|
|
677
680
|
user_email: user_email,
|
|
678
681
|
level: level,
|
|
679
682
|
use_for: use_for,
|
|
683
|
+
admin_training: admin_training,
|
|
680
684
|
teacher_training: teacher_training,
|
|
685
|
+
created_time: created_time,
|
|
686
|
+
total_reflections: total_reflections,
|
|
681
687
|
student_training: student_training,
|
|
682
688
|
create_destination: create_destination,
|
|
683
689
|
total_of_designation: total_of_designation,
|
|
@@ -1157,7 +1163,10 @@ var user_name$1 = "User Name";
|
|
|
1157
1163
|
var user_email$1 = "User Email";
|
|
1158
1164
|
var level$1 = "Level";
|
|
1159
1165
|
var use_for$1 = "Use for";
|
|
1166
|
+
var admin_training$1 = "Admin training";
|
|
1160
1167
|
var teacher_training$1 = "Teacher training";
|
|
1168
|
+
var created_time$1 = "Create time";
|
|
1169
|
+
var total_reflections$1 = "Total reflections:";
|
|
1161
1170
|
var student_training$1 = "Student training";
|
|
1162
1171
|
var create_destination$1 = "Create Destination";
|
|
1163
1172
|
var total_of_designation$1 = "Total of Designation";
|
|
@@ -1633,7 +1642,10 @@ var lang_uk = {
|
|
|
1633
1642
|
user_email: user_email$1,
|
|
1634
1643
|
level: level$1,
|
|
1635
1644
|
use_for: use_for$1,
|
|
1645
|
+
admin_training: admin_training$1,
|
|
1636
1646
|
teacher_training: teacher_training$1,
|
|
1647
|
+
created_time: created_time$1,
|
|
1648
|
+
total_reflections: total_reflections$1,
|
|
1637
1649
|
student_training: student_training$1,
|
|
1638
1650
|
create_destination: create_destination$1,
|
|
1639
1651
|
total_of_designation: total_of_designation$1,
|
|
@@ -6551,6 +6563,16 @@ SearchBoxContainer.defaultProps = {
|
|
|
6551
6563
|
placeholder: "Type something to search"
|
|
6552
6564
|
};
|
|
6553
6565
|
|
|
6566
|
+
var utcToLocalTime = (function (time, FORMAT) {
|
|
6567
|
+
if (time === DATE_MIN_VALUE) return "";
|
|
6568
|
+
|
|
6569
|
+
try {
|
|
6570
|
+
return moment.utc(time).local().format(FORMAT || "yyyy-MM-DD");
|
|
6571
|
+
} catch (_unused) {
|
|
6572
|
+
return "";
|
|
6573
|
+
}
|
|
6574
|
+
});
|
|
6575
|
+
|
|
6554
6576
|
var header$2 = "User";
|
|
6555
6577
|
|
|
6556
6578
|
var UserList = function UserList() {
|
|
@@ -6610,6 +6632,8 @@ var UserList = function UserList() {
|
|
|
6610
6632
|
}, t("role")), React.createElement("th", {
|
|
6611
6633
|
className: "align-top"
|
|
6612
6634
|
}, t("active_status")), React.createElement("th", {
|
|
6635
|
+
className: "align-top"
|
|
6636
|
+
}, t("created_time")), React.createElement("th", {
|
|
6613
6637
|
className: "text-center"
|
|
6614
6638
|
}, t("action")))), React.createElement("tbody", null, userList.map(function (record) {
|
|
6615
6639
|
return React.createElement("tr", {
|
|
@@ -6630,6 +6654,8 @@ var UserList = function UserList() {
|
|
|
6630
6654
|
}, !!record.roles && record.roles.join(", ")), React.createElement("td", {
|
|
6631
6655
|
className: "align-middle"
|
|
6632
6656
|
}, record.isActive ? t("active") : t("inactive")), React.createElement("td", {
|
|
6657
|
+
className: "align-middle"
|
|
6658
|
+
}, utcToLocalTime(record === null || record === void 0 ? void 0 : record.createTime, "yyyy-MM-DD HH:mm")), React.createElement("td", {
|
|
6633
6659
|
className: "text-center align-middle"
|
|
6634
6660
|
}, React.createElement(DeleteButtonIcon, {
|
|
6635
6661
|
onClick: function onClick() {
|
|
@@ -7664,16 +7690,6 @@ var NotificationStatusSelector = function NotificationStatusSelector(_ref) {
|
|
|
7664
7690
|
|
|
7665
7691
|
var NotificationStatusSelector$1 = memo(NotificationStatusSelector);
|
|
7666
7692
|
|
|
7667
|
-
var utcToLocalTime = (function (time, FORMAT) {
|
|
7668
|
-
if (time === DATE_MIN_VALUE) return "";
|
|
7669
|
-
|
|
7670
|
-
try {
|
|
7671
|
-
return moment.utc(time).local().format(FORMAT || "yyyy-MM-DD");
|
|
7672
|
-
} catch (_unused) {
|
|
7673
|
-
return "";
|
|
7674
|
-
}
|
|
7675
|
-
});
|
|
7676
|
-
|
|
7677
7693
|
var defaultFilters = {
|
|
7678
7694
|
currentPage: 1,
|
|
7679
7695
|
pageSize: 30,
|