mario-core 2.9.46-admin → 2.9.47-admin
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 +15 -11
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +15 -11
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -19,6 +19,7 @@ import { FaPlus, FaTrashAlt, FaRegEdit, FaArrowLeft, FaDownload, FaTrash, FaEdit
|
|
|
19
19
|
import { format } from 'date-fns';
|
|
20
20
|
import { Editor } from '@tinymce/tinymce-react';
|
|
21
21
|
import differenceInCalendarYears from 'date-fns/differenceInCalendarYears';
|
|
22
|
+
import moment from 'moment';
|
|
22
23
|
import DatePicker from 'react-datepicker';
|
|
23
24
|
import toDate from 'date-fns/toDate';
|
|
24
25
|
import { MdAttachFile } from 'react-icons/md';
|
|
@@ -26,7 +27,6 @@ import Creatable from 'react-select/creatable';
|
|
|
26
27
|
import ReactNotification$1 from 'react-notifications-component';
|
|
27
28
|
import 'react-notifications-component/dist/theme.css';
|
|
28
29
|
import { AiOutlineEye } from 'react-icons/ai';
|
|
29
|
-
import moment from 'moment';
|
|
30
30
|
|
|
31
31
|
// A type of promise-like that resolves synchronously and supports only one observer
|
|
32
32
|
|
|
@@ -4521,6 +4521,16 @@ SearchBoxContainer.defaultProps = {
|
|
|
4521
4521
|
placeholder: "Type something to search"
|
|
4522
4522
|
};
|
|
4523
4523
|
|
|
4524
|
+
var utcToLocalTime = (function (time, FORMAT) {
|
|
4525
|
+
if (time === DATE_MIN_VALUE) return "";
|
|
4526
|
+
|
|
4527
|
+
try {
|
|
4528
|
+
return moment.utc(time).local().format(FORMAT || "yyyy-MM-DD");
|
|
4529
|
+
} catch (_unused) {
|
|
4530
|
+
return "";
|
|
4531
|
+
}
|
|
4532
|
+
});
|
|
4533
|
+
|
|
4524
4534
|
var header$2 = "User";
|
|
4525
4535
|
|
|
4526
4536
|
var UserList = function UserList() {
|
|
@@ -4577,6 +4587,8 @@ var UserList = function UserList() {
|
|
|
4577
4587
|
}, "Role"), React.createElement("th", {
|
|
4578
4588
|
className: "align-top"
|
|
4579
4589
|
}, "Active status"), React.createElement("th", {
|
|
4590
|
+
className: "align-top"
|
|
4591
|
+
}, "Created time"), React.createElement("th", {
|
|
4580
4592
|
className: "text-center"
|
|
4581
4593
|
}, "Action"))), React.createElement("tbody", null, userList.map(function (record) {
|
|
4582
4594
|
return React.createElement("tr", {
|
|
@@ -4597,6 +4609,8 @@ var UserList = function UserList() {
|
|
|
4597
4609
|
}, !!record.roles && record.roles.join(", ")), React.createElement("td", {
|
|
4598
4610
|
className: "align-middle"
|
|
4599
4611
|
}, record.isActive ? "Active" : "Inactive"), React.createElement("td", {
|
|
4612
|
+
className: "align-middle"
|
|
4613
|
+
}, utcToLocalTime(record === null || record === void 0 ? void 0 : record.createTime, "yyyy-MM-DD HH:mm")), React.createElement("td", {
|
|
4600
4614
|
className: "text-center align-middle"
|
|
4601
4615
|
}, React.createElement(DeleteButtonIcon, {
|
|
4602
4616
|
onClick: function onClick() {
|
|
@@ -5628,16 +5642,6 @@ var NotificationStatusSelector = function NotificationStatusSelector(_ref) {
|
|
|
5628
5642
|
|
|
5629
5643
|
var NotificationStatusSelector$1 = memo(NotificationStatusSelector);
|
|
5630
5644
|
|
|
5631
|
-
var utcToLocalTime = (function (time, FORMAT) {
|
|
5632
|
-
if (time === DATE_MIN_VALUE) return "";
|
|
5633
|
-
|
|
5634
|
-
try {
|
|
5635
|
-
return moment.utc(time).local().format(FORMAT || "yyyy-MM-DD");
|
|
5636
|
-
} catch (_unused) {
|
|
5637
|
-
return "";
|
|
5638
|
-
}
|
|
5639
|
-
});
|
|
5640
|
-
|
|
5641
5645
|
var defaultFilters = {
|
|
5642
5646
|
currentPage: 1,
|
|
5643
5647
|
pageSize: 30,
|