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.js
CHANGED
|
@@ -25,6 +25,7 @@ var fa = require('react-icons/fa');
|
|
|
25
25
|
var dateFns = require('date-fns');
|
|
26
26
|
var tinymceReact = require('@tinymce/tinymce-react');
|
|
27
27
|
var differenceInCalendarYears = _interopDefault(require('date-fns/differenceInCalendarYears'));
|
|
28
|
+
var moment = _interopDefault(require('moment'));
|
|
28
29
|
var DatePicker = _interopDefault(require('react-datepicker'));
|
|
29
30
|
var toDate = _interopDefault(require('date-fns/toDate'));
|
|
30
31
|
var md = require('react-icons/md');
|
|
@@ -32,7 +33,6 @@ var Creatable = _interopDefault(require('react-select/creatable'));
|
|
|
32
33
|
var ReactNotification$1 = _interopDefault(require('react-notifications-component'));
|
|
33
34
|
require('react-notifications-component/dist/theme.css');
|
|
34
35
|
var ai = require('react-icons/ai');
|
|
35
|
-
var moment = _interopDefault(require('moment'));
|
|
36
36
|
|
|
37
37
|
var dashboard = "Dashboard";
|
|
38
38
|
var user = "User";
|
|
@@ -203,7 +203,10 @@ var user_name = "User Name";
|
|
|
203
203
|
var user_email = "User Email";
|
|
204
204
|
var level = "Level";
|
|
205
205
|
var use_for = "Use for";
|
|
206
|
+
var admin_training = "Admin training";
|
|
206
207
|
var teacher_training = "Teacher training";
|
|
208
|
+
var created_time = "Create time";
|
|
209
|
+
var total_reflections = "Total reflections";
|
|
207
210
|
var student_training = "Student training";
|
|
208
211
|
var create_destination = "Create Destination";
|
|
209
212
|
var total_of_designation = "Total of Designation";
|
|
@@ -679,7 +682,10 @@ var lang_us = {
|
|
|
679
682
|
user_email: user_email,
|
|
680
683
|
level: level,
|
|
681
684
|
use_for: use_for,
|
|
685
|
+
admin_training: admin_training,
|
|
682
686
|
teacher_training: teacher_training,
|
|
687
|
+
created_time: created_time,
|
|
688
|
+
total_reflections: total_reflections,
|
|
683
689
|
student_training: student_training,
|
|
684
690
|
create_destination: create_destination,
|
|
685
691
|
total_of_designation: total_of_designation,
|
|
@@ -1159,7 +1165,10 @@ var user_name$1 = "User Name";
|
|
|
1159
1165
|
var user_email$1 = "User Email";
|
|
1160
1166
|
var level$1 = "Level";
|
|
1161
1167
|
var use_for$1 = "Use for";
|
|
1168
|
+
var admin_training$1 = "Admin training";
|
|
1162
1169
|
var teacher_training$1 = "Teacher training";
|
|
1170
|
+
var created_time$1 = "Create time";
|
|
1171
|
+
var total_reflections$1 = "Total reflections:";
|
|
1163
1172
|
var student_training$1 = "Student training";
|
|
1164
1173
|
var create_destination$1 = "Create Destination";
|
|
1165
1174
|
var total_of_designation$1 = "Total of Designation";
|
|
@@ -1635,7 +1644,10 @@ var lang_uk = {
|
|
|
1635
1644
|
user_email: user_email$1,
|
|
1636
1645
|
level: level$1,
|
|
1637
1646
|
use_for: use_for$1,
|
|
1647
|
+
admin_training: admin_training$1,
|
|
1638
1648
|
teacher_training: teacher_training$1,
|
|
1649
|
+
created_time: created_time$1,
|
|
1650
|
+
total_reflections: total_reflections$1,
|
|
1639
1651
|
student_training: student_training$1,
|
|
1640
1652
|
create_destination: create_destination$1,
|
|
1641
1653
|
total_of_designation: total_of_designation$1,
|
|
@@ -6553,6 +6565,16 @@ SearchBoxContainer.defaultProps = {
|
|
|
6553
6565
|
placeholder: "Type something to search"
|
|
6554
6566
|
};
|
|
6555
6567
|
|
|
6568
|
+
var utcToLocalTime = (function (time, FORMAT) {
|
|
6569
|
+
if (time === DATE_MIN_VALUE) return "";
|
|
6570
|
+
|
|
6571
|
+
try {
|
|
6572
|
+
return moment.utc(time).local().format(FORMAT || "yyyy-MM-DD");
|
|
6573
|
+
} catch (_unused) {
|
|
6574
|
+
return "";
|
|
6575
|
+
}
|
|
6576
|
+
});
|
|
6577
|
+
|
|
6556
6578
|
var header$2 = "User";
|
|
6557
6579
|
|
|
6558
6580
|
var UserList = function UserList() {
|
|
@@ -6612,6 +6634,8 @@ var UserList = function UserList() {
|
|
|
6612
6634
|
}, t("role")), React__default.createElement("th", {
|
|
6613
6635
|
className: "align-top"
|
|
6614
6636
|
}, t("active_status")), React__default.createElement("th", {
|
|
6637
|
+
className: "align-top"
|
|
6638
|
+
}, t("created_time")), React__default.createElement("th", {
|
|
6615
6639
|
className: "text-center"
|
|
6616
6640
|
}, t("action")))), React__default.createElement("tbody", null, userList.map(function (record) {
|
|
6617
6641
|
return React__default.createElement("tr", {
|
|
@@ -6632,6 +6656,8 @@ var UserList = function UserList() {
|
|
|
6632
6656
|
}, !!record.roles && record.roles.join(", ")), React__default.createElement("td", {
|
|
6633
6657
|
className: "align-middle"
|
|
6634
6658
|
}, record.isActive ? t("active") : t("inactive")), React__default.createElement("td", {
|
|
6659
|
+
className: "align-middle"
|
|
6660
|
+
}, utcToLocalTime(record === null || record === void 0 ? void 0 : record.createTime, "yyyy-MM-DD HH:mm")), React__default.createElement("td", {
|
|
6635
6661
|
className: "text-center align-middle"
|
|
6636
6662
|
}, React__default.createElement(DeleteButtonIcon, {
|
|
6637
6663
|
onClick: function onClick() {
|
|
@@ -7666,16 +7692,6 @@ var NotificationStatusSelector = function NotificationStatusSelector(_ref) {
|
|
|
7666
7692
|
|
|
7667
7693
|
var NotificationStatusSelector$1 = React.memo(NotificationStatusSelector);
|
|
7668
7694
|
|
|
7669
|
-
var utcToLocalTime = (function (time, FORMAT) {
|
|
7670
|
-
if (time === DATE_MIN_VALUE) return "";
|
|
7671
|
-
|
|
7672
|
-
try {
|
|
7673
|
-
return moment.utc(time).local().format(FORMAT || "yyyy-MM-DD");
|
|
7674
|
-
} catch (_unused) {
|
|
7675
|
-
return "";
|
|
7676
|
-
}
|
|
7677
|
-
});
|
|
7678
|
-
|
|
7679
7695
|
var defaultFilters = {
|
|
7680
7696
|
currentPage: 1,
|
|
7681
7697
|
pageSize: 30,
|