mario-core 2.6.0 → 2.6.4
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 +9 -8
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -8
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -25,7 +25,7 @@ var Creatable = _interopDefault(require('react-select/creatable'));
|
|
|
25
25
|
var ReactNotification$1 = _interopDefault(require('react-notifications-component'));
|
|
26
26
|
require('react-notifications-component/dist/theme.css');
|
|
27
27
|
var ai = require('react-icons/ai');
|
|
28
|
-
var
|
|
28
|
+
var moment = _interopDefault(require('moment'));
|
|
29
29
|
|
|
30
30
|
// A type of promise-like that resolves synchronously and supports only one observer
|
|
31
31
|
|
|
@@ -5150,14 +5150,11 @@ var NotificationStatusSelector = function NotificationStatusSelector(_ref) {
|
|
|
5150
5150
|
|
|
5151
5151
|
var NotificationStatusSelector$1 = React.memo(NotificationStatusSelector);
|
|
5152
5152
|
|
|
5153
|
-
var FULL_FORMAT = "MM-dd-yyyy HH:mm:ss";
|
|
5154
5153
|
var utcToLocalTime = (function (time, FORMAT) {
|
|
5155
5154
|
if (time === DATE_MIN_VALUE) return "";
|
|
5156
5155
|
|
|
5157
5156
|
try {
|
|
5158
|
-
|
|
5159
|
-
var utcDateFormat = format(new Date(utcDate), FULL_FORMAT) + " UTC";
|
|
5160
|
-
return format(new Date(utcDateFormat), FORMAT || DATE_FORMAT);
|
|
5157
|
+
return moment.utc(time).local().format(FORMAT || "yyyy-MM-DD");
|
|
5161
5158
|
} catch (_unused) {
|
|
5162
5159
|
return "";
|
|
5163
5160
|
}
|
|
@@ -5205,7 +5202,7 @@ var useNotificationList = function useNotificationList() {
|
|
|
5205
5202
|
};
|
|
5206
5203
|
|
|
5207
5204
|
var viewNotification = function viewNotification(notification) {
|
|
5208
|
-
var _JSON$parse, _JSON$parse2;
|
|
5205
|
+
var _JSON$parse, _JSON$parse2, _JSON$parse3, _JSON$parse4;
|
|
5209
5206
|
|
|
5210
5207
|
var source = notification.source,
|
|
5211
5208
|
extraData = notification.extraData;
|
|
@@ -5215,8 +5212,12 @@ var useNotificationList = function useNotificationList() {
|
|
|
5215
5212
|
window.open("/player/diagnosticsurvey/" + Number(extraData));
|
|
5216
5213
|
break;
|
|
5217
5214
|
|
|
5215
|
+
case "NewConferenceCreated":
|
|
5216
|
+
window.open("/start-conference/" + ((_JSON$parse = JSON.parse(extraData)) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse[0]) + "/" + ((_JSON$parse2 = JSON.parse(extraData)) === null || _JSON$parse2 === void 0 ? void 0 : _JSON$parse2[1]) + "/conferenceRubric");
|
|
5217
|
+
break;
|
|
5218
|
+
|
|
5218
5219
|
case "NewSessionCreated":
|
|
5219
|
-
window.open("/start-question/" + ((_JSON$
|
|
5220
|
+
window.open("/start-question/" + ((_JSON$parse3 = JSON.parse(extraData)) === null || _JSON$parse3 === void 0 ? void 0 : _JSON$parse3[0]) + "/" + ((_JSON$parse4 = JSON.parse(extraData)) === null || _JSON$parse4 === void 0 ? void 0 : _JSON$parse4[1]));
|
|
5220
5221
|
break;
|
|
5221
5222
|
|
|
5222
5223
|
case "CertificateApproved":
|
|
@@ -5388,7 +5389,7 @@ var NotificationList = function NotificationList() {
|
|
|
5388
5389
|
}
|
|
5389
5390
|
})), React__default.createElement("td", {
|
|
5390
5391
|
className: "text-center align-middle"
|
|
5391
|
-
}, ["AssessmentAssignment", "NewSessionCreated", "CertificateApproved"].includes(record.source) && React__default.createElement(ai.AiOutlineEye, {
|
|
5392
|
+
}, ["AssessmentAssignment", "NewConferenceCreated", "NewSessionCreated", "CertificateApproved"].includes(record.source) && React__default.createElement(ai.AiOutlineEye, {
|
|
5392
5393
|
className: "cursor-pointer",
|
|
5393
5394
|
size: ICON_SIZE,
|
|
5394
5395
|
title: "Detail",
|