mario-core 2.6.1 → 2.6.5

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.
@@ -130,10 +130,9 @@ var COLORS = {
130
130
  SUCCESS: "#28a745",
131
131
  INFO: "#007bff"
132
132
  };
133
- var DATE_FORMAT = "yyyy-MM-DD";
134
- var DATE_RESULT = "DD-MM-yyyy";
135
- var FULL_DATE_RESULT = "DD-MM-yyyy HH:mm";
136
- var FULL_DATE_FORMAT = "yyyy-MM-DD HH:mm";
133
+ var DATE_FORMAT = "yyyy-MM-dd";
134
+ var DATE_RESULT = "dd-MM-yyyy";
135
+ var FULL_DATE_RESULT = "dd-MM-yyyy HH:mm";
137
136
  var DATE_MIN_VALUE = "0001-01-01T00:00:00";
138
137
  var LICENSE_AGGRID = "Alhanko&Johnson_BASE23_single_1_Devs__22_November_2020_[v2]_MTYwNjAwMzIwMDAwMA==d452f38afc893671cad92795e95d52a1";
139
138
  var BASE_URL = function () {
@@ -5151,7 +5150,7 @@ var utcToLocalTime = (function (time, FORMAT) {
5151
5150
  if (time === DATE_MIN_VALUE) return "";
5152
5151
 
5153
5152
  try {
5154
- return moment.utc(time).local().format(FORMAT || DATE_FORMAT);
5153
+ return moment.utc(time).local().format(FORMAT || "yyyy-MM-DD");
5155
5154
  } catch (_unused) {
5156
5155
  return "";
5157
5156
  }
@@ -5199,7 +5198,7 @@ var useNotificationList = function useNotificationList() {
5199
5198
  };
5200
5199
 
5201
5200
  var viewNotification = function viewNotification(notification) {
5202
- var _JSON$parse, _JSON$parse2;
5201
+ var _JSON$parse, _JSON$parse2, _JSON$parse3, _JSON$parse4;
5203
5202
 
5204
5203
  var source = notification.source,
5205
5204
  extraData = notification.extraData;
@@ -5209,8 +5208,12 @@ var useNotificationList = function useNotificationList() {
5209
5208
  window.open("/player/diagnosticsurvey/" + Number(extraData));
5210
5209
  break;
5211
5210
 
5211
+ case "NewConferenceCreated":
5212
+ 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");
5213
+ break;
5214
+
5212
5215
  case "NewSessionCreated":
5213
- window.open("/start-question/" + ((_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]));
5216
+ 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]));
5214
5217
  break;
5215
5218
 
5216
5219
  case "CertificateApproved":
@@ -5371,7 +5374,7 @@ var NotificationList = function NotificationList() {
5371
5374
  className: "align-middle"
5372
5375
  }, record.text), React.createElement("td", {
5373
5376
  className: "align-middle"
5374
- }, utcToLocalTime(record.time, FULL_DATE_FORMAT)), React.createElement("td", {
5377
+ }, utcToLocalTime(record.time, "yyyy-MM-DD HH:mm")), React.createElement("td", {
5375
5378
  className: styles["control-input"] + " text-center align-middle"
5376
5379
  }, React.createElement(CustomInput, {
5377
5380
  type: "checkbox",
@@ -5382,7 +5385,7 @@ var NotificationList = function NotificationList() {
5382
5385
  }
5383
5386
  })), React.createElement("td", {
5384
5387
  className: "text-center align-middle"
5385
- }, ["AssessmentAssignment", "NewSessionCreated", "CertificateApproved"].includes(record.source) && React.createElement(AiOutlineEye, {
5388
+ }, ["AssessmentAssignment", "NewConferenceCreated", "NewSessionCreated", "CertificateApproved"].includes(record.source) && React.createElement(AiOutlineEye, {
5386
5389
  className: "cursor-pointer",
5387
5390
  size: ICON_SIZE,
5388
5391
  title: "Detail",